:root {
  --official-page-bg: #f5f5f5;
  --official-shell-bg: #ffffff;
  --official-panel-blue: #edf8fb;
  --official-panel-blue-strong: #e7f3f8;
  --official-border: #d6dce2;
  --official-border-strong: #bcc5cf;
  --official-text: #4c4c4c;
  --official-heading: #4e4e4e;
  --official-blue: #1f5f99;
  --official-blue-soft: #4a86b7;
  --official-button: #0a63b6;
  --official-button-dark: #084d8f;
  --official-timer: #d32222;
  --official-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --official-radius: 2px;
  --official-font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--official-page-bg);
  color: var(--official-text);
  font-family: var(--official-font);
}

body {
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.official-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--official-border);
  box-shadow: var(--official-shadow);
}

.official-topbar__inner {
  width: min(1020px, calc(100vw - 28px));
  min-height: 52px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.official-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.official-brand__logo {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--official-blue);
}

.official-brand__meta {
  font-size: 16px;
  color: #686868;
}

.official-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.official-product__label {
  font-size: 13px;
  color: #656565;
  white-space: nowrap;
}

.official-product__button {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #656565;
  text-align: left;
  padding: 0;
  font-size: 13px;
  cursor: default;
}

.official-auth__link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--official-blue);
}

.official-auth__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #4f4f4f;
  cursor: default;
  user-select: none;
}

.official-page {
  padding: 14px 14px 24px;
}

.official-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.official-card {
  background: var(--official-shell-bg);
  border: 1px solid var(--official-border);
  box-shadow: var(--official-shadow);
}

.official-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(#eeeeee, #dadada);
  border-bottom: 1px solid var(--official-border-strong);
  color: #4b4b4b;
}

.official-section-header__title {
  font-size: 18px;
  font-weight: 400;
}

.official-section-header__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.official-timer {
  font-size: 15px;
}

.official-timer strong {
  color: var(--official-timer);
  font-weight: 700;
}

.official-next {
  min-width: 98px;
  height: 36px;
  border: 1px solid #09569d;
  border-radius: 0;
  background: linear-gradient(#1973cf, #0a61b4);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.official-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.official-body {
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(320px, 48%);
  min-height: 520px;
}

.official-body--single {
  display: block;
  min-height: auto;
}

.official-pane {
  min-width: 0;
  padding: 28px 28px 24px;
}

.official-pane--left {
  background: #fff;
}

.official-pane--right {
  background: var(--official-panel-blue);
  border-left: 1px solid var(--official-border-strong);
}

.official-intro {
  padding: 28px 36px 32px;
}

.official-screen-title {
  margin: 0 0 18px;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.08;
  color: #5a5a5a;
}

.official-subheading {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--official-blue);
}

.official-copy,
.official-list,
.official-copy p {
  font-size: 18px;
  line-height: 1.48;
  color: #575757;
}

.official-copy p,
.official-list li {
  margin: 0 0 16px;
}

.official-list {
  padding-left: 28px;
  margin: 0;
}

.official-hero-image,
.official-media-box img,
.official-choice-images img,
.official-speaking-images img,
.official-reading-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.official-media-box {
  margin-top: 26px;
}

.official-audio,
.official-video {
  width: 100%;
}

.official-question-count {
  font-size: 13px;
  font-weight: 700;
  color: #5a5a5a;
  margin-bottom: 10px;
}

.official-instruction {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--official-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.official-instruction__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dfe8ef;
  color: var(--official-blue);
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
}

.official-question-prompt {
  font-size: 16px;
  color: #555;
  margin: 0 0 16px;
}

.official-choice-list {
  display: grid;
  gap: 12px;
}

.official-choice-list--listening {
  gap: 10px;
}

.official-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.official-choice--listening {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
}

.official-choice input[type="radio"] {
  margin-top: 8px;
}

.official-choice--listening input[type="radio"] {
  margin-top: 4px;
}

.official-choice-card {
  background: #fff;
  border: 1px solid var(--official-border);
  padding: 14px 16px;
  min-height: 58px;
  line-height: 1.45;
}

.official-choice-card--info {
  display: flex;
  align-items: center;
  min-height: 78px;
  color: #5d5d5d;
  line-height: 1.6;
}

.official-listening-guide {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 1px;
  background: #dfe3eb;
  color: #1b1b1b;
  margin-bottom: 18px;
}

.official-listening-guide__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 112px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.48);
  color: #a9aeb8;
  font-size: 74px;
  font-weight: 700;
}

.official-listening-guide__copy {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.42;
}

.official-media-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 2px solid #1f1f1f;
  background: #fff;
  color: #5b5b5b;
  font-size: 16px;
  line-height: 1.45;
}

.official-media-note--compact {
  margin-top: 0;
}

.official-choice-card img {
  max-width: 100%;
  height: auto;
}

