
/* AUTHENTIC HINDI DEVLYS & KRUTI DEV FONT BINDING */
@font-face {
  font-family: "DevLys 010";
  src: local("DevLys 010"), local("DevLys010"), local("Kruti Dev 010"), local("KrutiDev010"), url("./assets/fonts/HindiDevanagari.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Kruti Dev 010";
  src: local("Kruti Dev 010"), local("KrutiDev010"), local("DevLys 010"), local("DevLys010");
}

.hindi-devlys-font,
textarea.hindi-devlys-font,
div.hindi-devlys-font {
  font-family: "DevLys 010", "Kruti Dev 010", "Mangal", "Noto Sans Devanagari", sans-serif !important;
  font-size: 21px !important;
  line-height: 1.95 !important;
  letter-spacing: 0.5px !important;
}

@keyframes agPopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;

  --background: #eaf5ff;
  --sidebar: #f5fbff;
  --surface: #f9fcff;
  --surface-soft: #eaf4fd;
  --surface-hover: #dceeff;
  --border: #cfe2f3;
  --text: #17324d;
  --muted: #5d7892;
  --purple: #1976d2;
  --purple-hover: #125db0;
  --purple-light: #dceeff;
  --purple-border: #b5d8f5;
  --green: #168765;
  --green-soft: #e7f7ef;
  --orange-soft: #fff1e5;
  --blue-soft: #e8f2ff;
  --shadow: 0 12px 35px rgba(30, 103, 166, 0.10);
  --hero-start: #d9efff;
  --hero-end: #e8f5ff;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --background: #081a2b;
  --sidebar: #0c2237;
  --surface: #102a42;
  --surface-soft: #15334e;
  --surface-hover: #1a4264;
  --border: #294b67;
  --text: #eaf6ff;
  --muted: #a6c2d9;
  --purple: #70bdff;
  --purple-hover: #9bd1ff;
  --purple-light: #183b59;
  --purple-border: #2f638b;
  --green: #6cddb0;
  --green-soft: #18362e;
  --orange-soft: #3c2a20;
  --blue-soft: #173852;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  --hero-start: #12324c;
  --hero-end: #163b58;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  transition: background-color 0.2s ease, color 0.2s ease;
}

button,
a,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--background);
}

/* Sidebar */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 25px 16px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 5px 29px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(140deg, #53b6ff, #1976d2);
  border-radius: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(112, 84, 223, 0.23);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--text);
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.15px;
  font-weight: 800;
}

.sidebar-heading {
  margin: 0 0 11px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-button:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-button.active {
  color: var(--purple);
  background: var(--purple-light);
  border-color: var(--purple-border);
  font-weight: 800;
}

.nav-icon {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 17px 13px 4px;
}

.sidebar-tip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 11px;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 10px;
  font-size: 17px;
}

.sidebar-bottom strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.sidebar-bottom p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 7px 0 22px;
}

.sidebar-bottom > small {
  color: var(--muted);
  font-size: 10px;
}

/* Main area and top bar */

.main-content {
  width: 100%;
  min-width: 0;
  max-width: 1800px;
  margin: 0 auto;
  padding: 31px clamp(20px, 3.4vw, 54px) 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.topbar-heading {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.5;
}

.topbar h1 {
  margin: 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: -1.15px;
  line-height: 1.25;
}

.topbar-heading > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--purple-border);
}

.theme-toggle-icon {
  font-size: 15px;
  line-height: 1;
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 8px 12px;
  color: var(--purple);
  background: var(--purple-light);
  border: 1px solid var(--purple-border);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

/* Home hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 20px;
  min-height: 340px;
  padding: clamp(24px, 3.5vw, 42px);
  overflow: hidden;
  background: linear-gradient(120deg, var(--hero-start), var(--hero-end));
  border: 1px solid var(--purple-border);
  border-radius: 22px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--purple);
  background: var(--surface);
  border: 1px solid var(--purple-border);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero h2 {
  margin: 19px 0 12px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.hero h2 span {
  color: var(--purple);
}

.hero-copy > p {
  max-width: 455px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease;
}

.primary-button {
  color: #ffffff;
  background: #1976d2;
  border: 1px solid #7054df;
  box-shadow: 0 5px 13px rgba(112, 84, 223, 0.17);
}

.primary-button:hover {
  background: #125db0;
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.secondary-button:hover {
  background: var(--surface-hover);
}

.primary-button span {
  font-size: 16px;
  line-height: 1;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.hero-points span:first-child {
  color: var(--green);
}

/* Decorative keyboard illustration */

.keyboard-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--purple-border);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 280px;
  height: 280px;
}

.orbit-two {
  width: 220px;
  height: 220px;
  border-style: dashed;
  opacity: 0.8;
}

.keyboard-window {
  position: relative;
  z-index: 1;
  width: min(100%, 310px);
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--purple-border);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.keyboard-window-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 3px 10px;
  border-bottom: 1px solid var(--border);
}

.keyboard-window-top > span {
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
}

.keyboard-window-top > span:first-child {
  background: #f08c91;
}

.keyboard-window-top > span:nth-child(2) {
  background: #f4c66d;
}

.keyboard-window-top > span:nth-child(3) {
  background: #69cda3;
}

.keyboard-window-top small {
  margin-left: auto;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.9px;
}

.keyboard-screen {
  margin: 11px 0;
  padding: 15px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.screen-label {
  display: block;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.keyboard-screen > strong {
  display: block;
  margin: 10px 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.keyboard-screen > strong span {
  color: var(--purple);
}

.screen-progress {
  height: 5px;
  overflow: hidden;
  background: var(--border);
  border-radius: 20px;
}

.screen-progress span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #7054df, #ad9aff);
  border-radius: inherit;
}

.keyboard-screen > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}

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

.keyboard-keys span {
  display: grid;
  place-items: center;
  min-height: 25px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--border);
}

.keyboard-keys .key-highlight {
  color: #ffffff;
  background: #1976d2;
  border-color: #7054df;
  box-shadow: 0 2px 0 #4e38a7;
}

.keyboard-keys .space-key {
  grid-column: 2 / 7;
  min-height: 20px;
  font-size: 6px;
  letter-spacing: 1px;
}

.floating-badge {
  position: absolute;
  right: -5px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.floating-badge > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 8px;
  font-size: 15px;
}

.floating-badge div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.floating-badge strong {
  color: var(--text);
  font-size: 10px;
}

.floating-badge small {
  color: var(--muted);
  font-size: 8px;
}

/* Feature cards */

.section-block {
  margin-top: 35px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.section-heading h2,
.section-intro-card h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.8px;
  line-height: 1.3;
}

.section-heading p,
.section-intro-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

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

.feature-card {
  min-width: 0;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(35, 32, 74, 0.015);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple-border);
  box-shadow: var(--shadow);
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}

.icon-0 {
  color: var(--purple);
  background: var(--purple-light);
}

.icon-1 {
  color: var(--green);
  background: var(--green-soft);
}

.icon-2 {
  color: #d07b2e;
  background: var(--orange-soft);
}

.icon-3 {
  color: #467ac6;
  background: var(--blue-soft);
}

.card-number {
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.7;
}

.feature-card h3 {
  margin: 16px 0 7px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: -0.3px;
}

.feature-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.feature-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 10px 0 0;
  color: var(--purple);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.45px;
}

.feature-link span {
  font-size: 14px;
}

.feature-link:hover {
  color: var(--purple-hover);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 9px;
}

.app-footer strong {
  color: var(--text);
}

/* Section pages */

.section-page {
  min-height: 55vh;
}

.section-intro-card {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 22px;
  padding: 23px;
  background: linear-gradient(120deg, var(--hero-start), var(--hero-end));
  border: 1px solid var(--purple-border);
  border-radius: 17px;
}

.large-section-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 27px;
  box-shadow: var(--shadow);
}

.section-intro-card .eyebrow {
  margin-bottom: 6px;
}

.section-intro-card h2 {
  font-size: 22px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.lesson-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.lesson-number {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.lesson-content {
  min-width: 0;
}

.lesson-level {
  color: var(--purple);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.lesson-content h3,
.game-card-content h3 {
  margin: 7px 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
}

.lesson-content p,
.game-card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.text-button {
  margin-top: 13px;
  padding: 0;
  color: var(--purple);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
}

.text-button:hover {
  color: var(--purple-hover);
}

/* Notice panels */

.notice-card {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 12px;
}

.notice-card strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.notice-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

/* Practice options */

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

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-height: 150px;
  padding: 20px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-border);
}

.option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
  border-radius: 12px;
  font-size: 19px;
}

.option-card > strong {
  color: var(--text);
  font-size: 13px;
}

.option-card > span:not(.option-icon, .option-arrow) {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.option-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--purple);
  font-size: 17px;
}

/* Exam selector */

.exam-picker-card,
.speed-test-card,
.settings-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.exam-picker-card > label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.exam-picker-card select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.exam-selected {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 19px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.exam-selected h3 {
  margin: 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
}

.exam-selected p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.exam-picker-card > .primary-button {
  margin-top: 2px;
}

/* Games */

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

.game-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.game-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 145px;
  background: var(--purple-light);
  border-bottom: 1px solid var(--border);
}

.game-art-1 {
  background: var(--blue-soft);
}

.game-art-2 {
  background: var(--green-soft);
}

.game-art > span {
  font-size: 45px;
  filter: drop-shadow(0 7px 9px rgba(20, 20, 40, 0.1));
}

