:root {
    --bottom-nav-height: 80px;

    /* Material 3 design tokens for custom components (search overlay, plan tab).
       These are independent of MudBlazor's theme system, which uses its own CSS variables.
       If MudBlazor theme customization is adopted, these should be migrated to align. */
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-surface-container-high: #ECE6F0;
    --md-sys-color-on-surface: #1D1B20;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-outline: #CAC4D0;
    --md-sys-color-primary: #6750A4;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-surface-disabled: #757575;
    --md-sys-color-surface-disabled: #E0E0E0;
    --md-state-hover-opacity: 0.08;
}

/* TODO: Add dark mode support in a future iteration.
   Define @media (prefers-color-scheme: dark) overrides for --md-sys-color-* tokens. */

/* Base styles */
html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    touch-action: manipulation;
}

h1:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1976D2;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1976D2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: #757575;
}

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: #ffebee;
    border-top: 2px solid #f44336;
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    padding: 0.5rem;
}

.blazor-error-boundary {
    background: #f44336;
    padding: 1rem;
    color: white;
    border-radius: 4px;
    margin: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred. Please try again.";
}

/* Validation styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #4caf50;
}

.invalid {
    outline: 1px solid #f44336;
}

.validation-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Onboarding styles */
.onboarding-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #FFFFFF;
}

.onboarding-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.onboarding-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 2.5rem;
}

.onboarding-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    outline: none !important;
    border: none;
}

.onboarding-title:focus,
.onboarding-title:focus-visible {
    outline: none !important;
    box-shadow: none;
}

.onboarding-subtitle {
    font-size: 1rem;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.5;
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

.onboarding-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background-color: #D9D0E8;
    color: #1A1A1A;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 24px;
    transition: background-color 0.2s ease;
}

.onboarding-button:hover {
    background-color: #C9BFD8;
}

.onboarding-button:focus {
    outline: 2px solid #6B4E9B;
    outline-offset: 2px;
}

.onboarding-link {
    margin-top: 1rem;
    color: #6B4E9B;
    font-size: 0.875rem;
    text-decoration: none;
}

.onboarding-link:hover {
    text-decoration: underline;
}

.onboarding-link:focus {
    outline: 2px solid #6B4E9B;
    outline-offset: 2px;
}

/* Introduction page specific styles */
.onboarding-content--introduction {
    justify-content: flex-start;
    padding-top: 3rem;
}

.onboarding-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1A1A1A;
    margin: 0 0 auto 0;
    line-height: 1.4;
    text-align: left;
}

.onboarding-illustration {
    max-width: 100%;
    height: auto;
    margin-top: auto;
}

/* Get Started page specific styles */
.onboarding-content--get-started {
    justify-content: flex-start;
    padding-top: 3rem;
}

/* Plan Tab Styles */
.plan-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--md-sys-color-surface);
    padding: 0 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

.plan-header {
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
}

.plan-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.plan-header-text {
    display: flex;
    flex-direction: column;
}

.plan-header-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    line-height: 1.3;
}

.plan-header-subtitle {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.4;
}

.plan-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-input-field {
    display: flex;
    align-items: center;
    background-color: var(--md-sys-color-surface-container-high);
    border-radius: 8px;
    padding: 0 4px 0 16px;
    height: 56px;
    border-bottom: 1px solid var(--md-sys-color-outline);
    cursor: pointer;
}

.plan-input-field:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: -2px;
}

.plan-input-field:hover {
    background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, var(--md-sys-color-surface));
}

.plan-input-icon {
    color: var(--md-sys-color-on-surface-variant);
    flex-shrink: 0;
}

.plan-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--md-sys-color-on-surface);
    padding: 0 12px;
    height: 100%;
    outline: none;
}

.plan-input::placeholder {
    color: var(--md-sys-color-on-surface-variant);
}

.plan-input:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: -2px;
}

.plan-input--display {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

.plan-input--placeholder {
    color: var(--md-sys-color-on-surface-variant);
}

.plan-mic-button {
    color: var(--md-sys-color-on-surface-variant);
    flex-shrink: 0;
}

.plan-start-button {
    width: 100%;
    height: 48px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-surface);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.plan-start-button:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--md-sys-color-on-surface) var(--md-state-hover-opacity), var(--md-sys-color-primary-container));
}

.plan-start-button:focus {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.plan-start-button:disabled {
    background-color: var(--md-sys-color-surface-disabled);
    color: var(--md-sys-color-on-surface-disabled);
    cursor: not-allowed;
}

.plan-help-link {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--md-sys-color-primary);
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.plan-help-link:hover {
    color: #5A3D8A;
}

.plan-help-link:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.plan-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.plan-illustration-image {
    max-width: 80%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Navigate Page Styles */
.navigate-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: #f2f2f7;
}

/* Active state: absolute-fill .main-content so the flex column (navigate-top flex:1,
   navigate-bottom flex-shrink:0) gets a definite height from the positioned container.
   .main-content has position:relative, so this fills exactly the area between the
   top of the page and the bottom tab bar.  padding-bottom accounts for the fixed-position
   BottomNavigation bar (--bottom-nav-height: 80px). */
.navigate-page--active {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding-bottom: var(--bottom-nav-height, 80px);
}

.navigate-no-route {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 8px;
    padding: 0 16px;
}

.navigate-no-route h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin: 8px 0 0;
}

