:root{
  --testing-ink:#062f3a;
  --testing-ink-soft:#45606a;
  --testing-gold:#c79221;
  --testing-gold-soft:#fff2c9;
  --testing-wine:#9d1524;
  --testing-green:#235c44;
  --testing-paper:#fffdf8;
  --testing-line:#eadfca;
  --testing-shadow:0 22px 60px rgba(14,30,37,.12);
}

#staffTestingPlatform,
#staffTestingPlatform *{
  box-sizing:border-box;
}

#staffTestingPlatform{
  width:min(1500px,calc(100% - 32px));
  margin:34px auto;
  color:var(--testing-ink);
  font-family:Inter,Arial,sans-serif;
  scroll-margin-top:92px;
}

.testingShell{
  background:linear-gradient(180deg,#fffdf8 0%,#fffaf0 100%);
  border:1px solid var(--testing-line);
  border-radius:18px;
  box-shadow:var(--testing-shadow);
  overflow:hidden;
}

.testingHero{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);
  gap:22px;
  align-items:stretch;
  padding:28px;
  background:
    linear-gradient(135deg,rgba(5,60,70,.96),rgba(7,80,75,.92)),
    radial-gradient(circle at 20% 30%,rgba(255,221,142,.3),transparent 36%);
  color:#fffef4;
}

.testingHero h2,
.testingPanel h3,
.testingSectionTitle h3,
.testingQuestion h3,
.testingResultCard h3{
  font-family:Georgia,"Times New Roman",serif;
  letter-spacing:0;
}

.testingHero h2{
  margin:0 0 10px;
  font-size:clamp(2rem,4vw,4.3rem);
  line-height:.98;
  max-width:780px;
}

.testingHero p{
  margin:0;
  max-width:760px;
  color:rgba(255,255,255,.82);
  font-size:1.02rem;
  line-height:1.65;
}

.testingHeroPills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.testingHeroPills span,
.testingTinyPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.24);
  color:#fffdf2;
  font-weight:800;
  font-size:.78rem;
}

.testingHeroStats{
  display:grid;
  gap:12px;
}

.testingHeroStat{
  min-height:88px;
  padding:16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(8px);
}

.testingHeroStat strong{
  display:block;
  font-size:1.8rem;
  color:#ffe8a3;
  line-height:1;
}

.testingHeroStat span{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.78);
  font-size:.86rem;
  font-weight:800;
}

.testingBody{
  display:grid;
  grid-template-columns:minmax(290px,360px) minmax(0,1fr);
  gap:24px;
  padding:26px;
}

.testingPanel{
  background:#fff;
  border:1px solid var(--testing-line);
  border-radius:16px;
  padding:20px;
  min-width:0;
}

.testingPanel h3{
  margin:0 0 8px;
  font-size:1.45rem;
}

.testingPanel p,
.testingMuted{
  color:var(--testing-ink-soft);
  line-height:1.55;
}

.testingPanel p{
  margin:0 0 16px;
}

.testingForm{
  display:grid;
  gap:12px;
}

.testingField{
  display:grid;
  gap:6px;
}

.testingField label{
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  color:#79520c;
}

.testingField input,
.testingField select,
.testingManagerForm input{
  width:100%;
  min-height:46px;
  border-radius:12px;
  border:1px solid #ddd2bf;
  background:#fff;
  color:#0b2530;
  padding:11px 12px;
  font:inherit;
  outline:none;
}

.testingField input:focus,
.testingField select:focus,
.testingManagerForm input:focus{
  border-color:var(--testing-gold);
  box-shadow:0 0 0 3px rgba(199,146,33,.18);
}

.testingButton,
.testingGhostButton,
.testingTextButton{
  min-height:44px;
  border-radius:12px;
  border:1px solid transparent;
  padding:10px 14px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}

