.rvs-page {
  --p59-blue: #155EEF;
  --p59-blue-dark: #0B3FB8;
  --p59-blue-soft: #F6F8FF;
  --p59-blue-card: #EEF4FF;
  --p59-border: #DDE6F5;
  --p59-text: #102033;
  --p59-muted: #66748A;
  --p59-white: #FFFFFF;
  --p59-shadow: 0 14px 36px rgba(33, 64, 134, 0.06);
  --p59-radius: 10px;
  margin: 0;
  color: var(--p59-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(238, 244, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #F8FAFF 0%, #F6F8FF 44%, #FFFFFF 100%);
  font-family: "Inter", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

.rvs-page *,
.rvs-page *::before,
.rvs-page *::after {
  box-sizing: border-box;
}

.rvs-page a {
  color: inherit;
  text-decoration: none;
}

.rvs-page button,
.rvs-page input,
.rvs-page select {
  font: inherit;
}

.rvs-shell {
  width: min(1132px, calc(100% - 64px));
  margin: 0 auto;
}

.rvs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rvs-icon,
.rvs-mini-icon,
[data-rvs-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.rvs-icon svg,
.rvs-mini-icon svg,
[data-rvs-icon] svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

.rvs-icon--soft {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--p59-blue-card);
  color: var(--p59-blue);
  box-shadow: inset 0 0 0 1px #DDE8FF;
}

.rvs-icon--warning {
  background: #FFF8E6;
  color: #B7791F;
  box-shadow: none;
}

.rvs-icon--button,
.rvs-mini-icon {
  width: 16px;
  height: 16px;
}

.rvs-icon--button svg,
.rvs-mini-icon svg {
  width: 16px;
  height: 16px;
}

.rvs-topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--p59-border);
  box-shadow: 0 8px 24px rgba(33, 64, 134, 0.06);
  backdrop-filter: blur(14px);
}

.rvs-topnav__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rvs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--p59-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.rvs-brand > span:last-child span {
  color: var(--p59-muted);
  margin: 0 2px;
}

.rvs-brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p59-border);
  border-radius: var(--p59-radius);
  background: var(--p59-blue-card);
  color: var(--p59-blue);
}

.rvs-brand__mark svg {
  width: 18px;
  height: 18px;
}

.rvs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.rvs-nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--p59-radius);
  color: #5E6B85;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.rvs-nav a:hover,
.rvs-nav a:focus-visible,
.rvs-nav a.is-active {
  color: var(--p59-blue);
  background: var(--p59-blue-card);
  outline: none;
}

.rvs-topnav__cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--p59-radius);
  background: var(--p59-blue);
  color: var(--p59-white);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(21, 94, 239, 0.16);
  white-space: nowrap;
}

.rvs-topnav__cta:hover,
.rvs-button--primary:hover {
  background: var(--p59-blue-dark);
}

.rvs-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--p59-border);
  border-radius: var(--p59-radius);
  background: var(--p59-blue-card);
  padding: 8px;
}

.rvs-menu-button span:not(.rvs-sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--p59-blue);
}

.rvs-hero {
  padding: 40px 0 0;
}

.rvs-hero__grid {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
}

.rvs-hero__copy {
  min-width: 0;
  max-width: 680px;
}

.rvs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 6px 13px;
  border: 1px solid var(--p59-border);
  border-radius: 999px;
  background: var(--p59-white);
  color: var(--p59-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  box-shadow: 0 8px 22px rgba(33, 64, 134, 0.04);
}

.rvs-kicker--plain {
  background: var(--p59-blue-card);
  box-shadow: none;
}

.rvs-hero h1 {
  margin: 0;
  color: var(--p59-text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 850;
}

.rvs-lead,
.rvs-section-head p,
.rvs-dictation-copy p,
.rvs-sync-card p,
.rvs-bottom-cta__card p,
.rvs-footer p {
  color: var(--p59-muted);
  font-size: 16px;
  line-height: 1.72;
}

.rvs-lead {
  max-width: 620px;
  margin: 16px 0 0;
}

.rvs-actions,
.rvs-word-actions,
.rvs-spelling-actions,
.rvs-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rvs-actions {
  margin-top: 28px;
}

.rvs-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--p59-text);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.rvs-button:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.22);
  outline-offset: 2px;
}

