:root {
    --shui-shell-max-width: 1400px;
    --shui-panel-bg: rgba(255, 255, 255, 0.25);
    --shui-panel-border: rgba(255, 255, 255, 0.4);
    --shui-panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.1);
    --shui-surface-bg: rgba(255, 255, 255, 0.65);
    --shui-surface-border: rgba(148, 163, 184, 0.35);
    --shui-text-strong: var(--color-gray-900);
    --shui-text-muted: rgba(51, 65, 85, 0.7);
    --shui-accent: var(--color-brand-primary);
    --shui-accent-alt: var(--color-brand-secondary);
    --shui-info: var(--color-info);
    --shui-success: var(--color-success);
    --shui-warning: var(--color-warning);
    --shui-gradient-start: #ffd89b;
    --shui-gradient-end: #6accc7;
    --shui-radius-xl: 28px;
    --shui-radius-lg: 20px;
    --shui-radius-md: 16px;
    --shui-radius-sm: 12px;
    --shui-blur: 32px;

    /* Bauhaus Theme Variables for Settings View */
    --bauhaus-text-main: #0f172a;
    --bauhaus-text-muted: #64748b;
    --bauhaus-accent-red: #dc2626;
    /* WCAG AA Compliant on white */
    --bauhaus-accent-blue: #2563eb;
    /* WCAG AA Compliant on white */
    --bauhaus-accent-dark: #334155;
    /* WCAG AAA Compliant on white */
    --bauhaus-glass-border: rgba(255, 255, 255, 0.6);
    --bauhaus-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.hero-body {
    color: var(--shui-text-strong);
    position: relative;
    z-index: 0;
    isolation: isolate;
    background: #fbfffd;
    animation: none;
}

#shui-three-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

:root:not([data-theme="blue"]) body.hero-body::before {
    display: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: var(--shui-shell-max-width);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 48px) 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    color: var(--shui-text-strong);
}

.hero-brand-title {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 10px;
}

.hero-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 5vw, 58px);
    height: clamp(44px, 5vw, 58px);
    border-radius: 16px;
    color: #0f2143;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.72),
        inset 0 -1px 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.hero-brand-text {
    font-family: Georgia, 'Times New Roman', 'WenKai', serif;
    font-size: clamp(2.45rem, 5.2vw, 4.35rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0;
    color: #08172f;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.62),
        0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-brand-subtitle {
    flex: 1 1 320px;
    min-width: 240px;
    color: rgba(51, 65, 85, 0.72);
    font-size: clamp(0.86rem, 1.4vw, 1rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.hero-brand-title .inline-hover-link {
    margin-left: auto !important;
    margin-right: 20px !important;
}

.hero-badge {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, var(--shui-accent) 0%, var(--shui-accent-alt) 100%);
    color: var(--color-white);
}

.hero-badge--cta {
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-badge--cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.hero-badge--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(118, 75, 162, 0.4);
}

.hero-header p {
    color: var(--shui-text-muted);
    font-size: 1.05rem;
}

.hero-nav {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 6px;
    background: rgba(245, 245, 247, 0.55);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04),
                inset 0 -1px 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    overflow: hidden;
    isolation: isolate;
}

.hero-nav::before {
    display: none;
}

.hero-nav__liquid-indicator {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05));
    box-shadow: 
        inset 0 2px 3px rgba(255, 255, 255, 0.9), 
        inset 0 -2px 5px rgba(255, 255, 255, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15),
                top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15),
                width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15),
                height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15),
                opacity 0.22s ease;
    will-change: left, top, width, height;
}

.hero-nav__btn {
    flex: 1;
    position: relative;
    z-index: 2;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(60, 60, 67, 0.7);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.hero-nav__btn::before {
    display: none;
}

.hero-nav__btn:hover {
    color: rgba(0, 0, 0, 0.85);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03), inset 0 1px 1px rgba(255,255,255,0.7);
}

