:root {
    color-scheme: light;
    --rh-page-bg: #f8f9fa;
    --rh-surface: #ffffff;
    --rh-surface-soft: #f3f4f5;
    --rh-navy-950: #08111f;
    --rh-navy-900: #102033;
    --rh-navy-800: #1d3148;
    --rh-slate-500: #66768b;
    --rh-slate-400: #7f90a5;
    --rh-line: #d7e0eb;
    --rh-teal-500: #1cb7aa;
    --rh-teal-400: #55d9cf;
    --rh-primary: #00438a;
    --rh-primary-strong: #005ab5;
    --rh-primary-soft: #d7e3ff;
    --rh-orange: #ffb95f;
    --rh-orange-ink: #623c00;
    --rh-success-bg: #dcfce7;
    --rh-success: #16a34a;
    --rh-success-ink: #166534;
    --rh-error-bg: #ffdad6;
    --rh-error: #ba1a1a;
    --rh-error-ink: #93000a;
    --rh-shadow: 0 24px 48px rgba(13, 27, 42, 0.08);
    --rh-shadow-soft: 0 12px 28px rgba(13, 27, 42, 0.06);
    --rh-radius-xl: 2rem;
    --rh-radius-lg: 1.4rem;
    --rh-font-sans: "Inter", "Aptos", "Segoe UI", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --rh-font-display: "Manrope", "Inter", "Aptos", "Segoe UI", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(85, 217, 207, 0.18), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0%, var(--rh-page-bg) 55%, #edf2f8 100%);
    color: var(--rh-navy-950);
    font-family: var(--rh-font-sans);
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: var(--rh-font-sans);
}

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

h1:focus {
    outline: none;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.status-bar-safe-area {
    display: none;
}

.rh-layout {
    min-height: 100vh;
}

.rh-layout__main {
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 1.25rem 1rem 7.5rem;
}

.rh-page {
    display: flex;
    flex-direction: column;
}

.rh-page--stacked {
    gap: 1rem;
}

.rh-hero {
    display: grid;
    gap: 1rem;
}

.rh-hero__topline,
.rh-detail-topbar,
.rh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rh-brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.rh-brand h1,
.rh-panel h1,
.rh-panel h2 {
    margin: 0;
}

.rh-brand h1,
.rh-panel h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.04em;
    line-height: 0.94;
}

.rh-panel h2 {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
}

.rh-brand__mark {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--rh-navy-900), var(--rh-teal-500));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    box-shadow: var(--rh-shadow-soft);
}

.rh-panel {
    border-radius: var(--rh-radius-xl);
    padding: 1.4rem;
}

.rh-panel--surface {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 224, 235, 0.9);
    box-shadow: var(--rh-shadow-soft);
}

.rh-panel--muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 248, 252, 0.96));
    border: 1px solid rgba(215, 224, 235, 0.8);
}

.rh-progress-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--rh-radius-xl);
    padding: 1.45rem;
    background: linear-gradient(155deg, var(--rh-navy-900), var(--rh-navy-800));
    color: #f8fbff;
    box-shadow: var(--rh-shadow);
}

.rh-progress-panel::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    top: -2rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 217, 207, 0.6), transparent 68%);
}

.rh-progress-panel__header,
.rh-progress-panel__meter,
.rh-action-row,
.rh-chip-list,
.rh-list-stack,
.rh-tabs,
.rh-past-grid,
.rh-reflexive-pair {
    display: flex;
}

.rh-progress-panel__header,
.rh-progress-panel__labels {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rh-progress-panel__meter,
.rh-list-stack,
.rh-page--stacked,
.rh-verb-highlight,
.rh-past-card dl {
    flex-direction: column;
}

.rh-progress-panel__meter {
    gap: 0.65rem;
    margin-top: 1rem;
}

.rh-progress-bar {
    width: 100%;
    height: 0.8rem;
    border-radius: 999px;
    background: rgba(199, 214, 228, 0.2);
    overflow: hidden;
}

.rh-progress-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rh-teal-400), var(--rh-teal-500));
}