.testingButton{
  background:linear-gradient(135deg,#f2c458,#c78d18);
  color:#092c35;
  box-shadow:0 12px 24px rgba(199,146,33,.22);
}

.testingGhostButton{
  background:#fff;
  color:var(--testing-ink);
  border-color:#d8c8aa;
}

.testingTextButton{
  background:transparent;
  color:#8a5c09;
  border-color:transparent;
  min-height:36px;
}

.testingButton:hover,
.testingGhostButton:hover,
.testingTextButton:hover{
  transform:translateY(-1px);
}

.testingButton:disabled,
.testingGhostButton:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

.testingIdentityCard{
  display:none;
  gap:10px;
  padding:14px;
  border-radius:14px;
  background:#f8f2e5;
  border:1px solid #ead7b4;
}

.testingIdentityCard.isVisible{
  display:grid;
}

.testingIdentityName{
  font-size:1.08rem;
  font-weight:950;
}

.testingIdentityMeta{
  color:var(--testing-ink-soft);
  font-size:.9rem;
  overflow-wrap:anywhere;
}

.testingMain{
  min-width:0;
  display:grid;
  gap:22px;
}

.testingSectionTitle{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.testingSectionTitle h3{
  margin:0;
  font-size:clamp(1.55rem,3vw,2.35rem);
}

.testingSectionTitle p{
  margin:4px 0 0;
  color:var(--testing-ink-soft);
}

.testingTestGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.testingDailyPlanPanel{
  grid-column:1/-1;
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #dfc47d;
  border-radius:16px;
  background:linear-gradient(135deg,#fffaf0,#fffdf8);
  box-shadow:0 12px 30px rgba(14,30,37,.08);
}

.testingDailyPlanHeader{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,320px);
  gap:16px;
  align-items:end;
}

.testingDailyPlanHeader h4{
  margin:8px 0 6px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.35rem,2.5vw,2rem);
  line-height:1.1;
}

.testingDailyPlanHeader p{
  margin:0;
  color:var(--testing-ink-soft);
}

.testingDailySelectorLabel{
  display:grid;
  gap:7px;
  color:#79520c;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.testingDailySelectorLabel select{
  width:100%;
  min-height:46px;
  border-radius:12px;
  border:1px solid #d8c7a8;
  background:#fff;
  color:#0b2530;
  padding:10px 12px;
  font:inherit;
  text-transform:none;
  outline:none;
}

.testingDailyLessonGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.testingDailyLessonGrid div,
.testingActiveLesson{
  border:1px solid #eadcc2;
  border-radius:14px;
  background:#fff;
  padding:13px;
}

.testingDailyLessonGrid strong,
.testingActiveLesson strong{
  display:block;
  margin-bottom:6px;
  color:var(--testing-ink);
  line-height:1.25;
}

.testingDailyLessonGrid span,
.testingActiveLesson p,
.testingActiveLesson div{
  color:var(--testing-ink-soft);
  line-height:1.45;
  font-size:.9rem;
}

.testingActiveLesson{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(220px,.8fr);
  gap:12px;
  margin-top:14px;
  background:#fffdf8;
}

.testingActiveLesson .testingTinyPill{
  margin-bottom:8px;
  background:#fff6df;
  color:#7a5108;
  border-color:#e7ca75;
}

.testingActiveLesson p{
  margin:4px 0 0;
}

.testingTestCard{
  min-width:0;
  min-height:190px;
  text-align:left;
  border:1px solid var(--testing-line);
  background:#fff;
  border-radius:16px;
  padding:18px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 10px 28px rgba(14,30,37,.07);
  color:var(--testing-ink);
}

.testingTestCard:hover,
.testingTestCard:focus{
  outline:none;
  border-color:var(--testing-gold);
  transform:translateY(-2px);
}

.testingTestCard:disabled{
  cursor:not-allowed;
  opacity:.62;
  transform:none;
  background:#f8f1e4;
}

.testingSpecialTestCard{
  border-color:#d5ab3c;
  background:linear-gradient(180deg,#fffaf0,#fff);
}

.testingTestCard b{
  display:block;
  font-size:1.15rem;
  line-height:1.2;
  margin-bottom:8px;
}

.testingTestCard span{
  color:var(--testing-ink-soft);
  line-height:1.45;
  font-size:.94rem;
}

.testingCardMeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.testingCardMeta em{
  font-style:normal;
  font-size:.75rem;
  font-weight:900;
  color:#7a5108;
  background:var(--testing-gold-soft);
  border:1px solid #edcf78;
  padding:6px 8px;
  border-radius:999px;
}

.testingEngine,
.testingResults,
.testingManager{
  border:1px solid var(--testing-line);
  background:#fff;
  border-radius:16px;
  padding:20px;
  min-width:0;
}

.testingEngine[hidden],
.testingResults[hidden],
.testingManagerDashboard[hidden]{
  display:none!important;
}

.testingEngineTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.testingProgressWrap{
  display:grid;
  gap:8px;
}

.testingProgressMeta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--testing-ink-soft);
  font-size:.88rem;
  font-weight:900;
}