.rvs-button--primary {
  background: var(--p59-blue);
  color: var(--p59-white);
  box-shadow: 0 12px 28px rgba(21, 94, 239, 0.18);
}

.rvs-button--light {
  border-color: var(--p59-border);
  background: var(--p59-white);
  color: var(--p59-blue);
  box-shadow: 0 10px 22px rgba(33, 64, 134, 0.05);
}

.rvs-button--light:hover,
.rvs-button--ghost:hover {
  background: var(--p59-blue-card);
  color: var(--p59-blue);
}

.rvs-button--ghost {
  border-color: var(--p59-border);
  background: var(--p59-blue-card);
  color: var(--p59-blue);
}

.rvs-button:disabled {
  background: var(--p59-blue-soft);
  color: var(--p59-muted);
  border-color: var(--p59-border);
  box-shadow: none;
  cursor: not-allowed;
}

.rvs-overview-card,
.rvs-stat-card,
.rvs-current-card,
.rvs-tooling-card,
.rvs-dictation-card,
.rvs-review-card,
.rvs-record-item,
.rvs-sync-card,
.rvs-bottom-cta__card {
  background: var(--p59-white);
  border: 1px solid var(--p59-border);
  border-radius: 18px;
  box-shadow: var(--p59-shadow);
}

.rvs-overview-card {
  min-height: 300px;
  padding: 24px;
}

.rvs-overview-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 20px;
}

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

.rvs-overview-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #EDF2FB;
  border-radius: 14px;
  background: #FBFCFF;
}

.rvs-overview-grid span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--p59-muted);
  font-size: 12px;
  font-weight: 800;
}

.rvs-overview-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--p59-blue);
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
}

.rvs-overview-grid small,
.rvs-stat-card small {
  margin-left: 3px;
  color: var(--p59-text);
  font-size: 14px;
  font-weight: 700;
}

.rvs-progress-line {
  margin-top: 14px;
}

.rvs-progress-line div {
  display: flex;
  justify-content: space-between;
  color: var(--p59-muted);
  font-size: 12px;
  font-weight: 800;
}

.rvs-progress-line strong {
  color: var(--p59-blue);
}

.rvs-progress-line i {
  display: block;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #E8EEFA;
}

.rvs-progress-line i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--p59-blue), #4B7DFF);
}

.rvs-stats {
  padding: 32px 0 0;
}

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

.rvs-stat-card {
  min-height: 165px;
  display: grid;
  align-content: space-between;
  padding: 20px;
}

.rvs-stat-card strong {
  display: block;
  color: var(--p59-blue);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 850;
}

.rvs-stat-card span:not(.rvs-icon) {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 850;
}

.rvs-stat-card p {
  margin: 4px 0 0;
  color: var(--p59-muted);
  font-size: 12px;
}

.rvs-section {
  padding: 32px 0 0;
}

.rvs-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rvs-section-head--inline {
  justify-content: space-between;
}

.rvs-section-head h2,
.rvs-dictation-card h2,
.rvs-sync-card h2,
.rvs-bottom-cta__card h2,
.rvs-empty h2 {
  margin: 0;
  color: var(--p59-text);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 850;
}

.rvs-section-head p,
.rvs-dictation-copy p,
.rvs-sync-card p,
.rvs-bottom-cta__card p,
.rvs-empty p {
  margin: 6px 0 0;
}

.rvs-progress-text {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--p59-blue-card);
  color: var(--p59-blue);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.rvs-current-card {
  margin-top: 20px;
  padding: 32px;
}

.rvs-current-card:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.18);
  outline-offset: 3px;
}

.rvs-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
}