.hero-nav__btn.active {
    color: #1d1d1f;
    background: transparent;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-nav__btn.active::before {
    display: none;
}

.hero-nav.hero-nav--liquid-ready .hero-nav__liquid-indicator {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-nav__btn,
    .hero-nav__btn::before,
    .hero-nav__liquid-indicator,
    .practice-trend-card__rotor,
    .practice-custom-card__rotor,
    .practice-trend-option,
    .practice-custom-option,
    .practice-summary-region,
    .practice-summary-toggle,
    .practice-summary-toggle__glyph,
    .priority-progress__fill,
    .priority-accuracy__orb::before {
        transition: none !important;
        animation: none !important;
    }
}

.ui-emoji-icon {
    display: inline-flex;
    width: 1em;
    height: 1em;
    color: currentColor;
    vertical-align: -0.14em;
    flex: 0 0 auto;
}

.ui-emoji-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-card-icon .ui-emoji-icon,
.theme-name .ui-emoji-icon,
.hero-panel__title .ui-emoji-icon {
    width: 1.15em;
    height: 1.15em;
}

.hero-grid {
    display: grid;
    gap: 32px;
}

.hero-grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hero-card {
    position: relative;
    padding: 32px;
    border-radius: var(--shui-radius-lg);
    background: var(--shui-panel-bg);
    border: 1px solid var(--shui-panel-border);
    box-shadow: var(--shui-panel-shadow);
    backdrop-filter: blur(var(--shui-blur));
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 55%);
    pointer-events: none;
}

.hero-card--stat {
    min-height: 150px;
}

.hero-card__label {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shui-text-muted);
}

.hero-card__value {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    font-weight: 700;
    margin-top: 16px;
    color: var(--shui-text-strong);
}

.hero-card__meta {
    margin-top: 6px;
    color: var(--shui-text-muted);
    font-size: 0.95rem;
}

.practice-view__header {
    justify-content: flex-start;
}

.practice-view__title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.practice-summary-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(100, 116, 139, 0.58);
    cursor: pointer;
    outline: none;
    transition:
        color 220ms ease,
        background 220ms ease,
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-summary-toggle:hover,
.practice-summary-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    color: rgba(71, 85, 105, 0.78);
}

.practice-summary-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.22);
}

.practice-summary-toggle__glyph {
    width: 0;
    height: 0;
    border-left: 4px solid currentColor;
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    transform: rotate(90deg);
    transform-origin: 50% 50%;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-summary-region {
    overflow: hidden;
    max-height: 2200px;
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height 640ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 320ms ease,
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: max-height, opacity, transform;
}

#practice-view.is-practice-summary-collapsed .practice-summary-toggle__glyph {
    transform: rotate(0deg);
}

#practice-view.is-practice-summary-collapsed .practice-summary-region {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#practice-view.is-practice-summary-collapsed .practice-history {
    margin-top: 4px;
}

.practice-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: calc(-1 * var(--space-md)) 0 var(--space-2xl);
}

.practice-trend-card,
.practice-custom-card,
.practice-trend-reserved-card {
    --practice-trend-radius: var(--shui-radius-lg);
    --practice-trend-line-start: var(--shui-accent);
    --practice-trend-line-mid: var(--shui-gradient-end);
    --practice-trend-line-end: var(--shui-accent-alt);
    --practice-trend-point: var(--practice-trend-line-start);
    min-height: 330px;
    border-radius: var(--practice-trend-radius);
}

.practice-trend-card,
.practice-trend-reserved-card {
    grid-column: span 2;
    position: relative;
    perspective: 1600px;
    cursor: pointer;
    outline: none;
}

.practice-custom-card {
    grid-column: span 2;
    position: relative;
    perspective: 1600px;
    outline: none;
}

.practice-trend-card:focus-visible,
.practice-custom-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.24);
}

.practice-trend-card__rotor,
.practice-custom-card__rotor {
    position: relative;
    min-height: 330px;
    border-radius: inherit;
    transform-style: preserve-3d;
    transition: transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-trend-card.is-flipped .practice-trend-card__rotor {
    transform: rotateY(180deg);
}

.practice-custom-card.is-flipped .practice-custom-card__rotor {
    transform: rotateY(180deg);
}

.practice-trend-card__face,
.practice-custom-card__face,
.practice-trend-reserved-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.16)),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 34%),
        var(--shui-panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.78),
        inset 0 -1px 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(var(--shui-blur)) saturate(178%);
    -webkit-backdrop-filter: blur(var(--shui-blur)) saturate(178%);
}

.practice-trend-card__face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--practice-trend-radius);
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.practice-trend-card__face::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.62), transparent 42%);
    pointer-events: none;
}

.practice-trend-card__face > * {
    position: relative;
    z-index: 1;
}

.practice-trend-card__back {
    transform: rotateY(180deg);
}

