/* Government Typing Test — love theme */
:root{--gtt-pink:#d93678;--gtt-rose:#f59ab9;--gtt-dark:#351b2b;--gtt-soft:#fff6fa;--gtt-border:#f3bfd1}
.gtt-shell,.gtt-assistant{max-width:1100px;margin:30px auto;padding:20px;color:var(--gtt-dark);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 10% 10%,#fff 0,#fff5f9 38%,#ffe3ee 100%);border-radius:28px}
.gtt-card,.gtt-test-card{background:rgba(255,255,255,.95);border:1px solid var(--gtt-border);border-radius:22px;box-shadow:0 16px 45px rgba(160,55,100,.12);padding:22px;margin-bottom:18px}
.gtt-hearts{text-align:center;color:#e94d88;font-size:18px;animation:gttfloat 2.4s ease-in-out infinite}
@keyframes gttfloat{50%{transform:translateY(-5px)}}
.gtt-kicker{color:var(--gtt-pink);font-size:22px;font-weight:800}.gtt-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.gtt-head h2{margin:5px 0}.gtt-head p{margin:0;color:#76566a}.gtt-status{border:1px solid var(--gtt-border);border-radius:999px;padding:9px 16px;color:var(--gtt-pink);font-weight:700}
.gtt-config{display:grid;gap:16px}.gtt-config label{font-weight:700}.gtt-config select{display:block;margin-top:7px;width:100%;padding:12px;border:1px solid var(--gtt-border);border-radius:12px;background:#fff}
.gtt-rules,.gtt-instructions{padding:12px 14px;border-radius:14px;background:#fff7fa;border:1px solid #f5d3df;line-height:1.6}
.gtt-backspace-choice{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.gtt-mode{border:1px solid #e4b1c5;background:#fff;padding:9px 14px;border-radius:999px;cursor:pointer}.gtt-mode.active{background:#ffe0eb;border-color:var(--gtt-pink);color:var(--gtt-pink);font-weight:800}.gtt-backspace-choice span{font-size:13px;color:#775e6d}
.gtt-primary,.gtt-submit{border:0;border-radius:12px;background:linear-gradient(135deg,#d93678,#ef6d9c);color:#fff;padding:12px 18px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(217,54,120,.22)}
.gtt-test-card{padding:0;overflow:hidden;background:#241825}.gtt-fixedbar{height:58px;display:flex;align-items:center;gap:18px;padding:0 18px;background:#2d1b29;color:#fff;position:sticky;top:0;z-index:4}.gtt-fixedbar strong{margin-right:auto;color:#ffd5e4}.gtt-fixedbar b{color:#ff9fc1}.gtt-exam-grid{height:min(690px,calc(100vh - 150px));min-height:480px;display:grid;grid-template-rows:1fr 1fr;background:#18121a}.gtt-passage-panel,.gtt-typing-panel{min-height:0;display:flex;flex-direction:column}.gtt-passage-panel{border-bottom:1px solid #4d3344}.gtt-panel-label{flex:0 0 auto;padding:9px 14px;color:#ffb2cb;font-size:11px;letter-spacing:.08em;font-weight:800;background:#211820}.gtt-panel-label span{float:right;color:#a9909e;font-weight:500}.gtt-passage{overflow:auto;padding:20px 24px;color:#f9eaf1;font-size:20px;line-height:1.75;white-space:pre-wrap}.gtt-typing-panel textarea{flex:1;width:100%;box-sizing:border-box;resize:none;border:0;outline:0;background:#100c11;color:#fff3f7;padding:20px 24px;font-size:20px;line-height:1.75;font-family:inherit}.gtt-lock-note{padding:7px 14px;background:#211820;color:#d6bdca;font-size:12px}.gtt-result h2{color:var(--gtt-pink)}.gtt-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.gtt-stat{padding:16px;border:1px solid var(--gtt-border);border-radius:14px;background:#fff8fb}.gtt-stat strong{display:block;font-size:24px;color:var(--gtt-pink)}
.gtt-ai-review{margin-top:18px;padding:18px;border-radius:16px;background:#fff3f7;border:1px solid var(--gtt-border)}#gtt-review-output{white-space:pre-wrap;line-height:1.6;margin-top:12px}
.gtt-chat{max-width:800px;margin:auto}.gtt-chat-log{height:420px;overflow:auto;background:#fff7fa;border:1px solid var(--gtt-border);border-radius:16px;padding:16px}.gtt-msg{max-width:80%;padding:11px 14px;border-radius:16px;margin:8px 0;line-height:1.5}.gtt-msg.assistant{background:#ffe4ee}.gtt-msg.user{background:#d93678;color:#fff;margin-left:auto}.gtt-chat form{display:flex;gap:10px;margin-top:12px}.gtt-chat textarea{flex:1;min-height:80px;border:1px solid var(--gtt-border);border-radius:14px;padding:12px;resize:vertical}
@media(max-width:700px){.gtt-head{display:block}.gtt-stats{grid-template-columns:repeat(2,1fr)}.gtt-exam-grid{height:calc(100vh - 180px)}.gtt-passage{font-size:17px}.gtt-typing-panel textarea{font-size:17px}.gtt-fixedbar{gap:8px;font-size:12px}.gtt-fixedbar strong{max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}


/* Vaishali Assistant love theme */
.gtt-vaishali-assistant{max-width:900px;margin:30px auto;padding:12px;font-family:inherit}
.gtt-vaishali-card{background:linear-gradient(145deg,#fff7fb,#ffe7f0);border:1px solid #f3b5cc;border-radius:28px;padding:24px;box-shadow:0 18px 45px rgba(190,70,120,.14)}
.gtt-vaishali-head{display:flex;gap:16px;align-items:center}
.gtt-vaishali-heart{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e83e79;color:#fff;font-size:27px;box-shadow:0 8px 20px rgba(232,62,121,.25)}
.gtt-vaishali-head h2{margin:0;color:#b52e62}
.gtt-vaishali-head p{margin:5px 0 0;color:#765568}
.gtt-vaishali-messages{height:360px;overflow:auto;margin:20px 0;padding:14px;background:rgba(255,255,255,.72);border-radius:20px}
.gtt-vaishali-message{display:flex;flex-direction:column;gap:4px;max-width:82%;padding:12px 15px;margin:10px 0;border-radius:18px;line-height:1.5}
.gtt-vaishali-bot{background:#fff;border:1px solid #f1c4d4}
.gtt-vaishali-user{margin-left:auto;background:#e83e79;color:#fff}
.gtt-vaishali-message strong{font-size:12px;opacity:.8}
.gtt-vaishali-form textarea{width:100%;box-sizing:border-box;border:1px solid #e9b3c8;border-radius:16px;padding:13px;resize:vertical;background:#fff}
.gtt-vaishali-form button{margin-top:10px;border:0;border-radius:999px;padding:12px 22px;background:#d93670;color:#fff;font-weight:700;cursor:pointer}
.gtt-vaishali-status{min-height:20px;color:#8b5a6e;font-size:13px}

/* Candidate rich instructions and mandatory pre-test review */
.gtt-instructions{line-height:1.6}
.gtt-instructions ul,.gtt-instructions ol,.gtt-pretest-instructions ul,.gtt-pretest-instructions ol{padding-left:1.5rem}
.gtt-instructions a,.gtt-pretest-instructions a{color:#c52f68;text-decoration:underline}
.gtt-pretest-modal[hidden]{display:none!important}
.gtt-pretest-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:24px}
.gtt-pretest-backdrop{position:absolute;inset:0;background:rgba(55,20,38,.68);backdrop-filter:blur(4px)}
.gtt-pretest-dialog{position:relative;z-index:2;width:min(720px,100%);max-height:min(82vh,760px);overflow:auto;background:linear-gradient(145deg,#fff9fc,#ffe8f1);border:1px solid #f2b4ca;border-radius:26px;padding:28px;box-shadow:0 25px 80px rgba(70,20,45,.28)}
.gtt-pretest-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#9c4b6b;font-size:30px;line-height:1;cursor:pointer}
.gtt-pretest-dialog h2{margin:5px 0 8px;color:#a9285b}
.gtt-pretest-exam{display:inline-block;margin:5px 0 18px;padding:8px 12px;border-radius:999px;background:#fff;border:1px solid #efbfd1;color:#7e4860;font-size:13px}
.gtt-pretest-instructions{background:#fff;border:1px solid #efbfd1;border-radius:18px;padding:18px 20px;color:#553746;line-height:1.65;min-height:100px}
.gtt-pretest-check{margin:18px 0;color:#603d4d}
.gtt-pretest-check label{display:flex;gap:9px;align-items:flex-start}
body.gtt-pretest-open{overflow:hidden}

.gtt-result-note{margin:12px 0 0;padding:12px 14px;border:1px solid var(--gtt-border);border-radius:12px;background:#fff4f8;color:#6b3a50;font-size:13px}
.gtt-result[aria-live]{scroll-margin-top:30px}
#gtt-view-last-result{margin:12px 0}

#gtt-hard-result{position:fixed!important;inset:0!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;visibility:visible!important;opacity:1!important}
.gtt-hard-result-backdrop{position:absolute;inset:0;background:rgba(55,20,38,.72);backdrop-filter:blur(5px)}
.gtt-hard-result-card{position:relative;z-index:2;width:min(720px,96vw);max-height:90vh;overflow:auto;background:#fff;border:2px solid #f3a1bd;border-radius:24px;box-shadow:0 25px 80px rgba(80,20,50,.28);padding:28px;color:#3a2030}
.gtt-hard-result-card h2{margin:8px 0 6px;color:#c52f68}
.gtt-hard-result-card #gtt-hard-result-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#8d4665}
.gtt-hard-result-note{margin:0 0 18px;color:#6b3a50}
.gtt-hard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gtt-hard-stats>div{padding:14px;border:1px solid #f2c3d3;border-radius:14px;background:#fff7fa;text-align:center}
.gtt-hard-stats span{display:block;font-size:12px;color:#7b5365}
.gtt-hard-stats strong{display:block;font-size:22px;color:#c52f68;margin-top:4px}
.gtt-hard-actions{margin-top:20px;text-align:center}
@media(max-width:650px){.gtt-hard-stats{grid-template-columns:repeat(2,1fr)}}

.gtt-test-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:0 0 16px}
.gtt-test-filters label{display:flex;flex-direction:column;gap:6px;font-weight:700}
.gtt-test-filters input,.gtt-test-filters select,.gtt-config select{width:100%;max-width:100%;padding:10px;border:1px solid #d8c9d2;border-radius:10px}
.gtt-account input{max-width:100%;box-sizing:border-box}
.gtt-dashboard .gtt-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}
.gtt-dashboard .gtt-stat{background:#fff;border:1px solid #eadce4;border-radius:14px;padding:16px}
.gtt-dashboard .gtt-stat span{display:block;font-size:.9em;color:#665763}
.gtt-dashboard .gtt-stat strong{display:block;font-size:1.6em;margin-top:6px}


/* Student account/dashboard form polish */
.gtt-account {
  width: 100%;
  box-sizing: border-box;
}
.gtt-account form {
  margin: 0 0 18px;
}
.gtt-account label {
  display: block;
  line-height: 1.5;
}
.gtt-account input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #d8c9d2;
  border-radius: 9px;
  background: #fff;
  color: #241a20;
  font: inherit;
}
.gtt-account input:focus {
  outline: 2px solid #f3a1bd;
  outline-offset: 1px;
  border-color: #c52f68;
}
.gtt-account p {
  margin: 0 0 16px;
}
.gtt-account h2 {
  margin-top: 0;
}
.gtt-account h3 {
  margin-top: 20px;
}
.gtt-account hr {
  margin: 22px 0 16px;
  border: 0;
  border-top: 1px solid #eadce4;
}
.gtt-account .gtt-primary {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
}


/* v1.9: concise dashboard and password recovery */
.gtt-forgot-password {
  margin: -4px 0 16px;
  padding: 0;
}
.gtt-forgot-password p {
  margin-bottom: 10px;
}
.gtt-forgot-password .gtt-secondary {
  display: inline-block;
  border: 1px solid #d94f91;
  border-radius: 9px;
  padding: 9px 13px;
  background: #fff;
  color: #b52e6c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.gtt-dashboard-welcome p { margin-bottom: 0; }
.gtt-dashboard-history > h3 { margin-top: 0; }
.gtt-dashboard .gtt-stats { margin: 12px 0; }
.gtt-dashboard .gtt-stat { padding: 12px; }
.gtt-dashboard .gtt-stat strong { font-size: 1.4em; }
.gtt-full-history { margin-top: 14px; }
.gtt-full-history summary { cursor: pointer; color: #b52e6c; font-weight: 600; }
.gtt-dashboard .gtt-progress-chart { min-height: 100px !important; }