.rh-panel__eyebrow,
.rh-eyebrow,
.rh-reflexive-pair__label {
    margin: 0 0 0.45rem;
    color: var(--rh-slate-400);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rh-panel__lead,
.rh-lead,
.rh-verb-list-item__meaning {
    margin: 0;
    color: var(--rh-slate-500);
    line-height: 1.55;
}

.rh-lead {
    font-size: 1rem;
}

.rh-pill,
.rh-chip,
.rh-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.rh-pill {
    padding: 0.45rem 0.8rem;
    background: rgba(85, 217, 207, 0.16);
    color: #e6fffb;
}

.rh-pill--accent,
.rh-chip--accent,
.rh-mini-pill--accent {
    background: rgba(28, 183, 170, 0.14);
    color: var(--rh-teal-500);
}

.rh-chip-list {
    flex-wrap: wrap;
    gap: 0.6rem;
}

.rh-chip {
    padding: 0.55rem 0.85rem;
    background: var(--rh-surface-soft);
    border: 1px solid var(--rh-line);
    color: var(--rh-navy-900);
}

.rh-mini-pill {
    padding: 0.22rem 0.55rem;
    background: rgba(16, 32, 51, 0.08);
    color: var(--rh-navy-800);
}

.rh-verb-highlight {
    gap: 1rem;
}

.rh-verb-highlight__pair,
.rh-verb-list-item__body,
.rh-past-card dl {
    display: grid;
    gap: 0.55rem;
}

.rh-verb-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.rh-verb-line--accent .rh-verb-line__word {
    color: var(--rh-teal-500);
}

.rh-verb-line__word {
    font-size: clamp(1.3rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.rh-action-row {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rh-button,
.rh-text-link,
.rh-icon-link,
.rh-tab {
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.rh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    font-weight: 700;
}

.rh-button:hover,
.rh-button:focus-visible,
.rh-text-link:hover,
.rh-text-link:focus-visible,
.rh-icon-link:hover,
.rh-icon-link:focus-visible,
.rh-tab:hover,
.rh-tab:focus-visible,
.rh-verb-list-item:hover,
.rh-verb-list-item:focus-visible,
.rh-bottom-nav__link:hover,
.rh-bottom-nav__link:focus-visible {
    transform: translateY(-1px);
}

.rh-button--light {
    background: #ffffff;
    color: var(--rh-navy-900);
}

.rh-button--dark {
    background: var(--rh-navy-900);
    color: #ffffff;
    box-shadow: var(--rh-shadow-soft);
}

.rh-button--ghost {
    background: var(--rh-surface-soft);
    border-color: var(--rh-line);
    color: var(--rh-navy-900);
}

.rh-text-link,
.rh-icon-link {
    color: var(--rh-teal-500);
    font-weight: 700;
}

.rh-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.rh-search-field {
    display: grid;
    gap: 0.7rem;
}

.rh-search-field__label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rh-slate-400);
}

.rh-search-field__control {
    position: relative;
}

.rh-search-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    transform: translateY(-50%);
    color: var(--rh-slate-400);
}

.rh-search-field__icon svg,
.rh-bottom-nav__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.rh-search-field__input {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid var(--rh-line);
    border-radius: 1.15rem;
    background: #ffffff;
    color: var(--rh-navy-950);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rh-search-field__input:focus {
    outline: 2px solid rgba(28, 183, 170, 0.22);
    border-color: rgba(28, 183, 170, 0.7);
}

.rh-list-stack {
    gap: 0.9rem;
}

.rh-verb-list-item {
    display: grid;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(215, 224, 235, 0.9);
    border-radius: var(--rh-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--rh-shadow-soft);
}

.rh-verb-list-item.active {
    border-color: rgba(28, 183, 170, 0.55);
}

.rh-verb-list-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rh-tabs {
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.rh-tab {
    padding: 0.85rem 1rem;
    border: 1px solid var(--rh-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--rh-slate-500);
    font-weight: 700;
    white-space: nowrap;
}

.rh-tab--active {
    background: var(--rh-navy-900);
    border-color: var(--rh-navy-900);
    color: #ffffff;
    box-shadow: var(--rh-shadow-soft);
}

.rh-table-shell {
    overflow: hidden;
    border: 1px solid var(--rh-line);
    border-radius: 1.25rem;
    background: #ffffff;
}

.rh-table {
    width: 100%;
    border-collapse: collapse;
}

.rh-table th,
.rh-table td {
    padding: 0.95rem 1rem;
    text-align: left;
}

.rh-table thead {
    background: var(--rh-navy-900);
    color: #ffffff;
}

.rh-table thead th {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-table tbody tr:nth-child(2n) {
    background: #f7fbff;
}

.rh-table tbody td:first-child {
    color: var(--rh-slate-500);
    font-weight: 700;
}

.rh-table tbody td:not(:first-child) {
    font-weight: 700;
}

.rh-past-grid {
    gap: 0.9rem;
    flex-wrap: wrap;
}

.rh-past-card {
    flex: 1 1 16rem;
    padding: 1rem;
    border-radius: 1.3rem;
    background: var(--rh-surface-soft);
    border: 1px solid var(--rh-line);
}

.rh-past-card--accent {
    background: rgba(28, 183, 170, 0.09);
}

.rh-past-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.rh-past-card dl {
    margin: 0;
    gap: 0.7rem;
}

.rh-past-card dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.rh-past-card dt {
    color: var(--rh-slate-500);
}

.rh-past-card dd {
    margin: 0;
    font-weight: 700;
}

.rh-reflexive-pair {
    gap: 0.9rem;
    flex-wrap: wrap;
}

.rh-reflexive-pair > div {
    flex: 1 1 12rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: var(--rh-surface-soft);
    border: 1px solid var(--rh-line);
}

.rh-empty-state {
    padding: 1rem;
    border: 1px dashed var(--rh-line);
    border-radius: 1rem;
    color: var(--rh-slate-500);
    background: rgba(245, 248, 252, 0.8);
}

.rh-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(calc(100% - 2rem), 24rem);
    padding: 0.7rem;
    border: 1px solid rgba(215, 224, 235, 0.9);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--rh-shadow);
    backdrop-filter: blur(18px);
}

.rh-bottom-nav__link {
    display: grid;
    place-items: center;
    gap: 0.3rem;
    min-height: 3.2rem;
    padding: 0.5rem;
    border-radius: 1rem;
    color: var(--rh-slate-500);
    font-size: 0.84rem;
    font-weight: 700;
}

.rh-bottom-nav__link.active {
    background: var(--rh-navy-900);
    color: #ffffff;
}

.rh-bottom-nav__icon {
    width: 1.2rem;
    height: 1.2rem;
}

.rh-practice-page {
    position: relative;
    min-height: 100vh;
    padding: 5.5rem 0 8.5rem;
}

.rh-practice-shell {
    display: grid;
    gap: 1.5rem;
}

.rh-practice-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding: 0.75rem 1rem;
    background: rgba(248, 249, 250, 0.88);
    backdrop-filter: blur(20px);
}

.rh-practice-topbar__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 44rem);
    margin: 0 auto;
}