.practice-trend-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.practice-trend-card__title-line {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.practice-trend-card__eyebrow {
    margin: 0 0 6px;
    color: var(--shui-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.practice-trend-card__title {
    margin: 0;
    color: var(--shui-text-strong);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.practice-trend-card__range {
    flex: 0 0 auto;
    max-width: 34%;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.practice-trend-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: -2px;
}

.practice-trend-card__metrics > div {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 78px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.practice-trend-card__metric-value {
    color: var(--shui-text-strong);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.practice-trend-card__metric-label {
    color: var(--shui-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.practice-trend-chart-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 206px;
    overflow: hidden;
    border-radius: calc(var(--practice-trend-radius) - 2px);
}

#practice-trend-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 206px;
}

.practice-trend-empty {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--shui-text-muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.practice-trend-card.is-empty .practice-trend-empty {
    display: flex;
}

.practice-trend-card.is-empty #practice-trend-canvas {
    opacity: 0.22;
}

.practice-trend-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: auto;
}

.practice-trend-option {
    position: relative;
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--shui-text-strong);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.62),
        inset 0 -1px 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition:
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 260ms ease,
        background 260ms ease,
        box-shadow 260ms ease;
}

.practice-trend-option:hover,
.practice-trend-option:focus-visible {
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.82);
    transform: translateY(-1px);
    box-shadow:
        0 16px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        inset 0 -1px 1px rgba(255, 255, 255, 0.18);
    outline: none;
}

.practice-trend-option.active,
.practice-trend-option[aria-pressed="true"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.24));
    border-color: color-mix(in srgb, var(--shui-accent) 42%, rgba(255, 255, 255, 0.78));
    box-shadow:
        0 18px 36px color-mix(in srgb, var(--shui-accent) 14%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(255, 255, 255, 0.22);
    color: var(--shui-text-strong);
}

.practice-trend-option.active::after,
.practice-trend-option[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 10px;
    height: 3px;
    border-radius: 999px;
    background: var(--shui-accent);
    opacity: 0.58;
    box-shadow: 0 0 14px color-mix(in srgb, var(--shui-accent) 38%, transparent);
}

.practice-custom-card__front {
    gap: 12px;
}

.practice-custom-card__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.practice-heatmap-month-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.practice-heatmap-month-controls[hidden] {
    display: none !important;
}

.practice-heatmap-month-label {
    min-width: 76px;
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.practice-custom-card__icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.58);
    color: var(--shui-text-muted);
    cursor: pointer;
    outline: none;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.72);
    z-index: 10;
    transition:
        transform 260ms ease,
        background 260ms ease,
        color 260ms ease,
        border-color 260ms ease;
}

.practice-custom-card__icon-btn:hover,
.practice-custom-card__icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(255, 255, 255, 0.86);
    color: var(--shui-text-strong);
    transform: translateY(-1px);
}

.practice-custom-card__flip-btn:hover,
.practice-custom-card__flip-btn:focus-visible {
    transform: translateY(-1px) rotate(18deg);
}

.practice-custom-card__icon-btn:focus-visible {
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--shui-accent) 24%, transparent),
        0 10px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.72);
}

.practice-custom-card__icon-btn:disabled,
.practice-custom-card__icon-btn[aria-disabled="true"] {
    cursor: default;
    opacity: 0.42;
    transform: none;
}

.practice-custom-widget-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.practice-custom-widget-content[hidden] {
    display: none !important;
}

.practice-heatmap {
    --practice-heatmap-cell: clamp(22px, 2.35vw, 26px);
    --practice-heatmap-gap: 6px;
    display: flex;
    flex: 1 1 auto;
    min-height: 194px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.practice-heatmap__body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    align-items: center;
}

.practice-heatmap__weekdays,
.practice-heatmap__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: var(--practice-heatmap-gap);
}