.rvs-tags,
.rvs-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rvs-word-title {
  margin: 14px 0 0;
  color: var(--p59-text);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rvs-pos {
  margin: 8px 0 0;
  color: var(--p59-muted);
  font-size: 16px;
  font-weight: 800;
}

.rvs-detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.rvs-detail {
  padding: 14px 16px;
  border: 1px solid #EDF2FB;
  border-radius: 14px;
  background: #FBFCFF;
}

.rvs-detail span {
  display: block;
  margin-bottom: 6px;
  color: var(--p59-muted);
  font-size: 12px;
  font-weight: 850;
}

.rvs-detail p,
.rvs-detail strong {
  margin: 0;
  color: var(--p59-text);
  font-size: 15px;
  line-height: 1.65;
}

.rvs-side-note {
  padding: 18px;
  border-radius: 16px;
  background: var(--p59-blue-card);
}

.rvs-side-note span {
  display: block;
  color: var(--p59-muted);
  font-size: 12px;
  font-weight: 850;
}

.rvs-side-note strong {
  display: block;
  margin-top: 8px;
  color: var(--p59-blue);
  font-size: 26px;
  line-height: 1.1;
}

.rvs-word-actions {
  margin-top: 18px;
}

.rvs-message {
  min-height: 26px;
  margin: 12px 0 0;
  color: var(--p59-muted);
  line-height: 1.65;
}

.rvs-message.is-good {
  color: #1E8A55;
}

.rvs-message.is-warn {
  color: #B7791F;
}

.rvs-message.is-bad {
  color: #C83535;
}

.rvs-panel.rvs-empty {
  padding: 24px 0 0;
}

.rvs-empty .rvs-shell {
  padding: 24px;
  border: 1px solid var(--p59-border);
  border-radius: 18px;
  background: var(--p59-white);
  box-shadow: var(--p59-shadow);
}

.rvs-tooling-card,
.rvs-review-card {
  padding: 24px;
}

.rvs-tooling-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.rvs-tooling-head h2 {
  margin: 0;
  font-size: 20px;
}

.rvs-tooling-head p {
  margin: 5px 0 0;
  color: var(--p59-muted);
  font-size: 13px;
}

.rvs-bank-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rvs-bank-status span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--p59-blue-card);
  color: var(--p59-muted);
  font-size: 12px;
  font-weight: 800;
}

.rvs-bank-status strong {
  color: var(--p59-blue);
}

.rvs-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.rvs-control {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--p59-muted);
  font-size: 13px;
  font-weight: 850;
}

.rvs-control--wide {
  grid-column: span 2;
}

.rvs-control select,
.rvs-control input,
.rvs-spelling input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--p59-border);
  border-radius: var(--p59-radius);
  background: var(--p59-white);
  color: var(--p59-text);
  padding: 10px 12px;
  outline: none;
}

.rvs-control select:focus,
.rvs-control input:focus,
.rvs-spelling input:focus {
  border-color: rgba(21, 94, 239, 0.55);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.rvs-check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p59-text);
  font-size: 13px;
  font-weight: 850;
}

.rvs-word-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rvs-word-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--p59-border);
  border-radius: 16px;
  background: var(--p59-white);
  box-shadow: 0 10px 28px rgba(33, 64, 134, 0.045);
}