.rh-practice-topbar__exit {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    color: var(--rh-slate-500);
}

.rh-practice-topbar__exit svg,
.rh-practice-stat-pill svg,
.rh-practice-feedback svg,
.rh-practice-rule__icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.rh-practice-topbar__progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.rh-practice-topbar__progress-track {
    flex: 1 1 auto;
    height: 0.45rem;
    border-radius: 999px;
    overflow: hidden;
    background: #dfe3e7;
}

.rh-practice-topbar__progress-fill,
.rh-practice-footer__primary {
    background: linear-gradient(135deg, var(--rh-primary) 0%, var(--rh-primary-strong) 100%);
}

.rh-practice-topbar__progress-fill {
    height: 100%;
    border-radius: inherit;
}

.rh-practice-topbar__progress-copy {
    flex: 0 0 auto;
    color: var(--rh-primary-strong);
    font-family: var(--rh-font-display);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rh-practice-topbar__stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rh-practice-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(25, 28, 29, 0.05);
    color: var(--rh-navy-950);
    font-size: 0.85rem;
    font-weight: 800;
}

.rh-practice-stat-pill--streak svg {
    color: #f59e0b;
}

.rh-practice-stat-pill--xp {
    color: var(--rh-primary);
}

.rh-practice-intro,
.rh-practice-question-card {
    text-align: center;
}

.rh-practice-action-row {
    display: flex;
    justify-content: center;
    margin-top: -0.5rem;
}

.rh-practice-intro {
    padding-top: 1rem;
}