.practice-heatmap__weekdays {
    color: var(--shui-text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    opacity: 0.78;
}

.practice-heatmap__weekday {
    min-width: 0;
}

.practice-heatmap__grid {
    grid-template-rows: repeat(var(--practice-heatmap-weeks, 5), var(--practice-heatmap-cell));
    row-gap: var(--practice-heatmap-gap);
    align-content: center;
}

.practice-heatmap__cell {
    --practice-heatmap-color: rgba(255, 255, 255, 0.26);
    position: relative;
    width: 100%;
    height: var(--practice-heatmap-cell);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 7px;
    background: var(--practice-heatmap-color);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.62),
        0 6px 14px rgba(15, 23, 42, 0.04);
    outline: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.practice-heatmap__cell[data-level="0"] {
    --practice-heatmap-color: rgba(255, 255, 255, 0.24);
}

.practice-heatmap__cell[data-level="1"] {
    --practice-heatmap-color: #d8f5d3;
}

.practice-heatmap__cell[data-level="2"] {
    --practice-heatmap-color: #9be28e;
}

.practice-heatmap__cell[data-level="3"] {
    --practice-heatmap-color: #45bf63;
}

.practice-heatmap__cell[data-level="4"] {
    --practice-heatmap-color: #1f8f46;
}

.practice-heatmap__cell.is-outside-month {
    opacity: 0.28;
}

.practice-heatmap__cell:hover,
.practice-heatmap__cell:focus-visible {
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--shui-success) 22%, transparent),
        0 10px 22px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.72);
    transform: translateY(-2px) scale(1.08);
    z-index: 4;
}

.practice-heatmap__cell::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 160px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
    z-index: 30;
}

.practice-heatmap__cell:hover::after,
.practice-heatmap__cell:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.practice-heatmap__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: var(--shui-text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.practice-heatmap__legend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.practice-heatmap__legend-cell {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.48);
}

.practice-heatmap__legend-cell--0 { background: rgba(255, 255, 255, 0.24); }
.practice-heatmap__legend-cell--1 { background: #d8f5d3; }
.practice-heatmap__legend-cell--2 { background: #9be28e; }
.practice-heatmap__legend-cell--3 { background: #45bf63; }
.practice-heatmap__legend-cell--4 { background: #1f8f46; }

.practice-radar-chart-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 206px;
    overflow: hidden;
    border-radius: calc(var(--practice-trend-radius) - 2px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#practice-radar-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 206px;
}

.practice-radar-summary {
    margin: 2px 0 0;
    color: var(--shui-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.priority-progress-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2px;
}

.priority-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.priority-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--shui-text-strong);
    font-size: 0.92rem;
    font-weight: 800;
}

.priority-progress__head strong {
    color: rgba(15, 23, 42, 0.76);
    font-size: 0.88rem;
    font-weight: 800;
}

.priority-progress__track {
    position: relative;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--shui-panel-bg);
    border: 1px solid var(--shui-panel-border);
    box-shadow: var(--shui-panel-shadow);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.priority-progress__track::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 48%);
    pointer-events: none;
    z-index: 2;
}

.priority-progress__fill {
    --priority-progress-value: 0%;
    position: absolute;
    inset: 3px auto 3px 3px;
    width: var(--priority-progress-value);
    min-width: 0;
    max-width: calc(100% - 6px);
    border-radius: inherit;
    transition: width 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.priority-progress__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0.6;
}

.priority-progress--high .priority-progress__fill {
    background: linear-gradient(90deg, var(--shui-accent), var(--shui-gradient-end));
    box-shadow:
        0 0 14px color-mix(in srgb, var(--shui-accent) 25%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.priority-progress--medium .priority-progress__fill {
    background: linear-gradient(90deg, var(--shui-accent-alt), var(--shui-gradient-start));
    box-shadow:
        0 0 14px color-mix(in srgb, var(--shui-accent-alt) 25%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.priority-accuracy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.priority-accuracy__orb {
    --priority-accuracy-level: 0%;
    --accuracy-mix-color: color-mix(in srgb, var(--shui-success) var(--priority-accuracy-level), var(--shui-warning));
    --priority-accuracy-color: color-mix(in srgb, var(--accuracy-mix-color) 34%, transparent);
    position: relative;
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 999px;
    background: var(--shui-panel-bg);
    border: 1px solid var(--shui-panel-border);
    box-shadow: var(--shui-panel-shadow);
    backdrop-filter: blur(18px) saturate(158%);
    -webkit-backdrop-filter: blur(18px) saturate(158%);
    overflow: hidden;
}

.priority-accuracy__orb::before {
    content: '';
    position: absolute;
    inset: 3px auto 3px 3px;
    width: max(22px, var(--priority-accuracy-level));
    max-width: calc(100% - 6px);
    border-radius: inherit;
    background: var(--priority-accuracy-color);
    box-shadow:
        0 0 14px color-mix(in srgb, var(--priority-accuracy-color) 60%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition:
        width 780ms cubic-bezier(0.16, 1, 0.3, 1),
        background 420ms ease,
        box-shadow 420ms ease;
}

.priority-accuracy__orb::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 58%);
    pointer-events: none;
}

.priority-accuracy__orb span,
.priority-accuracy__orb small {
    position: relative;
    z-index: 2;
}

.priority-accuracy__orb span {
    color: var(--shui-text-strong);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.priority-accuracy__orb small {
    order: -1;
    color: rgba(71, 85, 105, 0.74);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.practice-custom-options {
    display: grid;
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    align-content: center;
    gap: 10px;
    min-height: 0;
    padding: 4px 0;
}

.practice-custom-option {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.18);
    color: var(--shui-text-strong);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.74),
        inset 0 -1px 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    cursor: pointer;
    text-align: left;
    transition:
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.practice-custom-option:hover,
.practice-custom-option:focus-visible,
.practice-custom-option.active {
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.82);
    transform: translateY(-1px);
    outline: none;
}

.practice-custom-option.active {
    box-shadow:
        0 14px 26px color-mix(in srgb, var(--shui-accent) 12%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        inset 0 -1px 1px rgba(255, 255, 255, 0.18);
}

.practice-custom-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--shui-text-muted);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.56);
}

.practice-custom-option.active .practice-custom-option__icon,
.practice-custom-option:hover .practice-custom-option__icon,
.practice-custom-option:focus-visible .practice-custom-option__icon {
    color: var(--shui-text-strong);
    background: color-mix(in srgb, var(--shui-accent) 15%, rgba(255, 255, 255, 0.3));
    border-color: color-mix(in srgb, var(--shui-accent) 24%, rgba(255, 255, 255, 0.58));
}

.practice-custom-option__body {
    display: flex;
    min-width: 0;
    align-items: center;
}

.practice-custom-option__body strong {
    display: block;
    overflow: hidden;
    color: var(--shui-text-strong);
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.practice-custom-option__check {
    width: 10px;
    height: 10px;
    justify-self: center;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.22);
}

.practice-custom-option.active .practice-custom-option__check {
    background: var(--shui-accent);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--shui-accent) 14%, transparent),
        0 0 14px color-mix(in srgb, var(--shui-accent) 44%, transparent);
}