.game-art > small {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.game-card-content {
  padding: 18px;
}

.game-card-content .primary-button {
  width: 100%;
  margin-top: 16px;
}

/* Speed test */

.speed-test-card {
  max-width: 720px;
}

.speed-test-card > .eyebrow {
  margin-bottom: 14px;
}

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

.duration-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 76px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.duration-button small {
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
}

.duration-button:hover {
  border-color: var(--purple-border);
}

.duration-button.selected {
  color: var(--purple);
  background: var(--purple-light);
  border-color: var(--purple);
}

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

.speed-preview > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.speed-preview span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.speed-preview strong {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
}

.speed-preview strong small {
  font-size: 11px;
}

.helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* Performance */

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

.stat-card {
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat-card > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.stat-card > strong {
  display: block;
  margin: 15px 0 7px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 27px;
}

.stat-card > strong small {
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
}

.stat-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

/* Exam rules */

.rules-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 13px 17px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.rule-row:last-child {
  border-bottom: 0;
}

.rule-row:hover {
  background: var(--surface-soft);
}

.rule-index {
  color: var(--purple);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.rule-row-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.rule-row-copy strong {
  color: var(--text);
  font-size: 12px;
}

.rule-row-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.verification-badge {
  padding: 6px 8px;
  color: #b96c27;
  background: var(--orange-soft);
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Settings */

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.setting-row:first-child {
  padding-top: 0;
}

.setting-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.setting-row > div {
  min-width: 0;
}

.setting-row strong {
  color: var(--text);
  font-size: 12px;
}

.setting-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.setting-value {
  padding: 8px 11px;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* Small in-app notifications */

.app-notice {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  width: min(370px, calc(100vw - 32px));
  padding: 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.app-notice > strong {
  display: block;
  padding-right: 22px;
  font-size: 13px;
}

.app-notice > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.notice-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 19px;
}

/* Responsive layouts */

@media (min-width: 1600px) {
  .main-content {
    padding-right: 60px;
    padding-left: 60px;
  }

  .feature-grid {
    gap: 18px;
  }

  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 1200px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .main-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    padding: 27px;
  }

  .keyboard-window {
    width: 265px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    padding: 2px 2px 13px;
  }

  .sidebar-heading,
  .sidebar-bottom {
    display: none;
  }

  .navigation {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 3px;
  }

  .nav-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .nav-icon {
    width: auto;
    flex-basis: auto;
  }

  .main-content {
    padding: 23px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .keyboard-illustration {
    min-height: 280px;
  }

  .keyboard-window {
    width: min(310px, 82%);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .main-content {
    padding: 20px 14px;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 22px;
    letter-spacing: -0.7px;
  }

  .topbar-heading > p {
    font-size: 10px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .theme-toggle {
    min-height: 34px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 9px;
  }

  .edition-badge {
    min-height: 29px;
    padding: 6px 8px;
    font-size: 7px;
  }

  .hero {
    padding: 22px 17px;
    border-radius: 16px;
  }

  .hero h2 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }

  .hero-copy > p {
    font-size: 11px;
  }

  .hero-points {
    gap: 9px;
    font-size: 8px;
  }

  .keyboard-illustration {
    min-height: 250px;
  }

  .orbit-one {
    width: 240px;
    height: 240px;
  }

  .orbit-two {
    width: 195px;
    height: 195px;
  }

  .floating-badge {
    right: -2px;
    bottom: 5px;
    padding: 8px;
  }

  .floating-badge small {
    max-width: 125px;
  }

  .feature-grid,
  .lesson-grid,
  .option-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 185px;
  }

  .section-heading h2,
  .section-intro-card h2 {
    font-size: 20px;
  }

  .section-intro-card {
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
  }

  .large-section-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
    font-size: 22px;
  }

  .section-intro-card p {
    font-size: 10px;
  }

  .exam-picker-card,
  .speed-test-card,
  .settings-card {
    padding: 17px;
  }

  .duration-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speed-preview {
    gap: 6px;
  }

  .speed-preview > div {
    padding: 10px;
  }

  .speed-preview strong {
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-row {
    gap: 9px;
    padding: 12px 10px;
  }

  .verification-badge {
    max-width: 76px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .rule-row-copy small {
    font-size: 8px;
  }

  .setting-row {
    align-items: flex-start;
    gap: 12px;
  }

  .setting-row .theme-toggle {
    flex-shrink: 0;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Compatibility styles for the existing main.js markup */
.brand-logo { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #53b6ff, #1976d2); border-radius: 14px; font-family: 'Space Grotesk', sans-serif; font-weight: 800; }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-text strong { color: var(--text); font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 10px; }
.main-area { width: 100%; min-width: 0; max-width: 1800px; margin: 0 auto; padding: 31px clamp(20px, 3.4vw, 54px) 22px; }
.main-area > .topbar > div:first-child { min-width: 0; }
.main-area > .topbar h1 { margin: 0; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px, 2.1vw, 30px); }
.main-area > .topbar p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.main-area > .topbar .back-button { margin-bottom: 7px; padding: 6px 10px; color: var(--purple); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 10px; }
.hero-content { position: relative; z-index: 2; }
.hero-label { display: inline-flex; padding: 7px 10px; color: var(--purple); background: var(--surface); border: 1px solid var(--purple-border); border-radius: 7px; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.hero-content h2 { margin: 19px 0 12px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -2px; }
.hero-content p { max-width: 455px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.art-orbit { position: absolute; border: 1px solid var(--purple-border); border-radius: 50%; pointer-events: none; }
.art-orbit.orbit-one { width: 280px; height: 280px; }
.art-orbit.orbit-two { width: 220px; height: 220px; border-style: dashed; }
.keyboard-card { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; width: min(100%, 310px); padding: 15px; background: var(--surface); border: 1px solid var(--purple-border); border-radius: 15px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.keyboard-top { grid-column: 1 / -1; display: flex; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.keyboard-top span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.keyboard-top span:first-child { background: #f08c91; }
.keyboard-top span:nth-child(2) { background: #f4c66d; }
.keyboard-top span:nth-child(3) { background: #69cda3; }
.keyboard-card .keyboard-keys { display: contents; }
.keyboard-card .keyboard-keys span { display: grid; place-items: center; min-height: 25px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 4px; font-size: 8px; font-weight: 800; box-shadow: 0 2px 0 var(--border); }
.keyboard-card .keyboard-keys .key-highlight { color: #fff; background: #1976d2; border-color: #7054df; }
.keyboard-card .space-key { grid-column: 2 / 7; min-height: 20px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 4px; }
.floating-badge { color: var(--text); font-size: 10px; font-weight: 800; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.section-title h2 { margin: 0; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: clamp(20px, 2vw, 25px); }
.section-title p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.feature-card { text-align: left; cursor: pointer; }
.feature-title { display: block; margin: 16px 0 7px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; }
.feature-description { display: block; margin: 0 0 16px; color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.feature-card .feature-link { margin-top: auto; }
.lesson-list { display: flex; flex-direction: column; gap: 12px; }
.lesson-card { display: flex; align-items: center; gap: 15px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.lesson-card h3 { margin: 0 0 6px; color: var(--text); font-size: 13px; }
.lesson-card p { margin: 0; color: var(--muted); font-size: 10px; }
.coming-label, .verification-label { padding: 6px 8px; color: #b96c27; background: var(--orange-soft); border-radius: 6px; font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.notice-card { color: var(--text); }
.notice-card h3 { margin: 10px 0; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.notice-card > p { color: var(--muted); }
.large-icon { display: block; font-size: 28px; margin-bottom: 8px; }
.exam-picker { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; }
.exam-picker > label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; }
.exam-picker select { width: 100%; min-height: 44px; padding: 10px 13px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; }
.exam-detail { margin-top: 20px; }
.exam-detail .verification-label { display: inline-block; margin-top: 10px; }
.duration-button.selected { color: var(--purple); background: var(--purple-light); border-color: var(--purple); }
.game-card .secondary-button { margin-top: 15px; }
.online-indicator { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--green); }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; }
.sidebar-bottom > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.sidebar-bottom strong { color: var(--text); font-size: 11px; }
.sidebar-bottom small { color: var(--muted); font-size: 9px; }
@media (max-width: 1200px) { .main-area { padding-right: 24px; padding-left: 24px; } }
@media (max-width: 850px) { .main-area { padding: 23px 20px; } .hero { grid-template-columns: 1fr; } .hero-art { min-height: 280px; } }
@media (max-width: 560px) { .main-area { padding: 20px 14px; } .topbar { align-items: flex-start; } .topbar-actions { flex-direction: column; align-items: flex-end; gap: 7px; } .hero-content h2 { font-size: 35px; } .hero-art { min-height: 250px; } .feature-grid, .lesson-list, .game-grid { grid-template-columns: 1fr; } .lesson-card { align-items: flex-start; flex-wrap: wrap; } .coming-label { margin-left: auto; } }


/* Sky-blue visual finish */
body { background: var(--background); }
.app-shell { background: var(--background); }
.sidebar { background: var(--sidebar); }
.main-area { background: transparent; }
.hero { background: linear-gradient(120deg, var(--hero-start), var(--hero-end)); }


/* Step 2: interactive typing test UI */
.typing-workspace { display: grid; gap: 20px; }
.typing-setup { text-align: left; }
.typing-setup .large-icon { display: block; margin-bottom: 10px; }
.typing-start { margin-top: 16px; }
.typing-stats, .performance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.performance-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.typing-stat { background: var(--card, #ffffff); border: 1px solid var(--border, #cfe4f8); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 5px 18px rgba(37, 99, 170, .06); }
.typing-stat span { color: var(--muted, #5f7690); font-size: 13px; }
.typing-stat strong { color: var(--primary, #1769c2); font-size: 26px; line-height: 1.2; }
.typing-test-card { background: var(--card, #fff); border: 1px solid var(--border, #cfe4f8); border-radius: 18px; padding: 22px; box-shadow: 0 8px 24px rgba(37, 99, 170, .06); }
.typing-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.typing-card-heading h3 { margin: 0; }
.typing-card-heading > span { color: var(--muted, #5f7690); font-size: 12px; }
.typing-passage { padding: 20px; border-radius: 12px; background: var(--passage-bg, #edf6ff); color: var(--text, #1b3552); font-size: 17px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 16px; }
.typing-char.correct { color: #16834a; background: #d8f7e5; }
.typing-char.incorrect { color: #b42318; background: #ffe0de; text-decoration: underline; }
.typing-char.current { border-left: 2px solid var(--primary, #1769c2); animation: typing-caret 1s step-end infinite; }
@keyframes typing-caret { 50% { border-color: transparent; } }
.typing-input { display: block; width: 100%; box-sizing: border-box; resize: vertical; min-height: 130px; border: 1px solid var(--border, #c5dff7); border-radius: 12px; padding: 16px; font: inherit; font-size: 16px; line-height: 1.7; color: var(--text, #1b3552); background: var(--input-bg, #fff); outline: none; }
.typing-input:focus { border-color: var(--primary, #1769c2); box-shadow: 0 0 0 3px rgba(23, 105, 194, .12); }
.typing-input:disabled { opacity: .7; }
.typing-result { margin-top: 18px; padding: 18px; background: var(--passage-bg, #edf6ff); border-radius: 12px; }
.typing-result h3 { margin: 0 0 6px; }
.result-metrics { display: flex; flex-wrap: wrap; gap: 22px; margin: 14px 0; }
.result-metrics span { display: flex; flex-direction: column; gap: 3px; color: var(--muted, #5f7690); font-size: 13px; }
.result-metrics strong { font-size: 22px; color: var(--primary, #1769c2); }
.history-table { display: grid; }
.history-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; padding: 13px 8px; border-bottom: 1px solid var(--border, #d8e8f8); font-size: 14px; }
.history-head { color: var(--muted, #5f7690); font-weight: 700; }
.text-button { border: 0; background: transparent; color: var(--primary, #1769c2); cursor: pointer; font: inherit; font-size: 13px; }
@media (max-width: 720px) { .typing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .performance-summary { grid-template-columns: 1fr; } .typing-test-card { padding: 15px; } .typing-passage { padding: 14px; font-size: 15px; } .history-row { grid-template-columns: 1.2fr .8fr .6fr .8fr; font-size: 12px; gap: 5px; } }


/* Step 3: detailed typing reports */
.report-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.report-heading h3 { margin:6px 0; font-size:24px; }
.report-heading p { margin:0; color:var(--muted); font-size:13px; }
.performance-band { display:inline-flex; align-items:center; padding:8px 12px; border:1px solid var(--purple-border); border-radius:999px; color:var(--purple); background:var(--purple-light); font-weight:700; font-size:12px; }
.report-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.report-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; margin:18px 0; border-top:1px solid var(--border); }
.report-detail-grid > div { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.report-detail-grid span { color:var(--muted); font-size:13px; }
.report-detail-grid strong { text-align:right; overflow-wrap:anywhere; font-size:13px; }
.report-comparison { margin-top:18px; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.report-comparison h4 { margin:0 0 10px; }
.report-passage, .report-typed { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.75; font-size:13px; }
.report-passage { padding:12px; border-radius:9px; background:var(--surface-soft); }
.report-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.report-footnote { color:var(--muted); font-size:11px; line-height:1.6; margin-top:16px; }
.history-row { grid-template-columns:1.25fr .75fr .75fr .75fr .9fr; align-items:center; }
.saved-report { margin-top:20px; }
@media (max-width:720px) { .report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .report-detail-grid { grid-template-columns:1fr; } .history-row { grid-template-columns:1fr 1fr; } .history-head { display:none; } }


/* Step 4: word-level feedback, lesson interactions and playable typing games */
.typing-word { display: inline; border-radius: 4px; padding: 1px 0; }
.typing-word.word-correct { background: rgba(22, 163, 74, .13); box-shadow: inset 0 -2px 0 #16a34a; }
.typing-word.word-incorrect { background: rgba(220, 38, 38, .13); box-shadow: inset 0 -2px 0 #dc2626; }
.typing-word.word-in-progress { background: rgba(37, 99, 235, .10); box-shadow: inset 0 -2px 0 #3b82f6; }
.typing-char.correct { color: #16803d; }
.typing-char.incorrect { color: #c62828; background: rgba(220,38,38,.13); text-decoration: underline; text-decoration-color: #dc2626; }
.word-legend { display:flex; flex-wrap:wrap; gap:14px; margin: -4px 0 16px; color:var(--muted); font-size:12px; }
.word-legend span { display:inline-flex; align-items:center; gap:6px; }
.legend-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.correct-dot { background:#16a34a; } .incorrect-dot { background:#dc2626; } .progress-dot { background:#3b82f6; }
.word-status-correct { color:#16803d; font-weight:700; } .word-status-incorrect { color:#c62828; font-weight:700; }
.lesson-intro, .game-intro { margin-bottom:18px; }
.lesson-card-expanded { display:block; }
.lesson-card-top { display:flex; align-items:center; gap:15px; }
.lesson-card-title { flex:1; min-width:0; }
.lesson-detail { padding:18px 8px 6px 60px; }
.lesson-detail p { line-height:1.7; color:var(--muted); }
.lesson-detail label { display:block; margin:14px 0 8px; font-weight:700; }
.lesson-drill-passage { background:var(--passage-bg,#edf6ff); border:1px solid var(--border); border-radius:10px; padding:13px; font-family:monospace; line-height:1.8; }
.lesson-drill-input { margin-top:10px; width:100%; border:1px solid var(--border); border-radius:10px; padding:12px; background:var(--card,#fff); color:var(--text); }
.lesson-drill-feedback { margin:8px 0 14px; font-size:13px; color:var(--muted); }
.lesson-detail[hidden], .game-stage[hidden] { display:none; }
.game-stage { margin-top:20px; }
.game-live-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.game-target { text-align:center; font-size:clamp(24px,4vw,42px); font-weight:800; color:var(--primary,#1769c2); padding:26px 12px; margin:14px 0; border-radius:14px; background:var(--passage-bg,#edf6ff); overflow-wrap:anywhere; }
.falling-target { animation: word-fall 4s linear infinite; }
@keyframes word-fall { 0% { transform:translateY(-8px); opacity:.75; } 100% { transform:translateY(8px); opacity:1; } }
.game-summary { margin-top:16px; padding:18px; border-radius:12px; background:var(--passage-bg,#edf6ff); }
.game-summary h4 { margin:0 0 8px; }
@media(max-width:640px) { .lesson-card-top { flex-wrap:wrap; } .lesson-detail { padding:14px 0 4px; } .game-live-stats { grid-template-columns:repeat(3,minmax(0,1fr)); } .game-live-stats .typing-stat { padding:12px; } }


/* Step 5: Space Defender arcade experience */
.space-feature-card{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);overflow:hidden;border:1px solid rgba(76,202,255,.35);border-radius:22px;margin:18px 0 26px;background:linear-gradient(120deg,#081027,#10275a 60%,#142046);color:#eefaff;box-shadow:0 18px 48px rgba(18,71,145,.18)}
.space-feature-art{position:relative;min-height:245px;overflow:hidden;background:radial-gradient(ellipse at 50% 110%,#1758a6 0,transparent 48%),radial-gradient(circle at 70% 20%,#402c85 0,transparent 30%),linear-gradient(150deg,#030815,#101b46)}
.space-feature-art:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#c3f7ff 1px,transparent 1.5px),radial-gradient(#548eff 1px,transparent 1.5px);background-size:37px 41px,61px 59px;background-position:0 0,18px 22px;opacity:.7}
.space-art-planet{position:absolute;width:116px;height:116px;border-radius:50%;left:22%;top:20%;background:radial-gradient(circle at 30% 25%,#a5f7ff,#267ce9 36%,#16134f 75%);box-shadow:0 0 28px #2a9dff, inset -12px -8px 25px #030b2b}
.space-art-ship{position:absolute;left:47%;bottom:16%;font-size:62px;color:#77fff3;transform:translateX(-50%);text-shadow:0 0 12px #4dfcff,0 0 30px #207dff}
.space-art-word{position:absolute;padding:7px 11px;border:1px solid currentColor;border-radius:8px;background:#06152be8;color:#7bffbf;font:800 12px ui-monospace,monospace;box-shadow:0 0 14px currentColor;transform:rotate(-7deg)}.space-art-word.w1{top:17%;right:12%;color:#72fff4}.space-art-word.w2{top:53%;left:8%;color:#d38aff;transform:rotate(5deg)}.space-art-word.w3{right:10%;bottom:17%;color:#ffe16e}.space-art-star{position:absolute;color:#fff;text-shadow:0 0 12px #5be9ff}.space-art-star.s1{top:10%;left:12%;font-size:24px}.space-art-star.s2{right:20%;bottom:9%;font-size:30px}
.space-feature-copy{padding:26px;align-self:center}.space-kicker{display:block;font-size:10px;letter-spacing:.18em;font-weight:900;color:#5cecff}.space-feature-copy h3{font-size:clamp(22px,3vw,32px);line-height:1.15;margin:9px 0;color:#f2fbff}.space-feature-copy p{line-height:1.65;color:#c0d6f7}.space-feature-tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}.space-feature-tags span{font-size:12px;padding:7px 9px;border-radius:999px;background:#ffffff12;border:1px solid #ffffff20;color:#d8efff}
.space-game-shell{overflow:hidden;border:1px solid #233d72;border-radius:20px;background:#070b1c;color:#eaf8ff;box-shadow:0 18px 48px #071a3825}.space-game-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;background:linear-gradient(100deg,#0a1229,#142a56)}.space-game-heading h2{margin:6px 0;font-size:clamp(20px,3vw,30px);letter-spacing:.03em;color:#effcff}.space-game-heading h2 span{color:#70dfff;font-weight:500}.space-game-heading p{margin:0;color:#b8cce9;font-size:13px}.space-controls{display:flex;gap:8px}.space-control{white-space:nowrap;border:1px solid #3c6c9d;border-radius:9px;background:#102447;color:#dffaff;padding:9px 12px;cursor:pointer}.space-hud{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px;background:#0a1228;border-bottom:1px solid #1b3158}.space-hud>div{padding:10px 12px;border:1px solid #284878;border-radius:10px;background:linear-gradient(140deg,#12294c,#0b1832);min-width:0}.space-hud small,.space-result-grid small{display:block;color:#7ea7d7;font-size:10px;font-weight:900;letter-spacing:.12em}.space-hud strong{display:block;margin-top:4px;color:#74ffd0;font:800 clamp(14px,2vw,22px) ui-monospace,monospace;overflow-wrap:anywhere}.space-arena-wrap{position:relative;background:#060b19}.space-arena-wrap canvas{display:block;width:100%;height:clamp(330px,53vw,560px);outline:none}.space-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#030713b8;backdrop-filter:blur(5px)}.space-overlay[hidden]{display:none}.space-overlay-card{text-align:center;padding:26px;border:1px solid #4d8dbb;border-radius:16px;background:#0c1835;box-shadow:0 0 36px #1686ff33}.space-overlay-card h3{margin:0 0 8px;color:#82f7ff}.space-overlay-card p{color:#b5c9e7}.space-input-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:16px 18px;background:#0b142b}.space-input-row label{font-size:10px;font-weight:900;letter-spacing:.12em;color:#8db9e7}.space-input-row input{width:100%;min-width:0;padding:13px 14px;border:1px solid #2c5788;border-radius:10px;background:#050b1b;color:#fff;font:700 16px ui-monospace,monospace;outline:none}.space-input-row input:focus{border-color:#5cf2ff;box-shadow:0 0 0 3px #31cfff22}.space-input-row input::placeholder{color:#627b9f}.space-feedback{padding:0 18px 12px;background:#0b142b;color:#83edda;font-size:13px;min-height:30px}.space-foot-stats{display:flex;gap:10px 24px;flex-wrap:wrap;padding:12px 18px;background:#080f21;border-top:1px solid #1b3158;color:#9eb8d8;font-size:12px}.space-foot-stats b{color:#e7fbff}.space-result{padding:22px;background:linear-gradient(130deg,#0b1733,#10294b)}.space-result-top span{font-size:10px;letter-spacing:.18em;color:#5cecff;font-weight:900}.space-result-top h3{margin:6px 0 18px;color:#fff}.space-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.space-result-grid>div{padding:13px;border:1px solid #294b75;border-radius:10px;background:#07142b}.space-result-grid strong{display:block;margin-top:7px;color:#7dffd2;font-size:22px}.space-result-actions{display:flex;gap:10px;margin-top:18px}
@media(max-width:680px){.space-feature-card{grid-template-columns:1fr}.space-feature-art{min-height:180px}.space-feature-copy{padding:20px}.space-game-heading{padding:17px;flex-direction:column}.space-controls{width:100%}.space-hud{grid-template-columns:repeat(3,minmax(0,1fr))}.space-input-row{grid-template-columns:1fr 1fr}.space-input-row label{grid-column:1/-1}.space-input-row input{grid-column:1/-1;grid-row:2}.space-input-row button{grid-column:2;grid-row:3}.space-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.space-arena-wrap canvas{height:420px}}
.game-history-card{margin-top:20px}.game-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-history-item{padding:15px;border:1px solid var(--border);border-radius:12px;background:var(--card)}.game-history-item>div:first-child{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.game-history-item small{color:var(--muted)}.game-history-metrics{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;font-size:12px;color:var(--muted)}.game-history-metrics b{color:var(--primary)}@media(max-width:620px){.game-history-grid{grid-template-columns:1fr}}

/* Three reference-inspired arcade games */
.arcade-page-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 30px;margin-bottom:22px;border:1px solid #c8e4ff;border-radius:22px;background:linear-gradient(120deg,#eef8ff,#dceeff 60%,#eafaff);color:#16365d}.arcade-page-intro h2{margin:7px 0 6px;font-size:clamp(1.5rem,3vw,2.1rem)}.arcade-page-intro p{margin:0;color:#496b91}.arcade-eyebrow{display:block;color:#1777ca;font-size:.72rem;font-weight:900;letter-spacing:.14em}.arcade-intro-orb{width:70px;height:70px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:2rem;color:#fff;background:radial-gradient(circle at 30% 25%,#8af4ff,#1976d2 65%,#132b67);box-shadow:0 0 28px #63baff80}.arcade-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.arcade-game-card{overflow:hidden;border:1px solid #cfe4f9;border-radius:22px;background:var(--card-bg,#fff);box-shadow:0 12px 32px #14558b12}.arcade-game-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr}.arcade-card-art{position:relative;min-height:230px;overflow:hidden;display:flex;align-items:center;justify-content:center;isolation:isolate}.arcade-game-card:first-child .arcade-card-art{min-height:300px}.space-art{background:radial-gradient(ellipse at 50% 110%,#1644a5,#080d26 66%,#02050d)}.space-art:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#d5faff 1px,transparent 1.5px);background-size:33px 29px;opacity:.55;z-index:-1}.racer-art{background:linear-gradient(160deg,#220d4b,#073e68 55%,#10102d)}.racer-art:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 40px,#43f5ff35 41px 43px),repeating-linear-gradient(0deg,transparent 0 30px,#f456df30 31px 32px);transform:perspective(240px) rotateX(22deg) scale(1.25);transform-origin:bottom}.ocean-art{background:radial-gradient(ellipse at 50% 20%,#18e5f0,#0865ca 56%,#04174e)}.ocean-art:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,transparent 0 4px,#c8ffff9c 5px,transparent 6px);background-size:44px 54px;opacity:.45}.arcade-art-icon{font-size:5.5rem;filter:drop-shadow(0 0 20px #48f5ff);z-index:1}.arcade-art-word{position:absolute;padding:7px 13px;border:1px solid currentColor;border-radius:10px;background:#050a24b8;color:#74ffb0;font-weight:900;letter-spacing:.08em;box-shadow:0 0 16px currentColor}.arcade-art-word.one{top:18%;left:12%;color:#ffe977}.arcade-art-word.two{top:28%;right:10%;color:#61f4ff}.arcade-art-word.three{bottom:16%;left:40%;color:#ff79dd}.arcade-card-copy{padding:24px;display:flex;flex-direction:column;align-items:flex-start}.arcade-card-copy h3{font-size:1.35rem;margin:9px 0}.arcade-card-copy p{color:var(--muted,#63748a);line-height:1.6;margin:0 0 16px}.arcade-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.arcade-tags span{border-radius:99px;background:#eaf5ff;color:#245b8d;padding:6px 10px;font-size:.75rem;font-weight:700}.arcade-launch{margin-top:auto}.arcade-stage{margin-top:24px;scroll-margin-top:20px}.arcade-engine{border-radius:18px;overflow:hidden;background:#070c1f;color:#eaf8ff;padding:18px;border:1px solid #2774a8;box-shadow:0 18px 55px #061f3e24}.arcade-engine-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.arcade-engine h2{margin:5px 0;font-size:clamp(1.2rem,2.5vw,1.8rem)}.arcade-engine p{color:#b5d4ef;margin:6px 0}.arcade-engine-actions{display:flex;gap:8px;flex-wrap:wrap}.arcade-hud{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:10px}.arcade-hud>div{padding:10px;border:1px solid #2878a9;border-radius:12px;background:linear-gradient(135deg,#10284a,#0b1531);box-shadow:inset 0 0 15px #26d9ff0a}.arcade-hud small,.arcade-hud strong{display:block}.arcade-hud small{font-size:.65rem;letter-spacing:.08em;color:#84b8d9}.arcade-hud strong{font-size:1.1rem;color:#7bffcf;margin-top:4px}.arcade-canvas-wrap{height:clamp(360px,55vw,540px);position:relative;border:1px solid #2b8ba9;border-radius:14px;overflow:hidden}.arcade-canvas-wrap canvas{width:100%;height:100%;display:block}.ocean-canvas-wrap{border-color:#26e3e6;box-shadow:inset 0 0 50px #19e8ff35}.racer-canvas-wrap{border-color:#ef4bdc;box-shadow:inset 0 0 50px #d52fff25}.arcade-paused{position:absolute;inset:0;display:grid;place-items:center;background:#02091bcc;backdrop-filter:blur(4px)}.arcade-paused[hidden]{display:none}.arcade-paused>div{padding:26px;border:1px solid #53e8ff;border-radius:16px;background:#07152df2;text-align:center}.arcade-type-row{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px 12px;border:1px solid #2878a9;border-radius:12px;background:#0b1830}.arcade-type-row label{font-size:.7rem;font-weight:900;letter-spacing:.1em;color:#75efff;white-space:nowrap}.arcade-type-row input{flex:1;min-width:80px;border:0;outline:0;background:transparent;color:#fff;font:700 1rem ui-monospace,monospace}.arcade-type-row input::placeholder{color:#6686a6}.arcade-type-row>span{color:#80ffc4;font-size:.8rem}.arcade-feedback{min-height:24px;padding:10px 2px;color:#9dfbd5;font-weight:700}.arcade-foot{display:flex;gap:20px;flex-wrap:wrap;color:#a7c6e4;font-size:.82rem}.arcade-foot b{color:#fff}.arcade-result{margin-top:16px;padding:16px;border:1px solid #35d5ee;border-radius:14px;background:#09182e}.arcade-result[hidden]{display:none}.arcade-result .space-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.arcade-result .space-result-grid>div{padding:12px;border-radius:10px;background:#102849}.arcade-result .space-result-grid small,.arcade-result .space-result-grid strong{display:block}.arcade-result .space-result-grid small{color:#8db8d8;font-size:.68rem}.arcade-result .space-result-grid strong{font-size:1.2rem;color:#76ffd0;margin-top:5px}.arcade-result .space-result-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){.arcade-game-grid{grid-template-columns:1fr}.arcade-game-card:first-child{grid-column:auto;display:block}.arcade-game-card:first-child .arcade-card-art{min-height:230px}.arcade-hud{grid-template-columns:repeat(3,minmax(0,1fr))}.arcade-engine-head{flex-direction:column}.arcade-canvas-wrap{height:420px}.arcade-type-row{flex-wrap:wrap}.arcade-type-row input{flex-basis:100%;order:3;padding:8px 0}.arcade-page-intro{padding:20px}.arcade-result .space-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* AG Typing Tutor Learn Academy: sky-blue professional course UI */
.learn-hub{display:flex;flex-direction:column;gap:20px;color:var(--text)}
.learn-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;border:1px solid #b7d9f4;border-radius:22px;background:radial-gradient(circle at 88% 10%,rgba(89,179,255,.28),transparent 32%),linear-gradient(125deg,#eaf6ff,#d8edff 62%,#eff8ff);box-shadow:0 14px 32px rgba(41,116,177,.10)}
.learn-kicker{display:block;color:#1670bd;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:7px}
.learn-hero h2{font-size:clamp(25px,3vw,36px);line-height:1.12;margin:0 0 10px;color:#153b60;letter-spacing:-.04em}
.learn-hero p{max-width:650px;line-height:1.65;color:#496b88;margin:0}
.learn-hero-stats{display:flex;flex-wrap:wrap;gap:22px;margin-top:22px}
.learn-hero-stats div{display:flex;flex-direction:column;gap:3px}.learn-hero-stats strong{font-size:23px;color:#1267b0}.learn-hero-stats span{font-size:11px;color:#5d7892}
.learn-hero-keyboard{width:130px;height:116px;flex:0 0 130px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border-radius:22px;background:linear-gradient(145deg,#1976d2,#43a6ef);box-shadow:inset 0 1px 0 #ffffff8c,0 12px 24px #267dc43b;font-size:40px;color:white}.learn-hero-keyboard small{text-align:center;font-size:10px;line-height:1.4;font-weight:700;color:#eff8ff}
.learn-layout{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:18px;align-items:start}
.learn-curriculum,.learn-workbench{border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 8px 24px rgba(35,94,143,.06);overflow:hidden}
.learn-curriculum{padding:16px 12px;position:sticky;top:16px}.learn-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:4px 5px 16px}.learn-panel-heading h3{font-size:20px;margin:0 0 5px;color:var(--text)}.learn-panel-heading p{font-size:12px;line-height:1.55;color:var(--muted);margin:0}.learn-path-count,.learn-level-badge{border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;color:#1769b2;background:#e3f2ff;border:1px solid #c4e2fa;white-space:nowrap}
.learn-course-item{width:100%;display:flex;align-items:center;gap:10px;padding:10px 9px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);text-align:left;cursor:pointer;margin:2px 0}.learn-course-item:hover{background:#eff7ff}.learn-course-item.selected{background:#e4f2ff;border-color:#b8daf5}.learn-course-number{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf4fb;color:#5a7894;font-size:11px;font-weight:800;flex:0 0 30px}.learn-course-item.selected .learn-course-number{background:#1976d2;color:white}.learn-course-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.learn-course-copy strong{font-size:11px;line-height:1.35}.learn-course-copy small{font-size:10px;color:var(--muted)}.learn-course-chevron{font-size:22px;color:#77a6cc}.learn-overall-progress{border-top:1px solid var(--border);margin:12px 3px 0;padding:15px 5px 3px}
.learn-progress-track{height:6px;border-radius:99px;background:#e0edf7;overflow:hidden;margin-top:9px}.learn-progress-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2196f3,#17a6a6);transition:width .25s}.learn-progress-label{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;margin-top:7px}.learn-progress-label strong{color:#1670bd}
.learn-workbench{padding:22px}.learn-workbench>.learn-panel-heading{padding:0 0 14px}.learn-workbench>.learn-panel-heading h3{font-size:24px}.learn-tip{display:flex;gap:10px;padding:12px 14px;border:1px solid #c7e5fb;background:#f0f8ff;border-radius:12px;color:#355d7e;margin-bottom:17px}.learn-tip>span{font-size:18px}.learn-tip p{font-size:12px;line-height:1.6;margin:0}
.learn-stage-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.learn-stage-tab{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f7fbff;color:var(--text);text-align:left;cursor:pointer;min-width:0}.learn-stage-tab:disabled{opacity:.48;cursor:not-allowed}.learn-stage-tab>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dcecf9;color:#1769b2;font-size:11px;font-weight:800}.learn-stage-tab strong{font-size:12px}.learn-stage-tab small{font-size:10px;color:var(--muted)}.learn-stage-tab.active{border-color:#3996e4;background:#e7f4ff;box-shadow:0 0 0 2px #d4eaff}.learn-stage-tab.passed>span{background:#168765;color:white}
.learn-exercise{border:1px solid var(--border);border-radius:15px;padding:17px;background:linear-gradient(180deg,#fbfdff,#f4faff)}.learn-exercise-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.learn-exercise-top h4{margin:0;font-size:19px;color:var(--text)}.learn-target-badge{font-size:10px;font-weight:800;color:#1670bd;background:#e2f2ff;border:1px solid #c1e1f9;border-radius:999px;padding:7px 10px}.learn-instruction{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 14px}.learn-passage{min-height:84px;padding:18px;border-radius:12px;border:1px solid #c8e1f6;background:#fff;color:#294762;font-size:17px;line-height:1.9;letter-spacing:.01em;overflow-wrap:anywhere;box-shadow:inset 0 1px 4px #1a5b8a0c}.learn-passage .char-correct{color:#16804b;background:#e5f8ed;border-radius:3px}.learn-passage .char-incorrect{color:#b42318;background:#ffe7e5;border-radius:3px;text-decoration:underline;text-decoration-color:#d92d20}.learn-passage .char-current{border-left:2px solid #1976d2;background:#e4f2ff;animation:learn-caret 1s step-end infinite}.learn-live-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:13px 0}.learn-live-stats>div{padding:10px;border-radius:10px;background:#eaf5ff;border:1px solid #d2e8fa;display:flex;flex-direction:column;gap:4px}.learn-live-stats small{font-size:10px;color:#5c7b98}.learn-live-stats strong{font-size:18px;color:#1769b2}.learn-typing-input{width:100%;resize:vertical;min-height:82px;border:1px solid #b8d8f1;border-radius:11px;background:#fff;padding:13px;color:#17324d;font:15px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;outline:none}.learn-typing-input:focus{border-color:#2688d8;box-shadow:0 0 0 3px #dceeff}.learn-keyboard-wrap{margin-top:15px;padding:12px;border-radius:12px;background:#eaf4fd;border:1px solid #d0e5f6}.learn-keyboard-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.learn-keyboard-heading strong{font-size:12px}.learn-keyboard-heading span{font-size:10px;color:var(--muted)}.touch-keyboard{display:flex;flex-direction:column;gap:5px;align-items:center}.keyboard-row{display:flex;justify-content:center;gap:4px;width:100%}.virtual-key{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;height:28px;padding:0 3px;border-radius:5px;border:1px solid #bcd1e3;background:#fff;color:#34526d;font-size:10px;font-weight:700;box-shadow:0 2px 0 #b8cfe1}.virtual-key.key-wide{flex:1.5;font-size:8px}.row-4 .virtual-key{height:25px;font-size:8px}.virtual-key.finger-pinky{border-bottom:3px solid #e69ab0}.virtual-key.finger-ring{border-bottom:3px solid #e7bf72}.virtual-key.finger-middle{border-bottom:3px solid #80c8a5}.virtual-key.finger-index{border-bottom:3px solid #7daee9}.virtual-key.key-active{background:#176fbd!important;color:white;border-color:#176fbd;box-shadow:0 0 0 3px #a9d7ff,0 2px 0 #12548f;transform:translateY(-1px)}.keyboard-legend{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:9px}.keyboard-legend span{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:4px}.legend-finger{display:inline-block;width:8px;height:8px;border-radius:2px}.legend-finger.finger-pinky{background:#e69ab0}.legend-finger.finger-ring{background:#e7bf72}.legend-finger.finger-middle{background:#80c8a5}.legend-finger.finger-index{background:#7daee9}
.learn-result-message{padding:11px 13px;border-radius:10px;background:#edf6ff;color:#315e83;font-size:12px;line-height:1.5;margin:12px 0}.learn-result-message.passed{background:#e7f8ee;color:#166534}.learn-result-message.failed{background:#fff0ed;color:#a12b20}.learn-exercise-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.learn-exercise-actions button:disabled{opacity:.45;cursor:not-allowed}.learn-stage-history{font-size:10px;color:var(--muted);margin-top:12px}.learn-bottom-nav{display:flex;justify-content:space-between;gap:10px;margin-top:17px}.learn-bottom-nav button:disabled{opacity:.4;cursor:not-allowed}
@keyframes learn-caret{50%{border-left-color:transparent}}
@media(max-width:900px){.learn-layout{grid-template-columns:1fr}.learn-curriculum{position:static}.learn-course-item{display:inline-flex;width:calc(50% - 5px);vertical-align:top}.learn-overall-progress{margin-top:10px}}
@media(max-width:560px){.learn-hero{padding:20px;align-items:flex-start}.learn-hero-keyboard{width:76px;height:76px;flex-basis:76px;font-size:27px;border-radius:16px}.learn-hero-keyboard small{display:none}.learn-hero-stats{gap:12px}.learn-hero-stats strong{font-size:19px}.learn-workbench{padding:14px}.learn-workbench>.learn-panel-heading h3{font-size:20px}.learn-course-item{width:100%}.learn-stage-tab{padding:9px}.learn-stage-tab strong{font-size:10px}.learn-stage-tab small{font-size:9px}.learn-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.learn-passage{font-size:15px;padding:13px}.virtual-key{height:24px;font-size:8px}.virtual-key.key-wide{font-size:7px}.learn-exercise-top{align-items:flex-start;flex-direction:column}.learn-bottom-nav button{font-size:11px;padding:10px}}

/* Learn Academy: tutor-style sound controls, hands guide and exercise flow */
.learn-keyboard-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sound-toggle{border:1px solid #9cccf0;background:#fff;color:#1769b2;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;cursor:pointer}.sound-toggle:hover{background:#dcefff}.learn-hands-guide{display:flex;align-items:center;justify-content:space-around;gap:12px;padding:12px 6px 2px;color:#526e87}.hand-icon{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:30px;filter:drop-shadow(0 3px 2px #2b6ea322)}.hand-icon small{font-size:10px;font-weight:700}.hand-guide-note{max-width:230px;text-align:center;font-size:11px;line-height:1.5}.learn-exercise-actions .primary-button{min-width:190px}.learn-passage{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(16px,1.8vw,22px);font-weight:650;letter-spacing:.02em}.learn-passage .char-current{border-left:2px solid #1976d2;background:#d9edff;box-shadow:0 0 0 2px #d9edff}.learn-passage .char-incorrect{background:#ffe2e0;color:#b42318;text-decoration:underline;text-decoration-color:#d92d20}.learn-passage .char-correct{background:#dff8e9;color:#087443}.learn-keyboard-heading{align-items:flex-start}.learn-course-item:focus-visible,.learn-stage-tab:focus-visible,.sound-toggle:focus-visible{outline:3px solid #69b7fa;outline-offset:2px}
@media(max-width:560px){.learn-keyboard-controls{justify-content:flex-start}.learn-hands-guide{gap:5px}.hand-icon{font-size:24px}.hand-guide-note{font-size:9px}.learn-exercise-actions .primary-button{width:100%}}

/* Learn Academy: bilingual, full-screen, finger-led tutor */
.learn-bilingual-instruction{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 14px}
.learn-bilingual-instruction>div{border:1px solid #b8d9f4;background:linear-gradient(135deg,#f4faff,#e7f3ff);border-radius:13px;padding:13px 15px}
.learn-bilingual-instruction strong{display:block;font-size:11px;letter-spacing:.07em;color:#1769b2;margin-bottom:6px}
.learn-bilingual-instruction p{font-size:13px;line-height:1.65;margin:0;color:#274863}
.learn-practice-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin:8px 0 12px;border-radius:10px;background:#e5f2ff;color:#24567e;font-size:12px}
.learn-practice-toolbar .secondary-button{padding:8px 12px}
.learn-hands-guide .hand-icon b{font-size:11px;color:#1769b2;background:#e6f3ff;border-radius:6px;padding:4px 7px}
.learn-finger-map{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:10px}
.learn-finger-map span{font-size:10px;font-weight:700;padding:6px 8px;border-radius:7px;background:#fff;border:1px solid #d3e5f5;color:#34526d}
.virtual-key{position:relative}
.key-finger-badge{position:absolute;right:3px;top:1px;font-size:7px;line-height:1;color:#5c7590;opacity:.9}
.virtual-key.key-active .key-finger-badge{color:#fff}
.learn-focus-mode{position:fixed!important;z-index:99999;inset:0;width:100vw;height:100dvh;overflow:auto;background:#eaf5ff;padding:clamp(12px,2vw,28px);box-sizing:border-box}
.learn-focus-mode .learn-hero{display:none}
.learn-focus-mode .learn-layout{display:block;max-width:1400px;margin:0 auto}
.learn-focus-mode .learn-curriculum{display:none}
.learn-focus-mode .learn-workbench{width:100%;min-height:calc(100dvh - 24px);padding:clamp(14px,2vw,28px);overflow:visible}
.learn-focus-mode .learn-exercise{max-width:1200px;margin:0 auto}
.learn-focus-mode .learn-passage{font-size:clamp(24px,3vw,42px);min-height:120px;padding:clamp(18px,3vw,34px);line-height:1.8}
.learn-focus-mode .learn-typing-input{font-size:clamp(20px,2vw,28px);min-height:100px}
.learn-focus-mode .virtual-key{height:clamp(34px,4vh,48px);font-size:clamp(10px,1vw,15px)}
.learn-focus-mode .virtual-key.key-wide{font-size:clamp(8px,.8vw,12px)}
.learn-focus-mode .learn-panel-heading h3{font-size:clamp(25px,3vw,38px)}
.learn-focus-mode .learn-stage-tabs{max-width:1200px;margin:0 auto 15px}
.learn-focus-mode .learn-bottom-nav{max-width:1200px;margin:15px auto}
@media(max-width:700px){.learn-bilingual-instruction{grid-template-columns:1fr}.learn-practice-toolbar{align-items:flex-start}.learn-focus-mode .learn-workbench{padding:10px}.learn-focus-mode .learn-passage{font-size:21px}.learn-focus-mode .virtual-key{height:25px}.learn-finger-map{gap:5px}}

/* Learn Tutor: continuous drill + prominent finger coach */
.learn-passage { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; line-height: 1.9; font-size: clamp(18px, 2vw, 25px); }
.learn-typing-input { min-height: 125px; font-size: 20px; line-height: 1.7; }
.learn-hands-guide { align-items: stretch; }
.hand-guide-note { display:flex; align-items:center; justify-content:center; min-height:76px; padding:14px 20px; font-size:clamp(18px,2.3vw,28px); font-weight:900; line-height:1.4; text-align:center; border:2px solid var(--accent, #2f80ed); border-radius:16px; background:rgba(47,128,237,.12); }
.virtual-key.key-active { transform:translateY(-3px) scale(1.12); outline:4px solid #ffb703; box-shadow:0 0 0 7px rgba(255,183,3,.25), 0 0 22px rgba(255,183,3,.75); z-index:2; }
.virtual-key.key-active:after { content:none !important; display:none !important; }
.learn-bilingual-instruction { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
@media(max-width:700px){.learn-bilingual-instruction{grid-template-columns:1fr}.learn-hands-guide{display:grid;grid-template-columns:1fr}.hand-guide-note{order:-1}}

/* AG Learn Academy: immersive continuous-line typing mode */
.learn-home-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 auto 14px;max-width:1200px;color:var(--muted);font-size:12px;font-weight:800}
.learn-focus-mode .learn-workbench{max-width:1400px;margin:0 auto}
.learn-focus-mode .learn-passage{white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;overflow-wrap:normal!important;max-height:none!important;scrollbar-width:thin}
.learn-focus-mode .learn-typing-input{white-space:pre!important;overflow-x:auto!important;overflow-y:hidden!important;overflow-wrap:normal!important;resize:none!important;min-height:62px!important;height:62px!important;line-height:1.7!important}
.learn-finger-map{display:none!important}
.learn-hands-guide .hand-guide-note:before{content:'';display:inline-block;width:11px;height:11px;border-radius:50%;background:#e11d48;box-shadow:0 0 0 4px #ffe4e6;margin-right:8px;vertical-align:middle;animation:learn-finger-pulse 1s infinite}
@keyframes learn-finger-pulse{50%{box-shadow:0 0 0 7px #ffe4e6}}
.learn-focus-mode .learn-bilingual-instruction{margin-top:8px}
.learn-focus-mode .learn-keyboard-wrap{max-width:1100px;margin:12px auto}
.learn-focus-mode .learn-exercise-actions{max-width:1200px;margin:0 auto}
.learn-focus-mode .learn-result-message{max-width:1200px;margin:12px auto}

/* Learn UI refinement: compact stage row, keyboard in the top header, direct finger cue */
.learn-hero p,.learn-tip,.learn-bilingual-instruction,.learn-finger-map,.hand-guide-note{display:none!important}
.learn-stage-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 12px}
.learn-stage-tab{padding:7px 9px;display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:7px;row-gap:1px;border-radius:9px}
.learn-stage-tab>span{grid-row:1/3;width:20px;height:20px;font-size:10px}
.learn-stage-tab strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.learn-stage-tab small{font-size:9px}
.learn-home-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.learn-header-keyboard{border:1px solid #d0e1ef;background:#f7fbff;border-radius:12px;padding:9px 12px;margin:0 0 14px}
.learn-header-keyboard .learn-keyboard-heading{margin-bottom:7px}
.learn-header-keyboard .learn-keyboard-heading strong{font-size:12px}
.learn-header-keyboard .touch-keyboard{max-width:820px;margin:auto}
.learn-header-keyboard .virtual-key{height:23px;font-size:9px}
.learn-header-keyboard .row-4 .virtual-key{height:21px}
.learn-finger-illustration{display:flex;align-items:center;justify-content:center;gap:48px;padding:10px 0 2px;min-height:72px}
.finger-hand{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:5px;width:155px;height:58px;padding:0 7px 0;background:#f0d7c4;border:1px solid #d8b59c;border-radius:28px 28px 15px 15px}
.finger-hand .finger{display:block;width:20px;height:39px;border-radius:12px 12px 8px 8px;background:#f0d7c4;border:1px solid #d8b59c;position:relative;bottom:15px;transition:background .12s,box-shadow .12s}
.finger-hand .f-pinky{height:28px}.finger-hand .f-ring{height:40px}.finger-hand .f-middle{height:48px}.finger-hand .f-index{height:42px}.finger-hand .f-thumb{height:25px;width:23px;transform:rotate(-42deg);transform-origin:bottom center;bottom:0;margin-left:-1px}
.finger-hand .finger-active{background:#ffe2e2;border:2px solid #dc2626;box-shadow:0 0 0 3px #ef444455,0 0 13px #ef444477}.finger-hand .finger-active::after{content:"";position:absolute;width:13px;height:13px;left:50%;top:-7px;transform:translateX(-50%);border-radius:50%;background:#ef2020;border:2px solid #fff;box-shadow:0 0 0 1px #dc2626}
.finger-dot{display:none;position:absolute;width:15px;height:15px;background:#ef2020;border:3px solid white;border-radius:50%;box-shadow:0 0 0 2px #dc2626;top:-7px;left:22px;z-index:3}
.finger-dot.visible{display:block}
.right-hand{transform:scaleX(-1)}
.learn-workbench .learn-exercise{padding:13px}
.learn-workbench .learn-exercise-top{margin-bottom:8px}
.learn-workbench .learn-passage{white-space:nowrap;overflow:hidden;text-overflow:clip;min-height:54px;padding:12px 14px;line-height:1.5}
.learn-workbench .learn-typing-input{min-height:50px;max-height:50px;resize:none;white-space:nowrap;overflow-x:auto;overflow-y:hidden}
.learn-focus-mode{width:100%;max-width:none;min-height:100vh}
@media(max-width:650px){.learn-stage-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.learn-stage-tab{padding:6px 4px;column-gap:4px}.learn-stage-tab strong{font-size:9px}.learn-stage-tab small{font-size:8px}.learn-finger-illustration{gap:14px}.finger-hand{transform:scale(.82);transform-origin:center}.finger-hand.right-hand{transform:scaleX(-1) scale(.82)}}

/* Real hand photo guide + word counter, based on the supplied hand image */
.learn-finger-illustration{display:grid!important;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:16px;padding:8px 12px 2px!important;min-height:0!important;background:linear-gradient(180deg,#f8fbff,#edf4fb);border-radius:10px;margin-top:8px}
.learn-hand-image-wrap{position:relative;width:100%;max-width:760px;margin:0 auto;line-height:0}
.learn-real-hands{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;object-position:center;}
.learn-finger-marker{position:absolute;left:35.5%;top:10%;width:clamp(17px,2.1vw,27px);height:clamp(17px,2.1vw,27px);transform:translate(-50%,-50%);border-radius:50%;background:#ef2020;border:3px solid #fff;box-shadow:0 0 0 2px #dc2626,0 0 18px #ef202099;z-index:2;pointer-events:none;animation:learn-finger-pulse 1s infinite}
.learn-word-count{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#dcecff;border:1px solid #b9d6f6;border-radius:12px;padding:10px 8px;color:#163b65;min-width:0}
.learn-word-count small{font-size:10px;font-weight:800;letter-spacing:.08em;color:#42658a}
.learn-word-count strong{font-size:clamp(25px,3vw,38px);line-height:1.15;color:#1559b7;font-variant-numeric:tabular-nums}
.learn-word-count span{font-size:11px;color:#42658a}
.learn-word-count hr{width:80%;border:0;border-top:1px solid #b9d6f6;margin:9px 0}
/* 3D tactile keyboard keys and clearly labelled special keys */
.learn-header-keyboard .virtual-key{background:linear-gradient(180deg,#ffffff 0%,#e6edf5 100%);border:1px solid #a9bacb;border-bottom:3px solid #8b9eaf;border-radius:5px;box-shadow:0 1px 0 #fff inset,0 2px 3px #172c431c;color:#243b53;font-weight:750;text-shadow:0 1px #fff;transition:transform .08s,box-shadow .08s,background .08s}
.learn-header-keyboard .virtual-key.key-active{background:linear-gradient(180deg,#3888f4,#1458b6)!important;color:#fff!important;border-color:#0c4c9e!important;border-bottom-color:#083b7b!important;box-shadow:0 0 0 2px #9cc8ff,0 2px 5px #123f7b55!important;transform:translateY(1px)}
.learn-header-keyboard .virtual-key.key-wide{background:linear-gradient(180deg,#e5efff,#c8dcf6);color:#24496f;font-size:clamp(8px,.8vw,12px)}
.learn-header-keyboard .row-2 .virtual-key[data-key="ENTER"],.learn-header-keyboard .row-4 .virtual-key[data-key=" "]{font-weight:900;letter-spacing:.02em}
.learn-header-keyboard .row-4 .virtual-key[data-key=" "]{min-width:30%;}
@media(max-width:650px){.learn-finger-illustration{grid-template-columns:minmax(0,1fr) 76px;gap:7px;padding:6px!important}.learn-real-hands{max-height:145px}.learn-word-count{padding:7px 3px}.learn-word-count small{font-size:8px}.learn-word-count span{font-size:9px}.learn-word-count strong{font-size:24px}.learn-finger-marker{width:16px;height:16px;border-width:2px}}
.learn-hand-image-wrap{aspect-ratio:2/1;max-height:230px}
.learn-real-hands{width:100%;height:100%;max-height:none;object-fit:contain}

/* Reference-matched Learn screen: full viewport, compact stages, hands below keyboard */
.learn-reference-layout{position:fixed!important;inset:0!important;z-index:99999!important;width:100vw!important;height:100vh!important;height:100dvh!important;overflow:hidden!important;display:grid!important;grid-template-columns:clamp(230px,19.5vw,300px) minmax(0,1fr)!important;gap:0!important;padding:0!important;background:#f4f7fc!important;color:#14243b!important;font-family:Inter,system-ui,-apple-system,sans-serif!important}
.learn-reference-layout .learn-hero{display:none!important}
.learn-reference-layout .learn-curriculum{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;overflow:auto!important;background:#f8faff!important;border-right:1px solid #dce5f0!important;padding:14px 12px!important;gap:12px!important;border-radius:0!important}
.learn-reference-layout .learn-brand{display:flex;align-items:center;gap:10px;padding:0 6px 12px;border-bottom:1px solid #e3eaf3;font-size:16px;color:#15243a}
.learn-reference-layout .learn-brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#1769df;color:#fff;font-weight:900}
.learn-reference-layout .learn-home-link{display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:8px 10px;text-align:left;font-size:14px;font-weight:700;color:#35465e;cursor:pointer}
.learn-reference-layout .learn-curriculum h2{font-size:20px;margin:0;padding:0 8px}
.learn-reference-layout .learn-course-list{display:flex;flex-direction:column;gap:3px;overflow:auto}
.learn-reference-layout .learn-course-item{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;text-align:left!important;width:100%!important;min-height:39px!important;padding:7px 8px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#60718a!important;box-shadow:none!important}
.learn-reference-layout .learn-course-item.selected{background:#dcecff!important;color:#075fc6!important}
.learn-reference-layout .learn-course-number{font-size:15px;font-weight:800}
.learn-reference-layout .learn-course-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.learn-reference-layout .learn-course-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.learn-reference-layout .learn-course-copy small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.learn-reference-layout .learn-course-chevron{font-size:11px;white-space:nowrap}
.learn-reference-layout .learn-overall-progress{margin-top:auto;padding:12px;border:1px solid #e1eaf4;border-radius:12px;background:#fff}
.learn-reference-layout .learn-overall-progress small{display:block;margin-top:8px;color:#687b93;font-size:11px}
.learn-reference-layout .learn-progress-track{height:8px;border-radius:99px;background:#e7edf5;overflow:hidden}
.learn-reference-layout .learn-progress-track span{display:block;height:100%;border-radius:99px;background:#19c653}
.learn-reference-layout .learn-reference-main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}
.learn-reference-layout .learn-reference-topbar{display:flex;align-items:center;gap:12px;min-height:65px;padding:9px 16px;border-bottom:1px solid #e3eaf2;background:#fff}
.learn-reference-layout .learn-breadcrumb{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:13px;color:#33445c;min-width:0}
.learn-reference-layout .learn-breadcrumb strong{max-width:190px;overflow:hidden;text-overflow:ellipsis}
.learn-reference-layout .learn-stage-tabs{display:flex!important;flex:1;min-width:0;gap:5px;margin:0!important;max-width:none!important}
.learn-reference-layout .learn-stage-tab{display:flex!important;flex:1;justify-content:center;align-items:center;gap:7px;min-width:0;padding:9px 10px!important;border:1px solid #e0e7f0!important;border-radius:9px!important;background:#f4f7fb!important;color:#26374e!important;white-space:nowrap}
.learn-reference-layout .learn-stage-tab>span{display:none!important}
.learn-reference-layout .learn-stage-tab strong{font-size:12px!important;overflow:hidden;text-overflow:ellipsis}
.learn-reference-layout .learn-stage-tab small{display:none!important}
.learn-reference-layout .learn-stage-tab.active{background:#1478f8!important;border-color:#1478f8!important;color:#fff!important}
.learn-reference-layout .learn-stage-tab:disabled{opacity:.45}
.learn-reference-layout .learn-focus-button{width:34px;height:34px;flex:0 0 34px;border:1px solid #e1e8f0;border-radius:9px;background:#fff;color:#52647c;cursor:pointer}
.learn-reference-layout .learn-reference-body{display:grid;grid-template-columns:minmax(0,1fr) clamp(245px,21vw,330px);gap:0;min-height:0;flex:1;overflow:hidden}
.learn-reference-layout .learn-reference-practice{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;overflow:hidden;padding:16px 18px 12px}
.learn-reference-layout .learn-passage{flex:0 0 auto;display:block;white-space:nowrap!important;overflow:hidden!important;overflow-wrap:normal!important;text-overflow:clip;max-height:none!important;min-height:96px!important;padding:23px 18px!important;border:1px solid #d7eaf9!important;border-radius:12px!important;background:linear-gradient(110deg,#eff8ff,#f8fcff)!important;color:#8494a7!important;font-size:clamp(19px,2.1vw,31px)!important;line-height:1.65!important;letter-spacing:.055em!important}
.learn-reference-layout .learn-passage .char-current{color:#1478f8!important;font-weight:900;border-bottom:3px solid #1478f8}
.learn-reference-layout .learn-passage .char-correct{color:#647b95}
.learn-reference-layout .learn-passage .char-incorrect{background:#ffe0e0;color:#c92032}
.learn-reference-layout .learn-typing-input{flex:0 0 60px!important;box-sizing:border-box!important;width:100%!important;min-height:60px!important;height:60px!important;max-height:60px!important;padding:14px 18px!important;border:2px solid #3186f5!important;border-radius:9px!important;background:#fff!important;color:#1c2d44!important;font-size:20px!important;line-height:1.4!important;white-space:pre!important;overflow-x:auto!important;overflow-y:hidden!important;resize:none!important;outline:none!important}
.learn-reference-layout .learn-header-keyboard{display:block!important;flex:0 0 auto;border:0!important;background:transparent!important;padding:0!important;margin:0!important;border-radius:0!important}
.learn-reference-layout .learn-header-keyboard .touch-keyboard{width:100%!important;max-width:none!important;margin:0!important;gap:3px!important}
.learn-reference-layout .learn-header-keyboard .keyboard-row{display:flex;gap:3px;margin:3px 0}
.learn-reference-layout .learn-header-keyboard .virtual-key{height:clamp(32px,5.3vh,51px)!important;flex:1;min-width:0!important;display:flex;align-items:center;justify-content:center;position:relative;font-size:clamp(9px,.95vw,15px)!important;border-radius:6px!important}
.learn-reference-layout .learn-header-keyboard .virtual-key.key-wide{flex:1.55;font-size:clamp(8px,.8vw,12px)!important}
.learn-reference-layout .learn-header-keyboard .row-4 .virtual-key[data-key=" "]{flex:5}
.learn-reference-layout .learn-header-keyboard .keyboard-legend{display:none!important}
.learn-reference-layout .learn-header-keyboard .key-finger-badge{display:none!important}
.learn-reference-layout .learn-finger-illustration{display:flex!important;flex:1 1 auto;min-height:120px!important;max-height:340px!important;justify-content:center!important;align-items:center!important;margin:0!important;padding:4px 8px 0!important;background:transparent!important;border-radius:0!important;overflow:hidden}
.learn-reference-layout .learn-hand-image-wrap{position:relative!important;width:min(100%,900px)!important;height:100%!important;max-height:none!important;aspect-ratio:2/1!important;margin:0 auto!important;line-height:0}
.learn-reference-layout .learn-real-hands{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important}
.learn-reference-layout .learn-finger-marker{width:clamp(17px,2vw,27px)!important;height:clamp(17px,2vw,27px)!important;background:#ef2020!important;border:3px solid #fff!important;box-shadow:0 0 0 2px #dc2626,0 0 18px #ef202099!important}
.learn-reference-layout .learn-result-message{flex:0 0 auto;min-height:18px;margin:0!important;padding:0 4px!important;border:0!important;background:transparent!important;font-size:11px!important;color:#60718a!important}
.learn-reference-layout .learn-exercise-actions{display:flex;gap:8px;justify-content:flex-end;margin:0!important}
.learn-reference-layout .learn-exercise-actions button{padding:8px 14px!important;font-size:12px!important}
.learn-reference-layout .learn-stage-history{display:none!important}
.learn-reference-layout .learn-reference-stats{display:flex;flex-direction:column;gap:10px;min-width:0;overflow:auto;padding:12px;border-left:1px solid #e4ebf3;background:#fbfcff}
.learn-reference-layout .learn-stat-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:14px 15px;border:1px solid #e0e9f3;border-radius:12px;background:#fff;box-shadow:0 1px 2px #1b38550a}
.learn-reference-layout .learn-stat-title{display:flex;align-items:center;gap:9px;font-size:13px;color:#63758c}
.learn-reference-layout .learn-stat-title:first-letter{font-size:19px;color:#1678ef}
.learn-reference-layout .learn-stat-title.green{color:#60758a}.learn-reference-layout .learn-stat-title.green:first-letter{color:#20b65a}
.learn-reference-layout .learn-stat-title.red:first-letter{color:#ef4444}.learn-reference-layout .learn-stat-title.blue:first-letter{color:#1678ef}
.learn-reference-layout .learn-stat-card>strong{padding-left:25px;font-size:clamp(22px,2vw,31px);line-height:1.15;color:#0f2039;font-variant-numeric:tabular-nums}
.learn-reference-layout .learn-time-card{min-height:90px;padding-right:54px}
.learn-reference-layout .learn-time-card>strong{font-size:30px}
.learn-reference-layout #learn-pause{position:absolute;right:13px;top:22px;width:38px;height:38px;border:3px solid #e0e6ef;border-radius:50%;background:#fff;color:#52647b;font-size:16px}
.learn-reference-layout .learn-stat-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.learn-reference-layout .learn-stat-pair .learn-stat-card{padding:12px 10px}
.learn-reference-layout .learn-stat-pair .learn-stat-card>strong{padding-left:24px;font-size:26px}
.learn-reference-layout .learn-progress-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px}
.learn-reference-layout .learn-progress-card .learn-progress-track{height:11px}
.learn-reference-layout .learn-progress-card>strong{font-size:12px;padding:0}
.learn-reference-layout .learn-errors-card{display:none}
.learn-reference-layout .learn-home-row,.learn-reference-layout .learn-panel-heading,.learn-reference-layout .learn-exercise-top,.learn-reference-layout .learn-live-stats,.learn-reference-layout .learn-bottom-nav{display:none!important}
@media(max-width:1050px){.learn-reference-layout{grid-template-columns:205px minmax(0,1fr)!important}.learn-reference-layout .learn-reference-body{grid-template-columns:minmax(0,1fr) 220px}.learn-reference-layout .learn-reference-topbar{padding:8px}.learn-reference-layout .learn-breadcrumb{display:none}}
@media(max-width:760px){.learn-reference-layout{grid-template-columns:150px minmax(0,1fr)!important}.learn-reference-layout .learn-reference-body{grid-template-columns:minmax(0,1fr)}.learn-reference-layout .learn-reference-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px;border-left:0;border-top:1px solid #e4ebf3;gap:5px}.learn-reference-layout .learn-stat-card{padding:7px}.learn-reference-layout .learn-stat-title{font-size:10px}.learn-reference-layout .learn-stat-card>strong{font-size:18px;padding-left:0}.learn-reference-layout .learn-time-card{min-height:55px}.learn-reference-layout .learn-time-card>strong{font-size:18px}.learn-reference-layout #learn-pause{display:none}.learn-reference-layout .learn-stat-pair{gap:5px}.learn-reference-layout .learn-reference-practice{padding:8px;gap:6px}.learn-reference-layout .learn-finger-illustration{min-height:70px!important}.learn-reference-layout .learn-real-hands{object-fit:contain!important}.learn-reference-layout .learn-stage-tab{padding:6px 3px!important}.learn-reference-layout .learn-stage-tab strong{font-size:9px!important}}


/* Learn practice: keep the target and the live typing line clearly centred. */
.learn-reference-layout .learn-passage{ text-align:center!important; scroll-behavior:smooth!important; padding-left:24px!important; padding-right:24px!important; color:#657b94!important; }
.learn-reference-layout .learn-passage .char-current{ color:#1478f8!important; background:#e4f1ff!important; border-bottom:3px solid #1478f8!important; border-radius:3px 3px 0 0!important; }
.learn-reference-layout .learn-typing-input{ text-align:center!important; font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important; letter-spacing:.025em!important; padding-left:24px!important; padding-right:24px!important; }
.learn-reference-layout .learn-typing-input::placeholder{ text-align:center!important; color:#98a5b5!important; opacity:1!important; }
.learn-reference-layout .learn-typing-input:focus{ box-shadow:0 0 0 3px #dbeafe!important; }
.learn-reference-layout .learn-result-message:empty{ display:none!important; }

/* Final alignment correction: marker percentages now map to the full hand image itself. */
.learn-reference-layout .learn-finger-illustration{flex:1 1 auto!important;min-height:190px!important;max-height:360px!important;overflow:visible!important;}
.learn-reference-layout .learn-hand-image-wrap{position:relative!important;width:min(100%,700px)!important;max-width:700px!important;height:auto!important;aspect-ratio:2/1!important;max-height:none!important;flex:0 1 700px!important;line-height:0!important;overflow:visible!important;}
.learn-reference-layout .learn-real-hands{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:fill!important;object-position:center!important;}
.learn-reference-layout .learn-finger-marker{position:absolute!important;transform:translate(-50%,-50%)!important;z-index:5!important;width:clamp(20px,2.2vw,29px)!important;height:clamp(20px,2.2vw,29px)!important;}
.learn-reference-layout .learn-passage{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-weight:750!important;letter-spacing:.025em!important;}
.learn-reference-layout .learn-typing-input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-weight:500!important;letter-spacing:.025em!important;font-size:clamp(18px,1.6vw,22px)!important;}
@media(max-width:760px){.learn-reference-layout .learn-finger-illustration{min-height:135px!important}.learn-reference-layout .learn-hand-image-wrap{width:min(100%,500px)!important}}

/* Learn-only: remove the visible typing box. The highlighted target line becomes the live typing surface. */
.learn-reference-layout .learn-typing-input-proxy{
  position:fixed!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;min-height:1px!important;max-height:1px!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;
}
.learn-reference-layout .learn-passage.learn-direct-typing{cursor:text!important;outline:none!important;user-select:none!important;min-height:96px!important;}
.learn-reference-layout .learn-passage.learn-direct-typing:focus-visible{box-shadow:0 0 0 3px #dbeafe!important;}

/* Learn completion report modal */
.learn-completion-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(12,28,48,.58);backdrop-filter:blur(5px)}
.learn-completion-modal[hidden]{display:none!important}
.learn-completion-card{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border:1px solid #d9e7f5;border-radius:22px;box-shadow:0 24px 80px rgba(5,25,50,.28);padding:28px;text-align:center;color:#172b45}
.learn-completion-symbol{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:32px;font-weight:900}
.learn-completion-card h2{margin:0 0 8px;font-size:27px;letter-spacing:-.03em}
.learn-completion-subtitle{margin:0 0 20px;color:#667b95;font-size:13px}
.learn-completion-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.learn-completion-metrics>div{padding:14px 8px;border:1px solid #e0eaf5;border-radius:12px;background:#f7fbff;display:flex;flex-direction:column;gap:6px}
.learn-completion-metrics small{font-size:11px;color:#71839a}.learn-completion-metrics strong{font-size:23px;color:#153e70;font-variant-numeric:tabular-nums}
.learn-completion-note{font-size:13px;line-height:1.6;color:#536b84;margin:14px 0 20px}.learn-completion-card .primary-button{width:100%;min-height:48px;font-size:14px}
body.learn-modal-open{overflow:hidden}
@media(max-width:480px){.learn-completion-card{padding:20px 14px;border-radius:17px}.learn-completion-card h2{font-size:23px}.learn-completion-metrics{gap:7px}.learn-completion-metrics>div{padding:11px 4px}.learn-completion-metrics strong{font-size:19px}}

/* Completion report: always offer retry and continue side-by-side. */
.learn-completion-actions{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:16px}
.learn-completion-actions button{flex:1;min-width:0;min-height:48px}
@media(max-width:480px){.learn-completion-actions{flex-direction:column}.learn-completion-actions button{width:100%}}


/* Practice exercise bank and personal passage import */
.practice-source-panel{display:grid;gap:9px;margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.practice-source-panel label{font-size:12px;font-weight:800;color:var(--text)}
.practice-select,.custom-passage-input{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:10px;padding:11px 12px;background:var(--surface);color:var(--text);font:inherit}
.custom-passage-input{resize:vertical;min-height:78px;line-height:1.5}
.custom-passage-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.custom-passage-actions input[type=file]{max-width:100%;font-size:12px;color:var(--muted)}
.custom-passage-actions .secondary-button,.custom-passage-actions .text-button{cursor:pointer}
@media(max-width:700px){.duration-options{grid-template-columns:repeat(3,minmax(0,1fr))}.custom-passage-actions{align-items:stretch;flex-direction:column}}


/* Practice Typing 200-exercise workspace */
.practice-layout { display:grid; grid-template-columns: minmax(235px, 285px) minmax(0,1fr); gap:18px; align-items:start; }
.practice-exercise-sidebar { position:sticky; top:14px; max-height:calc(100vh - 120px); overflow:hidden; display:flex; flex-direction:column; background:var(--card-bg, #fff); border:1px solid var(--border, #d7e5f5); border-radius:16px; padding:12px; }
.practice-custom-top { flex:0 0 auto; width:100%; border:1px solid #8ec5ff; background:#e5f2ff; color:#075fc4; border-radius:10px; padding:12px; font-weight:800; cursor:pointer; text-align:left; margin-bottom:12px; }
.practice-sidebar-heading { display:flex; justify-content:space-between; font-size:11px; letter-spacing:.12em; font-weight:800; color:#66809c; padding:8px 5px; }
.practice-exercise-list { overflow-y:auto; min-height:150px; }
.practice-exercise-item { display:flex; align-items:center; gap:8px; width:100%; border:0; border-radius:9px; background:transparent; padding:8px 7px; text-align:left; cursor:pointer; color:var(--text, #1c3552); }
.practice-exercise-item:hover { background:#edf6ff; }
.practice-exercise-item.active { background:#dceeff; outline:1px solid #9ecfff; color:#075fc4; }
.practice-exercise-item.completed .exercise-number { background:#d8f5e4; color:#137447; }
.exercise-number { width:27px; height:27px; flex:0 0 27px; border-radius:8px; background:#edf2f8; display:grid; place-items:center; font-size:11px; font-weight:800; }
.exercise-title { flex:1; min-width:0; font-size:12px; font-weight:700; overflow-wrap:anywhere; }
.exercise-title small { display:block; color:#7188a1; font-size:10px; font-weight:500; margin-top:3px; }
.exercise-state { color:#16844f; font-weight:900; }
.practice-options { display:flex; flex-wrap:wrap; gap:10px 16px; margin:16px 0; padding:14px; background:#f5f9ff; border:1px solid #d6e6f8; border-radius:12px; }
.practice-options label,.fullscreen-options label { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:650; cursor:pointer; }
.practice-options input,.fullscreen-options input { accent-color:#1678e8; }
.typing-fullscreen { position:fixed; z-index:99999; inset:0; overflow:auto; background:#f4f8fd; color:#1c3552; padding:0 22px 24px; }
.typing-fullscreen-header { position:sticky; z-index:2; top:0; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:14px 2px; background:rgba(244,248,253,.97); border-bottom:1px solid #d9e6f5; }
.typing-fullscreen-header > div:first-child { display:flex; flex-direction:column; gap:5px; }
.typing-fullscreen-header strong { font-size:17px; }
.typing-fullscreen-header span { font-size:12px; color:#617b97; }
.fullscreen-options { display:flex; flex-wrap:wrap; align-items:center; gap:10px 15px; }
.typing-fullscreen-main { max-width:1500px; margin:18px auto; }
.typing-fullscreen .typing-passage { max-height:34vh; overflow-y:auto; line-height:1.9; padding:22px; background:white; border:1px solid #c9def5; border-radius:14px; font-size:20px; white-space:pre-wrap; }
.typing-fullscreen .typing-input { min-height:130px; width:100%; font-size:18px; }
.typing-fullscreen .typing-stats { display:flex; flex-wrap:wrap; gap:12px; margin:15px 0; }
.typing-fullscreen .typing-stat { flex:1 1 130px; }
.typing-fullscreen .typing-test-card { margin-top:14px; }
.typing-fullscreen .typing-test-card .typing-card-heading { display:flex; justify-content:space-between; align-items:center; }
.typing-fullscreen .typing-result { margin-top:18px; }
.typing-fullscreen .hide-wpm .typing-stat:not(:first-child):not(:nth-child(3)):not(:nth-child(4)) { display:none; }
.typing-fullscreen .hide-word-stat .word-stat { display:none; }
.disable-text-highlight .typing-char.correct,.disable-text-highlight .typing-char.incorrect,.disable-text-highlight .typing-char.current { background:transparent !important; color:inherit !important; outline:none !important; }
.disable-word-highlight .typing-word.word-correct,.disable-word-highlight .typing-word.word-incorrect,.disable-word-highlight .typing-word.word-in-progress { background:transparent !important; color:inherit !important; }
.typing-error-practice { margin-top:18px; border:1px solid #d7e5f5; background:#f6faff; border-radius:12px; padding:16px; }
.typing-error-practice textarea { width:100%; margin:12px 0; }
.review-word-list { line-height:1.8; font-weight:750; color:#b34545; }
@media (max-width: 900px) { .practice-layout { grid-template-columns:1fr; } .practice-exercise-sidebar { position:relative; top:0; max-height:380px; } .typing-fullscreen { padding:0 10px 16px; } .typing-fullscreen .typing-passage { font-size:16px; max-height:30vh; } }

.character-review { margin-top:12px; padding:14px; border-radius:10px; border:1px solid #d7e5f5; background:#fff; line-height:2.1; overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.character-review span { display:inline-block; min-width:.62em; text-align:center; }
.character-review .char-match { color:#167448; background:#e5f8ed; }
.character-review .char-mismatch { color:#b42318; background:#ffe7e5; text-decoration:underline; }

.practice-source-panel { display:none; }
.practice-source-panel.custom-upload-open { display:block; }


/* Practice fullscreen refinement: persistent exercise sidebar, large countdown, right-side live metrics */
.typing-fullscreen { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.typing-fullscreen-header { flex:0 0 auto; padding:10px 18px; gap:14px; }
.fullscreen-brand { display:grid; grid-template-columns:1fr; gap:2px; min-width:190px; }
.fullscreen-brand .fullscreen-countdown { font-size:30px; line-height:1.05; color:#1769c2; letter-spacing:.02em; }
.fullscreen-options { justify-content:flex-end; }
.typing-fullscreen-main { width:100%; max-width:none; min-height:0; flex:1 1 auto; margin:0; display:grid; grid-template-columns:260px minmax(0,1fr); overflow:hidden; }
#typing-fullscreen-sidebar { min-height:0; overflow-y:auto; border-right:1px solid #d7e5f5; background:#f8fbff; }
#typing-fullscreen-sidebar .practice-exercise-sidebar { position:static; top:auto; max-height:none; height:100%; width:auto; border:0; border-radius:0; box-shadow:none; }
.typing-fullscreen-workarea { min-width:0; min-height:0; padding:14px 18px 18px; overflow:auto; }
.typing-fullscreen .typing-passage { max-height:32vh; overflow:auto; margin-bottom:12px; }
.typing-fullscreen-dashboard { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:14px; align-items:start; }
.typing-fullscreen-dashboard .typing-test-card { margin:0; min-width:0; }
.typing-fullscreen .typing-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.typing-fullscreen .typing-stat { min-width:0; padding:12px; border-radius:12px; }
.typing-fullscreen .typing-stat strong { font-size:23px; }
.typing-right-panel { position:sticky; top:0; padding:14px; border:1px solid #d1e2f6; border-radius:14px; background:#fff; }
.typing-right-panel h3 { margin:0 0 12px; font-size:16px; }
.typing-fullscreen .typing-test-card .typing-card-heading { margin-bottom:10px; }
.typing-submit-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.typing-submit-row span { font-size:12px; color:#607a98; }
.typing-fullscreen .typing-input { min-height:170px; }
.typing-fullscreen .hide-wpm #typing-wpm, .typing-fullscreen .hide-word-stat #typing-correct-words, .typing-fullscreen .hide-word-stat #typing-incorrect-words { display:none; }
.typing-fullscreen .typing-passage.disable-text-highlight .typing-char { color:inherit !important; background:transparent !important; text-decoration:none !important; border:0 !important; animation:none !important; }
.typing-fullscreen .typing-passage.disable-word-highlight .typing-word { color:inherit !important; background:transparent !important; }
@media (max-width:1000px) {
  .typing-fullscreen-main { grid-template-columns:210px minmax(0,1fr); }
  .typing-fullscreen-dashboard { grid-template-columns:1fr; }
  .typing-right-panel { position:static; }
}
@media (max-width:700px) {
  .typing-fullscreen { overflow:auto; }
  .typing-fullscreen-main { display:block; overflow:visible; }
  #typing-fullscreen-sidebar { max-height:220px; }
  .typing-fullscreen-workarea { overflow:visible; padding:10px; }
  .fullscreen-options { justify-content:flex-start; }
  .typing-submit-row { flex-wrap:wrap; }
}


/* Practice refinement: dedicate the left rail to exercises, not the global menu. */
.app-layout.practice-mode { grid-template-columns: minmax(0, 1fr) !important; }
.app-layout.practice-mode > .sidebar { display: none !important; }
.app-layout.practice-mode .main-area { min-width: 0; }
.practice-mode .topbar { display: none; }
.practice-mode .section-page { padding-top: 14px; }
.practice-mode .practice-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 16px; }
.practice-mode .practice-exercise-sidebar { max-height: calc(100vh - 30px); top: 10px; }
.practice-mode .typing-setup { padding: 18px; }
.practice-mode .typing-setup > .large-icon,
.practice-mode .typing-setup > h3,
.practice-mode .typing-setup > p:first-of-type { display: none; }
.practice-mode .practice-source-panel { display: none; }
.practice-mode .practice-source-panel.custom-upload-open { display: block; }
.practice-mode .duration-options { margin-top: 12px; }
.practice-mode .typing-stats, .practice-mode .word-legend, .practice-mode .typing-test-card { display: none; }
.practice-custom-top { display: block; }
.practice-exercise-item.attempted:not(.completed) .exercise-state { color: #1769d2; font-weight: 800; font-size: 10px; }
.practice-exercise-item.completed .exercise-state { color: #16834a; font-weight: 900; }
.last-attempt-summary { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f1f7ff; color: #4d6885; font-size: 12px; }
.attempt-comparison { margin: 16px 0; padding: 14px; border: 1px solid #cfe2f3; border-radius: 12px; background: #f4f9ff; }
.attempt-comparison h4 { margin: 0 0 10px; }
.attempt-comparison > div { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.typing-fullscreen-main { display: block !important; width: 100%; max-width: none !important; margin: 0 !important; }
#typing-fullscreen-sidebar { display: none !important; }
.typing-fullscreen-workarea { padding: 14px 18px 24px; }
.typing-fullscreen-dashboard { grid-template-columns: minmax(0, 1fr) 270px; }
.speedometer-card { text-align: center; padding: 10px 6px 14px; margin-bottom: 14px; border: 1px solid #d4e5f7; border-radius: 14px; background: #f7fbff; }
.speedometer-svg { display: block; width: 100%; max-width: 230px; margin: 0 auto; overflow: visible; }
.speedometer-track, .speedometer-progress { fill: none; stroke-width: 13; stroke-linecap: round; }
.speedometer-track { stroke: #dce8f6; }
.speedometer-progress { stroke: #2478e5; stroke-dasharray: 0 270.2; transition: stroke-dasharray .25s ease; }
.speedometer-svg text:not(.speedometer-unit) { font-size: 34px; font-weight: 800; fill: #1769d2; }
.speedometer-svg .speedometer-unit { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; fill: #5e7792; }
.speedometer-sub { color: #5e7792; font-size: 13px; }
.speedometer-sub strong { color: #17324d; font-size: 17px; }
.speedometer-toggle { margin-top: 10px; padding: 7px 10px; font-size: 12px; }
.speedometer-card.is-collapsed .speedometer-svg, .speedometer-card.is-collapsed .speedometer-sub { display: none; }
.typing-fullscreen .fullscreen-countdown { font-size: 30px !important; font-weight: 900; color: #1769d2; line-height: 1.05; }
.typing-fullscreen .typing-passage { max-height: 34vh; overflow-y: auto; }
.typing-fullscreen .typing-stats.hide-wpm .typing-stat:nth-child(2),
.typing-fullscreen .typing-stats.hide-word-stat .word-stat { display: none !important; }
@media (max-width: 900px) {
 .practice-mode .practice-layout { grid-template-columns: 1fr; }
 .practice-mode .practice-exercise-sidebar { position: relative; max-height: 280px; }
 .typing-fullscreen-dashboard { grid-template-columns: 1fr; }
 .typing-right-panel { position: relative; }
}

.speedometer-card.option-hidden { display:none !important; }

/* Practice typing refinements: passage and input should feel like matching work areas. */
.typing-fullscreen .typing-passage {
  min-height: 180px;
  max-height: 42vh;
  overflow-y: auto;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.8;
  scroll-margin-top: 90px;
}
.typing-fullscreen .typing-input {
  min-height: 180px;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.8;
}
.typing-fullscreen .typing-result {
  scroll-margin-top: 100px;
}


/* Exercise language selector */
.practice-language-label{display:block;margin:14px 14px 6px;font-size:.78rem;font-weight:700;color:var(--muted,#64748b);text-transform:uppercase;letter-spacing:.04em}
.practice-language-select{display:block;width:calc(100% - 28px);margin:0 14px 14px;padding:10px 12px;border:1px solid var(--border,#dbe5f1);border-radius:10px;background:var(--surface,#fff);color:var(--text,#1e293b);font:inherit}

/* First-run profile onboarding and bilingual home shell */
.onboarding-shell{min-height:100vh;display:grid;place-items:center;padding:32px 18px;background:radial-gradient(circle at 12% 10%,#dff1ff 0,transparent 34%),linear-gradient(135deg,#f4f8ff,#eef5ff)}
.onboarding-card{width:min(100%,560px);background:var(--surface,#fff);border:1px solid #d6e5fb;border-radius:24px;padding:clamp(24px,5vw,42px);box-shadow:0 24px 70px rgba(32,83,148,.12);color:var(--text,#1e3555)}
.onboarding-brand{display:flex;align-items:center;gap:12px;margin-bottom:20px}.onboarding-brand>div{display:grid;gap:3px}.onboarding-brand strong{font-size:18px}.onboarding-brand small{color:#7187a5}.onboarding-language{display:flex;gap:6px;justify-content:flex-end;margin-top:-58px;margin-bottom:34px}.onboarding-language button,.language-switch{border:1px solid #cbdcf4;background:#fff;color:#345171;border-radius:9px;padding:8px 12px;font-weight:700;cursor:pointer}.onboarding-language button.active,.language-switch.active{background:#2168d7;border-color:#2168d7;color:#fff}.onboarding-card .eyebrow{display:block;color:#2168d7;font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:9px}.onboarding-card h1{font-size:clamp(28px,5vw,36px);line-height:1.15;margin:0 0 10px}.onboarding-intro{line-height:1.65;color:#657b98;margin:0 0 24px}.onboarding-card form{display:grid;gap:9px}.onboarding-card form label{font-size:13px;font-weight:750;margin-top:7px}.onboarding-card form input,.onboarding-card form select{width:100%;min-height:46px;border:1px solid #cfddf0;border-radius:10px;padding:11px 13px;background:#fff;color:#1f3654;font:inherit;box-sizing:border-box;outline:none}.onboarding-card form input:focus,.onboarding-card form select:focus{border-color:#2875e4;box-shadow:0 0 0 3px rgba(40,117,228,.12)}.onboarding-submit{width:100%;justify-content:center;margin-top:12px;min-height:48px}.onboarding-error{color:#b42318;font-size:13px;min-height:0;margin:0}.offline-note{display:flex;gap:12px;background:#f0f6ff;border:1px solid #dce9fb;border-radius:12px;padding:14px;margin-top:20px}.offline-note>span{color:#1d70db;font-size:16px}.offline-note strong{font-size:13px}.offline-note p{font-size:12px;line-height:1.55;color:#617895;margin:4px 0 0}.privacy-note{font-size:11px;color:#8293a9;line-height:1.5;margin:14px 0 0}.exam-tile-section{margin-top:28px}.exam-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.exam-tile{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;border:1px solid var(--border,#d8e5f7);border-radius:15px;padding:18px;background:var(--card,#fff);color:var(--text,#203957);cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.exam-tile:hover{transform:translateY(-2px);border-color:#6da4ef;box-shadow:0 12px 24px rgba(35,93,164,.1)}.exam-tile>span{font-size:25px}.exam-tile strong{font-size:15px}.exam-tile small{color:var(--muted,#7186a1);font-size:12px}.topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.support-button{display:inline-flex;align-items:center;border-radius:10px;padding:9px 12px;background:#e9f8ef;color:#127343;text-decoration:none;font-size:12px;font-weight:800;border:1px solid #c9efd8}.support-button:hover{background:#d9f3e3}
@media(max-width:900px){.exam-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{align-items:flex-start;gap:14px;flex-direction:column}.topbar-actions{justify-content:flex-start}}
@media(max-width:560px){.exam-tile-grid{grid-template-columns:1fr 1fr}.exam-tile{padding:13px}.support-button{font-size:11px}.onboarding-card{padding:24px 19px}.onboarding-language{margin-top:-55px}}

/* Profile, saved reports and efficiency navigation update */
.sidebar-profile-bottom { padding: 12px !important; border-top: 1px solid var(--border-color, #dbe5f2); }
.sidebar-profile-button { display:flex; align-items:center; gap:10px; width:100%; min-width:0; border:1px solid var(--border-color, #dbe5f2); background:var(--card-bg, #fff); color:inherit; border-radius:14px; padding:10px; text-align:left; cursor:pointer; transition:background .18s ease,border-color .18s ease; }
.sidebar-profile-button:hover { background:var(--surface-soft, #f2f7ff); border-color:#8db8f6; }
.profile-avatar { width:38px; height:38px; border-radius:50%; flex:0 0 auto; display:grid; place-items:center; font-weight:800; color:#fff; background:linear-gradient(135deg,#2875e7,#55b8e8); }
.profile-avatar-large { width:64px; height:64px; font-size:1.5rem; }
.sidebar-profile-copy { display:flex; flex-direction:column; min-width:0; gap:3px; flex:1; }
.sidebar-profile-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9rem; }
.sidebar-profile-copy small { color:var(--muted, #64748b); font-size:.75rem; }
.profile-chevron { font-size:1.4rem; color:var(--muted, #64748b); }
.profile-dashboard { display:grid; gap:20px; }
.profile-identity-card { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:22px; border:1px solid var(--border-color,#dbe5f2); background:var(--card-bg,#fff); border-radius:20px; box-shadow:0 8px 28px rgba(35,83,140,.05); }
.profile-identity-copy { flex:1; min-width:180px; }
.profile-identity-copy h2 { margin:4px 0 5px; }
.profile-identity-copy p { margin:0 0 5px; color:var(--muted,#64748b); }
.profile-identity-copy small { color:var(--muted,#64748b); }
.profile-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.profile-metric { border:1px solid var(--border-color,#dbe5f2); background:var(--card-bg,#fff); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:8px; }
.profile-metric span { color:var(--muted,#64748b); font-size:.84rem; }
.profile-metric strong { font-size:1.8rem; color:var(--accent,#246fe5); }
.profile-panel,.profile-edit-card { border:1px solid var(--border-color,#dbe5f2); background:var(--card-bg,#fff); border-radius:20px; padding:22px; }
.profile-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.profile-panel-heading h3,.profile-edit-card h3 { margin:4px 0; }
.profile-panel-heading p { margin:4px 0 0; color:var(--muted,#64748b); }
.profile-report-list { display:grid; gap:10px; }
.profile-report-row { display:grid; grid-template-columns:34px minmax(160px,1fr) 80px 80px auto; gap:12px; align-items:center; border:1px solid var(--border-color,#e0e8f2); border-radius:13px; padding:12px; }
.profile-report-index { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--surface-soft,#eef5ff); color:var(--accent,#246fe5); font-weight:700; }
.profile-report-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
.profile-report-info strong { overflow-wrap:anywhere; }
.profile-report-info small,.profile-report-stat small { color:var(--muted,#64748b); font-size:.76rem; }
.profile-report-stat { display:flex; flex-direction:column; gap:3px; }
.profile-report-stat strong { font-size:1.05rem; }
.profile-empty-state { text-align:center; padding:36px 16px; }
.profile-empty-state>span { font-size:2rem; }
.profile-empty-state p { color:var(--muted,#64748b); }
.profile-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:end; }
.profile-settings-grid label,.profile-edit-card form label { display:grid; gap:7px; font-weight:600; font-size:.9rem; }
.profile-settings-grid select,.profile-edit-card input { width:100%; min-height:42px; border:1px solid var(--border-color,#dbe5f2); border-radius:10px; padding:9px 11px; background:var(--card-bg,#fff); color:inherit; }
.profile-settings-grid .profile-setting-check { display:flex; align-items:center; gap:8px; font-weight:500; }
.profile-edit-card form { display:grid; grid-template-columns:1fr; gap:9px; max-width:560px; }
.efficiency-intro-card { display:grid; gap:16px; }
.efficiency-intro-card>h2,.efficiency-intro-card>p { margin:0; }
.efficiency-intro-card>p { color:var(--muted,#64748b); max-width:800px; }
.efficiency-task-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.efficiency-task { display:flex; flex-direction:column; gap:10px; border:1px solid var(--border-color,#dbe5f2); border-radius:15px; background:var(--card-bg,#fff); padding:17px; min-height:112px; }
.efficiency-task>span { color:var(--accent,#246fe5); font-weight:800; font-size:.8rem; }
.efficiency-task small { color:var(--muted,#64748b); margin-top:auto; }
.efficiency-notice { margin-top:8px; }
@media(max-width:900px){.profile-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.efficiency-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-report-row{grid-template-columns:30px minmax(120px,1fr) 70px 70px}.profile-report-row>button{grid-column:2/-1;justify-self:start}}
@media(max-width:560px){.profile-metric-grid,.profile-settings-grid,.efficiency-task-grid{grid-template-columns:1fr}.profile-identity-card{align-items:flex-start}.profile-report-row{grid-template-columns:28px minmax(0,1fr) 62px}.profile-report-stat:nth-of-type(2){display:none}.profile-report-row>button{grid-column:2/-1}}
@media print{.sidebar,.topbar,.profile-identity-card button,.profile-settings-grid,.profile-panel-heading button,.profile-report-row button,.app-footer{display:none!important}.profile-panel,.profile-identity-card,.profile-metric{box-shadow:none;border:1px solid #bbb;break-inside:avoid}.profile-dashboard{gap:10px}}


/* Home viewport-fit fix: keep the dashboard inside the visible window on desktop. */
@media (min-width: 851px) {
  html, body { min-height: 100%; }
  body:has(.app-layout.home-screen) { height: 100vh; overflow: hidden; }
  .app-layout.home-screen {
    height: 100vh;
    min-height: 0;
    max-height: 100vh;
    overflow: hidden;
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .app-layout.home-screen > .sidebar {
    position: relative;
    top: auto;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
  }
  .app-layout.home-screen > .main-area {
    height: 100vh;
    min-height: 0;
    max-height: 100vh;
    overflow: hidden;
    padding: clamp(12px, 2.1vh, 22px) clamp(18px, 2.4vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .app-layout.home-screen > .main-area > .topbar {
    flex: 0 0 auto;
    margin-bottom: clamp(12px, 1.8vh, 20px);
    gap: 14px;
  }
  .app-layout.home-screen .topbar-actions { gap: 7px; }
  .app-layout.home-screen .topbar h1 { font-size: clamp(19px, 1.8vw, 27px); line-height: 1.2; }
  .app-layout.home-screen .hero {
    flex: 0 0 auto;
    min-height: 0;
    height: clamp(190px, 27vh, 250px);
    padding: clamp(18px, 2.2vw, 30px);
    gap: 12px;
    border-radius: 18px;
  }
  .app-layout.home-screen .hero-content h2 {
    margin: 12px 0 8px;
    font-size: clamp(25px, 2.7vw, 38px);
    letter-spacing: -1.3px;
  }
  .app-layout.home-screen .hero-content p { font-size: 11px; line-height: 1.55; }
  .app-layout.home-screen .hero-content .primary-button { margin-top: 12px; min-height: 36px; }
  .app-layout.home-screen .hero-art { min-height: 0; height: 100%; }
  .app-layout.home-screen .art-orbit.orbit-one { width: clamp(160px, 19vw, 235px); height: clamp(160px, 19vw, 235px); }
  .app-layout.home-screen .art-orbit.orbit-two { width: clamp(130px, 15vw, 185px); height: clamp(130px, 15vw, 185px); }
  .app-layout.home-screen .keyboard-card { width: min(100%, 270px); padding: 10px; gap: 3px; }
  .app-layout.home-screen .keyboard-card .keyboard-keys span { min-height: 20px; }
  .app-layout.home-screen .floating-badge { display: none; }
  .app-layout.home-screen > .main-area > .exam-tile-section {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: clamp(12px, 1.8vh, 20px);
    overflow: hidden;
  }
  .app-layout.home-screen .exam-tile-section .section-title { margin-bottom: clamp(8px, 1.2vh, 13px); }
  .app-layout.home-screen .exam-tile-section .section-title h2 { font-size: clamp(19px, 1.8vw, 24px); }
  .app-layout.home-screen .exam-tile-section .section-title p { margin-top: 3px; line-height: 1.4; }
  .app-layout.home-screen .exam-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.1vh, 12px);
    height: calc(100% - 72px);
    min-height: 0;
  }
  .app-layout.home-screen .exam-tile {
    min-height: 0;
    padding: clamp(9px, 1.2vh, 14px) clamp(12px, 1.4vw, 18px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
  }
  .app-layout.home-screen .exam-tile > span { font-size: clamp(16px, 1.7vw, 22px); line-height: 1; }
  .app-layout.home-screen .exam-tile strong { font-size: clamp(11px, 1vw, 14px); line-height: 1.25; }
  .app-layout.home-screen .exam-tile small { font-size: 10px; line-height: 1.2; }
  .app-layout.home-screen > .main-area > .exam-tile-section ~ .section-block { display: none !important; }
}

@media (min-width: 851px) and (max-height: 760px) {
  .app-layout.home-screen > .main-area { padding-top: 10px; padding-bottom: 10px; }
  .app-layout.home-screen > .main-area > .topbar { margin-bottom: 10px; }
  .app-layout.home-screen .hero { height: 185px; }
  .app-layout.home-screen .hero-content h2 { font-size: clamp(23px, 2.5vw, 32px); }
  .app-layout.home-screen > .main-area > .exam-tile-section { margin-top: 10px; }
  .app-layout.home-screen .exam-tile-section .section-title { margin-bottom: 7px; }
  .app-layout.home-screen .exam-tile-grid { height: calc(100% - 60px); }
}


/* Consolidated home correction: keep the hero CTA visible within the viewport. */
@media (min-width: 851px) {
  .app-layout.home-screen .hero { height: clamp(225px, 29vh, 265px); overflow: visible; }
  .app-layout.home-screen .hero-content { min-width: 0; align-self: center; padding-bottom: 2px; }
  .app-layout.home-screen .hero-content h2 { margin: 8px 0 7px; font-size: clamp(23px, 2.35vw, 34px); line-height: 1.12; }
  .app-layout.home-screen .hero-content p { margin-bottom: 0; max-width: 540px; }
  .app-layout.home-screen .hero-content .primary-button { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; margin-top: 10px; min-height: 38px; flex-shrink: 0; }
}
@media (min-width: 851px) and (max-height: 760px) {
  .app-layout.home-screen .hero { height: 220px; }
  .app-layout.home-screen .hero-content h2 { font-size: clamp(22px, 2.15vw, 30px); margin: 6px 0; }
  .app-layout.home-screen .hero-content p { font-size: 10px; }
  .app-layout.home-screen .hero-content .primary-button { margin-top: 7px; min-height: 34px; }
}

/* Hindi learning layout selector */
.learn-font-selector{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--muted,#60758b);white-space:nowrap}
.learn-font-selector select{max-width:170px;padding:8px 10px;border:1px solid var(--border,#d7e4f2);border-radius:10px;background:var(--surface,#fff);color:var(--text,#18324d);font:inherit}
@media(max-width:900px){.learn-font-selector{white-space:normal;flex-wrap:wrap}.learn-font-selector select{max-width:140px}}

/* Secondary Devanagari labels on the virtual keyboard in Hindi learning mode. */
#learn-keyboard .virtual-key { position: relative; }
#learn-keyboard .virtual-key .hindi-key-glyph { position: absolute; top: 2px; right: 4px; font-size: 11px; line-height: 1; color: #b42318; font-weight: 700; pointer-events: none; }

/* October 2026 practice screen polish */
.practice-back-home{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px 12px;margin:0 0 10px;border:1px solid #c9dcf5;border-radius:10px;background:linear-gradient(135deg,#f5f9ff,#e8f2ff);color:#1c5fba;font-weight:800;cursor:pointer}
.practice-back-home:hover{background:#dcecff;border-color:#8cb8f0}
.practice-language-badge{margin:0 0 12px;padding:9px 11px;border-radius:10px;background:#edf5ff;color:#245da5;font-size:12px;font-weight:800;text-align:center;letter-spacing:.02em}
.practice-mode .typing-start{display:flex;align-items:center;justify-content:center;gap:12px;width:min(100%,340px);min-height:48px;margin:18px auto 12px;border-radius:13px;box-shadow:0 8px 18px rgba(34,105,210,.18)}
.practice-mode .typing-setup{text-align:initial}
.typing-fullscreen-workarea{min-width:0}
.typing-fullscreen .typing-fullscreen-passage,
.typing-fullscreen #typing-fullscreen-passage{width:100%;min-width:0}
.typing-fullscreen #typing-passage{display:block;width:100%;height:180px!important;min-height:180px;max-height:180px!important;overflow-y:auto;box-sizing:border-box;margin-bottom:12px;flex:none}
.typing-fullscreen #typing-input{display:block;width:100%;min-height:180px;box-sizing:border-box}
.typing-fullscreen .typing-test-card{width:100%;min-width:0;box-sizing:border-box}
.typing-fullscreen-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}
.typing-fullscreen-card,.typing-fullscreen-dashboard>div{min-width:0}
.speedometer-card{background:radial-gradient(circle at 50% 15%,#fff 0,#f0f7ff 68%,#e5f0ff 100%);box-shadow:inset 0 1px 0 #fff,0 10px 26px rgba(38,94,157,.09)}
.speedometer-svg .speedometer-ticks text{font-size:11px!important;font-weight:800;fill:#647d9b;text-anchor:middle;dominant-baseline:middle;letter-spacing:0}
.speedometer-needle{transition:transform .18s ease-out!important}
.speedometer-needle line{stroke:#ed5b4e;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 2px 2px #b9c8d9)}
.speedometer-needle circle{fill:#173e70;stroke:#fff;stroke-width:2}
.typing-report-modal{position:fixed;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(13,29,52,.68);backdrop-filter:blur(7px)}
.typing-report-dialog{position:relative;width:min(1120px,100%);max-height:94vh;overflow:auto;border:1px solid #d5e5f8;border-radius:22px;background:#fff;box-shadow:0 30px 100px rgba(0,0,0,.28);color:#1e3555}
.typing-report-modal-header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px;border-bottom:1px solid #dce8f6;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}
.typing-report-modal-header h2{margin:3px 0 0;font-size:23px}.typing-report-modal-header .eyebrow{font-size:10px;font-weight:900;letter-spacing:.12em;color:#286bc4}
.typing-report-dialog .typing-result{position:relative;isolation:isolate;margin:0;padding:24px;background:#fff;overflow:hidden}
.report-watermark:before{content:"AG TYPING TUTOR";position:absolute;z-index:-1;left:50%;top:48%;transform:translate(-50%,-50%) rotate(-27deg);font-size:clamp(36px,7vw,86px);font-weight:900;letter-spacing:.08em;white-space:nowrap;color:rgba(36,100,177,.075);pointer-events:none}
.report-watermark:after{content:"BY XTREME AG APPS";position:absolute;z-index:-1;left:50%;top:58%;transform:translate(-50%,-50%) rotate(-27deg);font-size:clamp(18px,3vw,36px);font-weight:900;letter-spacing:.15em;white-space:nowrap;color:rgba(36,100,177,.07);pointer-events:none}
.typing-report-dialog .report-comparison,.typing-report-dialog .report-detail-grid>div,.typing-report-dialog .report-metrics>span{background-color:rgba(248,251,255,.88)}
@media(max-width:900px){.typing-fullscreen-dashboard{grid-template-columns:1fr}.typing-report-modal{padding:8px}.typing-report-dialog{max-height:98vh;border-radius:14px}.typing-report-dialog .typing-result{padding:14px}.typing-report-modal-header{padding:14px}}
.typing-main-column{min-width:0;display:flex;flex-direction:column;gap:0}.typing-fullscreen-dashboard #typing-fullscreen-passage{width:100%;min-width:0}.typing-fullscreen-dashboard #typing-fullscreen-card{width:100%;min-width:0}.typing-fullscreen-dashboard #typing-fullscreen-card .typing-test-card{margin-top:0}

/* Fix the live typing workspace: keep the passage compact so the typing box is visible immediately. */
.typing-fullscreen-dashboard{grid-template-columns:minmax(0,1fr) 270px;align-items:start}
.typing-fullscreen .typing-fullscreen-dashboard #typing-passage{height:180px!important;min-height:180px!important;max-height:180px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:16px 18px;font-size:17px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.typing-fullscreen .typing-fullscreen-dashboard #typing-fullscreen-card .typing-test-card{margin-top:0;padding:16px}
.typing-fullscreen .typing-fullscreen-dashboard #typing-input{display:block;width:100%;height:180px;min-height:180px;resize:vertical;margin-top:0}
.speedometer-card{overflow:hidden}
.speedometer-svg{max-width:250px;overflow:visible}
.speedometer-svg > text:not(.speedometer-unit){font-size:30px!important}
.speedometer-svg .speedometer-unit{font-size:10px!important}
.speedometer-progress{stroke-dasharray:0 270.2}
@media(max-width:900px){.typing-fullscreen-dashboard{grid-template-columns:minmax(0,1fr)}.typing-fullscreen .typing-fullscreen-dashboard #typing-passage{height:160px!important;min-height:160px!important;max-height:160px!important}.typing-fullscreen .typing-fullscreen-dashboard #typing-input{height:160px;min-height:160px}}

/* October 2026 refinement: larger practice workspace, stable gauge, accessible text controls and A4 report printing. */
.typing-fullscreen{min-height:100vh}
.typing-fullscreen-main{min-height:calc(100vh - 112px)}
.typing-fullscreen-dashboard{min-height:calc(100vh - 145px);grid-template-columns:minmax(0,1fr) 270px;align-items:stretch}
.typing-fullscreen-dashboard .typing-main-column{min-height:calc(100vh - 150px);gap:12px}
.typing-fullscreen .typing-fullscreen-dashboard #typing-passage{height:clamp(230px,32vh,330px)!important;min-height:clamp(230px,32vh,330px)!important;max-height:clamp(230px,32vh,330px)!important;flex:0 0 auto}
.typing-fullscreen .typing-fullscreen-dashboard #typing-fullscreen-card .typing-test-card{min-height:clamp(280px,38vh,390px);display:flex;flex-direction:column;justify-content:flex-start}
.typing-fullscreen .typing-fullscreen-dashboard #typing-input{height:clamp(240px,34vh,340px);min-height:clamp(240px,34vh,340px);resize:vertical;line-height:1.65}
.typing-fullscreen-dashboard .typing-right-panel{height:fit-content;min-height:calc(100vh - 160px)}
.speedometer-card{overflow:hidden;position:relative}
.speedometer-svg{display:block;width:100%;max-width:260px;height:auto;margin:0 auto;overflow:hidden}
.speedometer-needle{transition:transform .18s ease-out!important}
.speedometer-needle line{stroke:#ef5147;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.speedometer-needle circle{fill:#173e70;stroke:#fff;stroke-width:2}
.typing-font-controls{display:flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid #d4e2f3;border-radius:10px;background:#fff}
.typing-font-controls span{font-size:11px;color:#607895;font-weight:700;margin-right:3px}
.typing-font-controls button{min-width:34px;height:30px;border:1px solid #c9dcf5;border-radius:7px;background:#edf5ff;color:#155fc1;font-size:14px;font-weight:900;cursor:pointer}
.typing-font-controls button:hover{background:#dcecff}
.typing-report-dialog{width:min(1180px,100%);max-height:94vh}
.typing-report-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.typing-report-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.typing-report-dialog .report-heading{padding-top:4px}
.typing-report-dialog .report-actions{display:none!important}
.typing-report-dialog .report-watermark{min-height:100%;}
@media(max-width:1050px){.typing-report-modal-header{align-items:flex-start;flex-direction:column}.typing-report-toolbar{justify-content:flex-start}.typing-fullscreen-dashboard{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:900px){.typing-fullscreen-dashboard{grid-template-columns:minmax(0,1fr)}.typing-fullscreen-dashboard .typing-main-column{min-height:0}.typing-fullscreen .typing-fullscreen-dashboard #typing-passage{height:220px!important;min-height:220px!important;max-height:220px!important}.typing-fullscreen .typing-fullscreen-dashboard #typing-input{height:240px;min-height:240px}.typing-fullscreen-dashboard .typing-right-panel{min-height:0}}
@page{size:A4 portrait;margin:12mm}
@media print{
  html,body{width:210mm!important;min-height:297mm!important;background:#fff!important;color:#172b45!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body>*{visibility:hidden!important}
  #typing-report-modal,#typing-report-modal *{visibility:visible!important}
  #typing-report-modal{position:absolute!important;inset:0!important;display:block!important;padding:0!important;background:#fff!important;backdrop-filter:none!important;overflow:visible!important}
  #typing-report-modal .typing-report-dialog{position:static!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  #typing-report-modal .typing-report-modal-header{position:static!important;padding:0 0 8mm!important;background:#fff!important;border-bottom:1px solid #b9cce2!important}
  #typing-report-modal .typing-report-toolbar,#typing-report-modal #typing-report-close,#typing-report-modal .screen-only{display:none!important}
  #typing-report-modal .typing-result{padding:5mm 0!important;overflow:visible!important;background:#fff!important}
  #typing-report-modal .report-heading,#typing-report-modal .report-metrics,#typing-report-modal .report-detail-grid,#typing-report-modal .report-comparison,#typing-report-modal .attempt-comparison{break-inside:avoid!important;page-break-inside:avoid!important}
  #typing-report-modal .report-watermark:before{position:fixed!important;top:50%!important;left:50%!important;font-size:42pt!important;color:rgba(36,100,177,.09)!important}
  #typing-report-modal .report-watermark:after{position:fixed!important;top:57%!important;left:50%!important;font-size:22pt!important;color:rgba(36,100,177,.08)!important}
  #typing-report-modal .character-review{overflow-wrap:anywhere!important;white-space:normal!important}
}


/* Focused October 2026 corrections for the live test header, gauge needle and report. */
.typing-fullscreen-header{display:flex;align-items:center;gap:18px;flex-wrap:nowrap;padding:10px 18px;min-height:76px}
.typing-fullscreen-header .fullscreen-brand{flex:0 0 220px;min-width:180px;display:flex;flex-direction:column;gap:4px}
.typing-fullscreen-header .fullscreen-brand strong{font-size:18px}
.typing-fullscreen-header .fullscreen-brand span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.typing-fullscreen-header .fullscreen-options{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:9px 13px}
.typing-fullscreen-header .fullscreen-countdown{flex:0 0 auto;margin-left:auto;font-size:30px;line-height:1.05;font-weight:900;color:#1769d2;white-space:nowrap;font-variant-numeric:tabular-nums}
.typing-method-control{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:#607895;white-space:nowrap}
.typing-method-control select{max-width:140px;border:1px solid #c9dcf5;border-radius:8px;background:#fff;color:#1e3555;padding:7px;font-size:11px}
.speedometer-needle line{vector-effect:non-scaling-stroke}
.typing-report-dialog .report-section{position:relative;margin:16px 0;padding:14px;border:1px solid #dbe7f6;border-radius:14px;background:rgba(250,252,255,.92);break-inside:avoid}
.typing-report-dialog .report-section h4{margin:0 0 10px;color:#1d3b62;font-size:16px}
.typing-report-dialog .report-section h5{margin:12px 0 8px;font-size:13px;color:#365574}
.report-speed-chart{margin-top:12px;padding:10px;border:1px solid #e0eaf6;border-radius:10px;background:#fff}
.report-chart-caption{font-size:11px;color:#617b97;font-weight:700}
.report-chart-bars{display:flex;align-items:flex-end;gap:4px;height:94px;margin-top:8px;border-bottom:1px solid #cbd9eb}
.report-chart-bar{position:relative;flex:1 1 0;min-width:5px;max-width:24px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#55a4ff,#1769d2)}
.report-chart-bar i{position:absolute;bottom:-16px;left:50%;transform:translateX(-50%);font-size:8px;color:#617b97;font-style:normal;white-space:nowrap}
.key-heatmap{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
.key-heat-item{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #f0c9c9;border-radius:8px;background:#fff1f1;color:#8e2424}
.key-heat-item kbd{min-width:22px;padding:2px 4px;border:1px solid #d6dce5;border-radius:4px;background:#fff;text-align:center;font:700 12px ui-monospace,monospace}
.key-heat-item strong{font-size:12px}
@media(max-width:1150px){.typing-fullscreen-header{align-items:flex-start;flex-wrap:wrap}.typing-fullscreen-header .fullscreen-brand{flex:1 1 180px}.typing-fullscreen-header .fullscreen-options{order:3;flex:1 1 100%}.typing-fullscreen-header .fullscreen-countdown{order:2;margin-left:auto}}
@media(max-width:650px){.typing-fullscreen-header{padding:10px;gap:8px}.typing-fullscreen-header .fullscreen-options{gap:8px}.typing-fullscreen-header .fullscreen-countdown{font-size:25px}.typing-method-control select{max-width:118px}}

.typing-target-control{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:#607895;white-space:nowrap}
.typing-target-control input{width:62px;border:1px solid #c9dcf5;border-radius:8px;background:#fff;color:#1e3555;padding:7px;font-size:12px;font-weight:800}
.report-accuracy-chart .report-chart-bar{background:linear-gradient(180deg,#69c58a,#21834b)}
.char-untyped{background:rgba(255,205,73,.35);color:#765516;border-bottom:1px dashed #d2a329}

.target-progress-wrap{margin:12px 0;padding:12px;border:1px solid #dbe7f6;border-radius:10px;background:#fff}
.target-progress-wrap>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#365574}
.target-progress-wrap>div:first-child span{font-weight:800;color:#1769d2}
.target-progress-track{height:10px;margin-top:9px;border-radius:999px;background:#e5edf8;overflow:hidden}
.target-progress-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#56a2ff,#1769d2)}

.keyboard-heatmap{display:flex;flex-direction:column;align-items:center;gap:5px;margin:10px 0 14px}
.keyboard-heat-row{display:flex;justify-content:center;gap:5px;max-width:100%}
.keyboard-heat-key{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:28px;height:34px;padding:2px 4px;border:1px solid rgba(186,68,68,calc(var(--heat) + .1));border-radius:6px;background:rgba(235,76,76,var(--heat));color:#572626;font:800 11px ui-monospace,monospace;box-shadow:0 1px 2px rgba(30,50,80,.06)}
.keyboard-heat-key small{font-size:8px;line-height:1.1;font-weight:700;min-height:8px}
.report-mistake-list{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
.report-mistake-list>span{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #f0d0d0;border-radius:8px;background:#fff5f5;font-size:11px}
.report-mistake-list em{font-style:normal;font-weight:800;color:#b42323}
.report-mistake-list .helper-text{border:0;background:transparent}
@media(max-width:600px){.keyboard-heat-row{gap:3px}.keyboard-heat-key{min-width:21px;height:30px;padding:1px}}

/* Report visibility fix: keep the report modal above the typing fullscreen layer. */
#typing-report-modal {
  z-index: 100001 !important;
}



/* Exam efficiency simulation workspace. Scope all rules to efficiency screens only. */
.efficiency-simulator{display:grid;gap:16px;min-width:0;color:var(--text,#1e293b)}
.efficiency-loading{padding:48px 24px;text-align:center;border:1px solid var(--border-color,#dbe5f2);border-radius:18px;background:var(--card-bg,#fff)}
.efficiency-loading h2{margin:10px 0}.efficiency-loading p{color:var(--muted,#64748b)}
.efficiency-test-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid var(--border-color,#dbe5f2);border-radius:18px;background:linear-gradient(120deg,#fff,#f1f7ff)}
.efficiency-test-header h2{margin:4px 0;font-size:1.45rem}.efficiency-test-header p{margin:0;color:#64748b;font-size:.86rem}.efficiency-test-meta{display:flex;align-items:center;gap:16px}.efficiency-test-meta>span{display:grid;gap:4px;min-width:70px}.efficiency-test-meta small{color:#64748b;font-size:.72rem}.efficiency-test-meta strong{font-size:1.2rem;color:#1767ce;font-variant-numeric:tabular-nums}.efficiency-time-warning{color:#d93025!important}.efficiency-test-layout{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:16px;align-items:start}
.efficiency-task-panel{border:1px solid var(--border-color,#dbe5f2);border-radius:16px;padding:18px;background:var(--card-bg,#fff);box-shadow:0 4px 20px #234b7b0b;position:sticky;top:14px}.efficiency-task-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.efficiency-points-pill{border-radius:99px;background:#e8f2ff;color:#1558a6;padding:5px 10px;font-size:.75rem;font-weight:800}.efficiency-task-panel h3{margin:15px 0 8px;font-size:1.1rem}.efficiency-task-panel>p{line-height:1.55;color:var(--muted,#64748b);font-size:.9rem}.efficiency-task-panel ol{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}.efficiency-task-panel li,.efficiency-result-task-list li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:9px;align-items:start;padding:10px 0;border-bottom:1px solid var(--border-color,#e2e8f0);font-size:.84rem;line-height:1.45}.efficiency-task-panel li>span,.efficiency-result-task-list li>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#e8f2ff;color:#1558a6;font-weight:800}.efficiency-task-panel li>b,.efficiency-result-task-list li>strong{white-space:nowrap;color:#64748b;font-size:.75rem}.efficiency-task-actions{display:grid;gap:9px;margin-top:16px}.efficiency-task-actions button{width:100%;justify-content:center}.efficiency-task-panel .helper-text{font-size:.76rem;margin-bottom:0}
.office-app{min-width:0;overflow:hidden;border:1px solid #cbd5e1;border-radius:12px;background:#fff;box-shadow:0 8px 26px #243b530d;color:#263548}.office-app-titlebar{height:46px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#f6f8fb;border-bottom:1px solid #dce3ec;font-size:.88rem}.office-app-titlebar .office-save-status{margin-left:auto;color:#64748b;font-size:.76rem}.office-app-icon{display:grid;place-items:center;width:25px;height:27px;border-radius:4px;color:white;font-weight:900;font-size:1rem}.word-icon{background:#185abd}.excel-icon{background:#16834a}.office-tabs{display:flex;align-items:center;gap:2px;padding:0 12px;border-bottom:1px solid #d9e0e9;background:#fbfcfe}.office-tabs button{border:0;background:transparent;padding:11px 13px;color:#475569;font-size:.8rem;cursor:pointer;border-bottom:3px solid transparent}.office-tabs button.active{color:#1558a6;border-bottom-color:#2875df;font-weight:800}.office-ribbon{display:flex;flex-wrap:wrap;gap:14px;padding:12px;background:#f7f9fc;border-bottom:1px solid #dce3ec}.office-ribbon-group{min-width:0}.office-ribbon-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.office-ribbon-controls button,.office-ribbon-controls select,.office-ribbon-controls input[type=color]{height:31px;min-width:30px;border:1px solid #d2dae5;border-radius:5px;background:#fff;padding:4px 7px;color:#263548;font-size:.78rem;cursor:pointer}.office-ribbon-controls select{max-width:145px}.office-ribbon-controls input[type=color]{width:34px;padding:3px}.office-ribbon-group>small{display:block;text-align:center;color:#64748b;font-size:.68rem;margin-top:5px}.word-ruler{display:flex;justify-content:space-between;padding:5px 22px;background:#fafcff;color:#94a3b8;font-size:.65rem;border-bottom:1px solid #e2e8f0}.word-document-wrap{padding:24px;background:#e8edf4;min-height:530px;overflow:auto}.word-document{max-width:760px;min-height:650px;margin:0 auto;padding:64px 66px;background:#fff;box-shadow:0 2px 12px #0f172a16;outline:0;font-family:Arial,sans-serif;font-size:12pt;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.word-document p{margin:0 0 12px;min-height:1em}.word-document p[data-word-heading=true]{font-weight:600}.word-document:focus{box-shadow:0 0 0 2px #91baff,0 2px 12px #0f172a16}.word-inserted-table{width:100%;border-collapse:collapse;margin:12px 0}.word-inserted-table td{border:1px solid #64748b;padding:8px}.office-statusbar{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;background:#f7f9fc;border-top:1px solid #dce3ec;color:#64748b;font-size:.72rem}
.excel-formula-row{display:flex;align-items:center;gap:8px;padding:9px 10px;background:#fff;border-bottom:1px solid #dce3ec}.excel-formula-row>span:first-child{min-width:58px;padding:5px 8px;border:1px solid #cbd5e1;border-radius:4px;font-size:.8rem;font-weight:700}.fx-mark{font-family:Georgia,serif;font-style:italic;color:#64748b}.excel-formula-row input{flex:1;min-width:0;border:1px solid #d4dce6;border-radius:4px;padding:7px 9px;font:inherit;font-size:.82rem}.excel-formula-row button{border:1px solid #cbd5e1;background:#f8fafc;border-radius:4px;padding:6px 10px;cursor:pointer}.excel-grid-wrap{overflow:auto;max-height:560px;background:#fff}.excel-grid{border-collapse:collapse;min-width:100%;table-layout:fixed}.excel-grid th{position:sticky;top:0;background:#f1f5f9;color:#475569;font-size:.75rem;font-weight:700;text-align:center;min-width:100px;height:28px;border:1px solid #d9e0e8}.excel-grid .excel-corner{left:0;z-index:2;min-width:34px}.excel-grid tbody th{left:0;z-index:1;min-width:34px;width:34px}.excel-grid td{padding:0;border:1px solid #dfe5ec;height:32px;min-width:100px}.excel-cell{display:block;width:100%;height:32px;min-width:95px;border:0;outline:0;padding:5px 7px;font:inherit;font-size:.8rem;color:#263548;background:transparent}.excel-cell:focus{outline:2px solid #21834a;outline-offset:-2px;background:#f2fff7}.excel-heading-cell{background:#e9f4ed;font-weight:800}.excel-bold-cell{font-weight:800!important}.excel-fill-cell{background:#fff2b3!important}.excel-border-cell{outline:2px solid #6b7280;outline-offset:-2px}.excel-merged-cell{background:#e6f0ff!important}.excel-formula-error{color:#c62828!important}.excel-sheet-tabs{display:flex;align-items:center;gap:4px;padding:7px 10px;background:#f6f8fb;border-top:1px solid #dce3ec}.excel-sheet-tabs button{border:1px solid #d1d9e3;border-radius:5px;background:#fff;padding:6px 12px;font-size:.76rem;color:#334155}.excel-sheet-tabs button.active{border-bottom:3px solid #16834a;font-weight:800}.excel-sheet-tabs span{margin-left:auto;color:#64748b;font-size:.72rem}
.efficiency-result-overlay{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.62);overflow:auto}.efficiency-result-dialog{position:relative;width:min(760px,100%);max-height:calc(100vh - 44px);overflow:auto;border-radius:18px;background:#fff;padding:28px;color:#20334c;box-shadow:0 24px 90px #02061755}.efficiency-result-brand{display:flex;align-items:flex-start;gap:14px;border-bottom:1px solid #e2e8f0;padding-bottom:18px}.efficiency-result-brand>span{display:grid;place-items:center;width:42px;height:46px;border-radius:8px;background:#1767ce;color:#fff;font-size:1.2rem;font-weight:900}.efficiency-result-brand small{font-size:.66rem;letter-spacing:.12em;color:#1767ce;font-weight:800}.efficiency-result-brand h2{margin:5px 0;font-size:1.45rem}.efficiency-result-brand p{margin:0;color:#64748b;font-size:.84rem}.efficiency-result-brand>button{margin-left:auto;border:0;background:transparent;font-size:1.7rem;color:#64748b;cursor:pointer}.efficiency-result-score{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0}.efficiency-result-score>div:first-child{display:grid;gap:4px}.efficiency-result-score small,.efficiency-result-metrics small{color:#64748b;font-size:.78rem}.efficiency-result-score>div:first-child>strong{font-size:2rem;color:#1767ce}.efficiency-result-score>div:first-child>strong span{font-size:1rem;color:#64748b}.efficiency-score-ring{width:94px;height:94px;display:grid;place-content:center;text-align:center;border-radius:50%;background:conic-gradient(#1767ce var(--eff-score),#e8eef6 0);position:relative}.efficiency-score-ring:before{content:"";position:absolute;inset:8px;background:#fff;border-radius:50%}.efficiency-score-ring strong,.efficiency-score-ring small{position:relative;z-index:1}.efficiency-score-ring strong{font-size:1.25rem}.efficiency-score-ring small{font-size:.65rem}.efficiency-result-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.efficiency-result-metrics article{display:grid;gap:8px;padding:12px;border:1px solid #dce5f0;border-radius:10px}.efficiency-result-metrics strong{font-size:.85rem;overflow-wrap:anywhere}.efficiency-result-dialog>h3{margin:22px 0 8px;font-size:1rem}.efficiency-result-task-list{padding:0;margin:0;list-style:none}.efficiency-result-note{font-size:.78rem;line-height:1.5;color:#64748b;padding:12px;border-radius:8px;background:#f5f8fc}.efficiency-result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:18px}.efficiency-result-actions button{justify-content:center}
@media(max-width:1000px){.efficiency-test-layout{grid-template-columns:1fr}.efficiency-task-panel{position:static;order:0}.office-app{order:1}.efficiency-task-panel ol{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}}
@media(max-width:650px){.efficiency-test-header{align-items:flex-start;flex-direction:column}.efficiency-test-meta{width:100%;justify-content:space-between;gap:8px}.efficiency-task-panel ol{grid-template-columns:1fr}.office-ribbon{gap:8px;padding:8px}.word-document-wrap{padding:12px;min-height:400px}.word-document{padding:28px 24px;min-height:500px}.efficiency-result-dialog{padding:18px}.efficiency-result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.efficiency-result-actions{display:grid}.efficiency-result-actions button{width:100%}}
@media print{body.printing-efficiency-report>*:not(#efficiency-result-modal){display:none!important}body.printing-efficiency-report #efficiency-result-modal{position:static;display:block;background:#fff;padding:0;overflow:visible}body.printing-efficiency-report .efficiency-result-dialog{width:100%;max-height:none;overflow:visible;box-shadow:none;border-radius:0;padding:12mm}body.printing-efficiency-report .efficiency-result-actions,body.printing-efficiency-report #efficiency-result-close{display:none!important}body.printing-efficiency-report .efficiency-result-brand:after{content:"AG Typing Tutor by Xtreme AG Apps";position:absolute;inset:40% 0 auto;text-align:center;font-size:25pt;color:#dce7f5;transform:rotate(-25deg);z-index:0;pointer-events:none}@page{size:A4 portrait;margin:12mm}}

/* Efficiency language chooser, serial exercise catalogue and Office 2016 practice view */
.efficiency-hub,.efficiency-catalog{display:grid;gap:18px;max-width:1500px;margin:0 auto;padding:8px 0 28px;color:var(--text,#1e293b)}
.efficiency-hub-hero{padding:28px;border:1px solid #d4e3f6;border-radius:22px;background:linear-gradient(125deg,#fff 0%,#eef6ff 65%,#e6f1ff 100%);box-shadow:0 8px 30px #2d5b8c0b}
.efficiency-hub-hero .eyebrow,.efficiency-catalog .eyebrow{font-size:.68rem;font-weight:900;letter-spacing:.16em;color:#176bd4}
.efficiency-hub-hero h2,.efficiency-catalog h2{font-size:clamp(1.5rem,2.5vw,2.1rem);margin:8px 0;color:#173454}
.efficiency-hub-hero p,.efficiency-catalog-top p{color:#647b98;margin:0;line-height:1.55}
.efficiency-hub-stats{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.efficiency-hub-stats span{display:grid;gap:4px;padding:12px 16px;min-width:145px;border:1px solid #d8e6f8;background:#ffffffc9;border-radius:12px}
.efficiency-hub-stats strong{font-size:1.35rem;color:#176bd4}.efficiency-hub-stats small{font-size:.75rem;color:#647b98}
.efficiency-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.efficiency-language-card{display:grid;grid-template-columns:54px minmax(0,1fr) 20px;gap:14px;align-items:center;text-align:left;padding:22px;border:1px solid #d7e4f5;border-radius:18px;background:#fff;cursor:pointer;box-shadow:0 4px 16px #254c7608;transition:transform .16s,border-color .16s,box-shadow .16s}
.efficiency-language-card:hover,.efficiency-exercise-card:not(:disabled):hover{transform:translateY(-2px);border-color:#78b4ff;box-shadow:0 9px 24px #2764a414}
.efficiency-language-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#176bd4;color:#fff;font-weight:900;font-size:1.1rem}.efficiency-language-icon.hindi{background:#13845b}
.efficiency-language-card strong,.efficiency-exercise-copy strong{display:block;color:#173454;font-size:1rem}.efficiency-language-card small,.efficiency-exercise-copy small{display:block;margin-top:5px;color:#71839a;font-size:.78rem;line-height:1.45}.efficiency-card-arrow{font-size:1.6rem;color:#2778d9}.efficiency-hub-note{margin:0;color:#6c819c;font-size:.82rem}
.efficiency-catalog-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:20px 22px;background:#fff;border:1px solid #d7e4f5;border-radius:18px}
.efficiency-catalog-top h2{font-size:1.55rem;margin:5px 0}.efficiency-catalog-count{display:grid;place-items:center;min-width:76px;padding:10px;border-radius:13px;background:#eaf3ff;color:#176bd4}.efficiency-catalog-count strong{font-size:1.3rem}.efficiency-catalog-count small{font-size:.7rem;color:#5c7ca1}
.efficiency-exercise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.efficiency-exercise-card{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:12px;text-align:left;min-width:0;padding:13px 15px;border:1px solid #d9e5f4;border-radius:13px;background:#fff;cursor:pointer;transition:transform .16s,border-color .16s}.efficiency-exercise-card:disabled{opacity:.55;cursor:not-allowed;background:#f5f7fa}
.efficiency-exercise-number,.efficiency-question-number{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e7f1ff;color:#176bd4;font-weight:900;font-variant-numeric:tabular-nums}
.efficiency-question-list{display:grid;gap:10px}.efficiency-question-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 18px;border:1px solid #d9e5f4;border-radius:14px;background:#fff}.efficiency-question-copy strong{display:block;color:#173454}.efficiency-question-copy p{margin:5px 0;color:#536b87;font-size:.84rem;line-height:1.5}.efficiency-question-copy small{font-size:.72rem;color:#8191a6;text-transform:capitalize}.efficiency-question-row .primary-button{min-width:82px;justify-content:center}
.efficiency-fullscreen{position:fixed!important;inset:0!important;z-index:9990!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;gap:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#eaf1f9!important;color:#1f2937!important;box-sizing:border-box!important}
.efficiency-fullscreen-top{height:54px;min-height:54px;display:flex;align-items:center;gap:12px;padding:0 16px;background:#fff;border-bottom:1px solid #d6e0ed;box-shadow:0 2px 8px #23405e0a}
.efficiency-product-mark{display:grid;place-items:center;width:30px;height:32px;border-radius:5px;color:#fff;background:#185abd;font-weight:900}.efficiency-fullscreen-top:has(.efficiency-product-mark) .efficiency-product-mark{flex:0 0 30px}.efficiency-top-label{font-size:.8rem;color:#64748b;font-weight:700;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.efficiency-fullscreen-top #efficiency-timer{font-size:1.45rem;min-width:86px;text-align:center;font-weight:900;color:#176bd4;font-variant-numeric:tabular-nums}.efficiency-fullscreen-top #efficiency-exit{min-height:34px;padding:6px 15px}
.efficiency-fullscreen .efficiency-test-layout{display:grid;grid-template-columns:minmax(265px,320px) minmax(0,1fr);gap:12px;flex:1;min-height:0;padding:12px;overflow:hidden;align-items:stretch}
.efficiency-fullscreen .efficiency-task-panel{position:relative;top:auto;overflow:auto;min-height:0;padding:18px;border-radius:12px;background:#fff;border-color:#d2deec;box-shadow:0 4px 16px #26486b0a}
.efficiency-fullscreen .efficiency-task-panel h3{font-size:1.08rem;line-height:1.4}.efficiency-fullscreen .efficiency-task-panel>p{font-size:.84rem}.efficiency-fullscreen .efficiency-task-panel li{font-size:.82rem}
.efficiency-fullscreen .office-app{display:flex;flex-direction:column;min-height:0;max-height:100%;border-radius:9px;box-shadow:0 5px 22px #1e36500e}
.efficiency-fullscreen .office-app-titlebar{flex:0 0 42px;height:42px}.efficiency-fullscreen .office-tabs{flex:0 0 auto;overflow-x:auto;white-space:nowrap;padding:0 8px}.efficiency-fullscreen .office-tabs button{padding:10px 12px;font-size:.78rem;white-space:nowrap}
.efficiency-fullscreen .office-ribbon{flex:0 0 auto;display:block;min-height:83px;padding:9px 12px;background:#f6f8fb}.efficiency-fullscreen .office-ribbon-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.efficiency-fullscreen .office-ribbon-controls button,.efficiency-fullscreen .office-ribbon-controls select,.efficiency-fullscreen .office-ribbon-controls input[type=color]{min-height:30px;height:30px;border:1px solid #d0d9e5;border-radius:4px;background:#fff;padding:4px 7px;color:#263548;font-size:.75rem;cursor:pointer}.efficiency-fullscreen .office-ribbon-controls button:hover{background:#e9f2ff;border-color:#9bc5fb}.efficiency-fullscreen .office-ribbon>small{display:block;text-align:center;color:#8190a3;font-size:.66rem;margin-top:5px}
.efficiency-fullscreen .word-ruler{flex:0 0 22px}.efficiency-fullscreen .word-document-wrap{flex:1;min-height:0;overflow:auto;padding:22px;background:#e6ebf2}.efficiency-fullscreen .word-document{min-height:700px;margin:0 auto;padding:55px 60px;max-width:760px;box-sizing:border-box}.efficiency-fullscreen .office-statusbar{flex:0 0 28px;min-height:28px;padding:6px 12px}
.efficiency-fullscreen .excel-formula-row{flex:0 0 38px;display:flex;align-items:center;gap:7px;padding:4px 9px;background:#f8fafc;border-bottom:1px solid #dce3ec}.efficiency-fullscreen .excel-formula-row #excel-name-box{min-width:58px;padding:5px 8px;border:1px solid #d0d9e5;background:#fff;font-size:.78rem}.efficiency-fullscreen .excel-formula-row .fx-mark{font-weight:800;color:#62748b}.efficiency-fullscreen .excel-formula-row input{flex:1;min-width:0;height:29px;border:1px solid #d0d9e5;padding:4px 8px}.efficiency-fullscreen .excel-formula-row button{height:29px;width:34px;border:1px solid #b7cce4;background:#fff;border-radius:4px}.efficiency-fullscreen .excel-grid-wrap{flex:1;min-height:0;overflow:auto;background:#fff}.efficiency-fullscreen .excel-grid{border-collapse:collapse;min-width:100%;width:max-content;font-size:.78rem}.efficiency-fullscreen .excel-grid th{position:sticky;top:0;z-index:1;background:#edf1f5;color:#586a7f;border:1px solid #d6dde6;padding:5px 8px;min-width:90px}.efficiency-fullscreen .excel-grid th:first-child{left:0;z-index:2;min-width:36px}.efficiency-fullscreen .excel-grid td{border:1px solid #d9e0e8;padding:0;min-width:90px;height:28px}.efficiency-fullscreen .excel-grid td input{display:block;width:100%;height:28px;box-sizing:border-box;border:0;outline:0;padding:4px 7px;background:transparent;font:inherit;color:#263548}.efficiency-fullscreen .excel-grid td input:focus{box-shadow:inset 0 0 0 2px #217346}.efficiency-fullscreen .excel-grid .excel-heading-cell{font-weight:700;background:#f1f6fc}.efficiency-fullscreen .excel-grid .excel-bold-cell{font-weight:800}.efficiency-fullscreen .excel-grid .excel-fill-cell{background:#fff2cc}.efficiency-fullscreen .excel-grid .excel-border-cell{outline:1px solid #217346;outline-offset:-2px}.efficiency-fullscreen .excel-grid .excel-formula-error{color:#b42318}.efficiency-fullscreen .excel-grid.excel-hide-gridlines td{border-color:transparent}.efficiency-fullscreen .excel-grid.excel-table-styled .excel-heading-cell{background:#d9ead3}.efficiency-fullscreen .excel-sheet-tabs{flex:0 0 28px;display:flex;align-items:center;gap:8px;padding:3px 10px;background:#f5f7fa;border-top:1px solid #dbe2eb}.efficiency-fullscreen .excel-sheet-tabs button{border:0;background:#fff;padding:4px 10px;color:#217346;border-bottom:2px solid #217346}.efficiency-fullscreen .excel-sheet-tabs span{margin-left:auto;color:#718096;font-size:.72rem}
.efficiency-result-overlay{z-index:10020!important}
.efficiency-result-dialog{max-height:calc(100vh - 32px);overflow:auto}
.word-inserted-header,.word-inserted-footer,.word-page-number,.word-footnote,.word-comment{font-size:.82em;color:#52677e;border-top:1px solid #d6deea;padding-top:8px;margin-top:14px}.word-read-mode{max-width:980px!important;line-height:1.8!important}.word-track-changes{outline:2px dashed #d97706}.excel-percent-cell{background:#eef8ed!important}.excel-currency-cell{background:#fff8e7!important}.excel-filter-on thead th{background:#dbeafe!important}.excel-freeze-first-row tr:first-child th{position:sticky;top:24px}
@media(max-width:900px){.efficiency-fullscreen .efficiency-test-layout{grid-template-columns:minmax(230px,280px) minmax(0,1fr)}.efficiency-fullscreen .office-tabs button{padding:9px 8px}.efficiency-catalog-top{grid-template-columns:auto minmax(0,1fr)}.efficiency-catalog-count{grid-column:2;justify-self:start}}
@media(max-width:680px){.efficiency-language-grid,.efficiency-exercise-grid{grid-template-columns:1fr}.efficiency-catalog-top{grid-template-columns:1fr;align-items:start}.efficiency-catalog-count{grid-column:auto}.efficiency-question-row{grid-template-columns:42px minmax(0,1fr)}.efficiency-question-row .primary-button{grid-column:2;justify-self:start}.efficiency-fullscreen{overflow:auto!important}.efficiency-fullscreen-top{padding:0 8px;gap:8px}.efficiency-fullscreen-top .efficiency-top-label{font-size:.68rem}.efficiency-fullscreen-top #efficiency-timer{font-size:1.15rem;min-width:65px}.efficiency-fullscreen .efficiency-test-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(460px,1fr);overflow:visible;padding:8px}.efficiency-fullscreen .efficiency-task-panel{max-height:36vh}.efficiency-fullscreen .office-app{min-height:520px}.efficiency-fullscreen .word-document-wrap{padding:12px}.efficiency-fullscreen .word-document{padding:28px 24px;min-height:520px}}
@media print{body.printing-efficiency-report #efficiency-result-modal{position:static!important;background:#fff!important;z-index:100000!important;display:block!important;overflow:visible!important}body.printing-efficiency-report #efficiency-result-modal .efficiency-result-dialog{max-height:none!important;overflow:visible!important;box-shadow:none!important;border:0!important;width:100%!important;max-width:none!important}body.printing-efficiency-report #efficiency-result-modal .efficiency-result-actions,body.printing-efficiency-report #efficiency-result-close{display:none!important}}

/* Office 2016-inspired efficiency workspace refinements */
.efficiency-fullscreen .efficiency-fullscreen-top{height:58px;min-height:58px;padding:0 18px;gap:14px;background:#fff;box-shadow:0 1px 3px rgba(25,45,70,.08)}
.efficiency-fullscreen .efficiency-fullscreen-top.word-topbar{border-top:4px solid #2b579a}
.efficiency-fullscreen .efficiency-fullscreen-top.excel-topbar{border-top:4px solid #217346}
.efficiency-fullscreen .efficiency-fullscreen-top.word-topbar .efficiency-product-mark{background:#2b579a}
.efficiency-fullscreen .efficiency-fullscreen-top.excel-topbar .efficiency-product-mark{background:#217346}
.efficiency-fullscreen .efficiency-timer-label{font-size:.63rem;letter-spacing:.09em;font-weight:800;color:#7b8797;white-space:nowrap}
.efficiency-fullscreen .efficiency-fullscreen-top #efficiency-timer{font-size:1.55rem;min-width:76px;color:#1f5ea8}
.efficiency-fullscreen .efficiency-fullscreen-top #efficiency-timer.efficiency-time-warning{color:#c62828}
.efficiency-fullscreen .efficiency-test-layout{grid-template-columns:minmax(340px,380px) minmax(0,1fr);gap:12px;padding:12px;background:#e9edf4}
.efficiency-fullscreen .efficiency-task-panel{padding:16px 15px;border:1px solid #cfd8e5;border-radius:5px;box-shadow:0 1px 2px rgba(20,45,75,.05);background:#fff}
.efficiency-fullscreen .efficiency-task-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #e5eaf1}
.efficiency-fullscreen .efficiency-task-panel .eyebrow{font-size:.66rem;letter-spacing:.12em;color:#2b579a;font-weight:800}
.efficiency-fullscreen .efficiency-task-panel h3{margin:12px 0 8px;font-size:1rem;color:#26364b;line-height:1.4}
.efficiency-fullscreen .efficiency-question-instruction{font-size:.8rem;line-height:1.5;color:#5c6c80;margin:0 0 12px}
.efficiency-fullscreen .efficiency-current-tasks{display:flex;flex-direction:column;gap:0;padding:0;margin:0 0 12px;list-style:none}
.efficiency-fullscreen .efficiency-current-tasks li{display:grid;grid-template-columns:25px minmax(0,1fr) 38px;gap:8px;align-items:start;padding:10px 0;border-bottom:1px solid #e8edf3;font-size:.78rem;line-height:1.45}
.efficiency-fullscreen .efficiency-current-tasks li>span{display:grid;place-items:center;width:23px;height:23px;border-radius:3px;background:#e8f0fb;color:#245ba6;font-weight:800}
.efficiency-fullscreen .efficiency-current-tasks li>b{font-size:.72rem;color:#65758b;text-align:right;white-space:nowrap}
.efficiency-fullscreen .efficiency-task-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin:12px 0 8px}
.efficiency-fullscreen .efficiency-task-actions button{min-height:39px;border-radius:3px;font-size:.76rem;font-weight:700;padding:8px 9px}
.efficiency-fullscreen .efficiency-start-button{background:#217346;border-color:#217346;color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.2)}
.efficiency-fullscreen .efficiency-start-button:hover:not(:disabled){background:#185c36}
.efficiency-fullscreen .efficiency-task-actions button:disabled{opacity:.55;cursor:not-allowed}
.efficiency-fullscreen #efficiency-feedback{font-size:.72rem;line-height:1.45;margin:7px 0 12px;color:#66778d}
.efficiency-all-questions{border-top:1px solid #dfe6ef;margin-top:13px;padding-top:11px}
.efficiency-question-nav-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;color:#293b52;font-size:.77rem}
.efficiency-question-nav-title span{color:#6d7c90;font-size:.68rem}
.efficiency-question-nav-list{display:flex;flex-direction:column;gap:4px;max-height:310px;overflow-y:auto;padding-right:3px;scrollbar-color:#c2ccd9 #f3f6fa;scrollbar-width:thin}
.efficiency-question-nav-item{width:100%;display:grid;grid-template-columns:31px minmax(0,1fr) 16px;gap:8px;align-items:center;text-align:left;border:1px solid #e0e6ee;border-radius:4px;background:#fff;padding:7px 8px;cursor:pointer;color:#34445a;transition:background .12s,border-color .12s}
.efficiency-question-nav-item:hover{background:#f1f6fd;border-color:#9dbce6}
.efficiency-question-nav-item.active{background:#eaf2ff;border-color:#6a9fe4;box-shadow:inset 3px 0 #2b579a}
.efficiency-question-nav-item.answered{border-left:3px solid #2b7a4b}
.efficiency-question-nav-number{display:grid;place-items:center;width:28px;height:27px;border-radius:3px;background:#edf1f6;color:#50637b;font-size:.7rem;font-weight:800}
.efficiency-question-nav-item.active .efficiency-question-nav-number{background:#2b579a;color:#fff}
.efficiency-question-nav-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.efficiency-question-nav-copy strong{font-size:.72rem;line-height:1.3;font-weight:700;white-space:normal}
.efficiency-question-nav-copy small{font-size:.63rem;color:#758398;text-transform:capitalize}
.efficiency-question-nav-status{font-size:1rem;color:#2b579a;text-align:center}
.efficiency-fullscreen .office-app{border:1px solid #c7d0dc;border-radius:3px;box-shadow:0 1px 3px rgba(20,35,55,.1);background:#f3f5f8}
.efficiency-fullscreen .office-app-titlebar{height:40px;min-height:40px;flex:0 0 40px;padding:0 11px;background:#2b579a;color:#fff;border-bottom:0;gap:9px}
.efficiency-fullscreen .office-excel .office-app-titlebar{background:#217346}
.efficiency-fullscreen .office-app-titlebar strong{font-size:.78rem;font-weight:600;color:#fff}
.efficiency-fullscreen .office-app-icon{width:24px;height:25px;border-radius:2px;background:#fff!important;color:#2b579a!important;font-size:.9rem;box-shadow:none}
.efficiency-fullscreen .office-excel .office-app-icon{color:#217346!important}
.efficiency-fullscreen .office-save-status{margin-left:auto;color:rgba(255,255,255,.82);font-size:.68rem}
.efficiency-fullscreen .office-titlebar-action{width:27px;height:25px;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:2px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.efficiency-fullscreen .office-titlebar-action:hover{background:rgba(255,255,255,.22)}
.efficiency-fullscreen .office-tabs{min-height:35px;background:#f3f3f3;border-bottom:1px solid #d0d0d0;gap:0;padding:0 7px}
.efficiency-fullscreen .office-tabs button{height:35px;padding:0 14px;color:#333;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;font-size:.75rem;font-weight:500}
.efficiency-fullscreen .office-tabs button:hover{background:#e5eaf1;color:#1e3c68}
.efficiency-fullscreen .office-tabs button.active{color:#2b579a;background:#fff;border-bottom:2px solid #2b579a;font-weight:700}
.efficiency-fullscreen .office-excel .office-tabs button.active{color:#217346;border-bottom-color:#217346}
.efficiency-fullscreen .office-tabs button.office-file-tab{background:#2b579a;color:#fff}
.efficiency-fullscreen .office-excel .office-tabs button.office-file-tab{background:#217346}
.efficiency-fullscreen .office-ribbon{background:#fff;border-bottom:1px solid #cfd5de;min-height:91px;padding:9px 11px 6px}
.efficiency-fullscreen .office-ribbon-controls{align-items:flex-start;gap:4px;min-height:58px}
.efficiency-fullscreen .office-ribbon-controls button,.efficiency-fullscreen .office-ribbon-controls select,.efficiency-fullscreen .office-ribbon-controls input[type=color]{min-height:29px;height:29px;border:1px solid #c8ced7;border-radius:2px;background:linear-gradient(#fff,#f7f7f7);padding:4px 8px;color:#303943;font-size:.72rem;box-shadow:inset 0 1px rgba(255,255,255,.8)}
.efficiency-fullscreen .office-ribbon-controls button:hover{background:#eaf2fc;border-color:#7ca8dc;color:#1d4f91}
.efficiency-fullscreen .office-ribbon-controls button:active{background:#dce9f8;box-shadow:inset 0 1px 2px rgba(0,0,0,.12)}
.efficiency-fullscreen .office-ribbon-controls select{background-color:#fff}
.efficiency-fullscreen .office-ribbon>small{font-size:.62rem;color:#7c8795;border-top:1px solid #edf0f4;padding-top:4px;margin-top:2px}
.efficiency-fullscreen .word-ruler{background:#f8f9fb;border-bottom:1px solid #cfd5de;color:#7b8797}
.efficiency-fullscreen .word-document-wrap{background:#e2e6ec;padding:22px}
.efficiency-fullscreen .word-document{border:1px solid #d8dce2;box-shadow:0 2px 6px rgba(20,30,45,.13);color:#202124}
.efficiency-fullscreen .excel-formula-row{background:#f5f6f8;border-bottom-color:#cfd5de}
.efficiency-fullscreen .excel-grid th{background:#f0f1f3;color:#424a55;border-color:#cfd5de;font-weight:500}
.efficiency-fullscreen .excel-grid td{border-color:#d7dce2}
.efficiency-fullscreen .excel-grid td input:focus{box-shadow:inset 0 0 0 2px #217346}
.efficiency-fullscreen .excel-sheet-tabs{background:#f4f5f7;border-top-color:#d0d5dd}
.efficiency-fullscreen .excel-sheet-tabs button{border:1px solid #cfd5dd;border-bottom:2px solid #217346;border-radius:2px 2px 0 0}
@media(max-width:1050px){.efficiency-fullscreen .efficiency-test-layout{grid-template-columns:minmax(300px,340px) minmax(0,1fr)}.efficiency-question-nav-list{max-height:240px}}
@media(max-width:700px){.efficiency-fullscreen .efficiency-test-layout{grid-template-columns:1fr;grid-template-rows:minmax(250px,42vh) minmax(500px,1fr);overflow:auto}.efficiency-fullscreen .efficiency-task-panel{max-height:none}.efficiency-question-nav-list{max-height:180px}.efficiency-fullscreen .office-app{min-height:500px}.efficiency-fullscreen .efficiency-timer-label{display:none}}

/* ============================================================================
   MICROSOFT OFFICE 2019 REALISTIC RIBBON, TAB BAR, SUBMENUS & WORKSPACE UI
   Exact match to MS Word 2019 (#2b579a) & MS Excel 2019 (#217346)
   ============================================================================ */

.efficiency-fullscreen .office-app {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  border: 1px solid #8a8886;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  background: #f3f2f1;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  user-select: none;
  overflow: visible;
}

/* --- 1. TITLE BAR & QUICK ACCESS TOOLBAR (QAT) --- */
.efficiency-fullscreen .office-app-titlebar {
  height: 32px !important;
  min-height: 32px !important;
  flex: 0 0 32px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 10px !important;
  background: #2b579a !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
  font-size: 12px !important;
  position: relative;
  z-index: 30;
}
.efficiency-fullscreen .office-excel .office-app-titlebar {
  background: #217346 !important;
}

.o19-qat {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
.o19-autosave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.o19-autosave-pill {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 1px 3px;
  box-sizing: border-box;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.15);
  position: relative;
  transition: background 0.15s ease;
}
.o19-autosave-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  margin-right: 3px;
  transition: transform 0.15s ease;
}
.o19-autosave.is-on .o19-autosave-pill {
  background: rgba(255, 255, 255, 0.28);
}
.o19-autosave.is-on .o19-autosave-pill::before {
  transform: translateX(18px);
}

.o19-qat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 11px;
  position: relative;
}
.o19-qat-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.o19-qat-btn:active {
  background: rgba(255, 255, 255, 0.25);
}
.o19-qat-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}
.o19-qat-caret {
  font-size: 8px;
  opacity: 0.85;
  margin-left: 1px;
}

.o19-titlebar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
}
.o19-titlebar-center strong {
  font-weight: 400 !important;
  font-size: 12px !important;
  color: #ffffff !important;
}
.o19-titlebar-saved {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.o19-titlebar-right {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
}
.o19-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 100%;
  font-size: 11.5px;
  color: #ffffff;
  cursor: pointer;
}
.o19-user-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}
.o19-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.o19-win-btn {
  width: 38px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}
.o19-win-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.o19-win-btn.o19-win-close:hover {
  background: #e81123;
}

/* --- 2. RIBBON TAB BAR (MS WORD / EXCEL 2019) --- */
.efficiency-fullscreen .office-tabs {
  height: 31px !important;
  min-height: 31px !important;
  flex: 0 0 31px !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 6px 0 0 !important;
  background: #f3f2f1 !important;
  border-bottom: 1px solid #d2d0ce !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  position: relative;
  z-index: 25;
}
.efficiency-fullscreen .office-tabs::-webkit-scrollbar {
  display: none;
}
.efficiency-fullscreen .office-tabs button[data-word-tab],
.efficiency-fullscreen .office-tabs button[data-excel-tab] {
  position: relative;
  height: 30px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #252423 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s ease, color 0.1s ease;
}
.efficiency-fullscreen .office-tabs button[data-word-tab]:hover,
.efficiency-fullscreen .office-tabs button[data-excel-tab]:hover {
  background: #edebe9 !important;
  color: #11100f !important;
}
.efficiency-fullscreen .office-tabs button.office-file-tab {
  padding: 0 16px !important;
  color: #252423 !important;
  background: transparent !important;
}
.efficiency-fullscreen .office-tabs button.office-file-tab:hover {
  background: #2b579a !important;
  color: #ffffff !important;
}
.efficiency-fullscreen .office-excel .office-tabs button.office-file-tab:hover {
  background: #217346 !important;
  color: #ffffff !important;
}
.efficiency-fullscreen .office-tabs button.active {
  color: #2b579a !important;
  font-weight: 600 !important;
  background: #f3f2f1 !important;
  border-bottom: 3px solid #2b579a !important;
}
.efficiency-fullscreen .office-excel .office-tabs button.active {
  color: #217346 !important;
  border-bottom: 3px solid #217346 !important;
}
.efficiency-fullscreen .office-tabs button.o19-contextual-tab {
  background: rgba(43, 87, 154, 0.08) !important;
  color: #185abd !important;
  border-top: 2px solid #2b579a !important;
}

.o19-tell-me {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 0 10px;
  height: 26px;
  align-self: center;
  border: 1px solid transparent;
  background: transparent;
  color: #605e5c;
  font-size: 12px;
  cursor: text;
  position: relative;
}
.o19-tell-me:hover,
.o19-tell-me:focus-within {
  background: #ffffff;
  border-color: #c8c6c4;
}
.o19-tell-me-icon {
  color: #d83b01;
  font-size: 13px;
  line-height: 1;
}
.o19-tell-me input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: #252423;
  width: 155px;
}
.o19-tell-me input::placeholder {
  color: #605e5c;
}

/* --- 3. RIBBON BODY & MULTI-ROW GROUPS --- */
.efficiency-fullscreen .office-ribbon {
  position: relative;
  flex: 0 0 98px !important;
  height: 98px !important;
  min-height: 98px !important;
  max-height: 98px !important;
  padding: 4px 6px 3px !important;
  background: #f3f2f1 !important;
  border-bottom: 1px solid #d2d0ce !important;
  display: flex !important;
  align-items: stretch !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  z-index: 20;
}
.efficiency-fullscreen .office-ribbon.is-collapsed {
  display: none !important;
}

.o19-ribbon-strip {
  display: flex;
  align-items: stretch;
  height: 90px;
  min-width: max-content;
  gap: 0;
}

.o19-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 5px 2px;
  border-right: 1px solid #d2d0ce;
  position: relative;
  height: 90px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.o19-group:last-child {
  border-right: 0;
}

.o19-group-body {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  height: 68px;
}

.o19-group-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  position: relative;
  padding: 0 14px;
}
.o19-group-title {
  font-size: 11px;
  color: #605e5c;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.o19-dialog-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #605e5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 1px;
}
.o19-dialog-launcher:hover {
  background: #c8c6c4;
  color: #201f1e;
}
.o19-dialog-launcher svg {
  width: 10px;
  height: 10px;
}

/* --- 4. RIBBON BUTTONS, SPLIT BUTTONS, STACKS & ROWS --- */
.o19-col-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  height: 66px;
}
.o19-row {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}
.o19-row-tall {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 31px;
}

/* Large vertical button (Paste, Table, Pictures, Margins, AutoSum, etc.) */
.o19-btn-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 40px;
  height: 66px;
  padding: 2px 4px 2px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #252423;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
}
.o19-btn-large:hover,
.o19-btn-large.is-open {
  background: #c8c6c455;
  border-color: #c8c6c4;
}
.o19-btn-large:active,
.o19-btn-large.is-active {
  background: #c8c6c499;
  border-color: #a19f9d;
}
.o19-btn-large .o19-icon-lg {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}
.o19-btn-large .o19-icon-lg svg {
  width: 26px;
  height: 26px;
}
.o19-btn-large .o19-lbl-lg {
  display: inline-block;
  max-width: 68px;
  white-space: normal;
  word-break: keep-all;
  font-size: 11px;
  color: #252423;
}
.o19-btn-large .o19-caret {
  font-size: 8px;
  color: #605e5c;
  line-height: 1;
  margin-top: 1px;
}

/* Small horizontal button with icon + label (Cut, Copy, Format Painter, Find, Replace, etc.) */
.o19-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #252423;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}
.o19-btn-sm:hover,
.o19-btn-sm.is-open {
  background: #c8c6c455;
  border-color: #c8c6c4;
}
.o19-btn-sm:active,
.o19-btn-sm.is-active {
  background: #c8c6c499;
  border-color: #a19f9d;
}
.o19-btn-sm svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.o19-btn-sm .o19-caret {
  font-size: 8px;
  color: #605e5c;
  margin-left: 2px;
}

/* Compact icon-only or icon+caret button in Font / Paragraph / Alignment rows */
.o19-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 24px;
  height: 22px;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #252423;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11.5px;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
}
.o19-btn-icon:hover,
.o19-btn-icon.is-open {
  background: #c8c6c466;
  border-color: #b3b0ad;
}
.o19-btn-icon:active,
.o19-btn-icon.is-active {
  background: #c8c6c4aa;
  border-color: #8a8886;
}
.o19-btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.o19-btn-icon .o19-caret {
  font-size: 8px;
  color: #605e5c;
  margin-left: 1px;
}

/* Separator bar between mini-groups inside a row */
.o19-mini-sep {
  width: 1px;
  height: 16px;
  background: #d2d0ce;
  margin: 0 2px;
  display: inline-block;
}

/* Combo Boxes (Calibri (Body), 11, General, etc.) */
.o19-combo {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border: 1px solid #ababab;
  background: #ffffff;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
}
.o19-combo:hover,
.o19-combo:focus-within {
  border-color: #2b579a;
}
.efficiency-fullscreen .office-excel .o19-combo:hover,
.efficiency-fullscreen .office-excel .o19-combo:focus-within {
  border-color: #217346;
}
.o19-combo-input {
  border: 0;
  outline: 0;
  background: transparent;
  height: 20px;
  padding: 0 5px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11.5px;
  color: #252423;
  width: 100%;
  cursor: pointer;
}
.o19-combo-arrow {
  width: 16px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #605e5c;
  border-left: 1px solid transparent;
  flex-shrink: 0;
}
.o19-combo:hover .o19-combo-arrow {
  background: #e1dfdd;
  border-left-color: #c8c6c4;
}

/* Numeric Spinner Controls in Layout -> Paragraph & Excel Scale to Fit */
.o19-spinner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  height: 21px;
  font-size: 11px;
  color: #252423;
}
.o19-spinner-lbl {
  min-width: 42px;
  color: #3b3a39;
  font-size: 11px;
}
.o19-spinner-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ababab;
  background: #ffffff;
  height: 20px;
  width: 66px;
}
.o19-spinner-box input {
  width: 48px;
  height: 18px;
  border: 0;
  outline: 0;
  padding: 0 4px;
  font-size: 11px;
  color: #252423;
  background: transparent;
}
.o19-spinner-btns {
  display: flex;
  flex-direction: column;
  width: 16px;
  height: 18px;
  border-left: 1px solid #d2d0ce;
}
.o19-spinner-btns button {
  height: 9px;
  border: 0;
  padding: 0;
  background: #f3f2f1;
  color: #3b3a39;
  font-size: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.o19-spinner-btns button:hover {
  background: #c8c6c4;
}

/* --- 5. WORD 2019 STYLES GALLERY STRIP --- */
.o19-styles-gallery {
  display: flex;
  align-items: stretch;
  border: 1px solid #c8c6c4;
  background: #ffffff;
  height: 62px;
  padding: 2px;
  gap: 2px;
  box-sizing: border-box;
}
.o19-style-card {
  width: 60px;
  height: 56px;
  border: 1px solid transparent;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3px 4px 2px;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}
.o19-style-card:hover {
  border-color: #a19f9d;
  background: #faf9f8;
}
.o19-style-card.is-selected {
  border: 1px solid #2b579a;
  background: #f3f9fd;
  box-shadow: inset 0 0 0 1px #2b579a;
}
.o19-style-preview {
  font-size: 14px;
  line-height: 1.15;
  color: #252423;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  margin-top: 3px;
}
.o19-style-name {
  font-size: 10.5px;
  color: #3b3a39;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.o19-styles-more-col {
  display: flex;
  flex-direction: column;
  width: 15px;
  border-left: 1px solid #d2d0ce;
  margin-left: 1px;
}
.o19-styles-more-col button {
  flex: 1;
  border: 0;
  background: #f3f2f1;
  color: #3b3a39;
  font-size: 8px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.o19-styles-more-col button:hover {
  background: #c8c6c4;
}

/* --- 6. FLOATING DROPDOWN SUBMENUS ("SAB MENU") --- */
.o19-dropdown-menu {
  position: fixed;
  z-index: 100050;
  min-width: 195px;
  max-width: 340px;
  max-height: 430px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #b3b0ad;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  padding: 3px 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: #252423;
  user-select: none;
}
.o19-menu-header {
  padding: 5px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #605e5c;
  background: #f3f2f1;
  border-top: 1px solid #edebe9;
  border-bottom: 1px solid #edebe9;
}
.o19-menu-header:first-child {
  border-top: 0;
}
.o19-menu-divider {
  height: 1px;
  background: #e1dfdd;
  margin: 3px 0;
}
.o19-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 10px;
  border: 0;
  background: transparent;
  color: #252423;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1.35;
}
.o19-menu-item:hover {
  background: #edebe9;
}
.o19-menu-item.is-checked {
  background: #e1dfdd;
  font-weight: 600;
}
.o19-menu-item-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2b579a;
}
.o19-menu-item-icon svg {
  width: 16px;
  height: 16px;
}
.o19-menu-item-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.o19-menu-item-copy strong {
  font-weight: 600;
  font-size: 12px;
  color: #252423;
}
.o19-menu-item-copy small {
  font-size: 10.5px;
  color: #605e5c;
  line-height: 1.25;
}
.o19-menu-shortcut {
  margin-left: auto;
  font-size: 11px;
  color: #797775;
  padding-left: 12px;
}
.o19-accel {
  text-decoration: underline;
}

/* Color Swatch Grids inside Dropdowns (Font Color, Highlight, Shading, Fill) */
.o19-color-grid {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  gap: 3px;
  padding: 6px 10px;
}
.o19-color-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 26px);
  gap: 5px;
  padding: 8px 12px;
}
.o19-color-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid #c8c6c4;
  padding: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.o19-color-grid-5 .o19-color-swatch {
  width: 26px;
  height: 22px;
}
.o19-color-swatch:hover {
  outline: 2px solid #f25022;
  outline-offset: 0;
  z-index: 2;
}

/* Interactive Table Grid Picker in Insert -> Table */
.o19-table-picker {
  padding: 8px 10px 6px;
}
.o19-table-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  gap: 2px;
  margin-top: 4px;
}
.o19-table-cell-pick {
  width: 18px;
  height: 16px;
  border: 1px solid #8a8886;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}
.o19-table-cell-pick.is-highlighted {
  border-color: #d83b01;
  background: #fce4d6;
}

/* Gallery Grid in Submenus (Bullets, Numbering, Styles, Shapes) */
.o19-submenu-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 10px;
}
.o19-gallery-tile {
  border: 1px solid #d2d0ce;
  background: #ffffff;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 11px;
  color: #252423;
  text-align: center;
}
.o19-gallery-tile:hover {
  border-color: #2b579a;
  background: #f3f9fd;
}

/* --- 7. WORD 2019 HORIZONTAL & VERTICAL RULERS + CANVAS --- */
.efficiency-fullscreen .word-ruler {
  height: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  background: #f3f2f1 !important;
  border-bottom: 1px solid #d2d0ce !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 18px 0 6px !important;
  gap: 10px;
  user-select: none;
}
.efficiency-fullscreen .word-ruler.is-hidden {
  display: none !important;
}
.o19-tab-selector {
  width: 16px;
  height: 16px;
  border: 1px solid #c8c6c4;
  background: #ffffff;
  color: #252423;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.o19-ruler-track {
  position: relative;
  flex: 1;
  max-width: 780px;
  height: 14px;
  margin: 0 auto;
  background: linear-gradient(90deg, #c8c6c4 0 66px, #ffffff 66px calc(100% - 66px), #c8c6c4 calc(100% - 66px) 100%);
  border: 1px solid #b3b0ad;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 66px;
  box-sizing: border-box;
  font-size: 9.5px;
  color: #605e5c;
}
.o19-ruler-tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.o19-ruler-marker {
  position: absolute;
  top: -2px;
  font-size: 10px;
  color: #605e5c;
  line-height: 1;
  pointer-events: none;
}
.o19-ruler-marker.marker-left {
  left: 62px;
}
.o19-ruler-marker.marker-right {
  right: 62px;
}

.o19-word-workarea {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #e1dfdd;
}
.o19-vertical-ruler {
  width: 20px;
  flex: 0 0 20px;
  background: #f3f2f1;
  border-right: 1px solid #d2d0ce;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  box-sizing: border-box;
}
.o19-vertical-ruler.is-hidden {
  display: none;
}
.o19-vruler-track {
  width: 13px;
  flex: 1;
  background: linear-gradient(180deg, #c8c6c4 0 54px, #ffffff 54px calc(100% - 54px), #c8c6c4 calc(100% - 54px) 100%);
  border: 1px solid #b3b0ad;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  font-size: 8.5px;
  color: #605e5c;
  padding: 54px 0;
  box-sizing: border-box;
}

.efficiency-fullscreen .word-document-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 28px !important;
  background: #e1dfdd !important;
  position: relative;
}
.efficiency-fullscreen .word-document {
  position: relative;
  min-height: 760px;
  margin: 0 auto;
  padding: 64px 66px;
  max-width: 780px;
  background: #ffffff;
  border: 1px solid #b3b0ad !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14) !important;
  font-family: Calibri, Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.15;
  color: #201f1e;
  box-sizing: border-box;
  user-select: text;
}
.efficiency-fullscreen .word-document.show-gridlines {
  background-image: linear-gradient(to right, rgba(160, 185, 220, 0.25) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(160, 185, 220, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
}
.efficiency-fullscreen .word-document.show-pilcrow p::after {
  content: " ¶";
  color: #2b579a;
  font-size: 0.9em;
  opacity: 0.75;
}
.word-watermark-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 64px;
  font-weight: 800;
  color: rgba(128, 128, 128, 0.16);
  transform: rotate(-35deg);
  letter-spacing: 0.08em;
  z-index: 0;
  user-select: none;
}

/* --- 8. EXCEL 2019 FORMULA BAR, GRID & SHEET TABS --- */
.efficiency-fullscreen .excel-formula-row {
  height: 28px !important;
  min-height: 28px !important;
  flex: 0 0 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 6px !important;
  background: #f3f2f1 !important;
  border-bottom: 1px solid #d2d0ce !important;
}
.o19-name-box-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 78px;
  height: 22px;
  border: 1px solid #ababab;
  background: #ffffff;
  padding: 0 5px;
  font-size: 11.5px;
  color: #252423;
  box-sizing: border-box;
}
.o19-formula-btns {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8c6c4;
  background: #ffffff;
  height: 22px;
}
.o19-formula-btns button {
  width: 24px;
  height: 20px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #605e5c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.o19-formula-btns button:hover {
  background: #edebe9;
  color: #201f1e;
}
.o19-formula-btns button.fx-btn {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #252423;
  border-left: 1px solid #e1dfdd;
}
.efficiency-fullscreen .excel-formula-row input#excel-formula-input {
  flex: 1;
  height: 22px !important;
  border: 1px solid #ababab !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  padding: 0 8px !important;
  font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  color: #201f1e !important;
}
.efficiency-fullscreen .excel-formula-row input#excel-formula-input:focus {
  border-color: #217346 !important;
  outline: none !important;
}

.efficiency-fullscreen .excel-grid th {
  background: #e6e6e6 !important;
  color: #252423 !important;
  border: 1px solid #bfbfbf !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  height: 21px !important;
  padding: 0 4px !important;
}
.efficiency-fullscreen .excel-grid th.is-active-header {
  background: #d2d0ce !important;
  color: #217346 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #217346 !important;
}
.efficiency-fullscreen .excel-grid td {
  border: 1px solid #d4d4d4 !important;
  height: 22px !important;
  position: relative;
}
.efficiency-fullscreen .excel-grid td input.excel-cell {
  height: 22px !important;
  font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
  font-size: 11pt !important;
  padding: 1px 5px !important;
  user-select: text;
}
.efficiency-fullscreen .excel-grid td input.excel-cell:focus {
  box-shadow: inset 0 0 0 2px #217346 !important;
  background: #ffffff !important;
}

/* --- 9. OFFICE 2019 STATUS BAR (WORD & EXCEL) --- */
.efficiency-fullscreen .office-statusbar {
  height: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px !important;
  padding: 0 10px !important;
  background: #2b579a !important;
  color: #ffffff !important;
  border-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 11px !important;
}
.efficiency-fullscreen .office-excel .office-statusbar {
  background: #217346 !important;
}
.o19-status-left,
.o19-status-right {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.o19-status-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 5px;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}
.o19-status-item:hover {
  background: rgba(255, 255, 255, 0.15);
}
.o19-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.o19-zoom-btn {
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.o19-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.o19-zoom-slider {
  width: 75px;
  height: 3px;
  accent-color: #ffffff;
  cursor: pointer;
}

/* --- 10. OFFICE 2019 DIALOG BOX MODALS (FONT, PARAGRAPH, PAGE SETUP, REPLACE, FORMAT CELLS) --- */
.o19-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Segoe UI", Arial, sans-serif;
}
.o19-dialog {
  width: min(490px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #f3f2f1;
  border: 1px solid #2b579a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  color: #252423;
  font-size: 12px;
}
.o19-dialog.excel-dialog {
  border-color: #217346;
}
.o19-dialog-titlebar {
  height: 30px;
  padding: 0 6px 0 12px;
  background: #ffffff;
  border-bottom: 1px solid #e1dfdd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #252423;
}
.o19-dialog-close {
  width: 30px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #605e5c;
  font-size: 14px;
  cursor: pointer;
}
.o19-dialog-close:hover {
  background: #e81123;
  color: #ffffff;
}
.o19-dialog-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
  background: #f3f2f1;
  border-bottom: 1px solid #c8c6c4;
}
.o19-dialog-tab {
  padding: 5px 12px;
  border: 1px solid #c8c6c4;
  border-bottom: 0;
  background: #e1dfdd;
  color: #252423;
  font-size: 11.5px;
  cursor: pointer;
}
.o19-dialog-tab.active {
  background: #ffffff;
  font-weight: 600;
  position: relative;
  top: 1px;
}
.o19-dialog-body {
  padding: 14px 16px;
  background: #ffffff;
  margin: 0 12px;
  border: 1px solid #c8c6c4;
  border-top: 0;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}
.o19-dialog-section {
  border-top: 1px solid #e1dfdd;
  padding-top: 8px;
  display: grid;
  gap: 8px;
}
.o19-dialog-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.o19-dialog-sec-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #2b579a;
}
.o19-dialog.excel-dialog .o19-dialog-sec-title {
  color: #217346;
}
.o19-dialog-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.o19-dialog-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
}
.o19-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
}
.o19-field input[type="text"],
.o19-field input[type="number"],
.o19-field select {
  height: 24px;
  border: 1px solid #8a8886;
  padding: 0 6px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  background: #ffffff;
  color: #252423;
}
.o19-field-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  cursor: pointer;
}
.o19-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: #f3f2f1;
}
.o19-dlg-btn {
  min-width: 78px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid #8a8886;
  background: #e1dfdd;
  color: #252423;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
}
.o19-dlg-btn:hover {
  background: #d2d0ce;
  border-color: #2b579a;
}
.o19-dlg-btn.primary {
  border: 2px solid #2b579a;
  background: #e1dfdd;
  font-weight: 600;
}
.o19-dialog.excel-dialog .o19-dlg-btn.primary {
  border-color: #217346;
}

/* --- 11. FILE BACKSTAGE OVERLAY (OFFICE 2019 FILE MENU) --- */
.o19-backstage {
  position: absolute;
  inset: 32px 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: #ffffff;
  color: #252423;
}
.o19-backstage-nav {
  background: #2b579a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.office-excel .o19-backstage-nav {
  background: #217346;
}
.o19-backstage-back {
  width: 36px;
  height: 36px;
  margin: 0 0 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.o19-backstage-back:hover {
  background: rgba(255, 255, 255, 0.16);
}
.o19-backstage-nav button:not(.o19-backstage-back) {
  height: 38px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.o19-backstage-nav button:not(.o19-backstage-back):hover,
.o19-backstage-nav button.active {
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}
.o19-backstage-content {
  padding: 24px 32px;
  overflow-y: auto;
  background: #f3f2f1;
}
.o19-backstage-content h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 300;
  color: #252423;
}
.o19-backstage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}
.o19-backstage-card {
  border: 1px solid #d2d0ce;
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}
.o19-backstage-card:hover {
  border-color: #2b579a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.office-excel .o19-backstage-card:hover {
  border-color: #217346;
}

.efficiency-fullscreen .efficiency-test-layout {
  grid-template-columns: minmax(295px, 325px) minmax(0, 1fr) !important;
}
.efficiency-fullscreen .office-excel .o19-group {
  padding: 2px 4px 2px !important;
}
.efficiency-fullscreen .office-excel .o19-btn-large {
  min-width: 36px !important;
  padding: 2px 3px 2px !important;
}

/* ============================================================================
   IMAGE 1 REPLICA: PRE-TEST INSTRUCTIONS SCREEN (image_9be46b.png)
   ============================================================================ */
.o19-inst-screen {
  max-width: 1180px;
  margin: 18px auto 40px auto;
  padding: 0 20px;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}
.o19-inst-top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.o19-inst-info-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.o19-inst-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.o19-inst-card-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}
.o19-inst-card-sub {
  display: block;
  font-size: 13px;
  color: #6b7280;
}
.o19-inst-heading {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px 0;
}
.o19-inst-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.o19-inst-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: #1f2937;
  line-height: 1.55;
}
.o19-inst-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.o19-inst-start-btn {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.o19-inst-start-btn:hover { background: #1e3a8a; }

/* ============================================================================
   IMAGE 2 REPLICA: FULLSCREEN HEADER, FULL-WIDTH RIBBON & LEFT SIDEBAR (image_9c3722.png)
   ============================================================================ */
.o19-nexus-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 18px;
  color: #ffffff;
  background: #1e4280;
}
.o19-nexus-topbar.excel-theme { background: #185c37; }
.o19-nexus-top-left { display: flex; align-items: center; gap: 14px; }
.o19-nexus-back-btn {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.o19-nexus-mod-title strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.o19-nexus-mod-title span { display: block; font-size: 10px; letter-spacing: 0.08em; opacity: 0.85; text-transform: uppercase; }
.o19-nexus-top-right { display: flex; align-items: center; gap: 10px; }
.o19-live-score-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.o19-nexus-pause-btn {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.24);
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.o19-nexus-timer-pill {
  background: #132c58;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 16px;
  border-radius: 10px;
  font-family: "Courier New", monospace;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.o19-nexus-submit-top {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.o19-full-suite-layout {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 54px) !important;
  overflow: hidden !important;
}
.o19-qat-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #d0d7de;
}
.o19-qat-inline .o19-qat-btn { color: #334155 !important; }

.o19-below-ribbon-split {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative;
}

.o19-nexus-sidebar {
  width: 340px;
  min-width: 340px;
  background: #f8fafc;
  border-right: 1px solid #dbe2ea;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: width 0.2s ease, min-width 0.2s ease;
}
.o19-nexus-sidebar.is-collapsed {
  width: 0 !important;
  min-width: 0 !important;
  overflow: visible;
  border-right: none;
}
.o19-nexus-sidebar.is-collapsed > *:not(.o19-sidebar-collapse-handle) { display: none !important; }

.o19-sidebar-collapse-handle {
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 68px;
  background: #1e4280;
  color: #ffffff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  z-index: 20;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.o19-nexus-sidebar-head {
  background: #1a3a6e;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.o19-nexus-sidebar-head.excel-theme { background: #185c37; }
.o19-nexus-sidebar-head h3 { margin: 0 0 2px 0; font-size: 15.5px; font-weight: 800; color: #fff; }
.o19-nexus-sidebar-head span { font-size: 10px; letter-spacing: 0.06em; opacity: 0.85; text-transform: uppercase; display: block; }
.o19-lang-switch-btn {
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.o19-nexus-q-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.o19-nexus-q-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 15px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.o19-nexus-q-card:hover { border-color: #93c5fd; }
.o19-nexus-q-card.active {
  border-color: #1e4280;
  box-shadow: 0 0 0 2px rgba(30, 66, 128, 0.14);
}
.o19-nexus-q-card.answered {
  border-color: #86efac;
  background: #f0fdf4;
}
.o19-nexus-q-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.o19-nexus-q-badges { display: flex; align-items: center; gap: 7px; }
.o19-nexus-q-num {
  background: #1e4280;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}
.o19-nexus-q-pts {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.o19-nexus-q-text {
  margin: 0;
  font-size: 13.2px;
  color: #1f2937;
  line-height: 1.5;
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-word;
}

.o19-nexus-sidebar-foot {
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.o19-nexus-submit-foot {
  width: 100%;
  background: #1e4280;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.o19-doc-stage-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #d6d9de;
}

#word-document .word-doc-line {
  font-family: "Times New Roman", Calibri, serif;
  font-size: 12pt;
  margin: 0 0 8pt 0;
  color: #111827;
}
#word-document .word-doc-para {
  font-family: "Times New Roman", Calibri, serif;
  font-size: 12pt;
  line-height: 1.15;
  margin: 0 0 10pt 0;
  color: #111827;
}
#word-document .is-active-doc-part {
  background-color: rgba(30, 66, 128, 0.05);
  box-shadow: -3px 0 0 #1e4280;
}

.efficiency-exercise-card { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:14px !important; padding:16px 20px !important; border-radius:16px !important; background:#fff !important; border:1px solid #dce5f2 !important; cursor:pointer !important; text-align:left !important; }
.efficiency-exercise-card:hover { border-color:#2563eb !important; box-shadow:0 6px 18px rgba(37,99,235,0.12) !important; }
.efficiency-exercise-card .efficiency-exercise-copy { flex:1 1 auto !important; min-width:0 !important; }
.eff-card-start-btn { flex-shrink:0 !important; background:#1d5bd6 !important; color:#fff !important; font-size:13.5px !important; font-weight:700 !important; padding:9px 22px !important; border-radius:11px !important; }
.o19-q-diff-tag { font-size:9.5px; font-weight:800; padding:2px 6px; border-radius:4px; text-transform:uppercase; }
.o19-q-diff-tag.easy { background:#dcfce7; color:#15803d; }
.o19-q-diff-tag.medium { background:#fef3c7; color:#b45309; }
.o19-q-diff-tag.hard { background:#fee2e2; color:#b91c1c; }
.o19-q-score-pill { font-size:10.5px; font-weight:800; padding:2px 7px; border-radius:999px; background:#f1f5f9; color:#475569; }
.o19-nexus-q-card.answered .o19-q-score-pill { background:#dcfce7; color:#15803d; }
.o19-result-filter-bar { display:flex; gap:8px; margin:10px 0; }
.o19-res-filter-btn { padding:5px 12px; border-radius:999px; border:1px solid #cbd5e1; background:#f8fafc; color:#334155; font-size:11.5px; font-weight:700; cursor:pointer; }
.o19-res-filter-btn.active { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
.o19-solution-list { display:flex; flex-direction:column; gap:10px; max-height:340px; overflow-y:auto; padding-right:6px; margin:10px 0 14px 0; }
.o19-solution-card { border:1px solid #e2e8f0; border-radius:10px; padding:11px 14px; background:#fff; text-align:left; }
.o19-solution-card.is-wrong { border-left:4px solid #ef4444; background:#fffafa; }
.o19-solution-card.is-correct { border-left:4px solid #22c55e; background:#f7fee7; }
.o19-sol-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:6px; }
.o19-sol-title { font-size:13px; font-weight:800; color:#0f172a; line-height:1.35; }
.o19-sol-status { flex-shrink:0; font-size:11.5px; font-weight:800; padding:2px 9px; border-radius:999px; }
.o19-sol-status.pass { background:#dcfce7; color:#15803d; }
.o19-sol-status.fail { background:#fee2e2; color:#b91c1c; }
.o19-sol-steps-box { background:#f8fafc; border:1px solid #dbe3ee; border-radius:8px; padding:8px 11px; }
.o19-solution-card.is-wrong .o19-sol-steps-box { background:#fffbeb; border-color:#fde68a; }
.o19-sol-steps-title { display:block; font-size:11px; font-weight:800; color:#1e40af; margin-bottom:4px; }
.o19-solution-card.is-wrong .o19-sol-steps-title { color:#b45309; }
.o19-sol-steps-ol { margin:0; font-size:11.8px; color:#1e293b; line-height:1.5; }

/* ============================================================================
   RSSB LDC PHASE-II EXAM HALL SIMULATOR STYLES (80 MOCK TESTS + 10-STAGE FLOW)
   ============================================================================ */
.rssb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rssb-entry-dialog {
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  color: #0f172a;
}

.rssb-entry-top-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #ffffff;
}
.rssb-entry-top-banner small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  opacity: 0.9;
}
.rssb-entry-top-banner h2 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.rssb-crest-icon {
  font-size: 32px;
  line-height: 1;
}
.rssb-modal-close-x {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.rssb-entry-body {
  padding: 22px 24px 24px;
}

.rssb-bilingual-notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.rssb-notice-box {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 16px 18px;
}
.rssb-notice-box.hindi-box {
  border-top: 4px solid #ea580c;
  background: #fffaf5;
}
.rssb-notice-box.english-box {
  border-top: 4px solid #2563eb;
  background: #f8fbff;
}
.rssb-lang-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
  margin-bottom: 8px;
}
.rssb-notice-box h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
}
.rssb-notice-box p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.rssb-notice-box ul {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #1e293b;
}
.rssb-notice-box li {
  margin-bottom: 5px;
}
.rssb-practice-redirect-tip {
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.2px !important;
  color: #0f172a !important;
}

.rssb-entry-summary-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #1e3a8a;
  margin-bottom: 18px;
}

.rssb-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.rssb-btn-close {
  padding: 11px 18px;
  font-weight: 700;
}
.rssb-btn-start {
  padding: 11px 22px;
  font-weight: 800;
  background: #1d4ed8;
  color: #ffffff;
}

.rssb-exam-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rssb-hub-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
}
.rssb-hub-hero-left {
  flex: 1 1 480px;
}
.rssb-official-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 8px;
}
.rssb-hub-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}
.rssb-hub-hero p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2e8f0;
}
.rssb-admin-cred-banner {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #fef08a;
}
.rssb-admin-cred-banner code {
  background: #ffffff;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}
.rssb-hub-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}
.rssb-hub-metrics article {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}
.rssb-hub-metrics article span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.rssb-hub-metrics article strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin: 2px 0;
}
.rssb-hub-metrics article small {
  font-size: 10.5px;
  color: #475569;
}

.rssb-mapping-explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
}
.rssb-mapping-box {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.8px;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rssb-hub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rssb-filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.rssb-filter-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.rssb-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.rssb-test-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.rssb-test-card.is-attempted {
  border-color: #93c5fd;
  background: #f8fbff;
}
.rssb-test-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.rssb-test-card-head h3 {
  margin: 4px 0 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
}
.rssb-test-set-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.rssb-test-set-pill.set-a {
  background: #eff6ff;
  color: #1d4ed8;
}
.rssb-test-set-pill.set-b {
  background: #f3e8ff;
  color: #7e22ce;
}
.rssb-attempt-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.rssb-attempt-badge.qualified {
  background: #dcfce7;
  color: #15803d;
}
.rssb-attempt-badge.attempted {
  background: #dbeafe;
  color: #1d4ed8;
}
.rssb-attempt-badge.unattempted {
  background: #f1f5f9;
  color: #64748b;
}

.rssb-test-papers-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
.rssb-test-papers-list > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rssb-test-papers-list span {
  color: #475569;
}
.rssb-test-papers-list strong {
  color: #0f172a;
}

.rssb-test-score-strip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rssb-test-score-strip strong {
  font-size: 16px;
  color: #1e3a8a;
}
.rssb-mini-paper-scores {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}
.rssb-attempt-meta {
  font-size: 10.5px;
  color: #64748b;
}
.rssb-test-unattempted-strip {
  font-size: 11.5px;
  color: #64748b;
}
.rssb-test-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.rssb-test-card-actions button {
  flex: 1;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
}

.rssb-exam-hall-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #eef2f6;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rssb-hall-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 10px 20px;
  background: #1e293b;
  color: #ffffff;
  border-bottom: 2px solid #0f172a;
  flex-shrink: 0;
}
.rssb-hall-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.rssb-hall-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rssb-hall-brand strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rssb-hall-brand small {
  display: block;
  font-size: 11.5px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rssb-hall-candidate-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12.5px;
  white-space: nowrap;
}
.rssb-server-timer-box {
  background: #0f172a;
  border: 1px solid #475569;
  padding: 5px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rssb-server-timer-box strong {
  font-size: 16px;
  font-family: monospace;
  color: #facc15;
}
.rssb-abort-btn {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rssb-hall-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.rssb-login-card-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rssb-official-login-box {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
}
.rssb-official-login-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #1e293b;
}
.rssb-auto-admin-note {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #713f12;
  margin-bottom: 14px;
}
.rssb-login-form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rssb-login-form-row label {
  width: 130px;
  text-align: right;
  font-weight: 700;
  font-size: 13.5px;
  color: #334155;
}
.rssb-login-form-row input {
  width: 220px;
  padding: 7px 10px;
  border: 1px solid #64748b;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  background: #f8fafc;
  color: #0f172a;
}
.rssb-guidelines-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin: 8px 0 14px;
}
.rssb-login-btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rssb-win-btn {
  padding: 8px 16px;
  border: 1px solid #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
}
.rssb-win-btn.primary, .rssb-win-btn.active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1e40af;
}

.rssb-guidelines-box {
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  overflow: hidden;
}
.rssb-guidelines-header {
  background: #e2e8f0;
  padding: 10px 16px;
  border-bottom: 1px solid #94a3b8;
  font-size: 14px;
  color: #0f172a;
}
.rssb-guidelines-content {
  padding: 16px;
}
.rssb-scheme-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 12.8px;
}
.rssb-scheme-table th, .rssb-scheme-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: left;
}
.rssb-scheme-table th {
  background: #f1f5f9;
  font-weight: 800;
  color: #0f172a;
}
.rssb-rules-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  font-size: 12.5px;
  line-height: 1.55;
}
.rssb-rules-two-col h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1e3a8a;
}
.rssb-rules-two-col ul {
  margin: 0;
  padding-left: 18px;
}
.rssb-rules-two-col li {
  margin-bottom: 6px;
}

.rssb-classic-exam-frame {
  max-width: 1060px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.rssb-classic-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.rssb-classic-title-center {
  text-align: center;
  flex: 1;
}
.rssb-classic-title-center h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}
.rssb-classic-rem-time {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.rssb-classic-top-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.rssb-lang-switch-group {
  display: flex;
  gap: 6px;
}

.rssb-kb-instruction-banner {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.rssb-kb-helper-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.rssb-kb-sample-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.rssb-strict-rules-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
}

.rssb-classic-passage-box {
  background: #ffffff;
  color: #000000;
  border: 2px solid #64748b;
  padding: 16px 18px;
  height: 235px;
  overflow-y: auto;
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 14px;
  user-select: none;
  white-space: pre-wrap;
}
.rssb-classic-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #000000;
  border: 2px solid #475569;
  padding: 14px 16px;
  font-size: 19px;
  line-height: 1.8;
  resize: none;
  outline: none;
  font-family: inherit;
}
.rssb-classic-textarea:focus {
  border-color: #1d4ed8;
}
.hindi-devlys-font {
  font-family: "DevLys 010", "Kruti Dev 010", "Mangal", "Noto Sans Devanagari", sans-serif;
  font-size: 21px;
  line-height: 1.95;
}

.rssb-classic-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #475569;
}

.rssb-preview-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.rssb-preview-meta-row p {
  margin: 2px 0;
  font-size: 14px;
}
.rssb-preview-center-head {
  text-align: center;
}
.rssb-preview-center-head h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-style: italic;
}
.rssb-typed-preview-box {
  border: 2px solid #64748b;
  background: #ffffff;
  color: #000000;
  padding: 16px;
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.rssb-confirmation-dialog-card {
  max-width: 640px;
  margin: 0 auto;
  border: 2px solid #64748b;
  background: #f8fafc;
  border-radius: 6px;
  overflow: hidden;
}
.rssb-confirmation-card-header {
  background: #e2e8f0;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  border-bottom: 1px solid #94a3b8;
}
.rssb-confirmation-card-body {
  padding: 16px 20px;
}
.rssb-confirmation-card-body p {
  margin: 0 0 6px;
  font-size: 14px;
}
.rssb-confirm-pass-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.rssb-confirm-pass-row input {
  padding: 7px 10px;
  border: 1px solid #475569;
  font-size: 14px;
  font-weight: 800;
  width: 140px;
  background: #ffffff;
}

.rssb-eff-confirm-header {
  text-align: center;
  margin-bottom: 14px;
}
.rssb-eff-confirm-header h2, .rssb-eff-confirm-header h3 {
  margin: 2px 0;
}
.rssb-eff-confirm-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 10px;
}
.rssb-eff-confirm-bar input {
  padding: 6px 10px;
  width: 120px;
  font-weight: 800;
}
.rssb-eff-snapshot-preview {
  border: 2px solid #94a3b8;
  background: #ffffff;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
}

.rssb-final-report-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}
.rssb-final-uploading-banner {
  background: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.rssb-upload-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  margin-bottom: 6px;
}
.rssb-final-uploading-banner h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}
.rssb-upload-ident {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}
.rssb-upload-checklist {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 13.5px;
}
.rssb-upload-checklist li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rssb-upload-checklist li span {
  color: #15803d;
  font-weight: 900;
}

.rssb-master-scorecard {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 20px 22px;
}
.rssb-master-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.rssb-master-head h3 {
  margin: 4px 0;
  font-size: 19px;
}
.rssb-master-head p {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
}
.rssb-grand-total-badge {
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  min-width: 220px;
}
.rssb-grand-total-badge.pass {
  background: #dcfce7;
  border: 2px solid #22c55e;
  color: #14532d;
}
.rssb-grand-total-badge.fail {
  background: #fee2e2;
  border: 2px solid #ef4444;
  color: #7f1d1d;
}
.rssb-grand-total-badge small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
}
.rssb-grand-total-badge strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin: 2px 0;
}
.rssb-grand-total-badge span {
  font-size: 11.5px;
  font-weight: 800;
}

.rssb-status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.rssb-status-pill.pass {
  background: #dcfce7;
  color: #15803d;
}
.rssb-status-pill.fail {
  background: #fee2e2;
  color: #b91c1c;
}

.rssb-detail-tabs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
}
.rssb-jump-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.rssb-jump-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.rssb-paper-detail-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rssb-paper-detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.rssb-paper-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
}
.rssb-paper-detail-head h3 {
  margin: 4px 0;
  font-size: 18px;
}
.rssb-paper-detail-head p {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
}
.rssb-paper-score-box {
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
}
.rssb-paper-score-box.pass {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
.rssb-paper-score-box.fail {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
.rssb-paper-score-box small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
}
.rssb-paper-score-box strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}
.rssb-paper-score-box span {
  font-size: 11px;
  font-weight: 800;
}

.rssb-metrics-grid-8 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.rssb-metrics-grid-8 article {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.rssb-metrics-grid-8 span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.rssb-metrics-grid-8 strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
}
.rssb-metrics-grid-8 small {
  font-size: 11px;
  color: #475569;
}

.rssb-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.rssb-audit-table th, .rssb-audit-table td {
  border: 1px solid #dbe3ee;
  padding: 8px 10px;
  text-align: left;
}
.rssb-audit-table th {
  background: #f1f5f9;
  font-weight: 800;
}
.rssb-badge-ok {
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.rssb-badge-warn {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.rssb-mistake-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rssb-mistake-chip {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rssb-mistake-chip strong {
  color: #15803d;
}
.rssb-mistake-chip em {
  color: #b91c1c;
  font-style: normal;
  font-weight: 700;
}
.rssb-mistake-chip i {
  font-style: normal;
  color: #64748b;
  font-size: 11px;
}

.rssb-passage-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}
.rssb-passage-comparison-grid h5 {
  margin: 0 0 6px;
  font-size: 13px;
}
.rssb-comp-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.rssb-eff-q-table-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Read-only non-clickable sidebar question cards & Excel range highlight */
.o19-nexus-q-card.o19-readonly-q-card {
  cursor: default !important;
  user-select: none;
  border-color: #dbe3ee !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.o19-nexus-q-card.o19-readonly-q-card:hover {
  border-color: #dbe3ee !important;
  background: #ffffff !important;
  transform: none !important;
}
.excel-cell.is-selected-range {
  background-color: rgba(33, 115, 70, 0.08);
  outline: 1.5px solid #217346;
}


/* ==========================================================================
   MS Office 2013 Classic Flat Metro Ribbon & Excel Multi-Cell Drag-Selection
   ========================================================================== */
.office-edition-2013 .word-titlebar {
  background: #2b579a !important;
  border-bottom: 1px solid #1e3f73 !important;
  box-shadow: none !important;
}
.office-edition-2013.excel-shell .word-titlebar {
  background: #217346 !important;
  border-bottom: 1px solid #165131 !important;
  box-shadow: none !important;
}
.office-edition-2013 .word-tabs {
  background: #2b579a !important;
  padding: 2px 10px 0 10px !important;
  gap: 2px !important;
  border-bottom: 1px solid #d4d4d4 !important;
}
.office-edition-2013.excel-shell .word-tabs {
  background: #217346 !important;
}
.office-edition-2013 .word-tab {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 6px 14px !important;
  border: 1px solid transparent !important;
  border-bottom: none !important;
}
.office-edition-2013 .word-tab:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
.office-edition-2013 .word-tab.is-active {
  background: #f3f3f3 !important;
  color: #2b579a !important;
  font-weight: 700 !important;
  border-color: #d4d4d4 !important;
  box-shadow: none !important;
}
.office-edition-2013.excel-shell .word-tab.is-active {
  color: #217346 !important;
}
.office-edition-2013 .word-tab-file {
  background: #19478a !important;
  color: #ffffff !important;
}
.office-edition-2013.excel-shell .word-tab-file {
  background: #145934 !important;
  color: #ffffff !important;
}
.office-edition-2013 .word-ribbon {
  background: #f3f3f3 !important;
  border-bottom: 1px solid #d4d4d4 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.office-edition-2013 .word-ribbon-group {
  border-right: 1px solid #d9d9d9 !important;
  background: transparent !important;
}
.office-edition-2013 .word-ribbon-btn {
  border-radius: 0 !important;
}
.office-edition-2013 .word-ribbon-btn:hover {
  background: #d5e1f2 !important;
  border-color: #a3bde3 !important;
}
.office-edition-2013.excel-shell .word-ribbon-btn:hover {
  background: #cbe8d6 !important;
  border-color: #8cc6a3 !important;
}
.office-edition-2013 .word-ribbon-btn.is-active {
  background: #c2d5f2 !important;
  border-color: #7da2ce !important;
}
.office-edition-2013.excel-shell .word-ribbon-btn.is-active {
  background: #b5dfc5 !important;
  border-color: #5ea87c !important;
}
.office-edition-2013 .word-statusbar {
  background: #2b579a !important;
  color: #ffffff !important;
  border-top: none !important;
}
.office-edition-2013.excel-shell .word-statusbar {
  background: #217346 !important;
  color: #ffffff !important;
}
.office-edition-2013 .word-tell-me {
  display: none !important;
}

/* Excel True Selection Mode vs Edit Mode */
.excel-sheet-table td {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.excel-cell[readonly] {
  cursor: cell !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  caret-color: transparent !important;
}
.excel-cell.is-selected-range {
  background-color: rgba(33, 115, 70, 0.14) !important;
  outline: 1px solid rgba(33, 115, 70, 0.55) !important;
}
.excel-cell.is-primary-active-cell {
  background-color: #ffffff !important;
  outline: 2.2px solid #217346 !important;
  outline-offset: -2px !important;
  z-index: 3 !important;
}
.excel-cell.is-editing-cell {
  background-color: #ffffff !important;
  outline: 2.2px solid #1d4ed8 !important;
  outline-offset: -2px !important;
  cursor: text !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  caret-color: auto !important;
  z-index: 4 !important;
}


/* ==========================================================================
   1. LEFT SIDEBAR — ONLINE TYPING PORTAL BUTTON WITH "NEW" HIGHLIGHT
   ========================================================================== */
.nav-online-portal-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1.5px solid #3b82f6 !important;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%) !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
  position: relative;
}
.nav-online-portal-btn:hover {
  transform: translateY(-1px) !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2) !important;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%) !important;
}
.nav-online-icon {
  font-size: 18px !important;
  line-height: 1 !important;
  flex-shrink: 0;
}
.nav-online-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.nav-online-copy strong {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #1e3a8a !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-online-copy small {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  line-height: 1.15 !important;
}
.nav-new-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
  animation: agNewPulse 1.6s infinite ease-in-out;
  flex-shrink: 0;
}
@keyframes agNewPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ==========================================================================
   2. HERO — AUTHENTIC 3-ROW STAGGERED QWERTY KEYBOARD ILLUSTRATION
   ========================================================================== */
.keyboard-card.qwerty-hero-keyboard {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: min(100%, 350px) !important;
  padding: 14px 14px 12px !important;
  background: var(--surface, #ffffff) !important;
  border: 1.5px solid var(--purple-border, #c7d7fe) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.13) !important;
  transform: rotate(-2deg);
}
.qwerty-hero-keyboard .keyboard-top {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding-bottom: 7px !important;
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
}
.qwerty-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.qwerty-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.qwerty-row-2 {
  padding-left: 10px;
  padding-right: 6px;
}
.qwerty-row-3 {
  padding-left: 24px;
  padding-right: 18px;
}
.qwerty-row span {
  flex: 1 1 0;
  min-width: 24px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text, #1e293b);
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--border, #cbd5e1);
  position: relative;
}
.qwerty-row span.key-highlight {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #1e40af !important;
  box-shadow: 0 2px 0 #1e3a8a !important;
}
.qwerty-row span.key-home-bump::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 8px;
  height: 1.8px;
  border-radius: 2px;
  background: #ffffff;
}
.qwerty-row-space {
  margin-top: 2px;
  gap: 5px;
}
.qwerty-row-space .qwerty-mod-key {
  flex: 0 0 38px !important;
  font-size: 8.5px !important;
  color: #475569 !important;
  background: #eef2f6 !important;
}
.qwerty-row-space .qwerty-spacebar {
  flex: 1 1 auto !important;
  font-size: 8.5px !important;
  letter-spacing: 0.14em !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
}

/* ==========================================================================
   3. HOME EXAM TILES — 2 LARGE LDC TILES + 3 COMING SOON + 1 OTHER EXAMS
   ========================================================================== */
.app-layout.home-screen > .main-area {
  overflow-y: auto !important;
}
.app-layout.home-screen > .main-area > .exam-tile-section {
  overflow: visible !important;
  height: auto !important;
}
.exam-layout-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.exam-featured-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.exam-coming-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.exam-other-row-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.exam-tile.exam-tile-large-ldc {
  position: relative;
  min-height: 122px !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
  overflow: visible !important;
}
.exam-tile.exam-tile-active-primary {
  border: 2.2px solid #2563eb !important;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 65%, #dbeafe 100%) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12) !important;
}
.exam-tile.exam-tile-daily-live {
  border: 2.2px solid #dc2626 !important;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 65%, #fee2e2 100%) !important;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12) !important;
}
.exam-tile-large-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 115px;
}
.exam-tile-large-icon {
  font-size: 32px !important;
  line-height: 1 !important;
  background: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.exam-tile-large-head strong {
  display: block;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 4px;
}
.exam-tile-large-head p {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #334155 !important;
}
.exam-tile-cta-blue {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #1d4ed8 !important;
}
.exam-tile-cta-red {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #b91c1c !important;
}
.exam-tile-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  letter-spacing: 0.03em;
}
.exam-tile-badge.badge-active { background: #16a34a !important; }
.exam-tile-badge.badge-live { background: #dc2626 !important; }
.exam-tile-badge.badge-soon { background: #f59e0b !important; }

.exam-tile.exam-tile-coming-soon {
  position: relative;
  min-height: 88px !important;
  padding: 15px 18px !important;
  border-radius: 15px !important;
  border: 1.5px dashed #cbd5e1 !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  overflow: visible !important;
}
.exam-tile.exam-tile-other-wide {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  min-height: 70px !important;
  padding: 14px 20px !important;
}
.exam-tile-whatsapp-note {
  display: block;
  color: #b45309 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}
@media (max-width: 860px) {
  .exam-featured-row-2, .exam-coming-row-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. 7-8 REPEATING WATERMARKS ("AG Typing Tutor by Xtreme AG Apps")
      CLEARLY VISIBLE ON ALL RESULT SHEETS & BACKGROUND (NEVER HIDDEN)
   ========================================================================== */
.has-ag-bg-watermarks {
  position: relative !important;
}
.ag-watermark-grid-8 {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  place-items: center;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  overflow: hidden;
}
.ag-bg-watermark-layer {
  z-index: 1 !important;
}
.ag-result-watermark-layer {
  z-index: 40 !important;
}
.ag-card-watermark-layer {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  z-index: 35 !important;
}
.ag-wm-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-24deg);
  text-align: center;
  pointer-events: none !important;
  user-select: none !important;
  white-space: nowrap;
}
.ag-bg-watermark-layer .ag-wm-stamp strong {
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(30, 64, 175, 0.055);
}
.ag-bg-watermark-layer .ag-wm-stamp span {
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 64, 175, 0.05);
}
.ag-result-watermark-layer .ag-wm-stamp strong {
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(30, 64, 175, 0.125) !important;
}
.ag-result-watermark-layer .ag-wm-stamp span {
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(30, 64, 175, 0.115) !important;
}
.report-watermark:before,
.report-watermark:after {
  z-index: 30 !important;
  color: rgba(30, 64, 175, 0.11) !important;
}


/* Fix Live Rank Leaderboard table header contrast */
.daily-live-rank-table thead tr,
.daily-live-rank-table thead th {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
}
.daily-live-rank-table thead th small {
  color: #cbd5e1 !important;
}
