.typing-test-page {
  --gju-typing-ink: #172033;
  --gju-typing-muted: #647084;
  --gju-typing-line: #d9e2ef;
  --gju-typing-panel: #ffffff;
  --gju-typing-soft: #eef5ff;
  --gju-typing-accent: #2563eb;
  --gju-typing-good: #0f766e;
  --gju-typing-bad: #b42318;
  --gju-typing-warn: #a16207;
  display: grid;
  gap: 1rem;
  width: min(1200px, 100%);
}

.typing-test-page * {
  min-width: 0;
}

body:has(.gju-typing-attempt-page) {
  margin: 0;
  background: #eef6ff;
  color: var(--gju-typing-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.typing-test-page .gju-typing-hero,
.typing-test-page .gju-typing-panel,
.typing-test-page .gju-typing-results,
.typing-test-page .gju-typing-guide {
  background: var(--gju-typing-panel);
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.typing-test-page .gju-typing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.typing-test-page .gju-typing-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin-bottom: .65rem;
  padding: .34rem .65rem;
  border-radius: 999px;
  background: #e7efff;
  color: var(--gju-typing-accent);
  font-weight: 800;
  font-size: .8rem;
}

.typing-test-page h1,
.typing-test-page h2,
.typing-test-page h3 {
  color: var(--gju-typing-ink);
  line-height: 1.18;
  letter-spacing: 0;
}

.typing-test-page h1 {
  max-width: 16ch;
  margin: 0 0 .65rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.typing-test-page p {
  color: var(--gju-typing-muted);
}

.typing-test-page .gju-typing-hero-copy p {
  max-width: 66ch;
  font-size: 1rem;
}

.typing-test-page .gju-typing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-content: start;
}

.typing-test-page .gju-typing-summary article,
.typing-test-page .gju-typing-stat {
  padding: .85rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #f8fbff;
}

.typing-test-page .gju-typing-summary span,
.typing-test-page .gju-typing-stat span,
.typing-test-page .gju-typing-result-metric span {
  display: block;
  color: var(--gju-typing-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-summary strong,
.typing-test-page .gju-typing-stat strong,
.typing-test-page .gju-typing-result-metric strong {
  display: block;
  margin-top: .2rem;
  color: var(--gju-typing-ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.typing-test-page .gju-typing-layout {
  display: grid;
  grid-template-columns: minmax(250px, .42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.typing-test-page .gju-typing-panel {
  padding: 1rem;
}

.typing-test-page .gju-typing-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.typing-test-page .gju-typing-panel-heading span {
  color: var(--gju-typing-accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-controls {
  display: grid;
  gap: .85rem;
}

.typing-test-page .gju-typing-field {
  display: grid;
  gap: .35rem;
  color: var(--gju-typing-ink);
  font-weight: 800;
}

.typing-test-page .gju-typing-field span {
  color: var(--gju-typing-muted);
  font-size: .76rem;
  font-weight: 700;
}

.typing-test-page .gju-typing-field input,
.typing-test-page .gju-typing-field select,
.typing-test-page .gju-typing-input {
  width: 100%;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #fff;
  color: var(--gju-typing-ink);
  font: inherit;
}

.typing-test-page .gju-typing-field input,
.typing-test-page .gju-typing-field select {
  min-height: 46px;
  padding: .64rem .72rem;
}

.typing-test-page .gju-typing-field input:focus,
.typing-test-page .gju-typing-field select:focus,
.typing-test-page .gju-typing-input:focus {
  outline: 0;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.typing-test-page .gju-typing-workspace {
  display: grid;
  gap: 1rem;
}

.typing-test-page .gju-typing-livebar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
}

.typing-test-page .gju-typing-livebar article {
  min-height: 76px;
  padding: .78rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #f8fbff;
}

.typing-test-page .gju-typing-livebar span {
  display: block;
  color: var(--gju-typing-muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-livebar strong {
  display: block;
  margin-top: .28rem;
  color: var(--gju-typing-ink);
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1;
}

.typing-test-page .gju-typing-progress {
  display: grid;
  gap: .35rem;
}

.typing-test-page .gju-typing-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7f5;
}

.typing-test-page .gju-typing-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #2563eb);
}

.typing-test-page .gju-typing-passage {
  min-height: 190px;
  max-height: 320px;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--gju-typing-ink);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.85;
}

.typing-test-page .gju-typing-char {
  border-radius: 3px;
  white-space: pre-wrap;
}

.typing-test-page .gju-typing-char.is-correct {
  color: var(--gju-typing-good);
  background: rgba(15, 118, 110, .1);
}

.typing-test-page .gju-typing-char.is-incorrect {
  color: var(--gju-typing-bad);
  background: rgba(180, 35, 24, .12);
  text-decoration: underline;
}

.typing-test-page .gju-typing-char.is-current {
  color: #111827;
  background: #fde68a;
  box-shadow: 0 0 0 1px rgba(161, 98, 7, .25);
}

.typing-test-page .gju-typing-input {
  min-height: 170px;
  resize: vertical;
  padding: 1rem;
  line-height: 1.7;
}

.typing-test-page .gju-typing-input:disabled {
  background: #f1f5f9;
  color: #64748b;
}

.typing-test-page .gju-typing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.typing-test-page .gju-typing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .68rem .95rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: var(--gju-typing-accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.typing-test-page .gju-typing-button:hover,
.typing-test-page .gju-typing-button:focus-visible {
  background: #eff6ff;
}

.typing-test-page .gju-typing-button-primary {
  border-color: var(--gju-typing-accent);
  background: var(--gju-typing-accent);
  color: #fff;
}

.typing-test-page .gju-typing-button-primary:hover,
.typing-test-page .gju-typing-button-primary:focus-visible {
  background: #1d4ed8;
}

.typing-test-page .gju-typing-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.typing-test-page .gju-typing-note {
  padding: .82rem;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  font-size: .92rem;
}

.typing-test-page .gju-typing-results {
  padding: 1rem;
}

.typing-test-page .gju-typing-result-status {
  width: fit-content;
  margin: .75rem 0;
  padding: .48rem .75rem;
  border-radius: 999px;
  font-weight: 900;
}

.typing-test-page .gju-typing-result-status.is-pass {
  background: #ccfbf1;
  color: #115e59;
}

.typing-test-page .gju-typing-result-status.is-fail {
  background: #fee2e2;
  color: #991b1b;
}

.typing-test-page .gju-typing-result-grid,
.typing-test-page .gju-typing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.typing-test-page .gju-typing-result-metric {
  padding: .85rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #f8fbff;
}

.typing-test-page .gju-typing-result-metric em {
  display: inline-block;
  margin-top: .4rem;
  color: var(--gju-typing-accent);
  font-style: normal;
  font-weight: 900;
  font-size: .8rem;
}

.typing-test-page .gju-typing-guide {
  padding: 1rem;
}

.typing-test-page .gju-typing-index-hero,
.typing-test-page .gju-typing-index-section {
  background: var(--gju-typing-panel);
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.typing-test-page .gju-typing-index-hero {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.typing-test-page .gju-typing-index-hero h1 {
  max-width: none;
  margin-bottom: .4rem;
}

.typing-test-page .gju-typing-index-heading span {
  color: var(--gju-typing-accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-index-section {
  padding: 1rem;
}

.typing-test-page .gju-typing-index-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.typing-test-page .gju-typing-index-heading h2 {
  margin: .18rem 0 0;
}

.typing-test-page .gju-typing-exam-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.typing-test-page .gju-typing-exam-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 58px;
  padding: .82rem .9rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--gju-typing-ink);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.25;
}

.typing-test-page .gju-typing-exam-link i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  background: #e7efff;
  color: var(--gju-typing-accent);
}

.typing-test-page .gju-typing-exam-link:hover,
.typing-test-page .gju-typing-exam-link:focus-visible {
  border-color: #93c5fd;
  background: #eef5ff;
  color: var(--gju-typing-accent);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.typing-test-page .gju-typing-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .85rem;
}

.typing-test-page .gju-typing-guide-grid article {
  padding: .85rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #f8fbff;
}

.typing-test-page .gju-typing-history {
  display: grid;
  gap: .55rem;
  margin-top: .7rem;
  list-style: none;
}

.typing-test-page .gju-typing-history li {
  display: grid;
  gap: .16rem;
  padding: .65rem;
  border: 1px solid var(--gju-typing-line);
  border-radius: 8px;
  background: #fff;
}

.typing-test-page .gju-typing-history span {
  color: var(--gju-typing-muted);
  font-size: .86rem;
}

.typing-test-page .gju-typing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.typing-test-page.gju-typing-attempt-page {
  --gju-attempt-font-size: 22px;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  gap: 0;
  background: #eef6ff;
}

.typing-test-page .gju-typing-attempt-topbar {
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) 92px;
  align-items: center;
  border-bottom: 1px solid #56a8f5;
  background: #fff;
}

.typing-test-page .gju-typing-attempt-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  justify-self: start;
  margin-left: 1.4rem;
  color: #172033;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.typing-test-page .gju-typing-attempt-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.typing-test-page .gju-typing-attempt-brand span span {
  color: #2563eb;
}

.typing-test-page .gju-typing-attempt-brand:hover,
.typing-test-page .gju-typing-attempt-brand:focus-visible {
  color: #2563eb;
  outline: 0;
}

.typing-test-page .gju-typing-icon-link {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border: 1px solid #cfe7ff;
  border-radius: 50%;
  background: #fff;
  color: #2f9df4;
  text-decoration: none;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  cursor: pointer;
}

.typing-test-page .gju-typing-icon-link:hover,
.typing-test-page .gju-typing-icon-link:focus-visible {
  outline: 0;
  border-color: #2f9df4;
  background: #f5fbff;
}

.typing-test-page .gju-typing-attempt-timer {
  text-align: center;
}

.typing-test-page .gju-typing-attempt-timer span {
  display: block;
  color: #142236;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
}

.typing-test-page .gju-typing-attempt-timer strong {
  display: block;
  margin-top: .25rem;
  color: #102033;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.typing-test-page .gju-typing-attempt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, .95fr);
  min-height: calc(100vh - 102px);
}

.typing-test-page .gju-typing-attempt-main {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 1.35rem;
  padding: 2rem 1.35rem 1.5rem;
}

.typing-test-page .gju-typing-attempt-block h1,
.typing-test-page .gju-typing-attempt-block h2 {
  margin: 0 0 .75rem;
  color: #071224;
  font-size: 1rem;
  font-weight: 950;
}

.typing-test-page.gju-typing-attempt-page .gju-typing-passage {
  min-height: 250px;
  max-height: 250px;
  margin: 0;
  resize: vertical;
  border-color: #d2e7fb;
  background: #f8fbff;
  color: #064eff;
  font-size: var(--gju-attempt-font-size);
  line-height: 1.75;
}

.typing-test-page.gju-typing-attempt-page .gju-typing-input {
  min-height: 250px;
  max-height: 320px;
  resize: vertical;
  border-color: #d2e7fb;
  background: #f8fbff;
  color: #102033;
  font-size: var(--gju-attempt-font-size);
  line-height: 1.75;
}

.typing-test-page.gju-typing-attempt-page .gju-typing-input::placeholder {
  color: #6b7280;
}

.typing-test-page .gju-typing-attempt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 1rem 0;
}

.typing-test-page .gju-typing-button-cancel {
  min-width: 136px;
  border-color: #dc3d60;
  background: #dc3d60;
  color: #fff;
  font-size: 1.25rem;
}

.typing-test-page.gju-typing-attempt-page .gju-typing-button-primary {
  min-width: 144px;
  border-color: #329fe5;
  background: #329fe5;
  font-size: 1.25rem;
}

.typing-test-page .gju-typing-attempt-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid #d6ebfa;
  background: #eef7ff;
}

.typing-test-page .gju-typing-attempt-card {
  padding: 1.9rem 2rem;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.typing-test-page .gju-typing-toggle-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.35rem;
  color: #000;
  font-size: 1.05rem;
  font-weight: 950;
}

.typing-test-page .gju-typing-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.typing-test-page .gju-typing-toggle-row span {
  width: 54px;
  height: 28px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #b7b9bd;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.typing-test-page .gju-typing-toggle-row span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .28);
  transition: transform .18s ease;
}

.typing-test-page .gju-typing-toggle-row input:checked + span {
  background: #329fe5;
}

.typing-test-page .gju-typing-toggle-row input:checked + span::after {
  transform: translateX(26px);
}

.typing-test-page .gju-typing-attempt-info {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.65rem;
}

.typing-test-page .gju-typing-attempt-info div {
  display: grid;
  gap: .25rem;
}

.typing-test-page .gju-typing-attempt-info dt,
.typing-test-page .gju-typing-attempt-info dd {
  margin: 0;
  color: #000;
  font-size: 1rem;
  font-weight: 900;
}

.typing-test-page .gju-typing-attempt-info dd {
  font-weight: 800;
}

.typing-test-page .gju-typing-font-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.35rem;
  color: #000;
  font-size: 1.05rem;
  font-weight: 950;
}

.typing-test-page .gju-typing-font-control button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #2f9df4;
  border-radius: 2px;
  background: #fff;
  color: #2f9df4;
  cursor: pointer;
}

.typing-test-page .gju-typing-font-control span {
  min-width: 28px;
  text-align: center;
  font-weight: 950;
}

.typing-test-page .gju-typing-live-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding: 1rem;
}

.typing-test-page .gju-typing-live-card article {
  padding: .85rem;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #f7fbff;
}

.typing-test-page .gju-typing-live-card span {
  display: block;
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-live-card strong {
  display: block;
  margin-top: .25rem;
  color: #102033;
  font-size: 1.35rem;
  line-height: 1;
}

.typing-test-page.gju-typing-attempt-page .gju-typing-results {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  .typing-test-page .gju-typing-hero,
  .typing-test-page .gju-typing-layout {
    grid-template-columns: 1fr;
  }

  .typing-test-page .gju-typing-livebar,
  .typing-test-page .gju-typing-result-grid,
  .typing-test-page .gju-typing-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .typing-test-page {
    gap: .75rem;
  }

  .typing-test-page .gju-typing-hero,
  .typing-test-page .gju-typing-panel,
  .typing-test-page .gju-typing-results,
  .typing-test-page .gju-typing-guide {
    padding: .85rem;
  }

  .typing-test-page .gju-typing-summary,
  .typing-test-page .gju-typing-livebar,
  .typing-test-page .gju-typing-result-grid,
  .typing-test-page .gju-typing-stats-grid,
  .typing-test-page .gju-typing-guide-grid,
  .typing-test-page .gju-typing-exam-list {
    grid-template-columns: 1fr;
  }

  .typing-test-page .gju-typing-passage {
    max-height: 260px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .typing-test-page .gju-typing-input {
    min-height: 150px;
  }

  .typing-test-page .gju-typing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .typing-test-page .gju-typing-attempt-layout {
    grid-template-columns: 1fr;
  }

  .typing-test-page .gju-typing-attempt-sidebar {
    border-left: 0;
    border-top: 4px solid #d6ebfa;
  }
}

@media (max-width: 640px) {
  .typing-test-page .gju-typing-attempt-topbar {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
  }

  .typing-test-page .gju-typing-attempt-brand {
    width: 44px;
    height: 44px;
    justify-content: center;
    margin-left: .65rem;
  }

  .typing-test-page .gju-typing-attempt-brand img {
    width: 42px;
    height: 42px;
  }

  .typing-test-page .gju-typing-attempt-brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .typing-test-page .gju-typing-icon-link {
    width: 44px;
    height: 44px;
  }

  .typing-test-page .gju-typing-attempt-main,
  .typing-test-page .gju-typing-attempt-sidebar {
    padding: 1rem .75rem;
  }

  .typing-test-page .gju-typing-attempt-actions,
  .typing-test-page .gju-typing-live-card {
    grid-template-columns: 1fr;
  }

  .typing-test-page .gju-typing-attempt-actions {
    display: grid;
    padding-inline: 0;
  }

  .typing-test-page .gju-typing-button-cancel,
  .typing-test-page.gju-typing-attempt-page .gju-typing-button-primary {
    width: 100%;
  }
}

.typing-test-page.gju-typing-index-page {
  max-width: 1480px;
  padding-top: clamp(.75rem, 2vw, 1.2rem);
}

.typing-test-page .gju-typing-exams-hero {
  display: grid;
  justify-items: center;
  gap: .7rem;
  padding: .35rem 1rem 1.25rem;
  text-align: center;
}

.typing-test-page .gju-typing-exams-hero h1 {
  max-width: none;
  margin: 0;
  color: #6266dc;
  font-size: clamp(2.65rem, 7vw, 4.15rem);
  font-weight: 900;
}

.typing-test-page .gju-typing-exams-hero p {
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.typing-test-page .gju-typing-exams-hero > span {
  width: 114px;
  height: 4px;
  border-radius: 999px;
  background: #1473f9;
}

.typing-test-page .gju-typing-exam-search {
  width: min(716px, calc(100% - 1rem));
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.15rem auto 1rem;
  padding: 0 1rem;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.typing-test-page .gju-typing-exam-search i {
  color: #334155;
  font-size: 1.05rem;
}

.typing-test-page .gju-typing-exam-search input {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gju-typing-ink);
  font: inherit;
}

.typing-test-page .gju-typing-filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.2rem;
}

.typing-test-page .gju-typing-filter {
  min-height: 38px;
  padding: .48rem .8rem;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.typing-test-page .gju-typing-filter:hover,
.typing-test-page .gju-typing-filter:focus-visible,
.typing-test-page .gju-typing-filter.is-selected {
  border-color: #1473f9;
  background: #1473f9;
  color: #fff;
  outline: 0;
}

.typing-test-page .gju-typing-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.typing-test-page .gju-typing-exam-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.typing-test-page .gju-typing-exam-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #2563eb;
  opacity: .9;
}

.typing-test-page .gju-typing-exam-card:hover,
.typing-test-page .gju-typing-exam-card:focus-within {
  border-color: #2563eb;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .14);
  transform: translateY(-3px);
}

.typing-test-page .gju-typing-exam-card[hidden] {
  display: none;
}

.typing-test-page .gju-typing-quiz-card-head {
  display: grid;
  align-content: start;
  gap: .48rem;
  padding: 1rem 1.1rem .9rem 1.25rem;
}

.typing-test-page .gju-typing-card-kicker {
  color: #a16207;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-card-title-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
}

.typing-test-page .gju-typing-exam-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: none;
}

.typing-test-page .gju-typing-logo-ssc {
  background: linear-gradient(135deg, #b91c1c, #f59e0b);
}

.typing-test-page .gju-typing-logo-railway {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.typing-test-page .gju-typing-logo-up {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.typing-test-page .gju-typing-logo-banking {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.typing-test-page .gju-typing-logo-general {
  background: linear-gradient(135deg, #2563eb, #6366f1);
}

.typing-test-page .gju-typing-exam-card h2 {
  margin: 0;
  color: #172033;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.3;
  text-transform: none;
}

.typing-test-page .gju-typing-exam-card p {
  display: -webkit-box;
  min-height: 2.9em;
  margin: .1rem 0 0;
  overflow: hidden;
  color: #647084;
  font-size: .84rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.typing-test-page .gju-typing-set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}

.typing-test-page .gju-typing-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .56rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 850;
}

.typing-test-page .gju-typing-set-meta .gju-typing-meta-pill:first-child {
  background: #1e3a8a;
  color: #fff;
}

.typing-test-page .gju-typing-card-foot {
  display: grid;
  gap: .75rem;
  margin-top: auto;
  padding: .85rem 1.1rem 1rem 1.25rem;
  border-top: 1px solid #dbe5f4;
  background: #f8fbff;
}

.typing-test-page .gju-typing-exam-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 42px;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 900;
  box-shadow: none;
}

.typing-test-page .gju-typing-exam-card a:hover,
.typing-test-page .gju-typing-exam-card a:focus-visible {
  background: #1d4ed8;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.typing-test-page .gju-typing-empty {
  margin: 1rem auto 0;
  padding: 1rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  color: var(--gju-typing-muted);
  text-align: center;
}

@media (max-width: 980px) {
  .typing-test-page .gju-typing-exam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .typing-test-page .gju-typing-exam-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .typing-test-page .gju-typing-card-title-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .typing-test-page .gju-typing-exam-logo {
    width: 38px;
    height: 38px;
  }
}

.typing-test-page.gju-typing-exam-detail-page {
  max-width: 100%;
  padding: 2.2rem 1rem 3rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .92), #fff 30%),
    #fff;
}

.typing-test-page .gju-typing-exam-detail-card {
  width: min(680px, 100%);
  margin: 0 auto 1.3rem;
  padding: 1.5rem 2rem 1.6rem;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

.typing-test-page .gju-typing-exam-detail-card .gju-typing-exam-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto .75rem;
  font-size: 1.7rem;
}

.typing-test-page .gju-typing-exam-category {
  margin: 0 0 .2rem;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-exam-detail-card h1 {
  margin: 0 0 .6rem;
  color: #6670e8;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.typing-test-page .gju-typing-exam-detail-card p {
  width: min(540px, 100%);
  margin: 0 auto;
  color: #64748b;
  font-size: .93rem;
  line-height: 1.65;
}

.typing-test-page .gju-typing-rules-box {
  width: min(500px, 100%);
  margin: 1.1rem auto 0;
  padding: .85rem 1rem;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
  font-size: .84rem;
  line-height: 1.55;
}

.typing-test-page .gju-typing-rules-box strong {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .25rem;
  color: #1473f9;
}

.typing-test-page .gju-typing-rules-box span {
  display: block;
}

.typing-test-page .gju-typing-language-panel,
.typing-test-page .gju-typing-passage-panel {
  width: min(940px, 100%);
  margin: 0 auto;
  text-align: center;
}

.typing-test-page .gju-typing-language-panel {
  width: min(680px, 100%);
}

.typing-test-page .gju-typing-language-panel {
  padding: .4rem 0 1.1rem;
}

.typing-test-page .gju-typing-language-panel h2 {
  margin: 0 0 .45rem;
  color: #0f172a;
  font-size: .98rem;
  font-weight: 900;
}

.typing-test-page .gju-typing-language-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.typing-test-page .gju-typing-language-btn {
  min-height: 32px;
  padding: .35rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1e40af;
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}

.typing-test-page .gju-typing-language-btn.is-selected,
.typing-test-page .gju-typing-language-btn:hover,
.typing-test-page .gju-typing-language-btn:focus-visible {
  border-color: #1473f9;
  background: #1473f9;
  color: #fff;
  outline: 0;
}

.typing-test-page .gju-typing-language-panel p {
  margin: .5rem 0 0;
  color: #64748b;
  font-size: .78rem;
}

.typing-test-page .gju-typing-passage-panel > h2 {
  display: inline-block;
  margin: 0 0 1.05rem;
  padding-bottom: .35rem;
  border-bottom: 3px solid #1473f9;
  color: #10b981;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
}

.typing-test-page .gju-typing-passage-level {
  margin: 0 0 1.35rem;
  text-align: left;
}

.typing-test-page .gju-typing-passage-level h3 {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .45rem;
  color: #059669;
  font-size: .86rem;
  font-weight: 900;
}

.typing-test-page .gju-typing-passage-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.typing-test-page .gju-typing-passage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.typing-test-page .gju-typing-passage-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #059669;
  opacity: .92;
}

.typing-test-page .gju-typing-passage-card:hover,
.typing-test-page .gju-typing-passage-card:focus-within {
  border-color: #059669;
  box-shadow: 0 14px 32px rgba(5, 150, 105, .14);
  transform: translateY(-3px);
}

.typing-test-page .gju-typing-passage-card-head {
  display: grid;
  align-content: start;
  gap: .45rem;
  padding: 1rem 1.1rem .9rem 1.25rem;
}

.typing-test-page .gju-typing-passage-card h4 {
  margin: 0;
  color: #172033;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.3;
}

.typing-test-page .gju-typing-passage-card p {
  display: -webkit-box;
  min-height: 2.85em;
  margin: 0;
  overflow: hidden;
  color: #647084;
  font-size: .84rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.typing-test-page .gju-typing-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 42px;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: #059669;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 900;
}

.typing-test-page .gju-typing-start-btn:hover,
.typing-test-page .gju-typing-start-btn:focus-visible {
  background: #047857;
  color: #fff;
  outline: 0;
}

.typing-test-page .gju-typing-free-note,
.typing-test-page .gju-typing-free-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: .92rem;
  font-weight: 900;
}

.typing-test-page .gju-typing-free-note {
  width: fit-content;
  max-width: 100%;
  margin: .85rem auto 0;
  padding: .65rem .85rem;
}

.typing-test-page .gju-typing-free-strip {
  width: min(900px, 100%);
  margin: 0 auto 1.25rem;
  padding: .8rem 1rem;
  box-shadow: 0 12px 28px rgba(5, 150, 105, .08);
}

.typing-test-page .gju-typing-free-strip span {
  color: #334155;
  font-weight: 800;
}

.typing-test-page .gju-typing-info-section,
.typing-test-page .gju-typing-how-section {
  width: min(940px, 100%);
  margin: 1rem auto;
  padding: 1.1rem;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  text-align: left;
}

.typing-test-page .gju-typing-info-section h2,
.typing-test-page .gju-typing-how-section h2 {
  margin: .55rem 0 .5rem;
  color: #172033;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 900;
}

.typing-test-page .gju-typing-info-section p {
  margin: 0;
  color: #526071;
  font-size: .96rem;
  line-height: 1.7;
}

.typing-test-page .gju-typing-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.typing-test-page .gju-typing-how-grid div {
  min-height: 112px;
  padding: .9rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.typing-test-page .gju-typing-how-grid strong,
.typing-test-page .gju-typing-how-grid span {
  display: block;
}

.typing-test-page .gju-typing-how-grid strong {
  color: #172033;
  font-size: .92rem;
  font-weight: 900;
}

.typing-test-page .gju-typing-how-grid span {
  margin-top: .45rem;
  color: #647084;
  font-size: .84rem;
  line-height: 1.5;
}

.typing-test-page .gju-typing-faq-section {
  width: min(940px, 100%);
  display: grid;
  gap: .75rem;
  margin: 1.25rem auto;
  padding: 1.1rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  text-align: left;
}

.typing-test-page .gju-typing-section-label {
  width: fit-content;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: .28rem .65rem;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.typing-test-page .gju-typing-faq-section h2 {
  margin: 0 0 .25rem;
  color: #172033;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 900;
}

.typing-test-page .gju-typing-faq-section details {
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.typing-test-page .gju-typing-faq-section details[open] {
  border-color: #bfdbfe;
}

.typing-test-page .gju-typing-faq-section summary {
  padding: .85rem 1rem;
  color: #172033;
  font-weight: 900;
  cursor: pointer;
}

.typing-test-page .gju-typing-faq-section p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #647084;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .typing-test-page .gju-typing-passage-card-grid {
    grid-template-columns: 1fr;
  }

  .typing-test-page.gju-typing-exam-detail-page {
    padding: 1.4rem .75rem 2.2rem;
  }

  .typing-test-page .gju-typing-exam-detail-card {
    padding: 1.15rem;
  }

  .typing-test-page .gju-typing-how-grid {
    grid-template-columns: 1fr;
  }

  .typing-test-page .gju-typing-free-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .typing-test-page .gju-typing-passage-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