.practice-custom-option.active::after {
    content: '';
    position: absolute;
    inset: 8px auto 8px 6px;
    width: 3px;
    border-radius: 999px;
    background: var(--shui-accent);
    opacity: 0.72;
}

.practice-trend-reserved-card {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
    opacity: 0.62;
}

.practice-trend-reserved-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1px dashed rgba(255, 255, 255, 0.46);
    border-radius: calc(var(--shui-radius-lg) - 1px);
    pointer-events: none;
}

.hero-panel {
    background: var(--shui-panel-bg);
    border-radius: var(--shui-radius-xl);
    border: 1px solid var(--shui-panel-border);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shui-panel-shadow);
    backdrop-filter: blur(var(--shui-blur));
}

.hero-panel__header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hero-panel__title {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--shui-text-strong);
    margin: 0;
}

.hero-panel__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.shui-filter-group {
    justify-content: flex-start;
    gap: 8px;
}

.btn,
.hero-btn,
.hero-panel .btn,
.shui-filter-btn,
.exam-item-action-btn {
    color: #0f172a !important;
}

.shui-filter-btn {
    border-radius: 999px;
    padding: 8px 20px;
}

.hero-panel__muted {
    color: var(--shui-text-muted);
    margin-top: 6px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--shui-accent);
}

.hero-section {
    margin-bottom: 32px;
}

.hero-btn,
.hero-panel .btn:not(.hero-btn),
.shui-filter-btn {
    border-radius: var(--shui-radius-sm);
    border: none;
    background-image: linear-gradient(135deg, var(--shui-gradient-start), var(--shui-gradient-end));
    color: var(--color-white);
    padding: 10px 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-image var(--transition-normal);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover,
.hero-panel .btn:not(.hero-btn):hover,
.shui-filter-btn:hover,
.hero-btn:focus-visible,
.hero-panel .btn:not(.hero-btn):focus-visible,
.shui-filter-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
}

.hero-btn--ghost,
.hero-panel .btn.btn-secondary,
.shui-filter-btn[data-tone="ghost"] {
    background-image: none;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--shui-text-strong);
    box-shadow: none;
}

.hero-btn--warn,
.hero-panel .btn.btn-warning {
    background-image: linear-gradient(135deg, rgba(255, 216, 155, 0.85), rgba(255, 216, 155, 1));
    color: #3b1f00;
}