.rh-practice-verb,
.rh-practice-editorial-title {
    margin: 0;
    color: #191c1d;
    font-family: var(--rh-font-display);
    letter-spacing: -0.055em;
}

.rh-practice-verb {
    font-size: clamp(3.4rem, 14vw, 5rem);
    font-weight: 800;
    line-height: 0.94;
}

.rh-practice-translation {
    margin: 0.55rem 0 0;
    color: var(--rh-slate-500);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 500;
}

.rh-practice-question-card,
.rh-practice-sentence-card,
.rh-practice-feedback,
.rh-practice-complete-card,
.rh-practice-rule {
    border-radius: 1.5rem;
}

.rh-practice-question-card,
.rh-practice-sentence-card,
.rh-practice-complete-card {
    padding: 1.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(25, 28, 29, 0.04);
}

.rh-practice-state-pill,
.rh-practice-editorial-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #e1e3e4;
    color: #444748;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rh-practice-state-pill {
    margin: 0 auto;
}

.rh-practice-question-title {
    margin: 0;
    color: var(--rh-navy-950);
    font-family: var(--rh-font-display);
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.rh-practice-question-title span {
    display: block;
    color: var(--rh-primary-strong);
}

.rh-practice-input-shell {
    padding: 0.4rem;
    border-radius: 1rem;
    background: #e7e8e9;
    outline: 1.5px solid rgba(0, 67, 138, 0.15);
}

.rh-practice-input {
    width: 100%;
    min-height: 4.75rem;
    padding: 1rem 1.15rem;
    border: 0;
    border-radius: 0.85rem;
    background: #ffffff;
    color: var(--rh-navy-950);
    font-family: var(--rh-font-display);
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    font-weight: 700;
    text-align: center;
}

.rh-practice-input::placeholder {
    color: rgba(114, 119, 131, 0.58);
    font-family: var(--rh-font-sans);
    font-weight: 500;
}

.rh-practice-input:focus {
    outline: 2px solid rgba(0, 67, 138, 0.25);
}

.rh-practice-pronunciation {
    margin: 0;
    color: rgba(66, 71, 82, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
}

.rh-practice-pronunciation span {
    font-style: italic;
}

.rh-practice-editorial-header {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.5rem;
}

.rh-practice-complete-card {
    display: grid;
    gap: 1rem;
}

.rh-practice-editorial-title {
    font-size: clamp(3rem, 12vw, 4.25rem);
    font-weight: 800;
    line-height: 0.96;
}

.rh-practice-editorial-title span {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--rh-slate-500);
    font-family: var(--rh-font-sans);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.rh-practice-complete-copy {
    margin: 0;
    color: var(--rh-slate-500);
    line-height: 1.6;
}

.rh-practice-complete-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.rh-practice-complete-stat {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--rh-surface-soft);
    border: 1px solid var(--rh-line);
}

.rh-practice-complete-stat span {
    color: var(--rh-slate-500);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-practice-complete-stat strong {
    color: var(--rh-navy-950);
    font-family: var(--rh-font-display);
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.rh-practice-sentence-card {
    display: grid;
    gap: 1rem;
}

.rh-practice-sentence-card__lead {
    margin: 0;
    color: var(--rh-slate-500);
    font-size: 1rem;
}

.rh-practice-sentence-card__support {
    margin: -0.35rem 0 0;
    color: var(--rh-navy-950);
    font-family: var(--rh-font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.rh-practice-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--rh-navy-950);
    font-family: var(--rh-font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.rh-practice-answer {
    display: inline-flex;
    align-items: center;
    padding: 0 0.08rem 0.12rem;
    border-bottom: 0.2rem solid currentColor;
    font-weight: 800;
}

.rh-practice-answer--correct {
    color: var(--rh-success);
}

.rh-practice-answer--incorrect {
    color: var(--rh-error);
}

.rh-practice-sentence-card__translation {
    margin: 0;
    color: var(--rh-slate-500);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rh-practice-feedback {
    padding: 1.25rem;
}

.rh-practice-feedback--correct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--rh-success-bg);
}

.rh-practice-feedback__main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.rh-practice-feedback__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rh-success);
}

.rh-practice-feedback h2,
.rh-practice-rule h2 {
    margin: 0;
    font-family: var(--rh-font-display);
    letter-spacing: -0.03em;
}

.rh-practice-feedback p {
    margin: 0.25rem 0 0;
}

.rh-practice-feedback--correct h2 {
    color: var(--rh-success);
    font-size: 1.35rem;
    font-weight: 800;
}

.rh-practice-feedback--correct p {
    color: var(--rh-success-ink);
    font-weight: 700;
}

.rh-practice-feedback__accent {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--rh-navy-950);
    font-weight: 800;
}

.rh-practice-feedback__accent svg {
    color: #d97706;
}

.rh-practice-feedback--incorrect {
    display: grid;
    gap: 1rem;
    background: var(--rh-error-bg);
}

.rh-practice-feedback__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rh-error);
}