.navigate-no-route p {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 0 16px;
}

.navigate-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
    padding: 0 16px;
}

.navigate-loading p {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.navigate-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--md-sys-color-outline);
    border-top-color: var(--md-sys-color-primary);
    border-radius: 50%;
    animation: navigate-spin 0.8s linear infinite;
}

.navigate-spinner--small {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

@keyframes navigate-spin {
    to { transform: rotate(360deg); }
}

.navigate-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 8px;
    padding: 0 16px;
}

.navigate-error h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--md-sys-color-error);
    margin: 8px 0 0;
}

.navigate-error p {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 0 16px;
}

.navigate-error-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

/* App bar */
.navigate-app-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 64px;
    padding: 8px 4px;
    box-sizing: border-box;
}

.navigate-app-bar-back,
.navigate-app-bar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
    flex-shrink: 0;
}

.navigate-app-bar-back:hover,
.navigate-app-bar-more:hover:not(:disabled) {
    background-color: rgba(29, 27, 32, 0.08);
}

.navigate-app-bar-back:focus-visible,
.navigate-app-bar-more:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.navigate-app-bar-more:disabled {
    color: var(--md-sys-color-on-surface-variant);
    cursor: default;
}

.navigate-app-bar-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.navigate-app-bar-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface);
    line-height: 1.27;
}

.navigate-app-bar-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.5px;
    line-height: 1.33;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Top section */
.navigate-top {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Navigation step card */
.navigate-step-card {
    background-color: #fef7ff;
    border-radius: 0;
    overflow-y: auto;
    min-height: 0;
    flex-shrink: 1;
}

.navigate-step-content {
    padding: 4px 16px;
}

.navigate-step-header {
    font-size: 16px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface);
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
}

.navigate-step-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: 0.25px;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.navigate-step-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    gap: 12px;
}

.navigate-step-loading p {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.navigate-step-features {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: 0.25px;
    color: var(--md-sys-color-on-surface);
    margin: 8px 0 0;
    padding: 8px 12px;
    background-color: var(--md-sys-color-surface-container-high);
    border-radius: 8px;
    white-space: pre-line;
}

.navigate-step-retry-notice {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.33;
    color: var(--md-sys-color-on-surface-variant);
    margin: 4px 0 0;
    font-style: italic;
}

/* Help link */
.navigate-help-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    letter-spacing: 0.25px;
    line-height: 1.43;
    text-decoration: none;
    padding: 0 14px;
}

.navigate-help-link:hover {
    text-decoration: underline;
}

.navigate-help-link:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Bottom section */
.navigate-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 6px 10px;
    flex-shrink: 0;
}

/* Section header */
.navigate-section-header {
    padding: 18px 16px;
    border-radius: 100px;
}

.navigate-section-header-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.1px;
    line-height: 1.43;
}

/* Action button rows */
.navigate-actions-row {
    display: flex;
    gap: 10px;
}

/* Action buttons */
.navigate-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.15px;
    line-height: 1.5;
    text-align: center;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.navigate-action-btn--primary {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-surface-variant);
}

.navigate-action-btn--primary:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--md-sys-color-on-surface) var(--md-state-hover-opacity), var(--md-sys-color-primary-container));
}

.navigate-action-btn--primary:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.navigate-action-btn--primary:disabled {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-surface-variant);
    cursor: default;
    opacity: 0.6;
}

.navigate-action-btn--disabled {
    background-color: rgba(29, 27, 32, 0.1);
    color: var(--md-sys-color-on-surface);
}

.navigate-action-btn--disabled:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.navigate-action-btn--disabled:not(:disabled) {
    background-color: rgba(29, 27, 32, 0.1);
    color: var(--md-sys-color-on-surface);
}

.navigate-action-btn--disabled:hover:not(:disabled) {
    background-color: rgba(29, 27, 32, 0.16);
}

.navigate-action-btn--disabled:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.navigate-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-surface);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.navigate-link-button:hover {
    background-color: color-mix(in srgb, var(--md-sys-color-surface) var(--md-state-hover-opacity), var(--md-sys-color-primary));
}

.navigate-link-button:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Navigation map */
.navigate-map-container {
    flex: 1;
    position: relative;
    padding: 0 10px;
    min-height: 200px;
}

.navigate-map {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 2px solid var(--md-sys-color-primary-container);
    overflow: hidden;
    box-sizing: border-box;
}

