.rse-portal-page #masthead .ast-primary-header-bar {
  background: #071a33;
  border-bottom: 1px solid rgba(211, 174, 85, .42);
}

.rse-portal-page #masthead .site-primary-header-wrap { min-height: 70px; }
.rse-portal-page #masthead .site-logo-img img.custom-logo {
  width: 60px !important;
  max-width: 60px !important;
  height: auto !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .18));
}

.rse-portal-page #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link,
.rse-portal-page #masthead .main-header-menu > .menu-item > .menu-link {
  color: #fff;
}

.rse-portal-page #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
.rse-portal-page #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus {
  color: #e4c56f;
}

.rse-portal-page #masthead .ast-custom-button-link .ast-custom-button {
  color: #071a33;
  background: #d3ae55;
}

.rse-portal-page #masthead .menu-toggle,
.rse-portal-page #masthead .mobile-menu-toggle-icon { color: #fff; }
.rse-portal-page #ast-mobile-header .ast-mobile-header-content { background: #071a33; }
.rse-portal-page.ast-separate-container #primary { margin-top: 16px; }
.rse-portal-page .site-content > .ast-container { max-width: 1280px; }
.rse-portal-page.ast-separate-container .ast-article-single { padding: 0; background: transparent; }
.rse-portal-page .entry-header { display: none; }
.rse-portal-page .entry-content { margin-top: 0; }
.logged-in.rse-portal-page:not(.rse-diagnostic-page) #masthead .ast-builder-menu,
.logged-in.rse-portal-page:not(.rse-diagnostic-page) #masthead .ast-header-button-1 { display: none; }

.rse-portal-shell {
  --rse-navy: #071a33;
  --rse-navy-2: #0d294a;
  --rse-gold: #d3ae55;
  --rse-cream: #f7f0e4;
  --rse-ink: #1d2a39;
  box-sizing: border-box;
  max-width: 1180px;
  margin: 24px auto;
  padding: clamp(24px, 4vw, 48px);
  color: var(--rse-ink);
  background: #fff;
  border: 1px solid #e8e1d6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(7, 26, 51, .08);
}