/* Premium Apple Liquid Glass Button */
.shui-glass-btn {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 999px !important;
    color: var(--shui-text-strong) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        inset 0 -1px 1px rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-image: none !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.shui-glass-btn:hover,
.shui-glass-btn:focus-visible {
    background: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
}

.shui-glass-btn:active {
    transform: translateY(1px) scale(0.98) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.shui-glass-btn.active,
.shui-glass-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.55) !important;
    color: #0f172a !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
}

#overview-view .shui-glass-btn[data-action="start-endless-mode"] .ui-emoji-icon {
    color: #7c3aed;
}
#overview-view .shui-glass-btn[data-action="start-suite-mode"] .ui-emoji-icon {
    color: #646b20;
}

/* Segmented Control (Apple style toggle) */
.shui-segmented-control {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    gap: 2px;
    position: relative;
    isolation: isolate;
}

.shui-segmented-indicator {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), width 0.4s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.2s ease;
    z-index: 0;
    pointer-events: none;
}

.shui-segmented-btn {
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--shui-text-muted);
    font-weight: 600;
    padding: 6px 16px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.shui-segmented-btn:hover {
    color: var(--shui-text-strong);
}

.shui-segmented-btn.active,
.shui-segmented-btn[aria-pressed="true"] {
    color: var(--shui-text-strong);
}

.hero-panel .btn.btn-info {
    background-image: linear-gradient(135deg, rgba(106, 204, 199, 0.85), rgba(106, 204, 199, 1));
}

.hero-panel .btn.btn-secondary {
    color: var(--shui-text-strong);
}

.hero-settings-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Specific Button Colors & Exquisite Overrides */

/* Apple Liquid Glassmorphism for Exam Item Action Buttons */
#browse-view .exam-item-action-btn {
    background: rgba(255, 255, 255, 0.35) !important;
    background-image: none !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--shui-radius-sm) !important;
    /* 圆角矩形，与卡片、筛选按钮统一 */
    color: #1d1d1f !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform: translateY(0) scale(1) !important;
}

#browse-view .exam-item-action-btn:hover,
#browse-view .exam-item-action-btn:focus-visible {
    background: rgba(255, 255, 255, 0.58) !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px) scale(1.01) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

/* Give the "Start" action a warm brand-tinted liquid glass */
#browse-view .exam-item-action-btn[data-action="start"] {
    background: rgba(255, 255, 255, 0.38) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.58) !important;
    color: #1d1d1f !important;
}

#browse-view .exam-item-action-btn[data-action="start"]:hover {
    background: rgba(255, 255, 255, 0.62) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

#browse-view .exam-item {
    background: rgba(255, 255, 255, 0.86);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px) saturate(118%);
    -webkit-backdrop-filter: blur(18px) saturate(118%);
}

#browse-view .exam-item:hover {
    background: rgba(255, 255, 255, 0.94);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.76);
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.92),
        inset 0 -1px 1px rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

#browse-view .search-box {
    margin-bottom: 24px;
}

#browse-view .search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#browse-view .search-input-wrap {
    flex: 1 1 480px;
    min-width: 280px;
}

#browse-view .search-input,
#browse-view .browse-sort-select,
#browse-view .browse-frequency-filter {
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.28);
    background-image: none;
    color: #1d1d1f;
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        inset 0 -1px 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    transition:
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        transform 260ms ease;
}

#browse-view .search-input {
    padding: 0 48px 0 26px;
    font-size: 0.96rem;
    font-weight: 650;
}

#browse-view .search-input:hover,
#browse-view .browse-sort-select:hover,
#browse-view .browse-frequency-filter:hover {
    background: rgba(255, 255, 255, 0.36);
    border-color: rgba(255, 255, 255, 0.76);
}

#browse-view .search-input:focus,
#browse-view .browse-sort-select:focus {
    background: rgba(255, 255, 255, 0.44);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.08),
        0 0 0 3px color-mix(in srgb, var(--shui-accent) 16%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.92),
        inset 0 -1px 1px rgba(255, 255, 255, 0.18);
}

#browse-view .search-input::placeholder {
    color: rgba(51, 65, 85, 0.48);
    font-weight: 650;
}

#browse-view .search-clear-btn {
    right: 14px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.42);
    color: rgba(51, 65, 85, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.64);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        0 8px 16px rgba(15, 23, 42, 0.06);
}