.testingProgressTrack{
  height:10px;
  background:#f0e6d4;
  border-radius:999px;
  overflow:hidden;
}

.testingProgressFill{
  width:0;
  height:100%;
  background:linear-gradient(90deg,var(--testing-gold),var(--testing-green));
  border-radius:inherit;
  transition:width .2s ease;
}

.testingQuestion{
  margin-top:18px;
}

.testingQuestion h3{
  margin:0 0 14px;
  font-size:1.55rem;
  line-height:1.22;
}

.testingAnswerList{
  display:grid;
  gap:10px;
}

.testingAnswerOption{
  min-height:52px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  text-align:left;
  border:1px solid #dfd0b8;
  border-radius:14px;
  background:#fffdf9;
  padding:13px;
  color:#122d35;
  font:inherit;
  cursor:pointer;
}

.testingAnswerOption:before{
  content:"";
  flex:0 0 20px;
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid #c7b891;
  margin-top:1px;
}

.testingAnswerOption.isSelected{
  border-color:var(--testing-gold);
  background:#fff6db;
}

.testingAnswerOption.isSelected:before{
  background:radial-gradient(circle,var(--testing-gold) 0 45%,transparent 48%);
}

.testingFillBlankWrap{
  display:grid;
  gap:8px;
}

.testingFillBlankWrap label{
  color:#79520c;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.testingFillBlankInput{
  width:100%;
  min-height:54px;
  border-radius:14px;
  border:1px solid #dfd0b8;
  background:#fffdf9;
  padding:13px;
  color:#122d35;
  font:inherit;
  outline:none;
}

.testingFillBlankInput:focus{
  border-color:var(--testing-gold);
  box-shadow:0 0 0 3px rgba(199,146,33,.18);
}

.testingEngineActions,
.testingResultActions,
.testingManagerActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.testingResultGrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
}

.testingResultCard{
  border:1px solid #e4d7c1;
  border-radius:14px;
  padding:16px;
  background:#fffdf9;
}

.testingResultCard h3{
  margin:0 0 8px;
  font-size:1.35rem;
}

.testingScore{
  font-size:2.5rem;
  font-weight:950;
  color:var(--testing-ink);
  line-height:1;
}

.testingPass{
  color:#1f6a43;
  font-weight:950;
}

.testingFail{
  color:#9d1524;
  font-weight:950;
}

.testingReviewList{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.testingReviewItem{
  border:1px solid #eadfca;
  border-radius:12px;
  padding:12px;
  background:#fff;
}

.testingReviewItem strong{
  display:block;
  margin-bottom:5px;
}

.testingManagerHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.testingManagerForm{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
}

.testingManagerDashboard{
  display:grid;
  gap:18px;
  margin-top:18px;
}

.testingMetricGrid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}

.testingMetric{
  border:1px solid #e1d2b6;
  border-radius:14px;
  background:#fffdf8;
  padding:14px;
  min-height:86px;
}