.official-choice-card--image {
  padding: 8px 10px;
  min-height: 88px;
  display: flex;
  align-items: center;
}

.official-choice-card--image img {
  width: 112px;
  max-width: 100%;
  max-height: 82px;
  object-fit: cover;
}

.official-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border-top: 1px solid var(--official-border);
}

.official-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--official-border-strong);
  background: linear-gradient(#fbfbfb, #ececec);
  color: #555;
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  text-decoration: none;
}

.official-footer-copy {
  font-size: 14px;
  color: #777;
}

.official-reading-copy {
  font-size: 17px;
  line-height: 1.7;
  color: #575757;
}

.official-body--reading {
  grid-template-columns: minmax(0, 52%) minmax(340px, 48%);
}

.official-body--reading-wide {
  grid-template-columns: minmax(0, 50.5%) minmax(360px, 49.5%);
}

.official-reading-copy p {
  margin: 0 0 18px;
}

.official-question-block + .official-question-block {
  margin-top: 18px;
}

.official-question-block__title {
  font-size: 16px;
  color: var(--official-blue);
  font-weight: 700;
  margin: 0 0 10px;
}

.official-select,
.official-textarea {
  width: 100%;
  border: 1px solid #b7bfc8;
  border-radius: 0;
  background: #fff;
  color: #444;
}

.official-select {
  height: 40px;
  padding: 0 12px;
}

.official-template {
  font-size: 18px;
  line-height: 1.8;
  color: #575757;
}

.official-template-blank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px;
  vertical-align: baseline;
}

.official-template-blank__number {
  font-weight: 700;
  color: #4a4a4a;
}

.official-template-blank .official-select {
  width: auto;
  min-width: 180px;
  max-width: 100%;
  height: 38px;
}

.official-writing-source {
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--official-border);
}

.official-writing-editor {
  padding: 18px;
  background: var(--official-panel-blue-strong);
  border: 1px solid var(--official-border);
}

.official-body--writing {
  grid-template-columns: minmax(250px, 34%) minmax(0, 66%);
}

.official-writing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.official-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--official-border);
  background: #f5f5f5;
  font-size: 13px;
  color: #555;
}

.official-textarea {
  min-height: 380px;
  padding: 14px;
  resize: vertical;
}

.official-writing-note {
  margin-top: 8px;
  font-size: 13px;
  color: #777;
}

.official-writing-requirements {
  margin: 12px 0 0;
  padding-left: 22px;
}

.official-writing-requirements li + li {
  margin-top: 8px;
}

.official-speaking-card {
  background: #fff;
  border: 1px solid var(--official-border);
  padding: 18px 18px 16px;
}

.official-speaking-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--official-blue);
}

.official-speaking-grid {
  display: grid;
  gap: 14px;
}

.official-speaking-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.official-speaking-images--single {
  grid-template-columns: 1fr;
}

.official-speaking-image-card {
  background: #fff;
  border: 1px solid var(--official-border);
  padding: 6px;
}

.official-speaking-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.official-speaking-images--single .official-speaking-image-card img {
  aspect-ratio: 16 / 10;
  min-height: 360px;
}

.official-task-phase {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.official-pill--active {
  background: #e7eef6;
  border-color: #c3d5e7;
  color: var(--official-blue);
  font-weight: 700;
}

.official-recorder-actions,
.official-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.official-copy--compact,
.official-copy--compact p {
  font-size: 14px;
  line-height: 1.55;
}

.official-speaking-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.official-speaking-side-card {
  border: 1px solid var(--official-border);
  background: #fff;
  padding: 18px 18px 16px;
}

.official-intro--completion {
  display: grid;
  gap: 22px;
}

.official-body--speaking {
  grid-template-columns: minmax(0, 60%) minmax(280px, 40%);
}

.official-speaking-status {
  display: grid;
  gap: 8px;
}

.official-speaking-status__label {
  font-size: 14px;
  color: #666;
}

.official-speaking-status__value {
  display: grid;
  gap: 8px;
}

.official-speaking-status__phase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 58, 95, 0.12);
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.9);
}

.official-speaking-status__phase-name {
  font-size: 14px;
  font-weight: 600;
  color: #4e5c6e;
}

.official-speaking-status__phase-seconds {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #5d5d5d;
}

.official-next--small {
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
}

.official-result-layout {
  display: grid;
  gap: 22px;
  padding: 28px 32px 34px;
}

.official-result-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.official-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.official-result-grid--completion {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.official-result-metric {
  border: 1px solid var(--official-border);
  background: #fff;
  padding: 18px 20px;
}

.official-summary-panel {
  border: 1px solid var(--official-border);
  background: #fff;
  padding: 18px 20px;
}

.official-summary-chart {
  width: 100%;
  height: 280px;
}

.official-result-metric__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6e6e;
}

.official-result-metric__value {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--official-heading);
}

.official-result-metric__hint {
  margin-top: 8px;
  font-size: 15px;
  color: #6b6b6b;
}

