:root{
  --trainer-fm-bg:#111821;
  --trainer-fm-panel:#18222e;
  --trainer-fm-panel-2:#1d2835;
  --trainer-fm-line:rgba(255,255,255,.075);
  --trainer-fm-line-soft:rgba(255,255,255,.052);
  --trainer-fm-text:#eef3f8;
  --trainer-fm-muted:#9cacbf;
  --trainer-fm-gold:#e8bf58;
  --trainer-fm-cyan:#7cf5e6;
  --trainer-fm-shadow:0 16px 38px rgba(0,0,0,.22);
}

html,body{
  height:100%;
  overflow:hidden;
}

body.student-trainer-fm704 .page-shell,
body.student-trainer-fm704 .page-layer,
body.student-trainer-fm704 .frame-grid,
body.student-trainer-fm704 .frame-card,
body.student-trainer-fm704 .frame-card-left,
body.student-trainer-fm704 .frame-card-right{
  min-height:0;
}

body.student-trainer-fm704 .frame-grid{
  grid-template-columns:minmax(290px,.82fr) minmax(0,1.64fr);
  gap:14px;
}

body.student-trainer-fm704 .frame-card-left,
body.student-trainer-fm704 .frame-card-right{
  border-color:var(--trainer-fm-line-soft);
  background:
    radial-gradient(circle at 100% 0%,rgba(232,191,88,.035),transparent 28%),
    linear-gradient(160deg,#202a36 0%,#18212b 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.student-panel{
  display:grid;
  grid-template-rows:auto auto minmax(180px,1fr) auto minmax(58px,84px) auto;
  height:clamp(620px,calc(100vh - 238px),740px);
  min-height:620px;
  max-height:740px;
  overflow:hidden;
  padding:2px;
  box-sizing:border-box;
}

.trainer-student-identity{
  position:relative;
  padding:15px 15px 14px;
  margin-bottom:12px;
  border:1px solid var(--trainer-fm-line-soft);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(232,191,88,.09),transparent 38%),
    linear-gradient(145deg,#1e2936 0%,#17212c 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.trainer-student-identity::after{
  content:"";
  position:absolute;
  left:15px;
  right:15px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,rgba(232,191,88,.42),transparent 72%);
}

.side-section-title{
  margin:0 0 8px;
  color:#91a8c2;
  font-size:10px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:360;
}