.testingMetric strong{
  display:block;
  font-size:1.6rem;
  line-height:1;
}

.testingMetric span{
  display:block;
  margin-top:8px;
  color:var(--testing-ink-soft);
  font-size:.82rem;
  font-weight:900;
}

.testingTableWrap{
  overflow:auto;
  border:1px solid #e3d7c0;
  border-radius:14px;
}

.testingTable{
  width:100%;
  min-width:1120px;
  border-collapse:collapse;
  background:#fff;
}

.testingTable th,
.testingTable td{
  text-align:left;
  padding:12px;
  border-bottom:1px solid #efe4d2;
  vertical-align:top;
}

.testingTable th{
  background:#fff6df;
  color:#704b09;
  font-size:.78rem;
  text-transform:uppercase;
}

.roleAllocationSummary{
  display:block;
  max-width:260px;
  color:#4d5b5e;
  line-height:1.4;
  font-size:.86rem;
}

.testingRosterActions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:220px;
}

.testingMiniButton{
  border:1px solid #d8c7a8;
  border-radius:999px;
  background:#fffaf0;
  color:#17353b;
  padding:7px 10px;
  font-size:.75rem;
  font-weight:900;
  cursor:pointer;
}

.testingMiniButton:hover:not(:disabled){
  border-color:var(--testing-gold);
  box-shadow:0 4px 12px rgba(25,38,44,.12);
}

.testingMiniButton:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.testingMiniButton.danger{
  border-color:#d9aaa5;
  color:#8a211b;
  background:#fff4f2;
}

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

.testingWeaknessCard{
  border:1px solid #e5d6bb;
  border-radius:14px;
  padding:14px;
  background:#fffdf8;
}

.testingWeaknessCard strong{
  display:block;
  margin-bottom:6px;
}

.testingNotice{
  padding:12px 14px;
  border-radius:12px;
  background:#f5efe4;
  border:1px solid #e3d4b9;
  color:#5c4930;
  line-height:1.45;
  font-size:.9rem;
}

.testingHidden{
  display:none!important;
}

@media (max-width:1100px){
  #staffTestingPlatform{
    width:min(100% - 24px,1040px);
  }
  .testingHero,
  .testingBody{
    grid-template-columns:1fr;
  }
  .testingHeroStats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .testingTestGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .testingDailyLessonGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .testingMetricGrid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:720px){
  #staffTestingPlatform{
    width:100%;
    margin:24px auto;
    padding:0 10px;
  }
  .testingShell{
    border-radius:14px;
  }
  .testingHero,
  .testingBody{
    padding:18px;
  }
  .testingHeroStats,
  .testingTestGrid,
  .testingDailyPlanHeader,
  .testingDailyLessonGrid,
  .testingActiveLesson,
  .testingResultGrid,
  .testingMetricGrid,
  .testingWeaknessGrid{
    grid-template-columns:1fr;
  }
  .testingHero h2{
    font-size:2.25rem;
  }
  .testingSectionTitle,
  .testingEngineTop,
  .testingManagerHeader{
    align-items:flex-start;
    flex-direction:column;
  }
  .testingManagerForm{
    grid-template-columns:1fr;
  }
  .testingButton,
  .testingGhostButton,
  .testingTextButton{
    width:100%;
  }
  .testingEngineActions,
  .testingResultActions,
  .testingManagerActions{
    display:grid;
  }
}

@media (orientation:landscape) and (max-height:520px){
  #staffTestingPlatform{
    margin-top:18px;
  }
  .testingHero{
    grid-template-columns:1fr 1fr;
    padding:16px;
  }
  .testingHero h2{
    font-size:2rem;
  }
  .testingBody{
    padding:16px;
  }
  .testingTestGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .testingDailyPlanHeader,
  .testingDailyLessonGrid,
  .testingActiveLesson{
    grid-template-columns:1fr;
  }
}