.rvs-word-item strong {
  display: block;
  color: var(--p59-text);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rvs-word-item p {
  margin: 5px 0 0;
  color: var(--p59-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rvs-word-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rvs-list-action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  box-shadow: none;
}

.rvs-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.rvs-pill--success {
  background: #EAF8F0;
  color: #1E8A55;
}

.rvs-pill--warning {
  background: #FFF8E6;
  color: #B7791F;
}

.rvs-pill--muted {
  background: #F3F6FA;
  color: #66748A;
}

.rvs-pill--info {
  background: var(--p59-blue-card);
  color: var(--p59-blue);
}

.rvs-pill--danger {
  background: #FFF0F0;
  color: #C83535;
}

.rvs-dictation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 512px;
  gap: 28px;
  align-items: start;
  padding: 32px;
}

.rvs-dictation-copy .rvs-status-row {
  margin-top: 18px;
}

.rvs-spelling {
  padding: 20px;
  border: 1px solid #EDF2FB;
  border-radius: 16px;
  background: #FBFCFF;
}

.rvs-spelling label {
  display: block;
  color: var(--p59-muted);
  font-size: 13px;
  font-weight: 850;
}

.rvs-dictation-prompt {
  min-height: 72px;
  display: grid;
  place-items: center;
  margin: 10px 0 14px;
  padding: 16px;
  border: 1px solid var(--p59-border);
  border-radius: 14px;
  background: var(--p59-white);
  color: var(--p59-text);
  font-size: 28px;
  font-weight: 850;
  text-align: center;
}

.rvs-spelling-actions {
  margin-top: 14px;
}

.rvs-wrong-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rvs-wrong-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid #EDF2FB;
  border-radius: 14px;
  background: #FBFCFF;
}

.rvs-wrong-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.rvs-wrong-item span {
  display: block;
  margin-top: 5px;
  color: var(--p59-muted);
  font-size: 12px;
  line-height: 1.5;
}

.rvs-record-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rvs-record-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.rvs-record-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--p59-blue-card);
  color: var(--p59-blue);
}

.rvs-record-label span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--p59-blue-card);
  color: var(--p59-blue);
  font-size: 12px;
  font-weight: 850;
}

.rvs-record-label time {
  display: block;
  margin-top: 4px;
  color: var(--p59-muted);
  font-size: 12px;
}

.rvs-record-item strong {
  display: block;
  font-size: 15px;
}

.rvs-record-item p {
  margin: 3px 0 0;
  color: var(--p59-muted);
  font-size: 13px;
}

.rvs-record-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--p59-blue);
  font-size: 13px;
  font-weight: 850;
}

.rvs-sync-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.rvs-sync-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rvs-sync-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p59-text);
  font-size: 14px;
  line-height: 20px;
}

.rvs-sync-card li [data-rvs-icon] {
  width: 16px;
  height: 16px;
  color: var(--p59-blue);
}

.rvs-sync-card li svg {
  width: 16px;
  height: 16px;
}

.rvs-sync-actions {
  flex-direction: column;
  align-items: stretch;
}

.rvs-sync-actions .rvs-button {
  width: 100%;
}

.rvs-bottom-cta {
  padding: 32px 0 64px;
}

.rvs-bottom-cta__card {
  min-height: 252px;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(238, 244, 255, 0.96), rgba(255, 255, 255, 0.92)),
    var(--p59-white);
}

.rvs-bottom-cta__card h2 {
  max-width: 640px;
}

.rvs-bottom-cta__card p:not(.rvs-kicker) {
  max-width: 560px;
}

.rvs-footer {
  border-top: 1px solid var(--p59-border);
  background: #F9FBFF;
  padding: 48px 0 34px;
}

.rvs-footer__grid {
  display: grid;
  grid-template-columns: 256px repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.rvs-footer__brand p {
  margin: 12px 0 0;
  font-size: 14px;
}

.rvs-footer nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.rvs-footer h2 {
  margin: 0 0 4px;
  color: var(--p59-text);
  font-size: 14px;
  line-height: 20px;
}

.rvs-footer a {
  color: var(--p59-muted);
  font-size: 14px;
  line-height: 20px;
}

.rvs-footer a:hover {
  color: var(--p59-blue);
}

.rvs-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--p59-border);
  color: var(--p59-muted);
  font-size: 12px;
}