.rse-portal-shell * { box-sizing: border-box; }
.rse-portal-shell [hidden] { display: none !important; }
.rse-portal-shell h1,
.rse-portal-shell h2,
.rse-portal-shell h3 { color: var(--rse-navy); line-height: 1.16; }
.rse-portal-shell h1 { margin: 4px 0 16px; font-size: clamp(34px, 4vw, 54px); }
.rse-portal-shell p { line-height: 1.7; }
.rse-eyebrow,
.rse-card-kicker { margin: 0 0 8px !important; color: #9b792d; font-size: 13px; font-weight: 800; letter-spacing: 1.8px; }

.rse-portal-hero,
.rse-test-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.rse-portal-hero > div { max-width: 790px; }
.rse-portal-hero h1 { max-width: 760px; overflow-wrap: anywhere; font-size: clamp(32px, 3.8vw, 48px); }
.rse-portal-link { color: var(--rse-navy); font-weight: 700; white-space: nowrap; }
.rse-portal-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin: -18px -18px 28px; padding: 10px 12px; background: #f3f6f8; border: 1px solid #e1e7eb; border-radius: 12px; }
.rse-portal-toolbar a { padding: 7px 11px; color: #435263; border-radius: 8px; font-size: 13px; font-weight: 750; text-decoration: none; }
.rse-portal-toolbar a:hover,
.rse-portal-toolbar a.is-current { color: #fff; background: var(--rse-navy); }

.rse-disclaimer,
.rse-portal-notice,
.rse-instructions { margin: 26px 0; padding: 16px 20px; border-radius: 12px; }
.rse-disclaimer { color: #5c4a23; background: #fbf6e8; border-left: 4px solid var(--rse-gold); }
.rse-portal-notice { max-width: 900px; margin: 40px auto; background: #fff7e7; border: 1px solid #efd79e; }
.rse-instructions { background: #f3f6f9; border: 1px solid #dfe6ed; }

.rse-mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.rse-mock-card { position: relative; overflow: hidden; min-height: 350px; padding: 28px; border: 1px solid #ded8ce; border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #fbf8f1 100%); }
.rse-mock-card h2 { margin: 5px 0 12px; font-size: 27px; }
.rse-mock-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 22px 0 28px; padding: 0; list-style: none; }
.rse-mock-card li::before { content: "✓"; margin-right: 8px; color: #9b792d; font-weight: 800; }
.rse-card-number { position: absolute; right: 18px; top: 6px; color: rgba(7, 26, 51, .055); font: 800 104px/1 Georgia, serif; }
.rse-mock-grid-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rse-mock-grid-modules .rse-mock-card { min-height: 0; }
.rse-start-here { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 28px 0; padding: clamp(22px, 4vw, 34px); color: #fff; background: linear-gradient(135deg, #071a33 0%, #12375c 100%); border-radius: 16px; }
.rse-start-here > div { max-width: 760px; }
.rse-start-here h2 { margin: 3px 0 8px; color: #fff; }
.rse-start-here p { margin: 0; }
.rse-progress-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 28px 0 42px; }
.rse-progress-summary > div { padding: 19px; background: #f7f1e4; border: 1px solid #e5d8b8; border-radius: 12px; }
.rse-progress-summary span,
.rse-progress-summary strong { display: block; }
.rse-progress-summary span { color: #667381; font-size: 12px; }
.rse-progress-summary strong { margin-top: 5px; color: var(--rse-navy); font-size: 25px; }
.rse-dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 35px 0 18px; scroll-margin-top: 24px; }
.rse-dashboard-heading h2 { margin: 3px 0 0; font-size: clamp(27px, 3vw, 36px); }
.rse-dashboard-heading p { margin: 8px 0 0; }
.rse-dashboard-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.rse-dashboard-filters button { padding: 8px 12px; color: #4d5b68; background: #fff; border: 1px solid #d8e0e6; border-radius: 999px; font-weight: 750; cursor: pointer; }
.rse-dashboard-filters button.is-active { color: #fff; background: var(--rse-navy); border-color: var(--rse-navy); }
.rse-module-actions { display: grid; gap: 10px; margin-top: 22px; }
.rse-module-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; background: #fff; border: 1px solid #e2e6ea; border-radius: 11px; }
.rse-module-action.is-full { background: #f7f1e4; border-color: #dec987; }
.rse-module-action > div:first-child { min-width: 0; }
.rse-module-action strong { display: block; color: var(--rse-navy); }
.rse-module-action span { display: block; margin-top: 2px; color: #64717e; font-size: 12px; }
.rse-module-action small { display: block; margin-top: 5px; color: #8a6a24; font-size: 11px; font-weight: 800; }
.rse-module-links { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.rse-module-links > a { color: var(--rse-navy); font-weight: 750; }
.rse-start-form { margin: 0; }
.rse-attempt-history { margin-top: 46px; padding-top: 6px; scroll-margin-top: 24px; }
.rse-history-table-wrap { overflow-x: auto; border: 1px solid #dfe5ea; border-radius: 12px; }
.rse-history-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.rse-history-table th,
.rse-history-table td { padding: 13px 15px; border-bottom: 1px solid #e7ebee; text-align: left; vertical-align: middle; }
.rse-history-table tr:last-child td { border-bottom: 0; }
.rse-history-table th { color: #536171; background: #f3f6f8; font-size: 12px; }
.rse-history-table td small { display: block; margin-top: 3px; color: #6a7681; }
.rse-history-table td:last-child a { color: var(--rse-navy); font-weight: 800; }
.rse-status-pill { display: inline-flex; padding: 5px 9px; color: #475767; background: #edf1f4; border-radius: 999px; font-size: 11px; font-weight: 800; }
.rse-status-pill.is-in_progress { color: #755718; background: #fbf1cf; }
.rse-status-pill.is-submitted,
.rse-status-pill.is-graded { color: #1f6847; background: #e1f3e9; }

.rse-button,
.rse-login-card input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; color: #071a33 !important; background: var(--rse-gold); border: 0; border-radius: 10px; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.rse-button:hover,
.rse-login-card input[type="submit"]:hover { background: #e0bd66; }
.rse-button-secondary { color: #fff !important; background: var(--rse-navy); }
.rse-text-button { margin-top: 13px; padding: 0; color: #4f5f70; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.rse-button-compact { min-height: 38px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.rse-inline-button { padding: 0; color: var(--rse-navy); background: transparent; border: 0; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }

.rse-login-card { max-width: 630px; }
.rse-login-card form { margin-top: 28px; }
.rse-login-card label { display: block; margin-bottom: 6px; font-weight: 700; }
.rse-login-card input[type="text"],
.rse-login-card input[type="password"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #ccd4dc; border-radius: 8px; }

.rse-test-shell { max-width: 1180px; }
.rse-test-header h1 { font-size: clamp(28px, 3.5vw, 44px); }
.rse-timer { min-width: 155px; padding: 13px 16px; color: #fff; background: var(--rse-navy); border-radius: 12px; text-align: center; }
.rse-timer span { display: block; margin-bottom: 3px; font-size: 12px; opacity: .8; }
.rse-timer strong { color: #fff; font-size: 25px; font-variant-numeric: tabular-nums; }
.rse-timer.is-low { background: #8f2d2d; }
.rse-phase-summary strong { font-size: 18px; }
.rse-progress { height: 8px; margin: 24px 0 8px; overflow: hidden; background: #e8edf1; border-radius: 99px; }
.rse-progress span { display: block; height: 100%; background: linear-gradient(90deg, #b89039, var(--rse-gold)); }
.rse-section-count { margin: 0 0 28px !important; color: #6d7884; font-size: 13px; }
.rse-passage { max-height: 540px; margin: 24px 0 34px; padding: clamp(20px, 4vw, 36px); overflow: auto; background: #fbfaf7; border: 1px solid #e5ded3; border-radius: 15px; }
.rse-passage .rse-email-meta { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid #ded8ce; }
.rse-listening-player { margin: 24px 0 36px; padding: clamp(22px, 4vw, 34px); background: linear-gradient(145deg, #f7f9fb 0%, #fff 100%); border: 1px solid #d9e1e8; border-radius: 14px; box-shadow: 0 10px 28px rgba(7, 26, 51, .05); }
.rse-listening-player p { margin: 10px 0 0; font-size: 14px; }
.rse-listening-player h2 { margin: 0 0 10px; font-size: 25px; }
.rse-listening-status { display: flex; min-height: 92px; align-items: center; justify-content: center; gap: 14px; color: var(--rse-navy); text-align: center; }
.rse-listening-pulse { width: 16px; height: 16px; background: var(--rse-gold); border-radius: 50%; box-shadow: 0 0 0 0 rgba(211, 174, 85, .65); animation: rse-listening-pulse 1.35s infinite; }
.rse-listening-error { margin-top: 16px; padding: 13px 15px; color: #7b2424; background: #fff1f0; border: 1px solid #e8b6b1; border-radius: 9px; font-weight: 650; }
.rse-audio-settings { max-width: 760px; margin: 16px 0 20px; padding: 0; border: 1px solid #dbe2e8; border-radius: 10px; background: #fff; }
.rse-audio-settings summary { padding: 12px 15px; color: var(--rse-navy); font-weight: 750; cursor: pointer; }
.rse-audio-settings[open] summary { border-bottom: 1px solid #e4e9ed; }
.rse-voice-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0; padding: 15px; background: #f8fafb; border: 0; border-radius: 0 0 10px 10px; }
.rse-voice-settings label { display: grid; gap: 5px; color: #465564; font-size: 12px; font-weight: 750; }
.rse-voice-settings select { min-width: 170px; min-height: 40px; padding: 7px 32px 7px 9px; background: #fff; border: 1px solid #bdc8d2; border-radius: 7px; }
.rse-listening-replay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.rse-listening-form .rse-question { margin-top: 28px; }
.rse-listening-question-label { display: inline; }
.rse-listening-navigation { margin-top: 18px; padding-top: 20px; border-top: 1px solid #e1e6ea; }
.rse-listening-navigation p { margin: 0 0 13px; color: #5d6874; font-size: 14px; }
.rse-question-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.rse-discussion-stage { margin: 20px 0 6px; padding: 16px; background: #fff; border: 1px solid #e3d6b2; border-radius: 12px; }
.rse-discussion-stage img,
.rse-discussion-stage video { display: block; width: 100%; max-height: 360px; aspect-ratio: 16 / 9; object-fit: cover; background: #071a33; border-radius: 9px; }
.rse-speaker-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 13px; }
.rse-speaker-list span { padding: 8px 13px; color: #50606f; background: #f1f3f5; border: 2px solid transparent; border-radius: 999px; font-weight: 750; transition: .18s ease; }
.rse-speaker-list span.is-active { color: #071a33; background: #f6e7b9; border-color: var(--rse-gold); transform: translateY(-2px); }
.rse-listening-player.is-complete .rse-listening-status { min-height: 0; }

@keyframes rse-listening-pulse {
  0% { box-shadow: 0 0 0 0 rgba(211, 174, 85, .65); }
  70% { box-shadow: 0 0 0 12px rgba(211, 174, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 174, 85, 0); }
}

.rse-question { margin: 0 0 24px; padding: 24px; border: 1px solid #dde3e8; border-radius: 14px; }
.rse-question legend { width: 100%; padding: 0 0 16px; color: var(--rse-navy); font-size: 18px; font-weight: 750; }
.rse-question legend span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 12px; color: #fff; background: var(--rse-navy); border-radius: 50%; font-size: 14px; }
.rse-option { display: block; margin: 9px 0; padding: 13px 14px; border: 1px solid #e0e5e9; border-radius: 9px; cursor: pointer; }
.rse-option:hover { background: #f8fafb; }
.rse-option input { margin-right: 9px; }
.rse-select-wrap { display: block; margin-top: 10px; }
.rse-select-wrap select { width: 100%; min-height: 48px; padding: 9px 38px 9px 12px; color: var(--rse-ink); background: #fff; border: 1px solid #bdc8d2; border-radius: 8px; font: inherit; }
.rse-select-wrap.is-embedded { display: inline-block; min-width: min(100%, 310px); margin: 5px 4px; vertical-align: middle; }
.rse-select-wrap.is-embedded select { min-height: 42px; }
.rse-question textarea { width: 100%; min-height: 290px; padding: 16px; border: 1px solid #cbd4dc; border-radius: 10px; font: inherit; line-height: 1.65; }
.rse-word-count { margin: 8px 0 0 !important; color: #5d6874; font-size: 14px; text-align: right; }
.rse-word-count.is-outside-target { color: #8a571e; }
.rse-audio-recorder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rse-audio-recorder audio { width: 100%; margin-top: 12px; }
.rse-recording-status { color: #596775; }
.rse-submit-section { margin-top: 10px; }
.rse-draft-status { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 7px 10px; color: #516272; background: #f2f6f8; border-radius: 8px; font-size: 12px; }
.rse-draft-status span { display: inline-grid; width: 18px; height: 18px; place-items: center; color: #fff; background: #67808f; border-radius: 50%; }
.rse-draft-status.is-saved { color: #1f6847; background: #e7f4ed; }
.rse-draft-status.is-saved span { background: #2d7b57; }
.rse-time-expired { margin: 0 0 24px; padding: 17px 19px; color: #742b23; background: #fff1ee; border: 1px solid #e5b5ae; border-left: 5px solid #a33c31; border-radius: 11px; }
.rse-time-expired p { margin: 5px 0 0; }
.rse-section-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e1e6ea; }
.rse-navigation-form { margin: 0; }

.rse-reading-layout { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: 18px; align-items: start; margin: 22px 0 30px; }
.rse-reading-source,
.rse-reading-answers { max-height: 700px; overflow: auto; padding: 24px; border: 1px solid #dce3e8; border-radius: 11px; box-shadow: 0 8px 22px rgba(7, 26, 51, .045); }
.rse-reading-source { background: #fbfcfd; }
.rse-reading-source > h2 { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 32px); }
.rse-reading-diagram { display: block; width: 100%; height: auto; border: 1px solid #d8e0e6; border-radius: 10px; box-shadow: 0 10px 26px rgba(7, 26, 51, .07); }
.rse-reading-text-version { margin-top: 14px; padding: 12px 14px; background: #fff; border: 1px solid #dce3e8; border-radius: 8px; }
.rse-reading-text-version summary { color: var(--rse-navy); cursor: pointer; font-weight: 800; }
.rse-reading-text-version[open] summary { margin-bottom: 14px; }
.rse-reading-information .rse-reading-source > p { margin: 0 0 20px; line-height: 1.72; }
.rse-reading-information .rse-information-not-given { padding: 13px 15px; background: #edf2f6; border-left: 4px solid var(--rse-gold); border-radius: 7px; }
.rse-reading-source table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.rse-reading-source table th,
.rse-reading-source table td { padding: 11px 12px !important; border-bottom: 1px solid #dce3e8 !important; text-align: left; vertical-align: top; }
.rse-reading-source table thead th { color: #fff; background: var(--rse-navy); border-bottom-color: var(--rse-navy) !important; }
.rse-reading-source table tbody tr:nth-child(even) { background: #f4f7f9; }
.rse-reading-answers { background: #fff; }
.rse-pane-label { margin: -24px -24px 22px; padding: 11px 20px; color: #536273; background: #f1f4f7; border-bottom: 1px solid #dce3e8; font-size: 11px; font-weight: 850; letter-spacing: 1.25px; text-transform: uppercase; }
.rse-reading-question { margin-bottom: 19px; padding-bottom: 19px; border-bottom: 1px solid #e5e9ec; }
.rse-reading-question > label { display: block; color: var(--rse-navy); line-height: 1.5; }
.rse-reading-cloze { margin: 0 0 24px; padding: 22px; background: #f8fafc; border: 1px solid #dce4ea; border-left: 4px solid var(--rse-navy); border-radius: 9px; }
.rse-reading-cloze .rse-email-meta { margin: -22px -22px 20px; padding: 16px 20px; color: #26384c; background: #edf2f6; border-bottom: 1px solid #d7e0e7; border-radius: 8px 8px 0 0; line-height: 1.65; }
.rse-reading-cloze p { line-height: 2.1; }
.rse-blank-number { display: inline-grid; width: 25px; height: 25px; place-items: center; margin-right: 6px; color: #fff; background: var(--rse-navy); border-radius: 50%; font-size: 12px; font-weight: 850; vertical-align: middle; }
.rse-select-wrap.is-embedded { min-width: min(100%, 330px); padding: 3px; background: #fff; border: 1px solid #cbd6df; border-radius: 9px; }
.rse-select-wrap.is-embedded select { width: calc(100% - 37px); min-height: 40px; padding: 7px 32px 7px 8px; border: 0; }
.rse-select-wrap.is-embedded select:focus { outline: 2px solid rgba(7, 26, 51, .22); outline-offset: 1px; }

.rse-writing-scenario { margin: 0; }
.rse-writing-scenario h2 { font-size: 24px; }
.rse-writing-scenario ul { margin-bottom: 0; }
.rse-survey-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.rse-survey-options label,
.rse-audience-options label { display: block; cursor: pointer; }
.rse-survey-options input,
.rse-audience-options input,
.rse-visual-choice-grid label > input { position: absolute; opacity: 0; pointer-events: none; }
.rse-survey-options span,
.rse-audience-options span { display: block; height: 100%; padding: 18px; background: #fff; border: 2px solid #dce3e8; border-radius: 12px; }
.rse-survey-options input:checked + span,
.rse-audience-options input:checked + span,
.rse-visual-choice-grid label > input:checked + span { background: #fbf5e5; border-color: var(--rse-gold); box-shadow: 0 0 0 3px rgba(211, 174, 85, .16); }
.rse-survey-options small,
.rse-audience-options small,
.rse-visual-choice-grid small { display: block; margin-top: 5px; color: #64717e; line-height: 1.45; }

.rse-speaking-task { margin: 22px 0 28px; }
.rse-speaking-prompt { padding: 24px; background: #fbfaf7; border: 1px solid #e2ddd3; border-radius: 14px; }
.rse-speaking-prompt img { display: block; width: 100%; max-height: 460px; margin-bottom: 20px; object-fit: cover; border-radius: 10px; }
.rse-speaking-prompt h2 { margin: 0 0 9px; font-size: 24px; }
.rse-speaking-choice-stage,
.rse-speaking-comparison,
.rse-audience-options { margin-top: 20px; padding: 22px; background: #f4f7f9; border: 1px solid #dbe3e9; border-radius: 14px; }
.rse-audience-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.rse-audience-options h3 { grid-column: 1 / -1; margin: 0; }
.rse-visual-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 16px 0 20px; }
.rse-visual-choice-grid label { display: block; cursor: pointer; }
.rse-visual-choice-grid label > span,
.rse-visual-choice-grid article { display: block; height: 100%; padding: 12px; background: #fff; border: 2px solid #dce3e8; border-radius: 12px; }
.rse-visual-choice-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 11px; object-fit: cover; border-radius: 8px; }
.rse-visual-choice-grid strong { display: block; color: var(--rse-navy); }
.rse-speaking-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; padding: 18px; background: var(--rse-navy); border-radius: 14px; }
.rse-speaking-controls .rse-recording-status { flex: 1 1 300px; margin: 0; color: #fff; }
.rse-speaking-clock { display: grid; min-width: 124px; place-items: center; padding: 10px; color: #fff; background: rgba(255, 255, 255, .1); border-radius: 10px; }
.rse-speaking-clock span { font-size: 12px; opacity: .8; }
.rse-speaking-clock strong { color: #fff; font-size: 30px; font-variant-numeric: tabular-nums; }
.rse-speaking-clock.is-recording { background: #7f2828; }
.rse-speaking-task .rse-audio-recorder { margin-top: 14px; padding: 17px; color: #fff; background: #8f2d2d; border-radius: 12px; }
.rse-recording-dot { width: 13px; height: 13px; background: #ff9e9e; border-radius: 50%; animation: rse-recording-pulse 1s infinite; }

@keyframes rse-recording-pulse {
  50% { opacity: .35; transform: scale(.8); }
}

.rse-result-shell { max-width: 1080px; }
.rse-result-meta { margin: -8px 0 24px !important; color: #697682; font-size: 13px; }
.rse-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0; }
.rse-result-grid > div { padding: 22px; background: #f7f1e4; border-radius: 14px; }
.rse-result-grid span { display: block; margin-bottom: 7px; color: #687481; font-size: 13px; }
.rse-result-grid strong { color: var(--rse-navy); font-size: 24px; }
.rse-result-grid.rse-result-count-1 { grid-template-columns: minmax(220px, 420px); }
.rse-result-grid.rse-result-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rse-feedback { margin: 28px 0; padding: 26px; background: #f4f7fa; border-radius: 14px; }
.rse-result-summary { display: flex; align-items: center; gap: 24px; margin: 25px 0; padding: 20px 22px; background: #eef3f7; border-left: 5px solid var(--rse-gold); border-radius: 11px; }
.rse-result-summary > div { flex: 0 0 auto; min-width: 130px; }
.rse-result-summary span,
.rse-result-summary strong { display: block; }
.rse-result-summary span { color: #657380; font-size: 12px; }
.rse-result-summary strong { color: var(--rse-navy); font-size: 30px; }
.rse-result-summary p { margin: 0; }
.rse-rubric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.rse-rubric-grid > div,
.rse-task-feedback { padding: 17px; background: #fff; border: 1px solid #dde5eb; border-radius: 10px; }
.rse-rubric-grid p,
.rse-task-feedback p { margin-bottom: 0; }
.rse-task-feedback + .rse-task-feedback { margin-top: 11px; }
.rse-answer-review { margin-top: 40px; scroll-margin-top: 24px; }
.rse-review-section { margin: 13px 0; border: 1px solid #dce3e8; border-radius: 12px; background: #fff; }
.rse-review-section > summary { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--rse-navy); background: #f3f6f8; border-radius: 12px; font-weight: 800; cursor: pointer; }
.rse-review-section[open] > summary { border-bottom: 1px solid #dce3e8; border-radius: 12px 12px 0 0; }
.rse-review-items { display: grid; gap: 14px; padding: 18px; }
.rse-review-item { padding: 19px; border: 1px solid #e0e5e9; border-left: 5px solid #7f8b95; border-radius: 10px; }
.rse-review-item.is-correct { border-left-color: #2f805a; }
.rse-review-item.is-incorrect { border-left-color: #aa4438; }
.rse-review-item.is-unanswered { border-left-color: #b98725; }
.rse-review-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rse-review-item-heading h3 { margin: 0; font-size: 19px; }
.rse-review-item-heading span { padding: 4px 9px; background: #edf1f4; border-radius: 999px; font-size: 11px; font-weight: 850; }
.rse-review-prompt { margin: 12px 0; font-weight: 700; }
.rse-review-item dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0; }
.rse-review-item dl > div { padding: 12px; background: #f7f9fa; border-radius: 8px; }
.rse-review-item dt { color: #687582; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rse-review-item dd { margin: 5px 0 0; }
.rse-review-explanation { margin: 10px 0 0 !important; color: #536171; font-size: 14px; }
.rse-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }

@media (max-width: 900px) {
  .rse-mock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rse-reading-layout { grid-template-columns: 1fr; }
  .rse-reading-source,
  .rse-reading-answers { max-height: none; }
	.rse-progress-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rse-portal-page #masthead .site-primary-header-wrap { min-height: 64px; }
  .rse-portal-page #masthead .site-logo-img img.custom-logo { width: 54px !important; max-width: 54px !important; }
  .rse-portal-page.ast-separate-container #primary { margin-top: 10px; }
  .rse-portal-shell { margin: 18px 12px; padding: 22px 18px; border-radius: 16px; }
  .rse-portal-hero,
  .rse-test-header { display: block; }
  .rse-portal-link { display: inline-block; margin-top: 14px; }
	.rse-portal-toolbar { justify-content: flex-start; margin: -10px -7px 22px; overflow-x: auto; flex-wrap: nowrap; }
	.rse-portal-toolbar a { white-space: nowrap; }
	.rse-start-here,
	.rse-dashboard-heading,
	.rse-result-summary { align-items: flex-start; flex-direction: column; }
	.rse-start-here .rse-button { width: 100%; }
	.rse-progress-summary,
	.rse-rubric-grid,
	.rse-review-item dl { grid-template-columns: 1fr; }
  .rse-mock-grid,
  .rse-result-grid { grid-template-columns: 1fr; }
  .rse-timer { position: sticky; top: 10px; z-index: 10; width: 100%; margin-top: 15px; }
  .rse-question { padding: 18px 14px; }
  .rse-question legend span { display: block; margin-bottom: 8px; }
  .rse-module-action { align-items: flex-start; flex-direction: column; }
  .rse-module-links { width: 100%; }
  .rse-survey-options,
  .rse-audience-options,
  .rse-visual-choice-grid { grid-template-columns: 1fr; }
  .rse-speaking-controls { display: block; }
  .rse-speaking-controls .rse-button { width: 100%; margin-top: 14px; }
  .rse-speaking-clock { margin-bottom: 14px; }
  .rse-select-wrap.is-embedded { display: block; width: 100%; margin: 9px 0; }
  .rse-voice-settings { align-items: stretch; }
  .rse-voice-settings label,
  .rse-voice-settings select { width: 100%; }
  .rse-question-nav .rse-button { width: 100%; }
}