.student-key{
  min-height:28px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.trainer-student-sub{
  margin-top:6px;
  color:#a9b7c7;
  font-size:12px;
  line-height:1.4;
  font-weight:320;
}

.trainer-side-section-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 4px 8px;
  color:#a9b7c7;
  font-size:10px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.trainer-side-section-label strong{
  color:#d7e0eb;
  font-weight:390;
}

.trainer-side-section-label span:last-child{
  color:#d3aa4e;
}

.box-list,
.wrong-list{
  display:grid;
  gap:10px;
  min-height:0;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(209,219,231,.42) rgba(255,255,255,.035);
}

.box-list{
  max-height:none;
  overflow:auto;
}

.wrong-list{
  max-height:none;
  overflow:auto;
  margin:0 0 8px;
}

.box-item,
.wrong-item{
  padding:12px;
  border:1px solid var(--trainer-fm-line-soft);
  border-radius:13px;
  background:
    radial-gradient(circle at 100% 0%,rgba(124,245,230,.035),transparent 34%),
    linear-gradient(160deg,#202b38 0%,#19232e 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

.box-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.box-title,
.wrong-title{
  margin-bottom:0;
  color:#e8eef5;
  font-size:16px;
  line-height:1.35;
  font-weight:320;
  word-break:break-word;
}

.box-meta,
.wrong-meta{
  margin-bottom:0;
  color:#a9b7c7;
  font-size:13px;
  line-height:1.5;
}

.box-start-btn,
.wrong-start-btn{
  flex:0 0 auto;
  height:34px;
  margin-left:auto;
  padding:0 12px;
  border:1px solid rgba(232,191,88,.24);
  border-radius:10px;
  background:linear-gradient(180deg,#3a3527,#2c2a22);
  color:#f0d17a;
  font-size:12px;
  font-family:inherit;
  font-weight:340;
  cursor:pointer;
}

.box-start-btn.is-learning-active,
.wrong-start-btn.is-learning-active{
  border-color:rgba(124,245,230,.38);
  background:linear-gradient(180deg,#24504d,#193b3b);
  color:#c5fbf3;
  box-shadow:inset 0 1px 0 rgba(210,255,249,.08),0 0 0 1px rgba(124,245,230,.025);
}

.trainer-security-actions{
  margin-top:0;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.055);
}

.trainer-side-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:0;
}

.logout-btn{
  width:100%;
  height:36px;
  min-height:36px;
  margin:0;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--trainer-fm-line);
  border-radius:10px;
  background:linear-gradient(180deg,#313b47,#26313c);
  color:#dbe5ef;
  text-align:center;
  line-height:1;
  box-sizing:border-box;
  white-space:nowrap;
  text-decoration:none;
  font-size:12px;
  font-family:inherit;
  font-weight:340;
  letter-spacing:-.01em;
  cursor:pointer;
}

.trainer-notice-btn{
  border-color:rgba(232,191,88,.30);
  background:linear-gradient(180deg,#3b3527,#2d2a22);
  color:#f0d17a;
}

.logout-btn:hover{
  border-color:rgba(255,255,255,.12);
  background:linear-gradient(180deg,#3a4654,#2d3946);
}

.trainer-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
  height:clamp(620px,calc(100vh - 238px),740px);
  min-height:620px;
  max-height:740px;
  overflow:hidden;
  box-sizing:border-box;
  padding:2px;
}

.trainer-stage-header{
  flex:0 0 auto;
  min-height:74px;
  padding:13px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid var(--trainer-fm-line-soft);
  border-radius:15px;
  background:
    radial-gradient(circle at 88% 12%,rgba(232,191,88,.10),transparent 31%),
    linear-gradient(145deg,#1d2835 0%,#17212c 68%,#171c22 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.trainer-stage-kicker{
  margin-bottom:7px;
  color:#91a8c2;
  font-size:10px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.trainer-stage-title{
  color:#f1f5f9;
  font-size:18px;
  line-height:1.25;
  font-weight:380;
  letter-spacing:-.03em;
}

.trainer-stage-title span{
  color:var(--trainer-fm-gold);
}

.trainer-ready-state{
  flex:0 0 auto;
  height:30px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(124,245,230,.18);
  border-radius:999px;
  background:rgba(124,245,230,.045);
  color:#bff8ef;
  font-size:10px;
  letter-spacing:.14em;
  white-space:nowrap;
}

.trainer-ready-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#7cf5e6;
  box-shadow:0 0 0 4px rgba(124,245,230,.10);
}

.trainer-board{
  position:relative;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  height:auto;
  max-height:none;
  overflow:hidden;
  padding:14px;
  border:1px solid var(--trainer-fm-line-soft);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0%,rgba(124,245,230,.025),transparent 32%),
    linear-gradient(160deg,#1d2835 0%,#17212c 100%);
  box-shadow:var(--trainer-fm-shadow),inset 0 1px 0 rgba(255,255,255,.022);
  box-sizing:border-box;
}

.trainer-empty-cockpit{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:30px;
  border:1px solid rgba(255,255,255,.045);
  border-radius:15px;
  background:
    radial-gradient(circle at 50% 30%,rgba(232,191,88,.075),transparent 26%),
    linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.008));
  text-align:center;
}

.trainer-empty-mark{
  width:52px;
  height:52px;
  margin-bottom:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(232,191,88,.25);
  border-radius:15px;
  background:rgba(232,191,88,.055);
  color:var(--trainer-fm-gold);
  font-size:18px;
}

.trainer-empty-kicker{
  margin-bottom:10px;
  color:#8fa8c2;
  font-size:10px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.trainer-empty-title{
  color:#f2f5f8;
  font-size:24px;
  line-height:1.25;
  font-weight:380;
  letter-spacing:-.04em;
}

.trainer-empty-copy{
  margin-top:8px;
  color:#9eafc1;
  font-size:13px;
  line-height:1.55;
}

.trainer-empty-steps{
  width:min(620px,100%);
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.trainer-empty-step{
  min-height:58px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:12px;
  background:rgba(255,255,255,.018);
  color:#c9d4e0;
  font-size:12px;
  line-height:1.45;
}

.trainer-empty-step strong{
  display:block;
  margin-bottom:3px;
  color:#f0cf75;
  font-size:11px;
  letter-spacing:.08em;
}

*::-webkit-scrollbar{
  width:7px;
  height:7px;
}

*::-webkit-scrollbar-track{
  background:rgba(255,255,255,.025);
  border-radius:999px;
}

*::-webkit-scrollbar-thumb{
  border:1px solid rgba(0,0,0,.26);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(216,224,234,.50),rgba(126,141,160,.42));
}

*::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,rgba(229,235,242,.72),rgba(148,162,180,.58));
}

/* TRAINER UI · single source of truth */
#studentKeyLabel{
      display:block;
      min-height:28px;
      margin:0;
      color:#f3d47d;
      font-size:23px;
      line-height:1.15;
      font-weight:390;
      letter-spacing:-.035em;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      text-shadow:none;
    }
    #studentKeyLabel::after{
      content:"Keep on training...";
      display:block;
      margin-top:7px;
      color:rgba(196,206,220,0.90);
      font-size:11px;
      line-height:1.2;
      font-weight:300;
      letter-spacing:0.08em;
    }

    .trainer-mini-stats{
      width:100%;
      max-width:none;
      margin:12px 0 0;
      padding:9px 0 0;
      border-top:1px solid rgba(255,255,255,.055);
      display:flex;
      flex-direction:column;
      gap:0;
      box-sizing:border-box;
    }
    .trainer-mini-stat-row{
      width:100%;
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      align-items:center;
      gap:12px;
      margin:0;
      padding:2px 0;
      box-sizing:border-box;
      font-size:13px;
      line-height:1.25;
      letter-spacing:.03em;
      color:#a9b7c7;
    }
    .trainer-mini-stat-label{
      min-width:0;
      color:#a9b7c7;
      text-align:left;
      white-space:nowrap;
    }
    .trainer-mini-stat-value{
      justify-self:end;
      min-width:52px;
      padding-left:12px;
      color:#f0cf75;
      text-align:right;
      font-weight:330;
      font-variant-numeric:tabular-nums;
    }

    .trainer-parent-reset-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      height:34px;
      min-height:34px;
      padding:0 12px;
      border-radius:10px;
      border:1px solid rgba(216,191,134,0.30);
      background:linear-gradient(180deg,#3a372d,#2b2a25);
      color:#f3dfab;
      font-size:12px;
      line-height:1;
      font-family:inherit;
      font-weight:300;
      cursor:pointer;
      box-sizing:border-box;
      white-space:nowrap;
      box-shadow:inset 0 1px 0 rgba(255,231,177,0.10), 0 8px 18px rgba(0,0,0,0.14);
    }
    .trainer-parent-reset-btn:hover{
      border-color:rgba(216,191,134,0.42);
      background:linear-gradient(180deg,#423d31,#302e27);
      color:#ffe4aa;
    }
    .trainer-parent-reset-overlay{
      position:fixed;
      inset:0;
      z-index:9999;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:18px;
      background:rgba(5,8,12,0.72);
      backdrop-filter:blur(8px);
      box-sizing:border-box;
    }
    .trainer-parent-reset-card{
      width:min(520px, 100%);
      border-radius:18px;
      border:1px solid rgba(216,191,134,0.22);
      background:linear-gradient(180deg,#202936,#151d28);
      box-shadow:0 22px 80px rgba(0,0,0,0.46);
      padding:20px;
      box-sizing:border-box;
      color:#eef3fb;
    }
    .trainer-parent-reset-kicker{
      font-size:11px;
      line-height:1;
      letter-spacing:0.18em;
      text-transform:uppercase;
      color:#d8bf86;
      margin-bottom:10px;
    }
    .trainer-parent-reset-title{
      margin:0 0 10px;
      font-size:21px;
      line-height:1.25;
      font-weight:330;
      color:#f5f0e5;
    }
    .trainer-parent-reset-copy{
      margin:0 0 14px;
      font-size:13px;
      line-height:1.65;
      color:#aeb8c6;
    }
    .trainer-parent-reset-code{
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:58px;
      margin:14px 0;
      border-radius:14px;
      border:1px solid rgba(216,191,134,0.22);
      background:#0f1722;
      color:#f1d28b;
      font-size:28px;
      line-height:1.1;
      font-weight:360;
      letter-spacing:0.12em;
      user-select:all;
      box-sizing:border-box;
    }
    .trainer-parent-reset-actions{
      display:flex;
      justify-content:flex-end;
      gap:8px;
      margin-top:14px;
      flex-wrap:wrap;
    }
    .trainer-parent-reset-actions button{
      min-height:38px;
      padding:0 14px;
      border-radius:11px;
      border:1px solid rgba(255,255,255,0.08);
      background:linear-gradient(180deg,#313841,#2b323b);
      color:#eef3fb;
      font-size:13px;
      font-family:inherit;
      cursor:pointer;
    }
    .trainer-parent-reset-actions .is-gold{
      border-color:rgba(216,191,134,0.28);
      color:#f3dfab;
      background:linear-gradient(180deg,#3a372d,#2b2a25);
    }

    .question-head-actions{
      display:inline-flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
    }
    .trainer-message-inline-btn{
      display:inline-flex;
      align-items:center;
      gap:8px;
      min-height:34px;
      padding:0 12px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,0.08);
      background:linear-gradient(180deg,#313841,#2b323b);
      color:#eef3fb;
      font-size:12px;
      font-family:inherit;
      cursor:pointer;
      box-sizing:border-box;
      white-space:nowrap;
    }
    .trainer-message-badge{
      display:none;
      min-width:18px;
      height:18px;
      padding:0 6px;
      border-radius:999px;
      background:#d9edf8;
      color:#11161c;
      font-size:11px;
      align-items:center;
      justify-content:center;
      box-sizing:border-box;
    }
    .trainer-message-badge.is-on{
      display:inline-flex;
    }
    .trainer-message-wrap{
      display:flex;
      flex-direction:column;
      flex:1 1 auto;
      min-height:0;
      height:100%;
      width:100%;
    }
    .trainer-message-board{
      display:flex;
      flex-direction:column;
      flex:1 1 auto;
      min-height:0;
      height:100%;
      width:100%;
      border-radius:16px;
      background:linear-gradient(180deg,rgba(24,33,46,0.96),rgba(15,21,30,0.98));
      border:1px solid rgba(255,255,255,0.06);
      box-shadow:inset 0 0 0 1px rgba(255,255,255,0.02);
      overflow:hidden;
      box-sizing:border-box;
    }
    .trainer-message-top{
      flex:0 0 auto;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:14px 16px 12px;
      border-bottom:1px solid rgba(255,255,255,0.06);
      background:linear-gradient(180deg,rgba(19,27,38,0.98),rgba(16,23,33,0.98));
    }
    .trainer-message-title{
      font-size:13px;
      line-height:1;
      letter-spacing:0.14em;
      color:#8f9bad;
      text-transform:uppercase;
    }
    .trainer-message-close{
      height:34px;
      padding:0 14px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,0.08);
      background:linear-gradient(180deg,#313841,#2b323b);
      color:#eef3fb;
      font-size:13px;
      font-family:inherit;
      cursor:pointer;
      box-sizing:border-box;
    }
    .trainer-message-body{
      flex:1 1 auto;
      min-height:0;
      display:flex;
      flex-direction:column;
      width:100%;
      padding:14px 14px 16px;
      box-sizing:border-box;
    }
    .trainer-message-list{
      flex:1 1 auto;
      min-height:0;
      width:100%;
      overflow-y:auto;
      overflow-x:hidden;
      display:flex;
      flex-direction:column;
      gap:10px;
      padding-right:6px;
      margin-bottom:12px;
      box-sizing:border-box;
    }
    .trainer-message-list::-webkit-scrollbar{
      width:10px;
    }
    .trainer-message-list::-webkit-scrollbar-track{
      background:#0f1722;
      border-left:1px solid rgba(255,255,255,0.03);
    }
    .trainer-message-list::-webkit-scrollbar-thumb{
      background:linear-gradient(180deg,#2f3a49,#1d2530);
      border-radius:999px;
      border:2px solid #0f1722;
    }
    .trainer-message-empty{
      padding:16px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,0.05);
      background:#161c23;
      color:#97a2b2;
      font-size:14px;
      line-height:1.6;
    }
    .trainer-message-item{
      max-width:min(82%, 720px);
      padding:12px 13px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,0.05);
      background:#1b222b;
      box-sizing:border-box;
      align-self:flex-start;
    }
    .trainer-message-item.is-student{
      background:#202835;
      border-color:rgba(130,170,255,0.14);
      align-self:flex-end;
    }
    .trainer-message-sender{
      font-size:11px;
      line-height:1.2;
      color:#8f9bad;
      margin-bottom:6px;
    }
    .trainer-message-text{
      font-size:15px;
      line-height:1.6;
      color:#eef3fb;
      white-space:pre-wrap;
      word-break:break-word;
    }
    .trainer-message-time{
      margin-top:7px;
      font-size:11px;
      line-height:1.4;
      color:#90a0b3;
      text-align:right;
    }
    .trainer-message-form{
      flex:0 0 auto;
      display:flex;
      align-items:flex-end;
      gap:8px;
      width:100%;
      box-sizing:border-box;
    }
    .trainer-message-input{
      flex:1 1 auto;
      width:100%;
      min-width:0;
      min-height:120px;
      max-height:180px;
      padding:12px 13px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,0.08);
      background:#0e1319;
      color:#eef3fb;
      outline:none;
      font-size:15px;
      font-family:inherit;
      font-weight:300;
      line-height:1.6;
      resize:none;
      overflow:auto;
      box-sizing:border-box;
    }
    .trainer-message-input::-webkit-scrollbar{
      width:10px;
    }
    .trainer-message-input::-webkit-scrollbar-track{
      background:#0a1016;
    }
    .trainer-message-input::-webkit-scrollbar-thumb{
      background:linear-gradient(180deg,#2f3a49,#1d2530);
      border-radius:999px;
      border:2px solid #0a1016;
    }
    .trainer-message-send{
      flex:0 0 96px;
      height:42px;
      padding:0 12px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,0.08);
      background:linear-gradient(180deg,#313841,#2b323b);
      color:#eef3fb;
      cursor:pointer;
      font-size:13px;
      font-family:inherit;
      font-weight:300;
      box-sizing:border-box;
    }
    .trainer-message-send:disabled{
      opacity:.6;
      cursor:default;
    }
    .msg-delete-btn{
      margin-top:6px;
      font-size:11px;
      padding:4px 8px;
      border-radius:8px;
      border:1px solid rgba(255,255,255,.1);
      background:rgba(255,255,255,.03);
      color:#cfd7e6;
      cursor:pointer;
    }
    .msg-delete-btn:hover{
      background:rgba(255,255,255,.08);
    }
    .question-shell{
      display:flex;
      flex-direction:column;
      flex:1 1 auto;
      gap:14px;
      min-height:0;
      padding:14px;
      border:1px solid rgba(255,255,255,.055);
      border-radius:15px;
      background:linear-gradient(160deg,#202b38 0%,#18232e 100%);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
      overflow:hidden;
      box-sizing:border-box;
    }
    .question-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
      padding:14px 16px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.06);
      background:linear-gradient(180deg,rgba(19,27,38,.98),rgba(16,23,33,.98));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }
    .question-box-name{
      font-size:18px;
      line-height:1.35;
      color:#eef3fb;
      font-weight:320;
    }
    .question-kind{
      margin-top:6px;
      font-size:12px;
      color:#93a1b5;
      letter-spacing:0.08em;
    }
    .question-progress{
      margin-top:6px;
      font-size:12px;
      color:#aeb8c6;
    }
    .progress-current{
      color:#d8bf86;
      text-shadow:0 0 14px rgba(216,191,134,0.12);
      font-weight:330;
    }
    .progress-muted{
      color:#aeb8c6;
    }
    .prompt-box{
      min-height:140px;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:22px 18px;
      border:1px solid rgba(255,255,255,.06);
      border-radius:18px;
      background:linear-gradient(180deg,#232b35,#1b222b);
      color:#fff;
      font-size:34px;
      line-height:1.5;
      font-family:inherit;
      font-weight:300;
      font-synthesis:none;
      text-align:center;
      text-shadow:none;
      white-space:pre-wrap;
      word-break:break-word;
    }
    .choice-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:12px;
    }
    .choice-grid.single-last .choice-btn:last-child{
      grid-column:1 / -1;
    }
    .choice-btn{
      min-height:44px;
      max-height:48px;
      padding:10px 14px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,.09);
      background:linear-gradient(180deg,#344150,#283542);
      color:#fff;
      font-size:20px;
      line-height:1.45;
      font-family:inherit;
      font-weight:300;
      font-synthesis:none;
      text-align:left;
      text-shadow:none;
      cursor:pointer;
      box-sizing:border-box;
      transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    .choice-btn:hover:not(:disabled){
      border-color:rgba(216,191,134,.22);
      background:linear-gradient(180deg,#38404a,#2d3540);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 0 0 1px rgba(216,191,134,.035);
      transform:translateY(-1px);
    }
    .choice-btn.correct{
      background:linear-gradient(180deg,#31573a,#274730);
      border-color:rgba(137,205,156,.32);
    }
    .choice-btn.wrong{
      background:linear-gradient(180deg,#6a3636,#552c2c);
      border-color:rgba(255,170,170,.28);
    }
    .choice-btn.correct-outline{
      box-shadow:0 0 0 2px rgba(145,219,165,.48) inset;
    }
    .feedback-box{
      min-height:44px;
      display:flex;
      align-items:center;
      padding:0 14px;
      border:1px solid rgba(255,255,255,.06);
      border-radius:10px;
      background:rgba(255,255,255,.022);
      color:#dfe7f2;
      font-size:15px;
      line-height:1.3;
      box-sizing:border-box;
    }
    .typing-wrap{
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    .typing-input-row{
      display:flex;
      gap:10px;
      align-items:center;
    }
    .typing-input{
      flex:1 1 auto;
      min-width:0;
      height:52px;
      padding:0 16px;
      border:1px solid rgba(255,255,255,.075);
      border-radius:10px;
      background:linear-gradient(180deg,#303b48,#273340);
      color:#eef3f8;
      font-size:16px;
      font-family:inherit;
      font-weight:300;
      outline:none;
      box-sizing:border-box;
    }
    .submit-btn,
    .tts-btn{
      min-height:44px;
      max-height:48px;
      padding:0 14px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,.09);
      background:linear-gradient(180deg,#344150,#283542);
      color:#eef3f8;
      font-size:13px;
      font-family:inherit;
      font-weight:300;
      cursor:pointer;
      box-sizing:border-box;
    }
    .submit-btn{
      min-width:92px;
      border-color:rgba(232,191,88,.34);
      background:linear-gradient(180deg,#554723,#3d351f);
      color:#f4d57b;
      font-size:15px;
    }
    .trainer-empty,
    .finish-box{
      margin:auto 0;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      min-height:260px;
      padding:24px;
      border-radius:18px;
      border:1px solid rgba(255,255,255,0.06);
      background:linear-gradient(180deg,#232b35,#1b222b);
      color:#eef3fb;
      text-align:center;
      box-sizing:border-box;
    }
.finish-check{
  font-size:42px;
  line-height:1;
  margin-bottom:14px;
  color:#71d7ca;
}

.finish-next{
  margin-top:8px;
  font-size:13px;
  line-height:1.4;
  color:#97a2b2;
}
    .finish-title{
      font-size:26px;
      line-height:1.2;
      font-weight:320;
    }
    .finish-sub{
      margin-top:10px;
      font-size:15px;
      color:#aeb8c6;
    }

@media(max-width:980px){
  html,body{
    overflow:auto;
  }

  body.student-trainer-fm704 .frame-grid{
    grid-template-columns:1fr;
  }

  .student-panel{
    display:flex;
    flex-direction:column;
    height:auto;
    max-height:none;
    min-height:0;
  }

  .box-list,
  .wrong-list{
    max-height:none;
    overflow:visible;
  }

  .trainer-panel{
    height:auto;
    max-height:none;
    min-height:720px;
    overflow:visible;
    padding:0;
  }

  .trainer-board{
    min-height:640px;
    overflow:visible;
  }

  .trainer-stage-header{
    align-items:flex-start;
  }

  .trainer-empty-steps{
    grid-template-columns:1fr;
  }
}