.rvs-muted {
  color: var(--p59-muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .rvs-shell {
    width: min(100% - 48px, 1132px);
  }

  .rvs-topnav__inner {
    gap: 12px;
  }

  .rvs-nav a {
    padding: 0 8px;
  }
}

@media (max-width: 980px) {
  .rvs-topnav__inner {
    justify-content: space-between;
  }

  .rvs-menu-button {
    display: block;
  }

  .rvs-nav {
    position: absolute;
    top: 64px;
    left: 24px;
    right: 24px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--p59-border);
    border-radius: 16px;
    background: var(--p59-white);
    box-shadow: var(--p59-shadow);
  }

  .rvs-topnav.is-open .rvs-nav {
    display: grid;
  }

  .rvs-nav a {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .rvs-topnav__cta {
    display: none;
  }

  .rvs-hero__grid,
  .rvs-dictation-card,
  .rvs-sync-card,
  .rvs-card-layout {
    grid-template-columns: 1fr;
  }

  .rvs-overview-card {
    min-height: 0;
  }

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

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

  .rvs-word-list {
    grid-template-columns: 1fr;
  }

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

  .rvs-record-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .rvs-record-label {
    grid-column: 2;
  }

  .rvs-record-main {
    grid-column: 2 / 4;
  }

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

@media (max-width: 640px) {
  .rvs-shell {
    width: min(100% - 48px, 430px);
  }

  .rvs-topnav__inner {
    min-height: 64px;
  }

  .rvs-brand {
    max-width: calc(100vw - 112px);
  }

  .rvs-brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rvs-nav {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr;
  }

  .rvs-hero {
    padding-top: 28px;
  }

  .rvs-hero__grid {
    min-height: 0;
    gap: 22px;
  }

  .rvs-hero h1 {
    font-size: 34px;
  }

  .rvs-lead,
  .rvs-section-head p,
  .rvs-dictation-copy p,
  .rvs-sync-card p,
  .rvs-bottom-cta__card p {
    font-size: 15px;
  }

  .rvs-actions,
  .rvs-word-actions,
  .rvs-spelling-actions {
    align-items: stretch;
  }

  .rvs-actions .rvs-button,
  .rvs-word-actions .rvs-button,
  .rvs-spelling-actions .rvs-button,
  .rvs-controls .rvs-button {
    width: 100%;
  }

  .rvs-overview-grid,
  .rvs-stats__grid,
  .rvs-controls,
  .rvs-wrong-grid {
    grid-template-columns: 1fr;
  }

  .rvs-stat-card {
    min-height: 132px;
  }

  .rvs-section {
    padding-top: 28px;
  }

  .rvs-section-head--inline,
  .rvs-tooling-head {
    display: grid;
  }

  .rvs-bank-status {
    justify-content: flex-start;
  }

  .rvs-control--wide {
    grid-column: auto;
  }

  .rvs-current-card,
  .rvs-tooling-card,
  .rvs-dictation-card,
  .rvs-review-card,
  .rvs-sync-card {
    padding: 20px;
    border-radius: 16px;
  }

  .rvs-word-title {
    font-size: 38px;
  }

  .rvs-side-note {
    padding: 16px;
  }

  .rvs-word-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rvs-list-action {
    width: 100%;
  }

  .rvs-dictation-prompt {
    min-height: 64px;
    font-size: 24px;
  }

  .rvs-record-item {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .rvs-record-main,
  .rvs-record-link {
    grid-column: 1 / 3;
  }

  .rvs-record-link {
    justify-content: flex-start;
  }

  .rvs-bottom-cta {
    padding-bottom: 44px;
  }

  .rvs-bottom-cta__card {
    min-height: 0;
    padding: 32px;
  }

  .rvs-footer {
    padding-top: 40px;
  }

  .rvs-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rvs-footer__bottom {
    display: grid;
  }
}

@media (max-width: 400px) {
  .rvs-shell {
    width: min(100% - 32px, 390px);
  }

  .rvs-current-card,
  .rvs-tooling-card,
  .rvs-dictation-card,
  .rvs-review-card,
  .rvs-sync-card,
  .rvs-bottom-cta__card {
    padding: 18px;
  }

  .rvs-button {
    padding: 0 14px;
  }
}