.rh-practice-feedback__header h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.rh-practice-feedback__answer-block {
    display: grid;
    gap: 0.45rem;
}

.rh-practice-feedback__answer-block span {
    color: var(--rh-error-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rh-practice-feedback__answer-block strong {
    color: var(--rh-primary-strong);
    font-family: var(--rh-font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rh-practice-feedback__explanation {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.45);
}

.rh-practice-feedback__explanation p {
    margin: 0;
    color: var(--rh-navy-950);
    line-height: 1.6;
}

.rh-practice-rule {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.4rem 1.25rem;
    background: rgba(243, 244, 245, 0.96);
}

.rh-practice-rule--question {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(25, 28, 29, 0.04);
}

.rh-practice-rule__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.3rem;
    border-radius: 999px;
    background: var(--rh-orange);
}

.rh-practice-rule__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 185, 95, 0.2);
    color: var(--rh-orange-ink);
}

.rh-practice-rule__body {
    display: grid;
    gap: 0.9rem;
}

.rh-practice-rule__body p {
    margin: 0;
    color: var(--rh-slate-500);
    line-height: 1.65;
}

.rh-practice-rule__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.rh-practice-rule__cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--rh-slate-500);
}

.rh-practice-rule__cell--active {
    background: rgba(215, 227, 255, 0.72);
    outline: 2px solid rgba(0, 67, 138, 0.22);
    color: var(--rh-primary);
}

.rh-practice-rule__pronoun {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    font-size: 0.74rem;
    font-weight: 800;
}

.rh-practice-rule__cell--active .rh-practice-rule__pronoun {
    background: var(--rh-primary);
    color: #ffffff;
}

.rh-practice-rule__form {
    display: inline-flex;
    gap: 0.05rem;
    font-size: 0.95rem;
}

.rh-practice-rule__form strong {
    color: var(--rh-primary);
}

.rh-practice-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.94) 30%, rgba(248, 249, 250, 1) 100%);
}

.rh-practice-footer__inner {
    width: min(100%, 44rem);
    margin: 0 auto;
}

.rh-practice-footer__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.6rem;
    padding: 0.95rem 1.2rem;
    border-radius: 1rem;
    color: #ffffff;
    font-family: var(--rh-font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    border: 0;
    box-shadow: 0 12px 24px rgba(0, 67, 138, 0.2);
    cursor: pointer;
}

.rh-practice-footer__primary:hover,
.rh-practice-topbar__exit:hover {
    transform: translateY(-1px);
}

.rh-practice-footer__primary:disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    color: #ffffff;
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: block;
        height: env(safe-area-inset-top);
    }

    .rh-layout__main {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(7.5rem, calc(6.5rem + env(safe-area-inset-bottom)));
    }

    .rh-bottom-nav {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

@media (min-width: 48rem) {
    .rh-layout__main {
        padding-top: 1.75rem;
    }

    .rh-page--stacked {
        gap: 1.2rem;
    }

    .rh-panel {
        padding: 1.65rem;
    }

    .rh-practice-page {
        padding-top: 6.5rem;
    }

    .rh-practice-question-card,
    .rh-practice-sentence-card,
    .rh-practice-feedback,
    .rh-practice-complete-card,
    .rh-practice-rule {
        padding: 2rem;
    }

    .rh-practice-feedback--correct {
        padding-block: 1.4rem;
    }
}

@media (max-width: 40rem) {
    .rh-practice-complete-stats {
        grid-template-columns: 1fr;
    }
}