.navigate-map-attrib {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navigate-map-attrib-text {
    display: none;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    color: #333;
}

.navigate-map-attrib-text a {
    color: #4264fb;
    text-decoration: none;
}

.navigate-map-attrib--open .navigate-map-attrib-text {
    display: inline;
}

.navigate-map-attrib-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.navigate-map-attrib-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.navigate-map-center-btn {
    position: absolute;
    top: 12px;
    right: 22px;
    width: 40px;
    height: 40px;
    background: var(--md-sys-color-surface);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-on-surface-variant);
    z-index: 1;
}

.navigate-map-center-btn:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.navigate-map-center-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.navigate-map-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-surface-variant);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.15px;
    line-height: 1.5;
    text-align: center;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.navigate-map-toggle-btn:hover {
    background-color: color-mix(in srgb, var(--md-sys-color-on-surface) var(--md-state-hover-opacity), var(--md-sys-color-primary-container));
}

.navigate-map-toggle-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Bottom Navigation Styles */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--bottom-nav-height);
    background-color: var(--md-sys-color-surface-container-high);
    border-top: none;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    padding: 12px 0 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    color: var(--md-sys-color-on-surface-variant);
    transition: color 0.2s ease;
}

.bottom-nav-item:focus {
    outline: none;
}

.bottom-nav-item:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: -2px;
    border-radius: 8px;
}

.bottom-nav-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.bottom-nav-item.active .bottom-nav-indicator {
    background-color: var(--md-sys-color-primary-container);
}

.bottom-nav-item.active {
    color: var(--md-sys-color-on-surface);
}

.bottom-nav-item.active .mud-icon-root {
    color: var(--md-sys-color-on-surface);
}

.bottom-nav-item .mud-icon-root {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 24px;
}

.bottom-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================
   Configure Tab
   ======================== */

.configure-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--md-sys-color-surface);
    overflow: hidden;
    padding: 0 16px var(--bottom-nav-height, 80px);
    box-sizing: border-box;
}

.configure-app-bar {
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
}

.configure-app-bar-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.configure-app-bar-text {
    display: flex;
    flex-direction: column;
}

.configure-app-bar-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    line-height: 1.3;
}

.configure-app-bar-subtitle {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.4;
}

.configure-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    min-height: 0;
}

.configure-scroll-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    gap: 24px;
}

.configure-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.configure-section-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.configure-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #fff;
    border-radius: 12px;
}

.configure-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E8DEF8;
    flex-shrink: 0;
}

.configure-user-avatar-text {
    font-size: 18px;
    font-weight: 500;
    color: #6750A4;
}

.configure-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.configure-user-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
}

.configure-user-email {
    font-size: 13px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.38;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configure-about-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.configure-about-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
}

.configure-about-row:hover {
    background-color: rgba(29, 27, 32, 0.08);
}

.configure-about-row:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: -2px;
}

.configure-about-row--static {
    cursor: default;
}

.configure-about-row--static:hover {
    background-color: transparent;
}

.configure-about-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--md-sys-color-on-surface-variant);
}

.configure-about-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface);
    line-height: 1.43;
    flex: 1;
    text-align: left;
}

.configure-about-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
}

.configure-about-chevron {
    font-size: 20px;
    color: var(--md-sys-color-on-surface-variant);
    flex-shrink: 0;
}

.configure-divider {
    height: 1px;
    background-color: rgba(202, 196, 208, 0.3);
    margin: 0 16px 0 50px;
}

.configure-bottom-area {
    padding: 16px 16px 24px;
}

.configure-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 24px;
    background-color: #fff;
    border: 1px solid #BA1A1A;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #BA1A1A;
    letter-spacing: 0.25px;
}

.configure-logout-btn:hover {
    background-color: rgba(186, 26, 26, 0.06);
}

.configure-logout-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* ========================
   Help Page
   ======================== */

.help-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f2f2f7;
    overflow: hidden;
    padding-bottom: var(--bottom-nav-height, 80px);
    box-sizing: border-box;
}

.help-app-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 64px;
    padding: 8px 4px;
    box-sizing: border-box;
}

.help-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
    flex-shrink: 0;
}

.help-back-btn:hover {
    background-color: rgba(29, 27, 32, 0.08);
}

.help-back-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: -2px;
}

.help-app-bar-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface);
    line-height: 1.27;
}

.help-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px 20px;
    gap: 24px;
}

.help-intro-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
}

.help-intro-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    line-height: 1.4;
    margin: 0;
}

.help-intro-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.25px;
    line-height: 1.43;
    margin: 0;
}

.help-steps-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.help-steps-header {
    padding: 16px 20px;
}

.help-steps-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
    margin: 0;
}

.help-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
}

.help-step:last-child {
    padding-bottom: 16px;
}

.help-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #E8DEF8;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6750A4;
}

.help-step-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.25px;
    line-height: 1.43;
    margin: 0;
}