#browse-view .search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.66);
    color: rgba(15, 23, 42, 0.84);
    transform: translateY(-50%) scale(1.04);
}

#browse-view .browse-frequency-filter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
}

#browse-view .browse-frequency-chip {
    min-width: 52px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(51, 65, 85, 0.68);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 240ms ease,
        box-shadow 240ms ease,
        color 240ms ease,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

#browse-view .browse-frequency-chip:hover,
#browse-view .browse-frequency-chip:focus-visible {
    background: rgba(255, 255, 255, 0.36);
    color: rgba(15, 23, 42, 0.82);
    outline: none;
}

#browse-view .browse-frequency-chip.active,
#browse-view .browse-frequency-chip[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.62);
    color: #0f172a;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.07),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(255, 255, 255, 0.18);
}

#browse-view .browse-sort-wrapper {
    flex: 0 0 auto;
}

#browse-view .browse-sort-select {
    min-width: 152px;
    height: 52px;
    padding: 0 42px 0 20px;
    font-size: 0.9rem;
    font-weight: 800;
}

#browse-view .browse-sort-select option {
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.96);
    font-weight: 700;
}

#browse-view .browse-sort-icon {
    right: 17px;
    color: rgba(51, 65, 85, 0.62);
}

.data-management-panel .data-mgmt-btn {
    background: rgba(255, 255, 255, 0.24);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.52);
}

.data-management-panel .data-mgmt-btn:hover,
.data-management-panel .data-mgmt-btn:focus-visible {
    background: rgba(255, 255, 255, 0.42);
    background-image: none;
    box-shadow:
        0 16px 30px rgba(15, 23, 42, 0.09),
        inset 0 1px 1px rgba(255, 255, 255, 0.88);
}

.category-card .btn[data-action="browse-category"],
.category-card .btn[data-action="start-random-practice"] {
    background-image: none;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #0f172a !important;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.category-card .btn[data-action="browse-category"]:hover,
.category-card .btn[data-action="browse-category"]:focus-visible,
.category-card .btn[data-action="start-random-practice"]:hover,
.category-card .btn[data-action="start-random-practice"]:focus-visible {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.shui-filter-btn[data-tone="ghost"] {
    padding: 8px 18px;
}

.category-grid .category-card,
.category-grid .category-card::before {
    background: rgba(255, 255, 255, 0.3);
}

.category-grid .category-card {
    border-radius: var(--shui-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.category-grid .category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 216, 155, 0.08), rgba(106, 204, 199, 0.08));
    pointer-events: none;
    mix-blend-mode: screen;
}

.category-grid .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px rgba(15, 23, 42, 0.25);
}


.hero-surface {
    background: var(--shui-surface-bg);
    border-radius: var(--shui-radius-lg);
    border: 1px solid var(--shui-surface-border);
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#more-view .more-tools-grid {
    display: grid;
    gap: 18px;
}

#more-view .tool-card {
    border-radius: var(--shui-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
    color: var(--shui-text-strong);
}

#more-view .tool-card:hover,
#more-view .tool-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.38);
}

#boot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 40, 0.6);
    backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 320ms ease, visibility 320ms ease;
}

#boot-overlay[data-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-panel {
    width: min(420px, 90vw);
    padding: 36px;
    border-radius: var(--shui-radius-xl);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-align: center;
    color: var(--color-white);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.boot-logo {
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.boot-status {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.boot-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    margin-bottom: 12px;
}

.boot-progress__bar {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--shui-accent), var(--shui-accent-alt));
    transition: width 280ms ease;
}

.boot-progress__text {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .hero-nav {
        flex-direction: column;
    }

    .practice-insights-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 0;
    }

    .practice-trend-card,
    .practice-custom-card,
    .practice-trend-reserved-card {
        grid-column: 1;
    }

    .practice-trend-card,
    .practice-custom-card,
    .practice-trend-card__rotor {
        min-height: 360px;
    }

    .practice-custom-card__rotor {
        min-height: 360px;
    }

    .practice-trend-reserved-card {
        min-height: 120px;
    }

    .practice-trend-options {
        grid-template-columns: 1fr;
    }

    #browse-view .search-row {
        align-items: stretch;
        flex-direction: column;
    }

    #browse-view .search-input-wrap,
    #browse-view .browse-sort-wrapper,
    #browse-view .browse-sort-select,
    #browse-view .browse-frequency-filter {
        width: 100%;
    }

    #browse-view .search-input-wrap {
        min-width: 0;
    }

    #browse-view .browse-frequency-filter {
        justify-content: space-between;
    }

    #browse-view .browse-frequency-chip {
        flex: 1 1 0;
    }

    .hero-panel__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-panel__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-settings-actions {
        flex-direction: column;
    }
}