.official-result-review,
.official-result-list {
  display: grid;
  gap: 14px;
}

.official-result-row {
  border: 1px solid var(--official-border);
  background: #fff;
  padding: 16px 18px;
}

.official-result-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.official-result-row__prompt {
  font-size: 16px;
  line-height: 1.55;
  color: #5d5d5d;
}

.official-result-row__answers {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 16px;
  color: #575757;
}

.official-result-row__answers span {
  display: inline-block;
  min-width: 118px;
  font-weight: 700;
  color: #4d4d4d;
}

.official-result-response {
  margin-top: 12px;
  border: 1px solid var(--official-border);
  background: #fbfbfb;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.65;
  color: #575757;
}

.official-ai-card {
  margin-top: 14px;
  border: 1px solid #c8d7e6;
  background: #f7fbff;
  padding: 16px 18px;
}

.official-ai-card__score {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--official-blue);
}

.official-ai-card p,
.official-ai-card ul {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #565656;
}

.official-ai-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.official-ai-criterion {
  border: 1px solid #d9e4ef;
  background: #fff;
  padding: 12px 14px;
}

.official-ai-criterion__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.official-ai-block {
  margin-top: 12px;
}

.official-ai-block__label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c6c6c;
}

.official-ai-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.official-result-row__error {
  margin-top: 12px;
  font-size: 15px;
  color: var(--official-timer);
}

.official-empty {
  padding: 48px 36px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--official-border);
  color: #666;
}

.official-footer {
  padding: 12px 16px 30px;
  text-align: center;
  font-size: 13px;
  color: #737373;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.official-footer a {
  color: inherit;
  text-decoration: none;
}

.official-footer a:hover,
.official-footer a:focus-visible {
  color: #b45309;
  text-decoration: underline;
}

.official-site-legal {
  width: 100%;
  margin: 0;
  padding: 14px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.official-site-legal__copy {
  color: #111827;
}

.official-site-legal__links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.official-site-legal__links::before {
  content: "";
  width: 1px;
  height: 12px;
  background: rgba(17, 24, 39, 0.22);
}

.official-site-legal a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.official-site-legal a:hover,
.official-site-legal a:focus-visible {
  color: #111827;
  text-decoration: underline;
}

html[data-theme="dark"] .official-site-legal {
  background: #fff;
  color: #111827;
}

html[data-theme="dark"] .official-site-legal__copy {
  color: #111827;
}

html[data-theme="dark"] .official-site-legal__links::before {
  background: rgba(17, 24, 39, 0.22);
}

html[data-theme="dark"] .official-site-legal a {
  color: #111827;
}

html[data-theme="dark"] .official-site-legal a:hover,
html[data-theme="dark"] .official-site-legal a:focus-visible {
  color: #111827;
}

@media (max-width: 960px) {
  .official-topbar__inner {
    width: calc(100vw - 24px);
    min-height: auto;
    padding: 10px 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .official-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .official-shell {
    width: 100%;
  }

  .official-section-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .official-section-header__title {
    font-size: 18px;
  }

  .official-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .official-pane {
    padding: 22px 20px 20px;
  }

  .official-pane--right {
    border-left: 0;
    border-top: 1px solid var(--official-border-strong);
  }

  .official-intro {
    padding: 22px 20px 26px;
  }

  .official-screen-title {
    font-size: 32px;
  }

  .official-copy,
  .official-list,
  .official-copy p,
  .official-question-prompt,
  .official-reading-copy,
  .official-template {
    font-size: 18px;
  }

  .official-choice-card {
    padding: 14px 16px;
  }

  .official-choice-card--image {
    min-height: 76px;
    padding: 8px;
  }

  .official-choice-card--image img {
    width: 96px;
    max-height: 72px;
  }

  .official-listening-guide {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .official-listening-guide__icon {
    min-height: 72px;
    font-size: 48px;
  }

  .official-listening-guide__copy {
    font-size: 16px;
  }

  .official-speaking-images {
    grid-template-columns: 1fr;
  }

  .official-speaking-images--single .official-speaking-image-card img {
    min-height: 240px;
  }

  .official-body--reading,
  .official-body--reading-wide,
  .official-body--writing,
  .official-body--speaking {
    grid-template-columns: 1fr;
  }

  .official-result-grid--completion {
    grid-template-columns: 1fr;
  }

  .official-summary-chart {
    height: 220px;
  }

  .official-footer-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .official-site-legal {
    width: min(100%, calc(100vw - 24px));
    margin-bottom: 18px;
    border-radius: 22px;
    padding: 10px 14px;
    gap: 6px 10px;
    font-size: 0.78rem;
  }

  .official-site-legal__links::before {
    display: none;
  }

  .official-back,
  .official-next {
    width: 100%;
  }

  .official-result-layout {
    padding: 22px 20px 26px;
  }

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