/* End of heroui-bridge.css */

/* =========================================
   Liquid Glass Settings View Styles
   ========================================= */

/* #settings-view container will use standard .hero-panel styles */
#settings-view {
    margin-top: 20px;
}


#settings-view .hero-settings-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Liquid Glass Card Style */
#settings-view .hero-panel {
    background: var(--shui-panel-bg);
    backdrop-filter: blur(var(--shui-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--shui-blur)) saturate(150%);
    border: 1px solid var(--shui-panel-border);
    border-radius: var(--shui-radius-lg);
    box-shadow: var(--shui-panel-shadow);
    padding: 32px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

#settings-view .hero-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Liquid Glass Inner Glow/Highlight */
#settings-view .hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#settings-view h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bauhaus-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

#settings-view .hero-panel__muted {
    font-size: 0.9rem;
    color: var(--bauhaus-text-muted);
    margin-bottom: 24px;
}

/* Button Styles - Liquid Glass Controls */
#settings-view .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.24);
    background-image: none;
    color: var(--shui-text-strong) !important;
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    transition:
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        color 260ms ease;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.76),
        inset 0 -1px 1px rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#settings-view .btn::after {
    content: none;
}

#settings-view .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

#settings-view .btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#settings-view #clear-cache-btn {
    color: var(--bauhaus-accent-red) !important;
    border-color: rgba(220, 38, 38, 0.22);
}

#settings-view #clear-cache-btn:hover {
    background: var(--bauhaus-accent-red);
    color: white !important;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.3);
    border-color: transparent;
}

#settings-view #load-library-btn,
#settings-view #library-config-btn,
#settings-view #force-refresh-btn,
#settings-view #theme-switcher-btn-entry,
#settings-view #show-onboarding-btn {
    color: var(--bauhaus-text-main) !important;
    border-color: rgba(255, 255, 255, 0.52);
}

#settings-view #load-library-btn:hover,
#settings-view #library-config-btn:hover,
#settings-view #force-refresh-btn:hover,
#settings-view #theme-switcher-btn-entry:hover,
#settings-view #show-onboarding-btn:hover {
    background: var(--bauhaus-accent-blue);
    color: white !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
    border-color: transparent;
}

#settings-view .data-mgmt-btn {
    background: rgba(255, 255, 255, 0.24);
    background-image: none;
    color: var(--bauhaus-accent-dark) !important;
    border-color: rgba(255, 255, 255, 0.52);
}

#settings-view .data-mgmt-btn:hover {
    background: var(--bauhaus-accent-dark);
    color: white !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
    border-color: transparent;
}

#settings-view .hero-settings-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

#settings-view .hero-settings-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
    display: flex;
    align-items: center;
}

#settings-view .hero-surface {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    #settings-view .hero-settings-group {
        grid-template-columns: 1fr;
    }
}

/* Redbook CTA button custom theme overrides */
.hero-badge--redbook {
    background: #ff1c1c !important;
    box-shadow: 0 12px 30px rgba(255, 77, 79, 0.35) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-badge--redbook:hover {
    box-shadow: 0 18px 36px rgba(255, 77, 79, 0.45) !important;
}

/* GitHub repo header icon inline style override */
.hero-brand-title .inline-hover-link {
    color: inherit;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

/* History empty placeholder styling */
.history-empty-placeholder {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
}
.history-empty-placeholder__icon {
    font-size: 3em;
    margin-bottom: 15px;
}
.history-empty-placeholder__note {
    font-size: 0.9em;
    margin-top: 10px;
}

/* System info panel styling */
.settings-system-info {
    margin-top: 15px;
    line-height: 1.8;
    font-weight: bold;
}
.settings-system-info__status {
    color: var(--shui-success);
}

/* Settings footer links */
.settings-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.settings-footer__feedback {
    color: #ff1c1c;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}
.settings-footer__author {
    color: var(--shui-text-muted);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

/* License modal feedback link */
#license-modal .lm-body a.lm-warning {
    text-decoration: underline;
}

/* Hidden file input */
#folder-picker {
    display: none;
}
