/* ═══════════════════════════════════════════════════════════
   Learning Dashboard
   ═══════════════════════════════════════════════════════════ */

html:has(.ld-page),
html:has(.ld-page) body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg);
}

html:has(.ld-page)::-webkit-scrollbar,
html:has(.ld-page) body::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    html:has(.ld-page),
    html:has(.ld-page) body {
        overflow: hidden;
        height: 100%;
        min-height: 100%;
    }
}

.ld-page,
.ld-sheet,
.ld-day-modal,
.ld-pwd-modal {
    --ld-accent: var(--site-theme-color);
    --ld-accent-hover: var(--site-theme-color-hover);
    --ld-accent-muted: var(--accent-soft);
    --ld-accent-soft: var(--accent-soft);

    --ld-cta: var(--fg);
    --ld-cta-hover: var(--site-theme-color);

    --ld-bg: var(--bg);
    --ld-bg-warm: var(--surface);
    --ld-panel: var(--bg);
    --ld-panel-hover: var(--surface);
    --ld-surface: var(--bg);
    --ld-surface-raised: var(--surface);
    --ld-item-bg: var(--surface);
    --ld-push-bg: var(--site-theme-color);
    --ld-push-fg: var(--on-accent);
    --ld-push-fg-muted: var(--on-accent);
    --ld-push-fg-subtle: var(--on-accent);
    --ld-push-divider: rgba(255, 255, 255, 0.16);
    --ld-push-tag-new-bg: rgba(255, 255, 255, 0.2);
    --ld-push-tag-review-bg: rgba(255, 255, 255, 0.12);

    --ld-ink: var(--fg);
    --ld-ink-secondary: var(--muted);
    --ld-ink-tertiary: var(--muted-2);

    --ld-border: var(--border);
    --ld-card-border: var(--border);
    --ld-review: var(--muted);
    --ld-review-muted: var(--surface);

    --ld-radius-xl: 0.875rem;
    --ld-radius-lg: 0.625rem;
    --ld-radius-md: 0.4375rem;
    --ld-radius-sm: 0.3125rem;

    --ld-shadow-side: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.07);
    --ld-shadow-push: 0 8px 32px rgba(var(--site-theme-color-rgb), 0.28);
    --ld-shadow-panel: var(--ld-shadow-side);
    --ld-shadow-hero: var(--ld-shadow-push);
    --ld-font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --ld-font-serif: "New York", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;

    --ld-page-bg: var(--ld-bg);
    --ld-card-bg: var(--ld-panel);
    --ld-card-radius: var(--ld-radius-xl);
    --ld-text: var(--ld-ink);
    --ld-text-sub: var(--ld-ink-secondary);
    --ld-text-caption: var(--ld-ink-tertiary);
    --ld-accent-glow: rgba(0, 113, 227, 0.25);
    --ld-surface-muted: var(--ld-surface-raised);
    --ld-shadow-card: var(--ld-shadow-panel);
}

.dark .ld-page,
.dark .ld-sheet,
.dark .ld-day-modal,
.dark .ld-pwd-modal {
    --ld-bg: var(--bg);
    --ld-bg-warm: var(--surface);
    --ld-panel: var(--surface);
    --ld-panel-hover: var(--surface-2);
    --ld-surface: var(--surface);
    --ld-surface-raised: var(--surface-2);
    --ld-item-bg: var(--surface-2);
    --ld-push-bg: var(--site-theme-color);
    --ld-shadow-push: 0 8px 36px rgba(var(--site-theme-color-rgb), 0.32);
    --ld-accent-soft: var(--accent-soft);
    --ld-accent-muted: var(--accent-soft);
    --ld-cta: var(--fg);
    --ld-cta-hover: var(--site-theme-color);
    --ld-border: var(--border);
    --ld-card-border: var(--border);
    --ld-review: var(--muted);
    --ld-review-muted: var(--surface);

    --ld-shadow-side: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
    --ld-shadow-panel: var(--ld-shadow-side);
    --ld-shadow-hero: var(--ld-shadow-push);
}

.ld-page {
    position: relative;
    isolation: isolate;
    padding: 0.875rem 0 1.25rem;
    background: var(--ld-bg);
    font-family: var(--ld-font-sans);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1;
}

.ld-page-glow {
    display: none;
}

.dark .ld-page {
    background: var(--ld-bg);
}

.dark .ld-page-glow {
    display: none;
}

.ld-page-glow::before,
.ld-page-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.5;
}

.ld-page-glow::before {
    top: -10%;
    right: -8%;
    width: min(40vw, 20rem);
    height: min(40vw, 20rem);
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, transparent 72%);
}

.ld-page-glow::after {
    bottom: -14%;
    left: -10%;
    width: min(34vw, 16rem);
    height: min(34vw, 16rem);
    background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 72%);
}

.dark .ld-page-glow::before { opacity: 0.32; }
.dark .ld-page-glow::after { opacity: 0.2; }

.ld-page-inner {
    position: relative;
    z-index: 1;
}

.ld-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.ld-bento-card {
    grid-column: span 12;
    border-radius: var(--ld-radius-xl);
    overflow: hidden;
    background: var(--ld-surface);
    border: none;
    box-shadow: none;
}

.ld-bento-card:not(.ld-bento-card--push),
.ld-bento-card--push {
    background: var(--ld-panel);
    border: 1px solid var(--ld-card-border);
    box-shadow: var(--ld-shadow-side);
    color: var(--ld-ink);
}

.ld-bento-card--push {
    overflow: hidden;
    position: relative;
}

/* Tablet / iPad：左目标/笔记，右推送通高，底学习数据 */
@media (min-width: 768px) and (max-width: 1199px) {
    .ld-bento-card--goal {
        grid-column: 1 / span 6;
        grid-row: 1;
    }
    .ld-bento-card--push {
        grid-column: 7 / span 6;
        grid-row: 1 / span 2;
    }
    .ld-bento-card--notes {
        grid-column: 1 / span 6;
        grid-row: 2;
    }
    .ld-bento-card--history {
        display: none;
    }
    .ld-bento-card--data {
        grid-column: 1 / span 12;
        grid-row: 3;
    }

    .ld-page {
        --ld-page-top-gap: 0.75rem;
        --ld-page-bottom-gap: 0.75rem;
        --ld-bento-row-min: 0;
        box-sizing: border-box;
        padding: var(--ld-page-top-gap) 0 var(--ld-page-bottom-gap);
        height: calc(100vh - var(--topnav-height));
        height: calc(100dvh - var(--topnav-height));
        max-height: calc(100vh - var(--topnav-height));
        max-height: calc(100dvh - var(--topnav-height));
        min-height: 0;
        overflow: hidden;
    }

    .ld-page.min-h-screen {
        min-height: 0;
        height: calc(100vh - var(--topnav-height));
        height: calc(100dvh - var(--topnav-height));
    }

    .ld-page-inner {
        height: 100%;
        min-height: 0;
    }

    .ld-bento-grid {
        height: 100%;
        min-height: 0;
        gap: 0.75rem;
        grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.9fr);
    }

    .ld-bento-card--goal,
    .ld-bento-card--push,
    .ld-bento-card--data,
    .ld-bento-card--notes,
    .ld-bento-card--history {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--notes .ld-bento-body,
    .ld-bento-card--history .ld-bento-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .ld-bento-card--notes .ld-notes-list,
    .ld-bento-card--history .ld-history-table {
        flex: 1;
        min-height: 0;
        overflow: auto;
    }

    .ld-bento-card--push,
    .ld-bento-card--data {
        min-height: 0;
    }

    .ld-bento-card--push.is-schedule-view {
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    .ld-bento-card--push.is-schedule-view .ld-push-schedule {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--push.is-schedule-view .ld-ebb-scroll {
        flex: 1 1 0;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ld-bento-card--data {
        overflow: hidden;
        min-height: 0;
    }

    .ld-bento-card--data .ld-data-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--data .ld-radar-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .ld-bento-card--data .ld-radar-chart {
        max-width: 12rem;
        width: 32%;
        flex: 0 0 auto;
        align-self: center;
    }

    .ld-bento-card--data .ld-radar-svg {
        max-width: 11rem;
        margin: 0;
    }

    .ld-bento-card--data .ld-radar-side {
        flex: 1 1 auto;
        min-width: 0;
        margin-top: 0;
        position: relative;
        z-index: 2;
    }

    .ld-bento-body { padding: 1rem 1.125rem 1.125rem; }

    .ld-bento-card--goal .ld-bento-body { padding: 1.125rem 1rem 1.25rem; }

    .ld-bento-card--goal .lib-goal-arc-wrap {
        max-width: 8.75rem;
        margin: 0.375rem auto 0.5rem;
    }

    .ld-bento-card--goal .lib-goal-settings-panel {
        margin-top: 0.5rem;
        padding: 0.5rem 0.625rem;
    }

    .ld-bento-card--goal .ld-goal-detail-meta {
        margin-top: 0.25rem;
        font-size: 0.6875rem;
    }

    .ld-prefs-stack { margin-top: 0.25rem; }
}

/* Desktop：目标/笔记 | 推送通高 | 学习数据 */
@media (min-width: 1200px) {
    .ld-bento-card--goal {
        grid-column: 1 / span 3;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .ld-bento-card--notes {
        grid-column: 1 / span 3;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }
    .ld-bento-card--push {
        grid-column: 4 / span 5;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .ld-bento-card--history {
        display: none;
    }
    .ld-bento-card--data {
        grid-column: 9 / span 4;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .ld-page {
        --ld-page-top-gap: 0.5rem;
        --ld-page-bottom-gap: 0.5rem;
        --ld-bento-row-min: 0;
        box-sizing: border-box;
        padding: var(--ld-page-top-gap) 0 var(--ld-page-bottom-gap);
        height: calc(100vh - var(--topnav-height));
        height: calc(100dvh - var(--topnav-height));
        max-height: calc(100vh - var(--topnav-height));
        max-height: calc(100dvh - var(--topnav-height));
        min-height: 0;
        overflow: hidden;
    }

    .ld-page.min-h-screen {
        min-height: 0;
        height: calc(100vh - var(--topnav-height));
        height: calc(100dvh - var(--topnav-height));
    }

    .ld-page-inner {
        height: 100%;
        min-height: 0;
    }

    .ld-bento-grid {
        height: 100%;
        min-height: 0;
        gap: 0.625rem;
        grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.85fr);
    }

    .ld-bento-card--notes .ld-bento-body,
    .ld-bento-card--history .ld-bento-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        padding: 0.75rem 0.875rem 0.875rem;
    }

    .ld-bento-card--notes .ld-notes-list,
    .ld-bento-card--history .ld-history-table {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow: auto;
    }

    .ld-bento-card--notes .ld-bento-row,
    .ld-bento-card--history .ld-bento-row {
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }

    .ld-bento-card--history .ld-history-table {
        --ld-history-cols: minmax(0, 1fr) 3rem 3.5rem 5rem;
    }

    .ld-bento-card--push {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--goal {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--data .ld-data-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--data .ld-radar-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.375rem;
    }

    .ld-bento-card--data .ld-radar-chart {
        max-width: none;
        width: 100%;
        flex: 0 0 auto;
        overflow: visible;
    }

    .ld-bento-card--data .ld-radar-svg {
        max-width: 16.5rem;
        width: 100%;
        margin: 0 auto;
        overflow: visible;
    }

    .ld-bento-card--data .ld-radar-side {
        flex: 1 1 auto;
        overflow: auto;
        margin-top: 0;
        position: relative;
        z-index: 2;
    }

    .ld-bento-body { padding: 0.875rem 1rem 1rem; }

    .ld-bento-card--goal .ld-bento-body {
        padding: 0.625rem 0.75rem 0.75rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .ld-bento-card--goal .ld-goal-head-row {
        margin-bottom: 0.125rem;
        flex-shrink: 0;
    }

    .ld-bento-card--goal .ld-goal-calendar-btn {
        width: 1.625rem;
        height: 1.625rem;
    }

    .ld-bento-card--goal .ld-goal-month-scroll-mount {
        margin-top: 0.125rem;
        margin-bottom: 0.375rem;
        flex-shrink: 0;
    }

    .ld-bento-card--goal .ld-month-scroll-week-viewport {
        padding: 0.1875rem 0.0625rem;
        margin: -0.0625rem -0.0625rem 0;
    }

    .ld-bento-card--goal .ld-month-scroll-day {
        height: 1.375rem;
    }

    .ld-bento-card--goal .ld-month-scroll-day .ld-week-day-ring {
        width: 1.25rem;
        max-width: 1.25rem;
        height: 1.25rem;
        flex-basis: 1.25rem;
    }

    .ld-bento-card--goal .ld-goal-ring-block {
        margin: 0.25rem 0 0;
        padding-top: 0.25rem;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ld-bento-card--goal .lib-goal-arc-wrap {
        max-width: 6.75rem;
        width: 100%;
        margin: 0 auto;
    }

    .ld-bento-card--goal .lib-goal-ring-done {
        font-size: 1.75rem;
    }

    .ld-bento-card--goal .lib-goal-ring-sep,
    .ld-bento-card--goal .lib-goal-ring-target {
        font-size: 1.125rem;
    }

    .ld-bento-card--goal .ld-goal-detail-meta {
        margin-top: 0.125rem;
        margin-bottom: 0;
        font-size: 0.625rem;
        flex-shrink: 0;
    }

    .ld-bento-card--goal .ld-goal-library-row {
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

    .ld-bento-card--goal .ld-bento-headline {
        font-size: 1.1875rem;
        font-weight: 700;
    }

    .ld-bento-card--goal .lib-goal-settings-panel {
        margin-top: 0.25rem;
        padding: 0.375rem 0.5rem;
        flex-shrink: 0;
    }

    .ld-bento-card--goal .lib-goal-settings-label,
    .ld-bento-card--goal .lib-goal-settings-value {
        font-size: 0.625rem;
    }

    .ld-prefs-stack { margin-top: 0.25rem; }
}

.ld-bento-card--accent {
    background: var(--ld-accent);
    border: none;
    color: #fff;
}

.ld-bento-body {
    padding: 1rem 1.125rem 1.125rem;
}

.ld-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    margin: 0;
    color: var(--ld-ink);
}

.ld-section-title i {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    color: var(--ld-accent);
}

.ld-bento-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--ld-ink);
}

.ld-bento-card--goal .ld-section-title,
.ld-bento-card--notes .ld-section-title,
.ld-bento-card--push .ld-section-title,
.ld-bento-card--data .ld-section-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ld-page .lib-goal-label {
    color: var(--ld-ink-secondary);
}

.ld-bento-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.ld-bento-row--compact {
    gap: 0.375rem;
    flex-shrink: 0;
}

.ld-bento-card--push {
    display: flex;
    flex-direction: column;
    min-height: 7rem;
}

.ld-push-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ld-push-head {
    flex-shrink: 0;
    padding: 0.75rem 1rem 0.625rem;
}

.ld-push-head-row {
    margin-bottom: 0.375rem;
}

.ld-push-head .ld-push-meta {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ld-ink-secondary);
}

.ld-push-head .ld-push-hint {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ld-ink-tertiary);
}

.ld-push-hint-icon {
    display: inline-block;
    width: 0.875em;
    height: 0.875em;
    vertical-align: -0.1em;
    color: var(--ld-ink-secondary);
}

.ld-push-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem 0.625rem;
    background: transparent;
    overflow: hidden;
}

.ld-push-list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.25rem 0.625rem;
    align-content: stretch;
    overflow-y: auto;
    scrollbar-width: none;
}

.ld-push-list[hidden] {
    display: none !important;
}

.ld-push-list::-webkit-scrollbar {
    display: none;
}

.ld-push-meta {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ld-ink-secondary);
}

.ld-push-hint {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ld-ink-tertiary);
}

.ld-push-word {
    display: grid;
    grid-template-columns: 1.375rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.375rem 0.5rem;
    min-width: 0;
    padding: 0.125rem 0.2rem;
    background: transparent;
    line-height: 1.35;
    border-radius: 0.5rem;
    transition: background 0.15s ease, opacity 0.28s ease, transform 0.28s ease;
}

.ld-push-word:hover {
    background: rgba(15, 23, 42, 0.035);
}

.dark .ld-push-word:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ld-push-word.is-mastering {
    pointer-events: none;
    opacity: 0.78;
}

.ld-push-word.is-mastered {
    opacity: 0.72;
}

.ld-push-word.is-mastered .ld-push-word-text {
    text-decoration: line-through;
    color: var(--ld-ink-tertiary);
}

.ld-push-word.is-mastered .ld-push-tag {
    opacity: 0.65;
}

.ld-push-master {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 9999px;
    background: var(--ld-surface, #fff);
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ld-push-master .vk-icon {
    font-size: 0.8125rem;
    line-height: 1;
    pointer-events: none;
}

.ld-push-master:hover {
    color: #fff;
    background: #059669;
    border-color: #059669;
}

.ld-push-master--undo {
    color: #64748b;
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.03);
}

.ld-push-master--undo:hover {
    color: #fff;
    background: #0071e3;
    border-color: #0071e3;
}

.ld-push-master:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.ld-push-word.is-mastering .ld-push-master:not(.ld-push-master--undo),
.ld-push-word.is-mastered .ld-push-master:not(.ld-push-master--undo) {
    color: #fff;
    background: #059669;
    border-color: #059669;
}

.dark .ld-push-master {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #94a3b8;
}

.dark .ld-push-master:hover:not(.ld-push-master--undo),
.dark .ld-push-word.is-mastering .ld-push-master:not(.ld-push-master--undo),
.dark .ld-push-word.is-mastered .ld-push-master:not(.ld-push-master--undo) {
    color: #fff;
    background: #059669;
    border-color: #059669;
}

.dark .ld-push-master--undo {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: #94a3b8;
}

.dark .ld-push-master--undo:hover {
    color: #fff;
    background: #0071e3;
    border-color: #0071e3;
}

.ld-push-num {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ld-ink-tertiary);
    text-align: center;
}

.ld-push-word-text {
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ld-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ld-push-tag {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.1875rem 0.4375rem;
    border-radius: 9999px;
}

.ld-push-tag--new {
    color: var(--ld-accent);
    background: var(--ld-accent-muted);
}

.ld-push-tag--review {
    color: var(--ld-review);
    background: var(--ld-review-muted);
}

.ld-push-list .ld-empty-item,
.ld-push-list .ld-push-loading {
    grid-column: 1 / -1;
}

.ld-push-body .ld-empty-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ld-ink-tertiary);
    background: transparent;
}

.ld-push-body .ld-empty-action {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--ld-accent);
    cursor: pointer;
    text-decoration: none;
}

.ld-push-body .ld-empty-action--quiet {
    font-weight: 400;
    color: var(--ld-ink-tertiary);
}

.ld-push-body .ld-empty-action:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ld-push-body .ld-empty-action--quiet:hover {
    color: var(--ld-ink-secondary);
    text-decoration: none;
}

.ld-push-list.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
}

.ld-push-list.is-loading .ld-push-loading {
    grid-column: auto;
}

.ld-push-body .ld-push-loading {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 1rem;
    color: var(--ld-ink-secondary);
    font-size: 0.8125rem;
}

.ld-push-body .ld-push-loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--ld-accent-muted);
    border-top-color: var(--ld-accent);
    border-radius: 50%;
    animation: ld-spin 0.75s linear infinite;
}

@keyframes ld-spin {
    to { transform: rotate(360deg); }
}

.ld-push-start-actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.ld-push-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.45rem 0 0.15rem;
    padding: 0.2rem 0.1rem;
    list-style: none;
    pointer-events: none;
}

.ld-push-section:first-child {
    margin-top: 0;
}

.ld-push-section-label {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ld-ink-secondary);
}

.ld-push-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.dark .ld-push-section::after {
    background: rgba(255, 255, 255, 0.12);
}

.ld-push-section--unparsed .ld-push-section-label {
    color: #64748b;
}

.dark .ld-push-section--unparsed .ld-push-section-label {
    color: #94a3b8;
}

.ld-push-block {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0.65rem 0 0.2rem;
    padding: 0;
}

.ld-push-block:first-child {
    margin-top: 0;
}

.ld-push-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.15rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.dark .ld-push-block-head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ld-push-block--review .ld-push-block-title {
    color: #0f766e;
}

.ld-push-block--learn .ld-push-block-title {
    color: #1d4ed8;
}

.dark .ld-push-block--review .ld-push-block-title {
    color: #5eead4;
}

.dark .ld-push-block--learn .ld-push-block-title {
    color: #93c5fd;
}

.ld-push-block-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ld-push-block-meta {
    font-size: 0.75rem;
    color: var(--ld-ink-secondary);
    white-space: nowrap;
}

.ld-push-root {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ld-push-root-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    grid-template-areas: 'chevron name count' 'chevron gloss count';
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.1rem;
    padding: 0.55rem 0.35rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 0.5rem;
}

.ld-push-root-toggle:hover {
    background: rgba(15, 23, 42, 0.04);
}

.dark .ld-push-root-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ld-push-root-chevron {
    grid-area: chevron;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.55;
    transition: transform 0.15s ease;
    justify-self: center;
}

.ld-push-root.is-open .ld-push-root-chevron {
    transform: rotate(45deg);
    margin-top: -0.15rem;
}

.ld-push-root-name {
    grid-area: name;
    font-size: 0.9375rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-push-root-gloss {
    grid-area: gloss;
    font-size: 0.75rem;
    color: var(--ld-ink-secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-push-root-count {
    grid-area: count;
    font-size: 0.75rem;
    color: var(--ld-ink-secondary);
    white-space: nowrap;
}

.ld-push-word--nested {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 1.6rem;
}

.ld-push-done-mark {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ld-ink-tertiary);
    opacity: 0.85;
}

.ld-push-root,
.ld-push-block {
    grid-column: 1 / -1;
}

/* 今日推送内嵌艾宾浩斯矩阵 */
.ld-push-schedule {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ld-push-schedule[hidden] {
    display: none !important;
}

.ld-push-start-actions[hidden] {
    display: none !important;
}

.ld-bento-card--push.is-schedule-view .ld-push-list,
.ld-bento-card--push.is-schedule-view .ld-push-hint,
.ld-bento-card--push.is-schedule-view .ld-push-meta,
.ld-bento-card--push.is-schedule-view .ld-root-tree-host {
    display: none !important;
}

.ld-bento-card--push.is-schedule-view .ld-push-start-actions {
    display: flex;
    flex-shrink: 0;
    margin-top: 0.65rem;
}

/* 计划表：任何窗口尺寸都按视口封顶，多出的天数在表内滚 */
.ld-bento-card--push.is-schedule-view {
    --ld-ebb-scroll-max: calc(100dvh - var(--topnav-height, 48px) - 13rem);
    max-height: calc(100dvh - var(--topnav-height, 48px) - 1.25rem);
    overflow: hidden;
}

.ld-bento-card--push.is-schedule-view .ld-push-schedule {
    display: flex !important;
    flex: 1;
    min-height: 0;
    background: transparent;
    border-radius: 0.75rem;
    padding: 0.4rem 0.2rem 0.4rem 0.55rem;
    overflow: hidden;
}

.dark .ld-bento-card--push.is-schedule-view .ld-push-schedule {
    background: transparent;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-inline-summary {
    padding-right: 0.45rem;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-scroll {
    flex: 1 1 0;
    min-height: 0;
    max-height: var(--ld-ebb-scroll-max, calc(100dvh - var(--topnav-height, 48px) - 13rem));
    margin: 0;
    padding: 0 0.35rem 0.15rem 0;
    overflow: auto;
    overflow-x: auto;
    overflow-y: auto;
    background: transparent;
    border-radius: 0.45rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(24, 24, 27, 0.28) transparent;
}

.dark .ld-bento-card--push.is-schedule-view .ld-ebb-scroll {
    background: transparent;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 0.2rem 0;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-scroll::-webkit-scrollbar-thumb {
    background: rgba(24, 24, 27, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 24, 27, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.dark .ld-bento-card--push.is-schedule-view .ld-ebb-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.dark .ld-bento-card--push.is-schedule-view .ld-ebb-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.ld-bento-card--push.is-schedule-view .ld-ebb-table--matrix {
    overflow: visible;
}

.dark .ld-bento-card--push.is-schedule-view .ld-ebb-table--matrix {
    background: var(--ld-panel);
}

.ld-bento-card--push.is-schedule-view .ld-ebb-table--matrix thead th {
    background: var(--ld-surface-raised, #f8fafc);
}

.ld-page--guest .ld-bento-card.is-guest-cta .ld-ebb-table--matrix thead th {
    background: #f8fafc;
}

.dark .ld-bento-card--push.is-schedule-view .ld-ebb-table--matrix thead th {
    background: rgba(255, 255, 255, 0.04);
}

.dark .ld-page--guest .ld-bento-card.is-guest-cta .ld-ebb-table--matrix thead th {
    background: rgba(255, 255, 255, 0.04);
}

.ld-root-new-btn.is-active {
    background: rgba(0, 113, 227, 0.12);
    color: #0071e3;
}

.ld-ebb-inline-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin: 0 0 0.6rem;
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--ld-ink-tertiary, #71717a);
}

.ld-ebb-sum-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ld-ink-secondary, #64748b);
    background: var(--ld-item-bg, #f1f5f9);
}

.ld-ebb-sum-chip--today {
    color: #15803d;
    background: rgba(22, 163, 74, 0.14);
}

.ld-ebb-sum-chip--done {
    color: #15803d;
    background: rgba(22, 163, 74, 0.14);
}

.dark .ld-ebb-sum-chip {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.dark .ld-ebb-sum-chip--today {
    color: #86efac;
    background: rgba(34, 197, 94, 0.2);
}

.dark .ld-ebb-sum-chip--done {
    color: #86efac;
    background: rgba(34, 197, 94, 0.2);
}

.ld-ebb-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    /* 圆角裁剪放在滚动容器上，避免 table overflow:hidden 打断 thead sticky */
    border-radius: 0.85rem;
    /* paint containment 会让 sticky 表头相对错误的裁剪盒定位 */
    contain: layout;
    will-change: scroll-position;
}

.ld-ebb-table--matrix tbody tr.ld-ebb-row {
    height: 3.25rem;
}
.ld-ebb-table--matrix tbody tr.ld-ebb-virt-spacer td {
    padding: 0 !important;
    border: 0 !important;
    line-height: 0;
    background: transparent !important;
    vertical-align: top;
}
.ld-ebb-table--matrix tbody tr {
    /* 虚拟列表自行裁剪 DOM，不再依赖 content-visibility */
    content-visibility: visible;
    contain-intrinsic-size: auto 3.25rem;
}

.ld-ebb-table--matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.75rem;
    color: var(--ld-ink, #111);
    background: var(--ld-panel);
    border: 1px solid var(--ld-card-border);
    border-radius: 0.85rem;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.ld-ebb-table--matrix thead th {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 0.62rem 0.3rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ld-ink-secondary, #64748b);
    background: var(--ld-surface-raised, #f8fafc);
    border-bottom: 1px solid var(--ld-card-border);
    box-shadow: 0 1px 0 var(--ld-card-border);
}

.ld-ebb-table--matrix thead th:first-child {
    text-align: left;
    width: 5.25rem;
    padding-left: 0.75rem;
}

.ld-ebb-table--matrix thead th:last-child {
    padding-right: 0.75rem;
}

.ld-ebb-table--matrix tbody td,
.ld-ebb-table--matrix tbody th {
    position: relative;
    z-index: 1;
    padding: 0.42rem 0.3rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    vertical-align: middle;
    text-align: center;
    background: transparent;
}

.dark .ld-ebb-table--matrix {
    background: var(--ld-panel);
    color: var(--ld-ink, #f8fafc);
    box-shadow: none;
}

.dark .ld-ebb-table--matrix thead th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ld-ink-secondary, #94a3b8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .ld-ebb-table--matrix tbody td,
.dark .ld-ebb-table--matrix tbody th {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.ld-ebb-date-cell {
    text-align: left !important;
    padding-left: 0.75rem !important;
    padding-right: 0.3rem !important;
    font-weight: 600;
    color: var(--ld-ink, #111);
    white-space: nowrap;
}

.ld-ebb-date-text {
    display: block;
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    letter-spacing: -0.02em;
    color: var(--ld-ink, #111);
}

.ld-ebb-date-rel {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--ld-ink-tertiary, #94a3b8);
}

.ld-ebb-today-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.16rem;
    padding: 0.05rem 0.38rem;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--site-theme-color, #0071e3);
}

.dark .ld-ebb-today-badge {
    background: var(--site-theme-color, #0071e3);
}

/* 今天的行：只保留左侧主题竖条，不铺底色 */
.ld-ebb-table--matrix .ld-ebb-row.is-today {
    box-shadow: inset 3px 0 0 0 var(--site-theme-color);
}

.ld-ebb-table--matrix .ld-ebb-row.is-today .ld-ebb-date-text {
    color: var(--site-theme-color, #0071e3);
}

.ld-ebb-table--matrix .ld-ebb-row {
    --ld-ebb-progress: 0%;
    --ld-ebb-p: 0;
    /* 进度条左右不留白，铺满整行 */
    --ld-ebb-inset: 0px;
    --ld-ebb-lo: 0.14;
    --ld-ebb-hi: 0.4;
    position: relative;
    background-color: transparent;
    background-repeat: no-repeat;
    background-image: linear-gradient(
        90deg,
        transparent 0 var(--ld-ebb-inset),
        color-mix(in srgb, var(--site-theme-color) calc(var(--ld-ebb-progress) * var(--ld-ebb-lo)), transparent) var(--ld-ebb-inset),
        color-mix(in srgb, var(--site-theme-color) calc(var(--ld-ebb-progress) * var(--ld-ebb-hi)), transparent) calc(var(--ld-ebb-inset) + (100% - (var(--ld-ebb-inset) * 2)) * var(--ld-ebb-p)),
        transparent calc(var(--ld-ebb-inset) + (100% - (var(--ld-ebb-inset) * 2)) * var(--ld-ebb-p))
    );
}

.ld-ebb-table--matrix .ld-ebb-row > * {
    background: transparent !important;
}

.dark .ld-ebb-table--matrix .ld-ebb-row {
    --ld-ebb-lo: 0.22;
    --ld-ebb-hi: 0.5;
    background-color: transparent;
}

.ld-ebb-table--matrix .ld-ebb-date-cell {
    position: relative;
    padding-right: 0.3rem !important;
}

.ld-ebb-table--matrix .ld-ebb-day-pct {
    display: block;
    margin-top: 0.12rem;
    margin-left: 0;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--muted);
}

.dark .ld-ebb-table--matrix .ld-ebb-day-pct {
    color: var(--muted);
}

.ld-ebb-table--matrix .ld-ebb-cell-empty {
    color: rgba(15, 23, 42, 0.22);
}

.dark .ld-ebb-table--matrix .ld-ebb-cell-empty {
    color: rgba(255, 255, 255, 0.28);
}

.ld-ebb-table--matrix .ld-ebb-row.is-clickable {
    cursor: pointer;
}

.ld-ebb-table--matrix .ld-ebb-row.is-locked,
.ld-ebb-table--matrix .ld-ebb-row.is-locked-clickable {
    cursor: pointer;
    opacity: 0.55;
    filter: grayscale(0.85);
}

.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-date-text,
.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-date-rel,
.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-day-pct {
    color: #94a3b8 !important;
}

.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill--learn,
.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill--review,
.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill.is-done {
    color: #94a3b8 !important;
    background: #e2e8f0 !important;
    box-shadow: none;
}

.ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill-check {
    display: none;
}

.ld-ebb-table--matrix .ld-ebb-row.is-locked {
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.dark .ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-date-text,
.dark .ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-date-rel,
.dark .ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-day-pct {
    color: #64748b !important;
}

.dark .ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill--learn,
.dark .ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill--review,
.dark .ld-ebb-table--matrix .ld-ebb-row.is-locked .ld-ebb-pill.is-done {
    color: #64748b !important;
    background: #2a2a2a !important;
}

.ld-ebb-locked-tip {
    position: fixed;
    left: 50%;
    bottom: 1.75rem;
    z-index: 6;
    transform: translateX(-50%) translateY(0.5rem);
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ld-ebb-locked-tip.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ld-ebb-table--matrix .ld-ebb-row.is-clickable {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ld-ebb-table--matrix .ld-ebb-row.is-clickable:hover {
    background-color: rgba(var(--site-theme-color-rgb), 0.12);
}

.dark .ld-ebb-table--matrix .ld-ebb-row.is-clickable:hover {
    background-color: rgba(var(--site-theme-color-rgb), 0.24);
}

.ld-ebb-table--matrix .ld-ebb-row.is-unlocked:not(.is-today) .ld-ebb-date-text {
    color: var(--ld-ink, #111);
}

.dark .ld-ebb-table--matrix .ld-ebb-row.is-unlocked:not(.is-today) .ld-ebb-date-text {
    color: rgba(255, 255, 255, 0.88);
}

.ld-ebb-table--matrix .ld-ebb-row.is-active-plan .ld-ebb-date-rel {
    color: var(--muted);
    font-weight: 600;
}

.dark .ld-ebb-table--matrix .ld-ebb-row.is-active-plan .ld-ebb-date-rel {
    color: var(--muted);
}

.ld-ebb-cell {
    line-height: 1.2;
}

.ld-ebb-cell-empty {
    color: rgba(15, 23, 42, 0.2);
    font-size: 0.625rem;
}

.dark .ld-ebb-cell-empty {
    color: rgba(255, 255, 255, 0.28);
}

.ld-ebb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    min-width: 2.5rem;
    padding: 0.22rem 0.48rem;
    margin: 0.06rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    line-height: 1.2;
    position: relative;
}

.ld-ebb-pill--learn,
.ld-ebb-pill--review {
    color: var(--muted);
    background: var(--surface);
    box-shadow: none;
}

/* 已完成：统一用主题蓝 */
.ld-ebb-pill--learn.is-done,
.ld-ebb-pill--review.is-done {
    color: var(--on-accent, #fff);
    background: var(--site-theme-color, #0071e3);
    box-shadow: inset 0 0 0 1px var(--site-theme-color, #0071e3);
}

.ld-ebb-pill-check {
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1;
    color: var(--muted);
}

.ld-ebb-pill.is-done .ld-ebb-pill-check {
    color: inherit;
}

.dark .ld-ebb-pill--learn,
.dark .ld-ebb-pill--review {
    color: var(--muted);
    background: var(--surface-2);
}

.dark .ld-ebb-pill--learn.is-done,
.dark .ld-ebb-pill--review.is-done {
    color: var(--on-accent, #fff);
    background: var(--site-theme-color, #0071e3);
}

.dark .ld-ebb-pill.is-done {
    box-shadow: inset 0 0 0 1px var(--site-theme-color, #0071e3);
}

/* 手机端：日程里的 day / 日期字号收紧，避免拥挤 */
@media (max-width: 767px) {
    .ld-ebb-date-text {
        font-size: 0.75rem;
    }
    .ld-ebb-date-rel,
    .ld-ebb-day-pct {
        font-size: 0.5625rem;
    }
    .ld-ebb-pill {
        min-width: 2.1rem;
        padding: 0.18rem 0.4rem;
        margin: 0.04rem;
        font-size: 0.625rem;
    }
    .ld-ebb-pill-check {
        font-size: 0.5625rem;
    }
}

.ld-ebb-table--matrix tbody td:last-child {
    padding-right: 0.75rem;
}

.ld-ebb-table--matrix .ld-ebb-cell--review4 {
    position: relative;
}

.ld-ebb-table--matrix .ld-ebb-row-check {
    display: none !important;
}

.ld-push-start--secondary {
    background: transparent;
    color: var(--ld-push-fg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.ld-push-start--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* display:flex 会盖掉原生 [hidden]，导致登录/访客/立即开始同时露出 */
.ld-push-start[hidden],
.ld-push-start-dual[hidden] {
    display: none !important;
}

.ld-push-start-dual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;

    padding: 0.2rem 0.35rem;
    box-sizing: border-box;
}

.ld-push-cta-hint {
    flex: none;
    order: 3;
    margin: 0;
    padding: 0 0.125rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ld-ink-tertiary);
    text-align: center;
}

.ld-push-start-dual .ld-push-start {
    flex: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8125rem 1rem;
    font-size: 0.875rem;
    transform-origin: center center;
}

.ld-push-start-dual .ld-push-start--login {
    order: 1;
    flex: none;
}

.ld-push-start-dual .ld-push-start--guest {
    order: 2;
}

.ld-push-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--ld-radius-md);
    background: var(--ld-accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ld-push-start.ld-push-start--login {
    background: var(--ld-accent);
    border-color: var(--ld-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.ld-push-start.ld-push-start--guest {
    background: transparent;
    border: 1px dashed var(--ld-border);
    color: var(--ld-ink-secondary);
    font-weight: 500;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    box-shadow: none;
}

.ld-push-start.ld-push-start--login:hover {
    background: var(--ld-accent);
    border-color: var(--ld-accent);
    color: #fff;
    transform: scale(1.018);
}

.ld-push-start.ld-push-start--guest:hover {
    background: transparent;
    border: 1px dashed var(--ld-border);
    color: var(--ld-ink-secondary);
    transform: scale(1.018);
}

.ld-push-start.ld-push-start--login:active,
.ld-push-start.ld-push-start--guest:active {
    transform: scale(0.992);
    transition-duration: 0.12s;
}

.dark .ld-push-start.ld-push-start--guest {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(255, 255, 255, 0.16);
}

.dark .ld-push-start.ld-push-start--guest:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .ld-push-start {
        transition: none;
    }

    .ld-push-start.ld-push-start--login:hover,
    .ld-push-start.ld-push-start--login:active,
    .ld-push-start.ld-push-start--guest:hover,
    .ld-push-start.ld-push-start--guest:active {
        transform: none;
    }
}

.ld-push-start:hover:not(.ld-push-start--guest):not(.ld-push-start--login) {
    background: var(--ld-accent-hover);
}

.ld-push-start.is-disabled.ld-push-start--guest {
    background: transparent;
    opacity: 0.45;
}

.ld-push-start i {
    font-size: 0.9375rem;
    line-height: 1;
}

.ld-push-start.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* VIP 门槛：视觉弱化但仍可点，便于提示/跳转续费 */
.ld-push-start.is-vip-gated {
    opacity: 0.72;
    cursor: pointer;
}

@media (min-width: 768px) {
    .ld-bento-card--push .ld-push-inner {
        flex: 1;
        min-height: 0;
    }

    .ld-bento-card--push .ld-push-body {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .ld-bento-card--push .ld-push-list {
        flex: 1;
        min-height: 0;
        grid-auto-rows: minmax(2rem, auto);
        align-content: start;
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 767px) {
    .ld-push-list {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(2.5rem, auto);
        align-content: start;
        height: auto;
        max-height: min(52vh, 28rem);
    }

    .ld-bento-card--push {
        min-height: 0;
    }

    /* 手机端计划表：按当前窗口高度封顶，表内滚动 */
    .ld-bento-card--push.is-schedule-view {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: none;
    }

    .ld-bento-card--push.is-schedule-view .ld-push-inner,
    .ld-bento-card--push.is-schedule-view .ld-push-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--push.is-schedule-view .ld-push-schedule {
        flex: none;
        height: var(--ld-ebb-scroll-max);
        max-height: var(--ld-ebb-scroll-max);
        min-height: 0;
        overflow: hidden;
    }

    .ld-bento-card--push.is-schedule-view .ld-ebb-scroll {
        flex: 1 1 0;
        min-height: 0;
        height: 100%;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

.ld-bento-card--goal {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.ld-goal-card-mount {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.ld-bento-card--goal .ld-bento-inner,
.ld-bento-card--goal .lib-card.lib-card-goal {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    aspect-ratio: auto;
    overflow: hidden;
}

.ld-bento-card--goal .lib-card-goal.ld-bento-inner {
    position: relative;
}

.ld-bento-card--goal .ld-bento-body,
.ld-bento-card--history .ld-bento-body,
.ld-bento-card--notes .ld-bento-body {
    position: relative;
    z-index: 1;
}

.ld-bento-card--goal .ld-bento-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    scrollbar-width: none;
}

.ld-bento-card--goal .ld-bento-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ld-bento-card--goal .lib-goal-arc-wrap {
    max-width: 9rem;
    margin: 0.5rem auto 0.625rem;
    --lib-goal-ring-color: var(--ld-accent);
    --lib-goal-ring-track: var(--ld-accent-muted);
}

.dark .ld-page .ld-bento-card--goal .lib-goal-arc-wrap {
    --lib-goal-ring-color: var(--ld-accent);
    --lib-goal-ring-track: var(--ld-accent-muted);
}

.ld-bento-card--goal .lib-goal-arc-wrap .lib-goal-arc-track,
.ld-bento-card--goal .lib-goal-arc-wrap .lib-goal-arc-progress {
    stroke-width: 12;
}

.ld-bento-card--goal .lib-goal-arc-wrap .lib-goal-arc-progress {
    transition: stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.ld-bento-card--goal .lib-goal-ring-done {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ld-bento-card--goal .lib-goal-ring-sep,
.ld-bento-card--goal .lib-goal-ring-target {
    font-size: 1.4375rem;
    opacity: 0.55;
}

.ld-bento-card--goal .ld-goal-ring-block {
    margin: 0.5rem 0 0.25rem;
    padding-top: 0.25rem;
}

.ld-goal-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ld-goal-head-row .ld-bento-label {
    margin: 0;
}

.ld-goal-calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ld-ink-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

html.dark .ld-goal-calendar-btn {
    background: rgba(255, 255, 255, 0.08);
}

.ld-goal-calendar-btn:hover:not(:disabled) {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-goal-calendar-btn:disabled,
.ld-goal-calendar-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ld-goal-calendar-btn .vk-icon {
    font-size: 1.0625rem;
}

.ld-goal-week-mount {
    margin-top: 0.125rem;
}

.ld-goal-month-scroll-mount {
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
}

.ld-goal-selected-date {
    flex: 0 1 auto;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0.125rem 0.125rem;
    border: 0;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--ld-ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.ld-month-scroll-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ld-month-scroll-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-width: 0;
}

.ld-month-scroll-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--ld-ink-tertiary);
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.ld-month-scroll-nav-btn:hover:not(:disabled) {
    background: transparent;
    color: var(--ld-accent);
}

.ld-month-scroll-nav-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.ld-month-scroll-nav-btn .vk-icon {
    font-size: 1rem;
    line-height: 1;
}

.ld-month-scroll-rings-row {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.ld-month-scroll-rings-row .ld-month-scroll-week-viewport {
    flex: 1;
    min-width: 0;
}

.ld-month-scroll-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ld-month-scroll-weekdays {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
}

.ld-month-scroll-weekdays,
.ld-month-scroll-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 0;
    align-items: center;
    width: 100%;
}

.ld-month-scroll-week-viewport {
    overflow: hidden;
    width: 100%;
    padding: 0.3125rem 0.125rem;
    margin: -0.125rem -0.125rem 0;
    box-sizing: border-box;
    touch-action: pan-y;
}

.ld-month-scroll-week {
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
}

.ld-month-scroll-week.is-dragging {
    transition: none;
}

.ld-month-scroll-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ld-ink-tertiary);
    text-align: center;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ld-month-scroll-weekday:hover:not(:disabled) {
    color: var(--ld-accent);
}

.ld-month-scroll-weekday.is-active {
    color: var(--ld-accent);
    background: #f2f2f7;
}

.ld-month-scroll-weekday:disabled {
    opacity: 0.35;
    cursor: default;
}

.ld-month-scroll-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.625rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ld-ink-secondary);
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.ld-month-scroll-day--empty {
    pointer-events: none;
}

.ld-month-scroll-day.is-future {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.ld-month-scroll-day .ld-week-day-ring {
    width: 1.375rem;
    max-width: 1.375rem;
    height: 1.375rem;
    flex: 0 0 1.375rem;
    overflow: visible;
}

.ld-month-scroll-day .ld-week-day-ring .lib-goal-arc {
    overflow: visible;
    display: block;
}

.ld-month-scroll-day .ld-week-day-ring .lib-goal-arc-track,
.ld-month-scroll-day .ld-week-day-ring .lib-goal-arc-progress {
    stroke-width: 16;
}

.ld-month-scroll-day.is-active .ld-week-day-ring {
    transform: scale(1.08);
    transform-origin: center;
}

.ld-month-scroll-day.is-complete .ld-week-day-ring {
    opacity: 1;
}

.ld-calendar-sheet .ld-calendar-sheet-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: max(var(--site-gutter), env(safe-area-inset-left));
    padding-right: max(var(--site-gutter), env(safe-area-inset-right));
}

.ld-full-calendar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.ld-full-calendar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    padding: 0.5rem 0 0.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--ld-border);
}

.dark .ld-full-calendar-head {
    background: #000000;
}

.ld-full-calendar-date-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    margin: 0;
    padding: 0 0.25rem;
    line-height: 1.3;
}

.ld-full-calendar-year,
.ld-full-calendar-month-label {
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ld-ink);
}

.ld-full-calendar-weekdays {
    width: 100%;
}

.ld-full-calendar-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1rem;
}

.ld-full-calendar-month.is-loading {
    opacity: 0.72;
}

.ld-full-calendar-month {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ld-full-calendar-month-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.625rem 0.375rem;
    width: 100%;
}

.ld-full-calendar-month-title {
    margin: 0;
    padding: 0.125rem 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ld-ink);
}

.ld-full-calendar .ld-month-day.is-active .ld-month-day-ring {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ld-accent) 45%, transparent);
    border-radius: 50%;
}

.ld-full-calendar .ld-month-day.is-active .ld-month-day-num {
    color: var(--ld-accent);
    font-weight: 700;
}

.ld-bento-card--goal .ld-goal-detail-meta {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.4;
    text-align: center;
    color: var(--ld-ink-secondary);
}

.ld-bento-card--goal .ld-bento-headline {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.ld-goal-library-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.ld-goal-library-change {
    display: inline-flex;
    align-items: center;
    gap: 0.0625rem;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 9999px;
    background: var(--ld-item-bg);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ld-ink-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.ld-goal-library-change i {
    font-size: 0.875rem;
    line-height: 1;
}

.ld-goal-library-change:hover {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-bento-card--goal .lib-goal-settings-panel {
    margin-top: 0.625rem;
    padding: 0.625rem 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.ld-bento-card--goal .lib-goal-settings-label {
    color: var(--ld-ink-secondary);
}

.ld-bento-card--goal .lib-goal-settings-value {
    color: var(--ld-ink);
}

.ld-goal-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ld-week-strip {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.ld-week-nav {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ld-week-labels-row,
.ld-week-rings-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ld-week-side-gap {
    flex: 0 0 1.375rem;
    width: 1.375rem;
}

.ld-week-labels-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    pointer-events: none;
}

.ld-week-labels-scroll::-webkit-scrollbar { display: none; }

.ld-week-labels {
    display: flex;
    gap: 0.375rem;
    padding: 0 0.125rem;
}

.ld-week-labels .ld-week-day-label {
    flex: 0 0 calc((100% - 1.125rem) / 4);
    min-width: 2rem;
    text-align: center;
}

.ld-week-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: var(--ld-item-bg);
    color: var(--ld-ink-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ld-week-nav-btn:hover:not(:disabled) {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-week-nav-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.ld-week-nav-btn i {
    font-size: 0.875rem;
    line-height: 1;
}

@media (max-width: 767px) {
    .ld-week-nav-btn {
        display: none;
    }
}

.ld-week-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}

.ld-week-scroll::-webkit-scrollbar { display: none; }

.ld-week-scroll:focus-visible {
    outline: 2px solid rgba(0, 113, 227, 0.45);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

.ld-week-circles {
    display: flex;
    gap: 0.375rem;
    padding: 0 0.125rem;
}

.ld-week-day {
    flex: 0 0 calc((100% - 1.125rem) / 4);
    min-width: 2rem;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ld-week-day:focus-visible {
    outline: 2px solid rgba(0, 113, 227, 0.45);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

@media (min-width: 768px) {
    .ld-week-scroll { scroll-snap-type: none; }

    .ld-week-labels,
    .ld-week-circles {
        justify-content: space-between;
        width: 100%;
        gap: 0.25rem;
        padding: 0;
    }

    .ld-week-labels .ld-week-day-label,
    .ld-week-day {
        flex: 1 1 0;
        min-width: 0;
    }
}

.ld-week-day-ring {
    position: relative;
    width: 100%;
    max-width: 2.25rem;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    --lib-goal-ring-color: var(--ld-accent);
    --lib-goal-ring-track: var(--ld-accent-muted);
    transition: transform 0.18s ease;
}

@media (min-width: 768px) {
    .ld-week-day-ring { max-width: 1.875rem; }
}

.ld-week-day-ring .lib-goal-arc-track,
.ld-week-day-ring .lib-goal-arc-progress {
    stroke-width: 20;
}

.ld-week-day-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: var(--ld-ink-tertiary);
    pointer-events: none;
}

.ld-week-labels .ld-week-day-label.is-today { color: var(--ld-accent); }

.ld-week-day.is-active .ld-week-day-ring { transform: scale(1.08); }

.ld-week-day.is-active .ld-week-day-label,
.ld-week-labels .ld-week-day-label.is-active {
    color: var(--ld-accent);
    font-weight: 700;
}

.ld-week-day.is-complete .ld-week-day-label,
.ld-week-labels .ld-week-day-label.is-complete {
    color: var(--ld-accent);
}

.ld-week-day.is-future { opacity: 0.38; }

.ld-goal-detail-meta {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    color: var(--ld-ink-tertiary);
    padding: 0;
    background: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.ld-bento-card--goal .lib-goal-settings-panel .vk-progress {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.ld-bento-card--goal .vk-progress-tick-label { font-size: 0.5rem; }

.ld-bento-card--goal .goal-progress { --vk-progress-fill: var(--ld-accent); }

.ld-bento-card--goal .lib-goal-settings-label,
.ld-bento-card--goal .lib-goal-settings-value {
    font-size: 0.6875rem;
}

.ld-bento-card--goal .ld-bento-sub {
    margin-top: 0.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ld-ink-secondary);
}

.ld-bento-headline {
    margin: 0.375rem 0 0;
    font-family: var(--ld-font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--ld-ink);
}

.ld-bento-headline--on-accent {
    font-size: 1.375rem;
    color: #fff;
}

.ld-bento-sub {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ld-ink-secondary);
}

.ld-bento-sub--on-accent { color: rgba(255, 255, 255, 0.82); }

.ld-bento-card--accent .ld-bento-label { color: rgba(255, 255, 255, 0.72); }

.ld-bento-card--history .ld-history-list:not(:has(.ld-empty-item)):not(:has(.ld-skeleton-row)):not(:has(.ld-guest-row)) {
    gap: 0;
}

.ld-history-table {
    --ld-history-cols: minmax(0, 1fr) 3rem 3.5rem 5.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ld-history-table > .ld-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.ld-history-head,
.ld-history-list .ld-history-item:not(.ld-guest-row) {
    display: grid;
    grid-template-columns: var(--ld-history-cols);
    column-gap: 0.625rem;
    align-items: center;
    min-width: 0;
}

.ld-history-head > span {
    padding: 0 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ld-ink-tertiary);
    min-width: 0;
    text-align: left;
}

.ld-history-table--modal {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}

.ld-history-table--indexed {
    --ld-history-cols: 2rem minmax(0, 1fr) 3rem 3.5rem 5.5rem;
}

.ld-history-index {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ld-ink-tertiary);
    text-align: left;
    min-width: 0;
}

.ld-history-table--modal .ld-history-head > span {
    padding-bottom: 0.5rem;
    font-size: 0.6875rem;
}

.ld-bento-card--history .ld-history-list .ld-history-item {
    min-height: 0;
}

.ld-bento-action {
    margin-top: 0.625rem;
    width: 100%;
}

.ld-word-list,
.ld-history-list,
.ld-notes-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-word-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.4375rem 0;
    font-size: 0.8125rem;
    color: var(--ld-ink);
    background: transparent;
    border-bottom: 1px solid var(--ld-border);
}

.ld-history-table .ld-history-word,
.ld-history-table .ld-history-rating,
.ld-history-table .ld-history-review-in,
.ld-history-table .ld-history-time {
    padding: 0.4375rem 0;
    min-width: 0;
}

.ld-notes-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.4375rem 0;
    font-size: 0.8125rem;
    background: transparent;
    border-bottom: 1px solid var(--ld-border);
}

.ld-bento-card--notes .ld-notes-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.ld-bento-card--notes .ld-notes-link:hover .ld-notes-word {
    color: var(--ld-accent);
}

.ld-history-item:last-child,
.ld-notes-item:last-child {
    border-bottom: none;
}

.ld-bento-card--notes .ld-notes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ld-bento-card--history .ld-bento-body,
.ld-bento-card--notes .ld-bento-body {
    min-height: 10rem;
}

.ld-bento-card--history .ld-history-list,
.ld-bento-card--notes .ld-notes-list {
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ld-bento-card--history .ld-history-list { min-height: 7.5rem; }

    .ld-history-table {
        --ld-history-cols: minmax(0, 1fr) 2.75rem 3rem 4.75rem;
    }

    .ld-history-table--indexed {
        --ld-history-cols: 1.75rem minmax(0, 1fr) 2.75rem 3rem 4.75rem;
    }

    .ld-history-head,
    .ld-history-list .ld-history-item:not(.ld-guest-row),
    .ld-history-list .ld-guest-row {
        column-gap: 0.375rem;
    }
}

.ld-word-text,
.ld-history-word,
.ld-notes-word {
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-notes-word {
    font-weight: 600;
    color: var(--ld-ink);
}

.ld-notes-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
}

.ld-notes-time {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ld-ink-tertiary);
    white-space: nowrap;
    text-align: left;
}

.ld-history-rating,
.ld-history-review-in,
.ld-history-time {
    justify-self: start;
    text-align: left;
    white-space: nowrap;
}

.ld-history-rating .ld-tag {
    vertical-align: middle;
}

.ld-history-review-in {
    font-size: 0.6875rem;
    color: var(--ld-ink-secondary);
}

.ld-history-review-in--overdue {
    color: #dc2626;
    font-weight: 500;
}

.dark .ld-history-review-in--overdue {
    color: #f87171;
}

.ld-history-time {
    font-size: 0.6875rem;
    color: var(--ld-ink-tertiary);
    font-weight: 500;
}

.ld-history-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3125rem;
    flex-shrink: 0;
}

.ld-history-meta,
.ld-notes-preview {
    font-size: 0.6875rem;
    color: var(--ld-ink-tertiary);
}

.ld-notes-preview {
    line-height: 1.45;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ld-empty,
.ld-empty-item {
    margin: 0;
    padding: 1rem 0;
    font-size: 0.8125rem;
    text-align: center;
    color: var(--ld-ink-tertiary);
    background: transparent;
}

.ld-login-gate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 400;
    color: var(--ld-ink-tertiary);
    pointer-events: none;
    user-select: none;
}

.ld-login-gate-icon {
    width: 0.9375rem;
    height: 0.9375rem;
    font-size: 0.9375rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--ld-ink-tertiary);
    fill: currentColor;
    opacity: 0.9;
}

.ld-login-gate-text {
    color: inherit;
}

.ld-empty-item.ld-login-gate {
    display: flex;
    padding: 1rem 0.75rem;
    text-align: center;
}

.ld-empty-item--quiet,
.ld-empty-quiet {
    color: var(--ld-ink-tertiary);
    font-size: 0.875rem;
}

.ld-guest-bar {
    display: inline-block;
    height: 0.7rem;
    max-width: 100%;
    border-radius: 999px;
    background: repeating-linear-gradient(
        -45deg,
        #e8e8ed,
        #e8e8ed 3px,
        #f0f0f4 3px,
        #f0f0f4 6px
    );
    vertical-align: middle;
    opacity: 0.9;
}

.dark .ld-guest-bar {
    background: repeating-linear-gradient(
        -45deg,
        #2c2c30,
        #2c2c30 3px,
        #38383e 3px,
        #38383e 6px
    );
}

.ld-skeleton-bar {
    display: inline-block;
    height: 0.7rem;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #ebebef 0%,
        #f4f4f7 40%,
        #ebebef 80%
    );
    background-size: 200% 100%;
    animation: ld-skeleton-shimmer 1.35s ease-in-out infinite;
    vertical-align: middle;
    opacity: 0.95;
}

.dark .ld-skeleton-bar {
    background: linear-gradient(
        90deg,
        #2c2c30 0%,
        #3a3a40 40%,
        #2c2c30 80%
    );
    background-size: 200% 100%;
}

@keyframes ld-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ld-guest-row {
    pointer-events: none;
    user-select: none;
    opacity: 0.72;
}

.ld-skeleton-row {
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
}

.ld-push-list .ld-guest-row .ld-push-tag {
    background: transparent;
    min-width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.ld-history-list:has(.ld-guest-row),
.ld-history-list:has(.ld-skeleton-row) {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.25rem;
}

.ld-history-list .ld-guest-row,
.ld-history-list .ld-skeleton-row {
    display: grid;
    grid-template-columns: var(--ld-history-cols);
    column-gap: 0.625rem;
    align-items: center;
}

.ld-history-list .ld-guest-row .ld-history-rating,
.ld-history-list .ld-guest-row .ld-history-review,
.ld-history-list .ld-guest-row .ld-history-time,
.ld-history-list .ld-skeleton-row .ld-history-rating,
.ld-history-list .ld-skeleton-row .ld-history-review,
.ld-history-list .ld-skeleton-row .ld-history-time {
    justify-self: start;
}

.ld-notes-list:has(.ld-guest-row),
.ld-notes-list:has(.ld-skeleton-row) {
    gap: 0.75rem;
}

.ld-guest-data {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    min-height: 7.5rem;
    opacity: 0.85;
}

.ld-guest-data-ring {
    width: 5.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: repeating-linear-gradient(
        -45deg,
        #e8e8ed,
        #e8e8ed 3px,
        #f0f0f4 3px,
        #f0f0f4 6px
    );
    mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}

.dark .ld-guest-data-ring {
    background: repeating-linear-gradient(
        -45deg,
        #2c2c30,
        #2c2c30 3px,
        #38383e 3px,
        #38383e 6px
    );
}

.ld-skeleton-data-ring {
    width: 5.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        #ebebef 0%,
        #f4f4f7 40%,
        #ebebef 80%
    );
    background-size: 200% 100%;
    animation: ld-skeleton-shimmer 1.35s ease-in-out infinite;
    mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}

.dark .ld-skeleton-data-ring {
    background: linear-gradient(
        90deg,
        #2c2c30 0%,
        #3a3a40 40%,
        #2c2c30 80%
    );
    background-size: 200% 100%;
}

.ld-guest-data-radar,
.ld-skeleton-data-radar {
    flex: 1;
    min-height: 10rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    opacity: 0.85;
}

.ld-guest-radar-chart {
    width: min(100%, 11rem);
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: repeating-linear-gradient(
        -45deg,
        #e8e8ed,
        #e8e8ed 3px,
        #f0f0f4 3px,
        #f0f0f4 6px
    );
    mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
}

.dark .ld-guest-radar-chart {
    background: repeating-linear-gradient(
        -45deg,
        #2c2c30,
        #2c2c30 3px,
        #38383e 3px,
        #38383e 6px
    );
}

.ld-skeleton-radar-chart {
    width: min(100%, 11rem);
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        #ebebef 0%,
        #f4f4f7 40%,
        #ebebef 80%
    );
    background-size: 200% 100%;
    animation: ld-skeleton-shimmer 1.35s ease-in-out infinite;
    mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
}

.dark .ld-skeleton-radar-chart {
    background: linear-gradient(
        90deg,
        #2c2c30 0%,
        #3a3a40 40%,
        #2c2c30 80%
    );
    background-size: 200% 100%;
}

.ld-guest-radar-side,
.ld-skeleton-radar-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ld-goal-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.125rem 1.125rem;
    pointer-events: none;
    user-select: none;
}

.ld-goal-skeleton-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ld-goal-skeleton-date {
    display: flex;
    justify-content: center;
}

.ld-goal-skeleton-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    justify-items: center;
}

.ld-goal-skeleton-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        #ebebef 0%,
        #f4f4f7 40%,
        #ebebef 80%
    );
    background-size: 200% 100%;
    animation: ld-skeleton-shimmer 1.35s ease-in-out infinite;
}

.dark .ld-goal-skeleton-dot {
    background: linear-gradient(
        90deg,
        #2c2c30 0%,
        #3a3a40 40%,
        #2c2c30 80%
    );
    background-size: 200% 100%;
}

.ld-goal-skeleton-ring-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.ld-goal-skeleton-ring {
    width: 6.5rem;
    height: 6.5rem;
}

.ld-guest-data-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
}

.ld-vip-status .ld-guest-bar,
.ld-prefs-block .ld-guest-bar {
    display: inline-block;
    vertical-align: middle;
    height: 0.75rem;
    border-radius: 999px;
}

.ld-page--guest .ld-bento-card.is-guest,
.ld-page--guest .ld-bento-card.is-guest-cta {
    position: relative;
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

.ld-page--guest .ld-bento-card--data.is-guest {
    padding-bottom: 0.25rem;
}

.dark .ld-page--guest .ld-bento-card.is-guest,
.dark .ld-page--guest .ld-bento-card.is-guest-cta {
    background: #141416;
    border-color: rgba(255, 255, 255, 0.06);
}

.ld-page--guest .ld-bento-card.is-guest::after {
    content: "需登录可见";
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    z-index: 2;
    transform: translate(-50%, -50%);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--ld-ink-tertiary);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    pointer-events: none;
    white-space: nowrap;
}

.dark .ld-page--guest .ld-bento-card.is-guest::after {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(20, 20, 22, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.ld-page--guest .ld-bento-card--goal.is-guest::after,
.ld-page--guest .ld-bento-card--goal.is-guest-cta::after {
    display: none;
}

.ld-page--guest .ld-bento-card.is-guest .ld-history-list,
.ld-page--guest .ld-bento-card.is-guest .ld-notes-list,
.ld-page--guest .ld-bento-card.is-guest .ld-data-split,
.ld-page--guest .ld-bento-card.is-guest .ld-data-ring-section,
.ld-page--guest .ld-bento-card.is-guest .ld-health-radar-section {
    pointer-events: none;
    min-height: 5.5rem;
}

.ld-page--guest .ld-bento-card.is-guest-cta .ld-push-list {
    min-height: 4.5rem;
}

.ld-page--guest .ld-bento-card.is-guest .ld-bento-label,
.ld-page--guest .ld-bento-card.is-guest .ld-section-title {
    opacity: 0.78;
}

.ld-page--guest .ld-bento-card.is-guest-cta {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.08);
    outline: none;
    overflow: hidden;
}

.ld-page--guest .ld-bento-card.is-guest-cta .ld-push-head .ld-page-btn {
    border: 0;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ld-ink-secondary);
}

.ld-page--guest .ld-bento-card.is-guest-cta .ld-push-head .ld-page-info {
    color: var(--ld-ink-tertiary);
}

.dark .ld-page--guest .ld-bento-card.is-guest-cta {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .ld-page--guest .ld-bento-card.is-guest-cta .ld-push-head .ld-page-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

.dark .ld-page--guest .ld-bento-card.is-guest-cta .ld-push-head .ld-page-info {
    color: rgba(255, 255, 255, 0.4);
}

.ld-prefs-login-link-wrap {
    margin: 0.25rem 0 0;
}

.ld-prefs-login-link {
    font-size: 0.8125rem;
    color: var(--ld-accent);
    text-decoration: none;
    font-weight: 500;
}

.ld-prefs-login-link:hover {
    text-decoration: underline;
}

.ld-login-gate--block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 8rem;
    padding: 1.25rem 0.75rem;
    text-align: center;
}

.ld-login-gate--inline {
    justify-content: flex-end;
    text-align: right;
}

.ld-login-gate--hint {
    justify-content: flex-start;
    width: 100%;
    margin: 0.375rem 0 0;
}

.ld-text-link.is-disabled,
.ld-text-link:disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    color: var(--ld-ink-tertiary);
    background: var(--ld-item-bg);
}

.ld-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.ld-tag--new { background: #eff6ff; color: var(--ld-accent); }
.ld-tag--review { background: #eff6ff; color: #2563eb; }
.ld-tag--rating-forgot,
.ld-tag--rating-wrong {
    background: #fef2f2;
    color: #dc2626;
    border-radius: 9999px;
}
.ld-tag--rating-hard,
.ld-tag--rating-good,
.ld-tag--rating-easy,
.ld-tag--rating-default { background: var(--ld-item-bg); color: var(--ld-ink-secondary); }
.ld-tag--time { background: var(--ld-item-bg); color: var(--ld-ink-tertiary); font-weight: 500; }

.dark .ld-tag--new { background: rgba(0, 113, 227, 0.2); }
.dark .ld-tag--review { background: rgba(37, 99, 235, 0.2); }
.dark .ld-tag--rating-forgot,
.dark .ld-tag--rating-wrong {
    background: rgba(220, 38, 38, 0.18);
    color: #f87171;
}
.dark .ld-tag--rating-hard,
.dark .ld-tag--rating-good,
.dark .ld-tag--rating-easy,
.dark .ld-tag--rating-default,
.dark .ld-tag--time { background: rgba(255, 255, 255, 0.08); color: #a1a1aa; }

.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.ld-btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.ld-btn--flat {
    padding: 0.375rem 0.6875rem;
    font-weight: 500;
    border-radius: var(--ld-radius-sm);
    box-shadow: none;
}

.ld-btn--flat.ld-btn--accent:hover,
.ld-btn--flat.ld-btn--outline:hover { opacity: 1; }

.ld-btn--flat.ld-btn--accent:hover { background: var(--ld-accent-hover); }

.ld-btn--flat.ld-btn--outline:hover { background: var(--ld-item-bg); }

.ld-btn--on-accent {
    background: #fff;
    color: var(--ld-accent);
}

.ld-btn--on-accent:hover { opacity: 0.92; }

.ld-btn--outline {
    background: var(--ld-surface);
    color: var(--ld-ink);
    border: 1px solid var(--ld-border);
}

.ld-btn--accent {
    background: var(--ld-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}

.ld-btn--accent:hover { opacity: 0.92; }

.dark .ld-btn--outline {
    background: transparent;
    color: var(--ld-ink);
    border-color: var(--ld-border);
}

.ld-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.ld-text-link {
    padding: 0.25rem 0.5625rem;
    border: none;
    border-radius: 9999px;
    background: var(--ld-item-bg);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ld-ink-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ld-text-link:hover {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-prefs-label-title {
    margin: 0;
    min-width: 0;
}

.ld-prefs-sheet-inner {
    max-width: 28rem;
    margin: 0 auto;
    padding-top: 0.25rem;
    padding-bottom: 1.5rem;
}

.ld-prefs-sheet .ld-prefs-welcome {
    margin-bottom: 1rem;
}

.ld-prefs-sheet .ld-prefs-stack {
    margin-top: 0;
}

.ld-prefs-sheet .ld-prefs-block {
    padding: 0.875rem 0;
}

.ld-prefs-avatar {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ld-surface-muted);
    border: 1px solid var(--ld-border);
    color: var(--ld-ink-secondary);
}

.ld-prefs-avatar--welcome {
    width: 2.375rem;
    height: 2.375rem;
}

img.ld-prefs-avatar {
    display: block;
    object-fit: cover;
    padding: 0;
}

.ld-prefs-avatar--welcome.ld-prefs-avatar-fallback,
.ld-prefs-avatar-fallback {
    font-size: 1.125rem;
    line-height: 1;
}

.ld-prefs-avatar-btn {
    position: relative;
    display: inline-flex;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
    flex-shrink: 0;
}

.ld-prefs-avatar-btn.is-pickable {
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.28);
}

.ld-prefs-avatar-pick-hint {
    position: absolute;
    right: -0.15rem;
    bottom: -0.1rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 9999px;
    background: #0071e3;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
}

.ld-prefs-avatar-cta {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0071e3;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: left;
}

.ld-prefs-avatar-cta:hover {
    color: #0b52c8;
}

.dark .ld-prefs-avatar-cta {
    color: #64b5ff;
}

.dark .ld-prefs-avatar-cta:hover {
    color: #93c5fd;
}

.dark .ld-avatar-pick-option:hover:not(:disabled) {
    border-color: rgba(100, 181, 255, 0.5);
    background: rgba(100, 181, 255, 0.08);
}

.dark .ld-avatar-pick-option.is-selected {
    border-color: #64b5ff;
    box-shadow: 0 0 0 3px rgba(100, 181, 255, 0.18);
}

.ld-avatar-modal-desc {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ld-ink-secondary, #64748b);
}

.ld-avatar-pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ld-avatar-pick-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.875rem 0.5rem;
    border: 1px solid var(--ld-border, #e2e8f0);
    border-radius: 0.875rem;
    background: var(--ld-surface, #fff);
    color: var(--ld-ink, #0a0a0a);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ld-avatar-pick-option:hover:not(:disabled) {
    border-color: rgba(0, 113, 227, 0.45);
    background: rgba(0, 113, 227, 0.04);
}

.ld-avatar-pick-option:disabled {
    opacity: 0.55;
    cursor: wait;
}

.ld-avatar-pick-option.is-selected {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.ld-avatar-pick-preview {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    object-fit: cover;
    background: var(--ld-item-bg, #f1f5f9);
}

.ld-prefs-head {
    align-items: center;
    margin-bottom: 0.375rem;
}

.ld-prefs-welcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.625rem;
    padding: 0 0.125rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ld-ink-secondary);
}

.ld-prefs-welcome-text {
    min-width: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.ld-prefs-guest-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ld-ink-tertiary);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .ld-prefs-guest-badge {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.ld-prefs-welcome-name {
    color: var(--ld-ink);
    font-weight: 600;
}

.ld-prefs-stack {
    display: flex;
    flex-direction: column;
}

.ld-prefs-block.ld-vip-block {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.ld-prefs-sheet .ld-vip-block .ld-vip-status {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    text-align: right;
    max-width: none;
    white-space: nowrap;
}

.ld-prefs-sheet .ld-vip-block .ld-vip-status.ld-login-gate--inline {
    justify-content: flex-start;
}

.ld-prefs-block + .ld-prefs-block {
    margin-top: 0.25rem;
}

@media (hover: hover) {
    .ld-prefs-block:hover {
        background: var(--ld-surface-muted);
    }
}

#dashboardVipActionsBlock.is-vip-collapsed,
#dashboardVipActionsBlock[hidden] {
    display: none;
}

.ld-prefs-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.5625rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: var(--ld-radius-md);
    background: transparent;
    border-bottom: none;
    transition: background 0.15s ease;
}

.ld-prefs-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ld-ink);
}

.ld-prefs-link-row-end {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    margin-left: auto;
}

.ld-prefs-stat {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ld-ink-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ld-prefs-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ld-ink-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

html.dark .ld-prefs-more-btn {
    background: rgba(255, 255, 255, 0.08);
}

.ld-prefs-more-btn:hover:not(:disabled) {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-prefs-more-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ld-prefs-more-btn .vk-icon {
    font-size: 1.125rem;
}

.ld-vip-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3125rem;
    margin: 0;
    min-width: 0;
    flex: 1;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ld-ink-tertiary);
    text-align: right;
}

.ld-vip-status .ld-login-gate-text {
    text-align: inherit;
}

.ld-vip-status i,
.ld-vip-status .vk-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.ld-vip-status--active {
    color: #b45309;
    font-weight: 600;
}

.ld-vip-status--active i,
.ld-vip-status--active .vk-icon {
    color: #d97706;
}

.dark .ld-vip-status--active {
    color: #fbbf24;
}

.dark .ld-vip-status--active i,
.dark .ld-vip-status--active .vk-icon {
    color: #fcd34d;
}

.ld-vip-status--inactive i,
.ld-vip-status--inactive .vk-icon,
.ld-vip-status--guest i,
.ld-vip-status--guest .vk-icon,
.ld-vip-status--free i,
.ld-vip-status--free .vk-icon { color: var(--ld-ink-tertiary); }

.ld-vip-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.ld-prefs-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.ld-prefs-empty {
    font-size: 0.8125rem;
    line-height: 1;
    color: var(--ld-ink-tertiary);
}

.ld-btn--danger {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.22);
}

.ld-btn--danger:hover {
    background: #fef2f2;
}

.dark .ld-btn--danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.28);
}

.dark .ld-btn--danger:hover {
    background: rgba(220, 38, 38, 0.12);
}

.ld-inline-link {
    color: var(--ld-accent);
    text-decoration: none;
}

.ld-pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ld-page-btn {
    width: 1.625rem;
    height: 1.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ld-border);
    border-radius: 9999px;
    background: var(--ld-surface);
    color: var(--ld-ink-secondary);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: background 0.15s ease;
}

.ld-page-btn:hover:not(:disabled) {
    background: var(--ld-panel-hover);
    color: var(--ld-ink);
}

.ld-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.ld-push-head .ld-page-btn {
    border: 0;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ld-ink-secondary);
}

html.dark .ld-push-head .ld-page-btn {
    background: rgba(255, 255, 255, 0.08);
}

.ld-push-head .ld-page-btn:hover:not(:disabled) {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-push-head .ld-page-info {
    color: var(--ld-ink-tertiary);
}

.ld-page-info {
    font-size: 0.6875rem;
    color: var(--ld-ink-tertiary);
    font-variant-numeric: tabular-nums;
}

.ld-calendar-sheet:not(.hidden) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 6;
    flex-direction: column;
}

.ld-calendar-sheet .ld-calendar-modal-body {
    width: 100%;
}

.ld-sheet.hidden { display: none !important; }

.ld-sheet {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}
#dashboard-notes-modal.ld-sheet {
    z-index: 7;
}

.dark .ld-sheet {
    background: #000000;
}

.ld-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.5rem max(var(--site-gutter), env(safe-area-inset-right)) 0.5rem max(var(--site-gutter), env(safe-area-inset-left));
    border-bottom: 1px solid var(--ld-border);
    background: #f2f2f7;
}

.dark .ld-sheet-head {
    background: #1c1c1e;
}

.ld-sheet-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ld-ink);
}

.ld-sheet-title.ld-section-title { gap: 0.5rem; }

.ld-sheet-title.ld-section-title i {
    font-size: 1.125rem;
    color: var(--ld-accent);
}

.ld-sheet-close {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--ld-ink-secondary);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    transition: background 0.15s ease;
}

.ld-sheet-close:hover { background: var(--ld-accent-muted); }

.ld-sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

.dark .ld-sheet-scroll {
    background: #000000;
}

.ld-sheet-inner {
    max-width: var(--site-content-max-width, 48rem);
    margin: 0 auto;
    padding: 1.25rem max(var(--site-gutter), env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(var(--site-gutter), env(safe-area-inset-left));
}

.ld-sheet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 24rem;
}

.ld-sheet-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ld-sheet-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ld-ink-secondary);
}

.ld-sheet-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-md);
    background: var(--ld-surface);
    color: var(--ld-ink);
    font-size: 0.875rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ld-sheet-input:focus {
    border-color: var(--ld-accent);
    box-shadow: 0 0 0 3px var(--ld-accent-muted);
}

.ld-sheet-form-msg {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.ld-sheet-form-msg.is-error { color: #dc2626; }
.ld-sheet-form-msg.is-success { color: #059669; }

.dark .ld-sheet-form-msg.is-error { color: #f87171; }
.dark .ld-sheet-form-msg.is-success { color: #34d399; }

.ld-sheet-form .ld-btn--accent {
    width: 100%;
    margin-top: 0.25rem;
}

.ld-sheet-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.ld-sheet-search-wrap { position: relative; }

.ld-sheet-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--ld-ink-tertiary);
    pointer-events: none;
}

.ld-sheet-search {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.375rem;
    border: 1px solid var(--ld-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.4;
    background: var(--ld-surface);
    color: var(--ld-ink);
}

.ld-sheet-search:focus {
    outline: none;
    border-color: var(--ld-accent);
    box-shadow: 0 0 0 3px var(--ld-accent-muted);
}

.ld-sheet-search-wrap:focus-within .ld-sheet-search-icon { color: var(--ld-accent); }

.ld-sheet-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
}

.ld-sheet-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ld-sheet-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--ld-border);
    border-radius: 9999px;
    background: var(--ld-surface);
    color: var(--ld-ink-secondary);
    font-size: var(--site-meta-font-size, 12px);
    line-height: var(--site-meta-line-height, 1.5);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ld-sheet-filter.is-active {
    background: var(--ld-accent, #0071e3);
    border-color: var(--ld-accent, #0071e3);
    color: #fff;
}

.dark .ld-sheet-filter.is-active {
    background: var(--ld-accent, #0071e3);
    border-color: var(--ld-accent, #0071e3);
    color: #fff;
}

.ld-sheet-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--ld-border);
    border-radius: 9999px;
    background: var(--ld-surface);
    color: var(--ld-ink);
    font-size: var(--site-meta-font-size, 12px);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ld-sheet-action-btn i {
    font-size: 0.9375rem;
    color: var(--ld-accent);
}

.ld-sheet-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-sheet-list.ld-notes-list--modal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ld-history-table .ld-history-list:not(:has(.ld-guest-row)) {
    display: flex;
    flex-direction: column;
}

.ld-history-table--modal .ld-history-index,
.ld-history-table--modal .ld-history-word,
.ld-history-table--modal .ld-history-rating,
.ld-history-table--modal .ld-history-review-in,
.ld-history-table--modal .ld-history-time {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ld-history-table--modal .ld-history-item {
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}

.ld-history-table--modal .ld-history-item:hover {
    background-color: #f2f2f7;
}

.dark .ld-history-table--modal .ld-history-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.ld-sheet-list.ld-notes-list--modal .ld-notes-item {
    padding: 0;
    border-bottom: none;
    border-radius: 0.5rem;
    background: transparent;
    transition: background-color 0.15s ease;
}

.ld-sheet-list.ld-notes-list--modal .ld-notes-item:hover {
    background-color: #f2f2f7;
}

.dark .ld-sheet-list.ld-notes-list--modal .ld-notes-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.ld-sheet-list .ld-empty-item {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ld-ink-tertiary);
    border-bottom: none;
    background: transparent;
}

.ld-sheet-row-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.75rem 1rem 0.875rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ld-notes-word,
.ld-notes-preview {
    transition: color 0.15s ease;
}

.ld-sheet-row-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: var(--ld-ink-tertiary);
    transition: color 0.15s ease;
}

.ld-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ld-border);
}

.ld-sheet-page-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ld-border);
    border-radius: 9999px;
    background: var(--ld-surface);
    color: var(--ld-ink);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    transition: background 0.15s ease;
}

.ld-sheet-page-btn:hover:not(:disabled) { background: var(--ld-item-bg); }

.ld-sheet-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.ld-sheet-page-info {
    min-width: 3rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ld-ink-secondary);
    font-variant-numeric: tabular-nums;
}

.lib-page--modal {
    min-height: 0;
    padding-top: 0;
}

.lib-page--modal .lib-page-inner {
    max-width: none;
}

.ld-data-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.ld-data-head-row {
    align-items: flex-start;
    flex-shrink: 0;
}

.ld-data-sub {
    margin: 0.1875rem 0 0;
    font-size: 0.625rem;
    line-height: 1.35;
    color: var(--ld-ink-secondary);
}

.ld-data-ring-section {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ld-health-radar-section {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.ld-calendar-modal-body .ld-month-strip {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.ld-calendar-modal-body .ld-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ld-calendar-modal-body .ld-month-head-center {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.ld-calendar-modal-body .ld-month-label {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--ld-ink);
    min-width: 0;
}

.ld-calendar-modal-body .ld-month-label-text {
    flex-shrink: 0;
}

.ld-calendar-modal-body .ld-month-stats {
    display: inline;
    margin: 0;
    padding: 0;
    min-height: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: inherit;
    color: var(--ld-ink-secondary);
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-calendar-modal-body .ld-month-stats-sep {
    margin: 0 0.3125rem;
    opacity: 0.55;
}

.ld-calendar-modal-body .ld-month-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: var(--ld-item-bg);
    color: var(--ld-ink-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ld-calendar-modal-body .ld-month-nav-btn:hover:not(:disabled) {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-calendar-modal-body .ld-month-nav-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.ld-calendar-modal-body .ld-month-nav-btn i,
.ld-calendar-modal-body .ld-month-nav-btn .vk-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.ld-calendar-modal-body .ld-month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    flex-shrink: 0;
}

.ld-calendar-modal-body .ld-month-weekday {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ld-ink-tertiary);
}

.ld-calendar-modal-body .ld-month-weekday-text {
    position: relative;
    z-index: 1;
    line-height: 1;
}

.ld-calendar-modal-body .ld-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0.625rem 0.375rem;
    width: 100%;
}

.ld-calendar-modal-body .ld-month-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    min-width: 0;
    margin: 0;
    padding: 0.25rem 0.125rem;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ld-calendar-modal-body .ld-month-day--empty {
    pointer-events: none;
}

.ld-calendar-modal-body .ld-month-day-num {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--ld-ink-secondary);
}

.ld-calendar-modal-body .ld-month-day-ring {
    position: relative;
    z-index: 1;
    width: min(100%, 3.25rem);
    height: auto;
    max-width: 3.25rem;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    --lib-goal-ring-color: var(--ld-accent, #0071e3);
    --lib-goal-ring-track: var(--ld-accent-muted, rgba(0, 113, 227, 0.18));
}

.ld-calendar-modal-body .ld-month-day-ring .lib-goal-arc {
    display: block;
    width: 100%;
    height: 100%;
}

.ld-calendar-modal-body .ld-month-day-ring .lib-goal-arc-track,
.ld-calendar-modal-body .ld-month-day-ring .lib-goal-arc-progress {
    stroke-width: 18;
}

.ld-calendar-modal-body .ld-month-day.is-future {
    opacity: 0.38;
    pointer-events: none;
    cursor: default;
}

.ld-calendar-modal-body .ld-month-day.is-complete .ld-month-day-num {
    color: var(--ld-accent);
}

.ld-calendar-modal-body .ld-month-day.is-today .ld-month-day-num {
    color: #ff9500;
    font-weight: 700;
}

@media (min-width: 768px) {
    .ld-calendar-modal-body .ld-month-day-ring {
        width: min(100%, 4.5rem);
        max-width: 4.5rem;
    }

    .ld-calendar-modal-body .ld-month-day-num {
        font-size: 0.8125rem;
    }

    .ld-calendar-modal-body .ld-month-grid {
        gap: 0.875rem 0.5rem;
    }
}

@media (min-width: 1200px) {
    .ld-calendar-modal-body .ld-month-day-ring {
        width: min(100%, 5.25rem);
        max-width: 5.25rem;
    }
}

.ld-data-empty,
.ld-data-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ld-ink-secondary);
}

.ld-goal-settings-hint,
.ld-login-gate--hint {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ld-ink-tertiary);
}

.lib-goal-settings-panel.is-readonly .lib-goal-settings-slider {
    pointer-events: none;
    cursor: default;
    opacity: 0.55;
}

.lib-goal-settings-panel.is-readonly .vk-progress-bar {
    opacity: 0.9;
}

.ld-day-modal {
    position: fixed;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ld-pwd-modal {
    position: fixed;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ld-pwd-modal.hidden {
    display: none;
}

.ld-pwd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dark .ld-pwd-modal-backdrop {
    background: rgba(0, 0, 0, 0.68);
}

.ld-pwd-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 20rem);
    max-height: min(90vh, 32rem);
    overflow: auto;
    padding: 1.25rem 1.125rem 1.125rem;
    border-radius: 1.25rem;
    background: var(--ld-panel, #ffffff);
    color: var(--ld-ink, #0a0a0a);
    border: 1px solid var(--ld-card-border, rgba(0, 0, 0, 0.07));
    box-shadow: var(--ld-shadow-side, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.ld-pwd-modal-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ld-pwd-modal-close:hover {
    background: rgba(0, 113, 227, 0.12);
    color: #0071e3;
}

.dark .ld-pwd-modal-close {
    background: #262626;
    color: #94a3b8;
}

.dark .ld-pwd-modal-close:hover {
    background: rgba(0, 113, 227, 0.18);
    color: #60a5fa;
}

.ld-pwd-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 2rem 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ld-ink);
}

.ld-pwd-modal-title .vk-icon {
    flex-shrink: 0;
    font-size: 1.125rem;
}

.ld-pwd-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ld-pwd-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ld-pwd-modal-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ld-ink-secondary);
}

.ld-pwd-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5625rem 0.75rem;
    border-radius: var(--ld-radius-md, 0.4375rem);
    border: 1px solid var(--ld-border, #e2e8f0);
    background: var(--ld-surface, #fff);
    color: var(--ld-ink);
    font-size: 0.875rem;
    line-height: 1.4;
}

.ld-pwd-modal-input:focus {
    outline: none;
    border-color: var(--ld-accent);
    box-shadow: 0 0 0 3px var(--ld-accent-muted);
}

.ld-pwd-modal-msg {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.ld-pwd-modal-msg.is-error { color: #dc2626; }
.ld-pwd-modal-msg.is-success { color: #059669; }

.dark .ld-pwd-modal-msg.is-error { color: #f87171; }
.dark .ld-pwd-modal-msg.is-success { color: #34d399; }

.ld-pwd-modal-submit {
    width: 100%;
    margin-top: 0.25rem;
    background: #0071e3;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}

.ld-pwd-modal-submit:hover {
    background: #0b52c8;
    color: #fff;
    opacity: 1;
}

.ld-day-modal.hidden {
    display: none;
}

.ld-day-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dark .ld-day-modal-backdrop {
    background: rgba(0, 0, 0, 0.68);
}

.ld-day-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 18.5rem);
    padding: 1.25rem 1.125rem 1.125rem;
    border-radius: var(--ld-radius-xl);
    background: var(--ld-panel, #ffffff);
    color: var(--ld-ink, #0a0a0a);
    border: 1px solid var(--ld-card-border, rgba(0, 0, 0, 0.07));
    box-shadow: var(--ld-shadow-side, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.ld-day-modal-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: var(--ld-item-bg);
    color: var(--ld-ink-secondary);
    cursor: pointer;
}

.ld-day-modal-close:hover {
    background: var(--ld-accent-muted);
    color: var(--ld-accent);
}

.ld-day-modal-close i {
    font-size: 1.125rem;
    line-height: 1;
}

.ld-day-modal-title {
    margin: 0 2rem 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ld-ink);
    text-align: center;
}

.ld-day-modal-ring {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
}

.ld-day-modal-ring .lib-goal-arc-wrap {
    max-width: 9.5rem;
    margin: 0 auto;
    --lib-goal-ring-color: var(--ld-accent);
    --lib-goal-ring-track: var(--ld-accent-muted);
}

.ld-day-modal-ring .lib-goal-ring-done {
    font-size: 2rem;
}

.ld-day-modal-ring .lib-goal-ring-sep,
.ld-day-modal-ring .lib-goal-ring-target {
    font-size: 1.25rem;
}

.ld-day-modal-stats {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.ld-day-modal-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--ld-radius-md);
    background: var(--ld-item-bg);
}

.ld-day-modal-stat dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ld-ink-secondary);
}

.ld-day-modal-stat dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ld-ink);
}

/* FSRS 五维健康雷达 */
.ld-radar-wrap {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

.ld-radar-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 14.75rem;
    overflow: visible;
}

.ld-radar-svg {
    width: 100%;
    max-width: 13.25rem;
    height: auto;
    display: block;
    overflow: visible;
}

.ld-radar-grid {
    fill: none;
    stroke: var(--ld-border, rgba(0, 0, 0, 0.08));
    stroke-width: 0.55;
}

.ld-radar-axis {
    stroke: var(--ld-border, rgba(0, 0, 0, 0.1));
    stroke-width: 0.55;
}

.ld-radar-fill {
    fill: url(#ldRadarFillGrad);
    stroke: none;
}

.ld-radar-stroke {
    fill: none;
    stroke: var(--ld-accent);
    stroke-width: 1;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.ld-radar-dot {
    fill: var(--ld-accent);
    stroke: var(--ld-panel, #fff);
    stroke-width: 1;
}

.ld-radar-dim {
    cursor: pointer;
    outline: none;
}

.ld-radar-dim .ld-radar-label,
.ld-radar-dim .ld-radar-value {
    transition: fill 0.15s ease;
}

.ld-radar-dim:hover .ld-radar-label,
.ld-radar-dim:focus-visible .ld-radar-label,
.ld-radar-dim.is-active .ld-radar-label {
    fill: var(--ld-accent);
}

.ld-radar-dim:hover .ld-radar-value,
.ld-radar-dim:focus-visible .ld-radar-value,
.ld-radar-dim.is-active .ld-radar-value {
    fill: var(--ld-accent);
}

.ld-radar-label {
    font-size: 12px;
    font-weight: 700;
    fill: var(--ld-ink);
}

.ld-radar-value {
    font-size: 11px;
    font-weight: 600;
    fill: var(--ld-ink-secondary);
}

.ld-radar-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
}

.ld-radar-side::-webkit-scrollbar {
    display: none;
}

.ld-radar-explain {
    margin: 0;
    padding: 0 0.125rem 0.125rem;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.ld-radar-explain[hidden] {
    display: none !important;
}

.ld-radar-explain-kicker {
    margin: 0 0 0.1875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ld-accent);
}

.ld-radar-explain-title {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ld-ink);
}

.ld-radar-explain-body {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ld-ink-secondary);
}

.ld-radar-tips {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    height: 100%;
    overflow: visible;
}

.ld-radar-tip {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1;
    overflow: visible;
    position: relative;
    border-radius: var(--ld-radius-lg);
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--ld-accent) 9%, var(--ld-panel)) 0%,
            var(--ld-panel) 42%,
            var(--ld-panel) 100%
        );
    border: 1px solid color-mix(in srgb, var(--ld-accent) 16%, var(--ld-card-border));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 8px 24px rgba(0, 113, 227, 0.06);
}

.dark .ld-radar-tip {
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--ld-accent) 14%, var(--ld-panel)) 0%,
            var(--ld-panel) 48%,
            var(--ld-panel) 100%
        );
    border-color: color-mix(in srgb, var(--ld-accent) 22%, var(--ld-card-border));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ld-radar-tip.is-ok {
    border-color: color-mix(in srgb, #34c759 22%, var(--ld-card-border));
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, #34c759 10%, var(--ld-panel)) 0%,
            var(--ld-panel) 44%,
            var(--ld-panel) 100%
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 8px 24px rgba(52, 199, 89, 0.06);
}

.dark .ld-radar-tip.is-ok {
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, #34c759 12%, var(--ld-panel)) 0%,
            var(--ld-panel) 48%,
            var(--ld-panel) 100%
        );
    border-color: color-mix(in srgb, #34c759 24%, var(--ld-card-border));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ld-radar-tip-head {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    padding: 0.9375rem 1rem 0.5rem;
}

.ld-radar-tip-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 0;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--ld-accent);
    background: color-mix(in srgb, var(--ld-accent) 12%, transparent);
}

.ld-radar-tip.is-ok .ld-radar-tip-kicker {
    color: #248a3d;
    background: color-mix(in srgb, #34c759 14%, transparent);
}

.dark .ld-radar-tip.is-ok .ld-radar-tip-kicker {
    color: #6dde8a;
}

.ld-radar-tip-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0 5.75rem 0.5rem 0;
}

.ld-radar-tip-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    padding: 0.625rem 1rem 0.75rem;
}

.ld-radar-tip-item + .ld-radar-tip-item {
    border-top: 1px solid color-mix(in srgb, var(--ld-card-border) 85%, transparent);
}

.ld-radar-tip-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ld-ink);
}

.ld-radar-tip-msg {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ld-ink-secondary);
}

.ld-radar-tip-steps-label {
    margin: 0.25rem 0 0;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ld-ink-tertiary);
}

.ld-radar-tip-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5625rem;
}

.ld-radar-tip-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
    min-width: 0;
}

.ld-radar-tip-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.0625rem;
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}

.ld-radar-tip.is-ok .ld-radar-tip-step-num {
    background: var(--surface);
    color: var(--muted);
    box-shadow: none;
}

.dark .ld-radar-tip-step-num,
.dark .ld-radar-tip.is-ok .ld-radar-tip-step-num {
    background: var(--surface-2);
    color: var(--muted);
}

.ld-radar-tip-step-text {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--ld-ink);
}

.ld-radar-tip-inline-link {
    display: inline;
    margin: 0;
    margin-left: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--ld-accent);
    cursor: pointer;
    text-decoration: none;
}

.ld-radar-tip-inline-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ld-radar-tip-foot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: stretch;
    padding: 0.5rem 1rem 1rem;
}

.ld-radar-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.375rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 0.625rem;
    background: var(--ld-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.22);
}

.ld-radar-tip-btn:hover {
    background: var(--ld-accent-hover);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
}

.ld-radar-tip-btn:active {
    transform: translateY(1px);
}

.ld-radar-tip-btn--muted {
    background: var(--ld-item-bg);
    color: var(--ld-ink);
    box-shadow: none;
}

.ld-radar-tip-btn--muted:hover {
    background: color-mix(in srgb, var(--ld-item-bg) 70%, var(--ld-accent-muted));
    color: var(--ld-ink);
    box-shadow: none;
}

.ld-radar-legend {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ld-page .ld-radar-legend-item,
#dashboardHealthRadar .ld-radar-legend-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.125rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.ld-page .ld-radar-legend-name,
#dashboardHealthRadar .ld-radar-legend-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ld-ink);
}

.ld-page .ld-radar-legend-val,
#dashboardHealthRadar .ld-radar-legend-val {
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ld-accent);
    white-space: nowrap;
}

.ld-page .ld-radar-legend-hint,
#dashboardHealthRadar .ld-radar-legend-hint {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--ld-ink-secondary);
}

.ld-radar-empty {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ld-ink-secondary);
    text-align: center;
    padding: 1.25rem 0.75rem;
}


@media (min-width: 768px) {
    .ld-radar-chart {
        max-width: 17.5rem;
    }

    .ld-radar-svg {
        max-width: 15.75rem;
    }
}

@media (min-width: 1200px) {
    html:has(.ld-page),
    html:has(.ld-page) body {
        overflow: hidden;
        height: 100%;
    }

    .ld-radar-chart {
        max-width: 18rem;
    }

    .ld-radar-svg {
        max-width: 16.25rem;
    }

    .ld-radar-legend-item {
        gap: 0.125rem 0.5rem;
    }

    .ld-page .ld-radar-legend-name,
    #dashboardHealthRadar .ld-radar-legend-name,
    .ld-page .ld-radar-legend-val,
    #dashboardHealthRadar .ld-radar-legend-val {
        font-size: 0.8125rem;
    }

    .ld-page .ld-radar-legend-hint,
    #dashboardHealthRadar .ld-radar-legend-hint {
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

@media (max-width: 767px) {
    .ld-radar-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .ld-radar-chart {
        max-width: none;
        width: 100%;
    }

    .ld-radar-svg {
        max-width: 15.5rem;
        margin: 0 auto;
    }

    .ld-radar-label {
        font-size: 11px;
    }

    .ld-radar-value {
        font-size: 10px;
    }
}

/* Live2D 看板娘：钉在健康雷达容器右下角 */
.ld-bento-card--data,
.ld-bento-card--data .ld-data-body,
.ld-health-radar-section {
    position: relative;
    overflow: visible;
}

.ld-health-radar-section > .ld-live2d,
.ld-radar-tips > .ld-live2d,
.ld-live2d {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(14rem, 72%);
    aspect-ratio: 11 / 14.5;
    max-width: min(11rem, 48%);
    max-height: 94%;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    overflow: visible;
    transform: translateY(0.25rem);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ld-live2d.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.ld-live2d.is-error {
    display: none;
}

.ld-live2d-canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ld-live2d-hit {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.ld-live2d-bubble {
    display: none !important;
    z-index: 4;
    --ld-live2d-bubble-bg: rgba(255, 255, 255, 0.96);
    --ld-live2d-bubble-border: rgba(15, 23, 42, 0.1);
    --ld-live2d-bubble-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);

    position: absolute;
    right: 58%;
    top: 30%;
    left: auto;
    z-index: 2;
    width: max-content;
    max-width: min(17.5rem, calc(100vw - 2.5rem));
    padding: 0.5rem 0.7rem;
    border-radius: 0.85rem;
    border: 1px solid var(--ld-live2d-bubble-border);
    background: var(--ld-live2d-bubble-bg);
    color: var(--ld-ink);
    font-size: 0.74rem;
    line-height: 1.45;
    text-align: left;
    box-shadow: var(--ld-live2d-bubble-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(0.25rem) scale(0.96);
    transform-origin: right center;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.ld-live2d-bubble-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.ld-live2d-bubble-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.55rem;
    row-gap: 0.2rem;
}

.ld-live2d-bubble-text {
    margin: 0;
}

.ld-live2d-bubble-cta {
    display: inline-block;
    margin-top: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ld-accent, #ea580c);
    text-decoration: none;
    white-space: nowrap;
}

.ld-live2d-bubble-cta:hover {
    text-decoration: underline;
}

.ld-live2d-bubble-nav {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ld-ink-secondary, #64748b);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.ld-live2d-bubble-nav:hover {
    color: var(--ld-ink);
    background: rgba(15, 23, 42, 0.06);
}

.ld-live2d-bubble.is-sticky,
.ld-live2d-bubble.is-visible {
    pointer-events: auto;
}

.ld-live2d-bubble.is-warn {
    --ld-live2d-bubble-bg: rgba(255, 247, 237, 0.98);
    --ld-live2d-bubble-border: rgba(234, 88, 12, 0.45);
    color: #9a3412;
}

.ld-live2d-bubble.is-critical {
    --ld-live2d-bubble-bg: rgba(254, 242, 242, 0.98);
    --ld-live2d-bubble-border: rgba(220, 38, 38, 0.55);
    color: #991b1b;
}

.ld-live2d-bubble.is-critical .ld-live2d-bubble-cta {
    color: #dc2626;
}

.dark .ld-live2d-bubble.is-warn {
    --ld-live2d-bubble-bg: rgba(67, 32, 6, 0.94);
    --ld-live2d-bubble-border: rgba(251, 146, 60, 0.45);
    color: #fed7aa;
}

.dark .ld-live2d-bubble.is-critical {
    --ld-live2d-bubble-bg: rgba(69, 10, 10, 0.94);
    --ld-live2d-bubble-border: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.ld-live2d-bubble::after {
    content: '';
    position: absolute;
    right: -0.38rem;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -0.34rem;
    border-top: 0.34rem solid transparent;
    border-bottom: 0.34rem solid transparent;
    border-left: 0.42rem solid var(--ld-live2d-bubble-bg);
    filter: drop-shadow(1px 0 0 var(--ld-live2d-bubble-border));
}

.dark .ld-live2d-bubble {
    --ld-live2d-bubble-bg: rgba(24, 24, 27, 0.96);
    --ld-live2d-bubble-border: rgba(255, 255, 255, 0.12);
    --ld-live2d-bubble-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
    color: var(--ld-ink);
}

.ld-live2d-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

@media (min-width: 768px) {
    .ld-live2d {
        right: 0;
        bottom: 0;
        height: min(17rem, 78%);
        max-width: min(13rem, 52%);
        max-height: calc(100% - 1.5rem);
    }

    .ld-live2d-bubble {
        right: 56%;
        top: 28%;
        max-width: min(18.5rem, 42vw);
        font-size: 0.78rem;
        padding: 0.55rem 0.8rem;
    }
}

@media (min-width: 1280px) {
    .ld-live2d {
        height: min(19rem, 82%);
        right: 0;
        bottom: 0;
        max-width: min(14.5rem, 54%);
        max-height: calc(100% - 1.5rem);
    }

    .ld-live2d-bubble {
        right: 55%;
        top: 30%;
        max-width: min(19.5rem, 36vw);
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    /* 避免建议侧栏 / 卡片裁切看板娘 */
    .ld-bento-card--data,
    .ld-bento-card--data .ld-data-body,
    .ld-health-radar-section,
    .ld-radar-side,
    .ld-radar-tips,
    .ld-radar-tip {
        overflow: visible;
    }

    .ld-radar-tip {
        position: relative;
    }

    .ld-radar-tip-head {
        padding-right: 6.75rem;
    }

    .ld-radar-tip-list {
        padding-right: 6.5rem;
    }

    .ld-health-radar-section > .ld-live2d,
    .ld-radar-tips > .ld-live2d,
    .ld-radar-tip > .ld-live2d,
    .ld-live2d {
        position: absolute;
        top: 0.15rem;
        right: 0.1rem;
        bottom: auto;
        left: auto;
        /* 固定尺寸，不用百分比（父级一矮就会裁成半个头） */
        width: 6.25rem;
        height: 8.25rem;
        max-width: none;
        max-height: none;
        aspect-ratio: auto;
        z-index: 6;
        pointer-events: none;
        transform: none;
        overflow: hidden;
    }

    .ld-live2d.ld-live2d--tip-dock {
        top: 0.2rem;
        right: 0.15rem;
        width: 6.5rem;
        height: 8.5rem;
    }

    .ld-live2d.is-ready {
        opacity: 1;
        transform: none;
    }

    .ld-live2d-canvas {
        width: 100%;
        height: 100%;
    }

    .ld-live2d-hit {
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        transform: none;
        pointer-events: auto;
    }
}

/* ── 词根入口 New / 词根计划 ── */
.ld-push-head-row {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.ld-root-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    margin: 0;
    padding: 0.3rem 0.7rem;
    border: 0;
    border-radius: 0.5rem;
    background: #0071e3;
    color: #fff;
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.ld-root-new-btn:hover {
    opacity: 0.9;
    color: #fff;
}
.ld-root-new-btn:active {
    transform: scale(0.97);
}
.dark .ld-root-new-btn {
    background: #0a84ff;
}
.ld-push-root-meta {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--ld-muted, #71717a);
}
.ld-push-plan-link {
    margin-top: 0.35rem;
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.8125rem;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dark .ld-push-plan-link {
    color: #93c5fd;
}
.ld-push-plan-link--muted {
    color: var(--ld-muted, #71717a);
    margin-left: 0.75rem;
}
.dark .ld-push-plan-link--muted {
    color: #a1a1aa;
}
.ld-push-root-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0;
}
.ld-root-plan-table tbody tr[data-root-key] {
    cursor: pointer;
}
.ld-root-plan-table tbody tr[data-root-key]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
.ld-root-plan-panel {
    width: min(100%, 56rem) !important;
    max-height: min(90vh, 44rem) !important;
}
.ld-root-plan-search-wrap {
    margin-top: 0.65rem;
}
.ld-root-plan-search {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.55rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    background: #fff;
    color: inherit;
}
.dark .ld-root-plan-search {
    border-color: rgba(255, 255, 255, 0.14);
    background: #18181b;
    color: #fafafa;
}
.ld-root-plan-search:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}
.ld-root-plan-search-meta {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
}
.ld-root-plan-search-hits {
    margin-top: 0.5rem;
    max-height: 11rem;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.02);
}
.dark .ld-root-plan-search-hits {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.ld-root-plan-hit-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem;
}
.ld-root-plan-hit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border-radius: 0.4rem;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.ld-root-plan-hit:hover,
.ld-root-plan-hit:focus-visible {
    background: rgba(37, 99, 235, 0.08);
}
.ld-root-plan-hit-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ld-root-plan-hit-key {
    font-weight: 600;
    font-size: 0.875rem;
}
.ld-root-plan-hit-gloss {
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
}
.ld-root-plan-search-empty,
.ld-root-plan-search-more {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--ld-muted, #71717a);
}
.ld-ebb-row.is-filtered-out {
    display: none;
}
.ld-ebb-chip.is-hit {
    box-shadow: 0 0 0 2px #fbbf24;
}
.ld-root-plan-body {
    margin-top: 0.35rem;
}
.ld-root-plan-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0.15rem 0 0.65rem;
    padding: 0.2rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.04);
}
.dark .ld-root-plan-tabs {
    background: rgba(255, 255, 255, 0.06);
}
.ld-root-plan-tab {
    flex: 1;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ld-muted, #71717a);
    background: transparent;
    cursor: pointer;
}
.ld-root-plan-tab:hover {
    color: inherit;
}
.ld-root-plan-tab.is-active {
    color: inherit;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dark .ld-root-plan-tab.is-active {
    background: rgba(24, 24, 27, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.ld-root-stats-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}
.ld-root-stats-card {
    border-radius: 0.65rem;
    padding: 0.65rem 0.7rem;
    background: rgba(0, 0, 0, 0.035);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.dark .ld-root-stats-card {
    background: rgba(255, 255, 255, 0.05);
}
.ld-root-stats-card--accent {
    background: rgba(234, 88, 12, 0.1);
}
.dark .ld-root-stats-card--accent {
    background: rgba(251, 146, 60, 0.12);
}
.ld-root-stats-card-val {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.ld-root-stats-card-label {
    font-size: 0.72rem;
    color: var(--ld-muted, #71717a);
}
.ld-root-stats-dist {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.ld-root-stats-bar {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.28rem 0.4rem;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.ld-root-stats-bar:hover,
.ld-root-stats-bar.is-active {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}
.dark .ld-root-stats-bar:hover,
.dark .ld-root-stats-bar.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}
.ld-root-stats-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.ld-root-stats-bar-track {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.dark .ld-root-stats-bar-track {
    background: rgba(255, 255, 255, 0.1);
}
.ld-root-stats-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ea580c;
}
.dark .ld-root-stats-bar-fill {
    background: #fb923c;
}
.ld-root-stats-bar-count {
    font-size: 0.7rem;
    color: var(--ld-muted, #71717a);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ld-root-stats-tools {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.ld-root-stats-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.ld-root-stats-chip {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: inherit;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    cursor: pointer;
}
.dark .ld-root-stats-chip {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}
.ld-root-stats-chip.is-active {
    border-color: #ea580c;
    color: #c2410c;
    background: rgba(234, 88, 12, 0.1);
}
.dark .ld-root-stats-chip.is-active {
    color: #fdba74;
    border-color: #fb923c;
    background: rgba(251, 146, 60, 0.12);
}
.ld-root-stats-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
}
.ld-root-stats-sort select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.45rem;
    padding: 0.25rem 0.45rem;
    background: #fff;
    color: inherit;
    font-size: 0.75rem;
}
.dark .ld-root-stats-sort select {
    background: rgba(24, 24, 27, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}
.ld-root-stats-scroll {
    max-height: min(42vh, 28rem);
}
.ld-root-stats-table tbody tr[data-root-key] {
    cursor: pointer;
}
@media (max-width: 640px) {
    .ld-root-stats-summary {
        grid-template-columns: 1fr;
    }
    .ld-root-stats-bar {
        grid-template-columns: 3.6rem minmax(0, 1fr);
    }
    .ld-root-stats-bar-count {
        grid-column: 1 / -1;
        padding-left: 3.6rem;
    }
}

.ld-root-plan-empty {
    font-size: 0.875rem;
    color: var(--ld-muted, #71717a);
}
.ld-ebb-lib-meta {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}
.ld-ebb-lib-name {
    font-weight: 700;
    color: var(--ld-ink, #111);
}
.dark .ld-ebb-lib-name {
    color: #fafafa;
}
.ld-ebb-lib-sep,
.ld-ebb-lib-words {
    color: var(--ld-muted, #71717a);
    font-weight: 500;
}
.ld-ebb-summary {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ld-ink-secondary, #52525b);
}
.ld-ebb-sheet-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.ld-ebb-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.ld-ebb-body .ld-ebb-scroll {
    flex: 1 1 auto;
    min-height: 12rem;
    max-height: none;
}
.ld-ebb-day {
    position: relative;
    white-space: nowrap;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f5f5f5;
    min-width: 4.5rem;
    vertical-align: top;
}
.ld-ebb-day-label {
    display: block;
    font-size: 0.875rem;
}
.ld-ebb-schedule-hint {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
    white-space: normal;
    max-width: 8.5rem;
}
.ld-ebb-schedule-hint--empty {
    opacity: 0.45;
}
.ld-ebb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-top: 0.35rem;
    max-width: 14rem;
}
.ld-ebb-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.ld-ebb-badge--learn {
    color: #ffedd5;
    background: rgba(251, 146, 60, 0.22);
}
.ld-ebb-badge--review {
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.22);
}
.ld-ebb-badge--muted {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}
.ld-ebb-day-goal {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(253, 186, 116, 0.9);
    font-variant-numeric: tabular-nums;
}
.ld-ebb-table--days-only .ld-ebb-day {
    min-width: 11rem;
    white-space: normal;
}
.ld-ebb-row.has-review:not(.is-today) .ld-ebb-day-label {
    color: #93c5fd;
}
.ld-ebb-day-check,
.ld-ebb-row-check {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #14532d;
    background: #86efac;
    line-height: 1;
}
.ld-ebb-cell--review4 {
    position: relative;
    padding-right: 1.55rem;
}
.ld-ebb-day-pct {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}
.ld-ebb-day-counts {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.ld-ebb-day-new {
    color: #86efac;
}
.ld-ebb-day-review {
    margin-left: 0.35rem;
    color: #93c5fd;
}
.dark .ld-ebb-day-counts {
    color: rgba(255, 255, 255, 0.4);
}
.dark .ld-ebb-day-new {
    color: #4ade80;
}
.dark .ld-ebb-day-review {
    color: #60a5fa;
}
.ld-ebb-row.is-today .ld-ebb-day {
    color: #fdba74;
}
.ld-ebb-row.is-today .ld-ebb-schedule-hint {
    color: rgba(253, 186, 116, 0.85);
}
.ld-ebb-hint {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
    line-height: 1.45;
}
.ld-ebb-stats {
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    color: var(--ld-muted, #71717a);
    line-height: 1.4;
}
.ld-ebb-stats strong {
    color: inherit;
    font-weight: 700;
}
.ld-ebb-beyond {
    margin-top: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.55rem;
    padding: 0.45rem 0.65rem;
    background: rgba(0, 0, 0, 0.02);
}
.dark .ld-ebb-beyond {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.ld-ebb-beyond summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ld-muted, #71717a);
}
.ld-ebb-beyond-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    max-height: 14rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.ld-ebb-beyond-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.ld-ebb-beyond-date {
    flex: 0 0 4.5rem;
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
    font-variant-numeric: tabular-nums;
}
.ld-ebb-sheet .ld-ebb-scroll,
.ld-ebb-body .ld-ebb-scroll {
    max-height: min(72vh, 34rem);
    overflow: auto;
    margin: 0;
    padding: 0 0.35rem 0 0;
    border-radius: 0.5rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(24, 24, 27, 0.28) transparent;
}
.ld-ebb-sheet .ld-ebb-scroll::-webkit-scrollbar,
.ld-ebb-body .ld-ebb-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.ld-ebb-sheet .ld-ebb-scroll::-webkit-scrollbar-thumb,
.ld-ebb-body .ld-ebb-scroll::-webkit-scrollbar-thumb {
    background: rgba(24, 24, 27, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.ld-ebb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    background: #fff;
    color: var(--ld-ink, #111);
    border-radius: 0.5rem;
    overflow: visible;
}
.dark .ld-ebb-table {
    background: var(--ld-panel, #141414);
    color: var(--ld-ink, #f8fafc);
}
/* 矩阵表必须 separate + overflow:visible，否则 thead sticky 相对表格自身裁剪盒失效 */
.ld-ebb-table.ld-ebb-table--matrix {
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible;
}
.ld-ebb-table--days-only .ld-ebb-date {
    text-align: left;
    padding-right: 0.85rem;
}
.ld-ebb-row.is-clickable {
    cursor: pointer;
}
.ld-ebb-row.is-clickable:hover {
    filter: brightness(0.98);
}
.dark .ld-ebb-row.is-clickable:hover {
    filter: brightness(1.08);
}
.ld-ebb-day-go {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: var(--ld-accent, #0071e3);
}
.ld-ebb-table thead th {
    position: sticky;
    top: 0;
    z-index: 6;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.65rem 0.5rem;
    background: #fff;
    color: var(--ld-ink-secondary, #52525b);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}
.dark .ld-ebb-table thead th {
    background: var(--ld-panel, #141414);
    color: var(--ld-ink-secondary, #94a3b8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.ld-ebb-table thead th:first-child {
    text-align: left;
    padding-left: 0.85rem;
}
.ld-ebb-row td,
.ld-ebb-row th {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.55rem 0.45rem;
    vertical-align: middle;
    background: transparent;
}
.dark .ld-ebb-row td,
.dark .ld-ebb-row th {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.ld-ebb-row {
    --ld-ebb-progress: 0%;
    --ld-ebb-p: 0;
    position: relative;
    background-color: transparent;
}
.dark .ld-ebb-row {
    background-color: transparent;
}
.ld-ebb-row > * {
    background: transparent;
}
.ld-ebb-date {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    padding-left: 0.55rem !important;
    color: var(--ld-ink, #111);
}
.dark .ld-ebb-date {
    color: rgba(255, 255, 255, 0.85);
}
.ld-ebb-row.is-today .ld-ebb-date {
    font-weight: 700;
}
.ld-ebb-chip-from {
    flex-shrink: 0;
    font-size: 0.65rem;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 0.25rem;
    padding: 0.05rem 0.28rem;
}
.ld-ebb-cell {
    text-align: center;
}
.ld-ebb-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    border: 0;
    border-radius: 0.45rem;
    padding: 0.28rem 0.5rem;
    margin: 0.1rem;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    color: #fff;
    transition: transform 0.12s ease, filter 0.12s ease;
}
.ld-ebb-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.ld-ebb-chip:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}
.ld-ebb-chip--learn {
    background: #e67e22;
}
.ld-ebb-chip--review {
    background: #6b6b6b;
}
.ld-ebb-chip.is-due {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.ld-ebb-chip.is-active {
    box-shadow: 0 0 0 2px #60a5fa;
}
.ld-ebb-chip-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 5.5rem;
}
.ld-ebb-chip-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    padding: 0.05rem 0.28rem;
}
.ld-root-plan-scroll {
    max-height: min(70vh, 32rem);
    overflow: auto;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}
.ld-root-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    line-height: 1.35;
}
.ld-root-plan-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
    background: var(--ld-surface, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
}
.dark .ld-root-plan-table thead th {
    background: var(--ld-surface, #18181b);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.ld-root-plan-table tbody td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}
.dark .ld-root-plan-table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.ld-root-plan-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.025);
}
.dark .ld-root-plan-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}
.ld-root-plan-row td:first-child {
    border-left: 3px solid #a1a1aa;
    padding-left: 0.55rem;
}
.ld-root-plan-row--gray td:first-child { border-left-color: #a1a1aa; }
.ld-root-plan-row--blue td:first-child { border-left-color: #3b82f6; }
.ld-root-plan-row--green td:first-child { border-left-color: #22c55e; }
.ld-root-plan-row--orange td:first-child { border-left-color: #f59e0b; }
.ld-root-plan-row--red td:first-child { border-left-color: #ef4444; }
.ld-root-plan-key {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}
.ld-root-plan-key-text {
    margin-right: 0.4rem;
}
.ld-root-plan-count {
    display: inline-block;
    font-weight: 500;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--ld-muted, #71717a);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.35rem;
    padding: 0.1rem 0.35rem;
    vertical-align: middle;
}
.dark .ld-root-plan-count {
    background: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}
.ld-root-plan-gloss {
    color: var(--ld-muted, #71717a);
    max-width: 16rem;
}
.ld-root-plan-num,
.ld-root-plan-mastery,
.ld-root-plan-due {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ld-root-plan-mastery {
    font-weight: 600;
}
.ld-root-plan-due {
    color: var(--ld-muted, #71717a);
}
@media (max-width: 640px) {
    .ld-root-plan-panel {
        width: min(100%, 100vw - 1.5rem) !important;
    }
    .ld-root-plan-gloss {
        max-width: 9rem;
    }
    .ld-ebb-chip-name {
        max-width: 4.2rem;
    }
}

/* ── 词根族树状图 ── */
.ld-root-tree-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
}
.ld-root-tree-toolbar[hidden] {
    display: none !important;
}
.ld-root-tree-tool {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #3f3f46;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.3rem 0.65rem;
    border-radius: 0.45rem;
    cursor: pointer;
}
.dark .ld-root-tree-tool {
    border-color: rgba(255, 255, 255, 0.14);
    background: #18181b;
    color: #e4e4e7;
}
.ld-root-tree-tool.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}
.dark .ld-root-tree-tool.is-active {
    border-color: rgba(147, 197, 253, 0.4);
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}
.ld-root-tree-host {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0.25rem 0.15rem 0.5rem;
}
.ld-root-tree-host[hidden] {
    display: none !important;
}
.ld-root-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: min(100%, 18rem);
}
.ld-root-tree-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid rgba(234, 88, 12, 0.28);
    box-shadow: 0 1px 2px rgba(234, 88, 12, 0.08);
    text-align: center;
    max-width: 16rem;
}
.dark .ld-root-tree-root {
    background: linear-gradient(160deg, #431407 0%, #7c2d12 100%);
    border-color: rgba(251, 146, 60, 0.35);
    box-shadow: none;
}
.ld-root-tree-root-form {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #9a3412;
}
.dark .ld-root-tree-root-form {
    color: #fdba74;
}
.ld-root-tree-root-gloss {
    font-size: 0.75rem;
    color: #c2410c;
    line-height: 1.35;
}
.dark .ld-root-tree-root-gloss {
    color: #fed7aa;
}
.ld-root-tree-trunk {
    width: 2px;
    height: 1.1rem;
    background: rgba(234, 88, 12, 0.45);
    flex-shrink: 0;
}
.dark .ld-root-tree-trunk {
    background: rgba(251, 146, 60, 0.45);
}
.ld-root-tree-branches {
    width: 100%;
    padding-top: 0.35rem;
}
.ld-root-tree-level {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.55rem 0.65rem;
    width: 100%;
}
.ld-root-tree-level:not(.ld-root-tree-level--l1) {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
    margin-left: 0.55rem;
    padding-left: 0.7rem;
    border-left: 2px solid rgba(234, 88, 12, 0.28);
    grid-column: 1 / -1;
}
.dark .ld-root-tree-level:not(.ld-root-tree-level--l1) {
    border-left-color: rgba(251, 146, 60, 0.35);
}
.ld-root-tree-li {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ld-root-tree-level--l1 > .ld-root-tree-li:has(> .ld-root-tree-level) {
    grid-column: 1 / -1;
}
.ld-root-tree-node {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    border-radius: 0.55rem;
    padding: 0.5rem 0.6rem 0.45rem;
    color: inherit;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.dark .ld-root-tree-node {
    border-color: rgba(255, 255, 255, 0.1);
    background: #18181b;
    box-shadow: none;
}
.ld-root-tree-node.is-seen {
    opacity: 0.72;
}
.ld-root-tree-node.is-virtual {
    border-style: dashed;
    background: rgba(234, 88, 12, 0.06);
}
.dark .ld-root-tree-node.is-virtual {
    background: rgba(251, 146, 60, 0.1);
}
.ld-root-tree-node.has-kids {
    border-color: rgba(234, 88, 12, 0.28);
}
.ld-root-tree-leaf-word {
    font-weight: 600;
    font-size: 0.875rem;
    color: #18181b;
}
.dark .ld-root-tree-leaf-word {
    color: #fafafa;
}
.ld-root-tree-leaf-morph {
    font-size: 0.6875rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--ld-muted, #71717a);
    line-height: 1.3;
    word-break: break-word;
}
.ld-root-tree-leaf-gloss {
    font-size: 0.75rem;
    color: #52525b;
    line-height: 1.35;
    margin-top: 0.1rem;
}
.dark .ld-root-tree-leaf-gloss {
    color: #a1a1aa;
}
.ld-root-tree-leaf-tag {
    margin-top: 0.2rem;
    font-size: 0.625rem;
    letter-spacing: 0.02em;
    color: #c2410c;
    background: rgba(234, 88, 12, 0.1);
    border-radius: 0.3rem;
    padding: 0.08rem 0.35rem;
}
.ld-root-tree-node.is-seen .ld-root-tree-leaf-tag {
    color: #3f3f46;
    background: rgba(0, 0, 0, 0.06);
}
.ld-root-tree-leaf-tag--hub {
    color: #9a3412;
    background: rgba(234, 88, 12, 0.14);
}
.dark .ld-root-tree-leaf-tag {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.15);
}
.dark .ld-root-tree-node.is-seen .ld-root-tree-leaf-tag {
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.08);
}
.dark .ld-root-tree-leaf-tag--hub {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.2);
}
.ld-root-tree-empty {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ld-muted, #71717a);
}

/* 全屏：词太多时铺满视口 */
html.ld-root-tree-fs-open {
    overflow: hidden;
}
.ld-bento-card--push.is-root-tree-fs {
    position: fixed;
    inset: 0;
    z-index: 6;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--ld-card-bg, #fff);
}
.dark .ld-bento-card--push.is-root-tree-fs {
    background: #09090b;
}
.ld-bento-card--push.is-root-tree-fs .ld-push-inner {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}
.ld-bento-card--push.is-root-tree-fs .ld-push-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ld-bento-card--push.is-root-tree-fs .ld-root-tree-host {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0.5rem 0.75rem 1rem;
}
.ld-bento-card--push.is-root-tree-fs .ld-root-tree-level--l1 {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}
@media (max-width: 640px) {
    .ld-root-tree-level--l1 {
        grid-template-columns: 1fr;
    }
    .ld-root-tree-level:not(.ld-root-tree-level--l1) {
        margin-left: 0.35rem;
        padding-left: 0.55rem;
    }
}

/* ── 词根中心 rootcenter ── */
.ld-roots-sheet {
    z-index: 7;
}
.ld-roots-sheet-scroll {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ld-roots-sheet-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: none;
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
.ld-roots-sheet .rc-sub {
    margin: 0;
    flex: 0 0 auto;
}
.ld-roots-sheet .rc-search {
    margin-top: 0;
    max-width: none;
    flex: 0 0 auto;
}
.ld-roots-sheet .rc-card {
    flex: 0 0 auto;
}
.ld-roots-sheet .rc-card--list {
    flex: 1 1 auto;
    min-height: 12rem;
}
.ld-roots-sheet .rc-card-grid {
    overflow: auto;
}
.rc-lookup {
    z-index: 8;
}
.rc-page.ld-page {
    box-sizing: border-box;
    height: calc(100dvh - var(--topnav-height, 3.5rem));
    max-height: calc(100dvh - var(--topnav-height, 3.5rem));
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.75rem;
}
.rc-page .rc-inner {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 0;
}
.rc-head {
    flex: 0 0 auto;
    margin-bottom: 0;
}
.rc-head-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.rc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--ld-muted, #71717a);
    text-decoration: none;
    font-size: 0.875rem;
}
.rc-back:hover { color: #111; }
.dark .rc-back:hover { color: #fafafa; }
.rc-title {
    flex: 1;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.rc-start-btn {
    border: 0;
    border-radius: 999px;
    background: #0071e3;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
}
.rc-start-btn:hover { opacity: 0.92; }
.rc-sub {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
}
.rc-search {
    margin-top: 0.75rem;
    max-width: 28rem;
}
.rc-search-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ld-muted, #71717a);
    margin-bottom: 0.35rem;
}
.rc-search-row {
    display: flex;
    gap: 0.45rem;
}
.rc-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 0.65rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    background: #fff;
}
.dark .rc-search-input {
    background: #18181b;
    border-color: #3f3f46;
    color: #fafafa;
}
.rc-search-btn {
    border: 0;
    border-radius: 0.65rem;
    background: #0071e3;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.rc-search-hits {
    margin-top: 0.4rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    max-height: 16rem;
    overflow-y: auto;
}
.dark .rc-search-hits {
    background: #18181b;
    border-color: #3f3f46;
}
.rc-search-hit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: transparent;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.dark .rc-search-hit {
    border-bottom-color: #27272a;
}
.rc-search-hit:hover { background: rgba(0, 113, 227, 0.06); }
.rc-search-hit-word { font-weight: 700; }
.rc-search-hit-mean {
    font-size: 0.75rem;
    color: var(--ld-muted, #71717a);
    line-height: 1.35;
}
.rc-search-empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--ld-muted, #71717a);
}
.rc-lookup {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.rc-lookup[hidden] { display: none !important; }
.rc-lookup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.rc-lookup-panel {
    position: relative;
    width: min(34rem, 100%);
    max-height: min(88vh, 40rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}
.dark .rc-lookup-panel { background: #18181b; }
.rc-lookup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dark .rc-lookup-head { border-bottom-color: #27272a; }
.rc-lookup-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.rc-lookup-x {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0.15rem 0.35rem;
}
.rc-lookup-body {
    overflow: auto;
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
}
.rc-lookup-lemma {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.rc-lookup-meaning,
.rc-lookup-rootmeta,
.rc-lookup-story,
.rc-lookup-note {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ld-muted, #52525b);
}
.rc-lookup-h {
    margin: 0.85rem 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
}
.dark .rc-lookup-h { color: #fafafa; }
.rc-lookup-parts {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.35rem;
}
.rc-lookup-formula {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-word;
    color: inherit;
}
.rc-lookup-formula .rc-form {
    font-weight: 700;
}
.rc-lookup-defs {
    margin: 0.45rem 0 0.25rem;
}
.rc-def-group { margin: 0 0 0.55rem; }
.rc-def-pos-line {
    margin: 0 0 0.2rem;
    font-size: 0.8125rem;
}
.rc-def-pos { font-weight: 600; color: #111; }
.dark .rc-def-pos { color: #fafafa; }
.rc-def-item {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.rc-def-num {
    color: var(--ld-muted, #71717a);
    font-weight: 600;
}
.rc-def-text { font-weight: 600; }
.rc-lookup-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(0,0,0,0.04);
    min-width: 3rem;
}
.dark .rc-lookup-chip { background: rgba(255,255,255,0.06); }
.rc-lookup-chip--prefix { background: rgba(59, 130, 246, 0.1); }
.rc-lookup-chip--root { background: rgba(0, 113, 227, 0.12); }
.rc-lookup-chip--suffix { background: rgba(34, 197, 94, 0.1); }
.rc-lookup-part {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.55rem;
    background: rgba(0,0,0,0.03);
}
.dark .rc-lookup-part { background: rgba(255,255,255,0.05); }
.rc-lookup-form {
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875rem;
}
.rc-lookup-role {
    font-size: 0.7rem;
    color: var(--ld-muted, #71717a);
}
.rc-lookup-gloss { font-size: 0.625rem; color: var(--ld-muted, #71717a); text-align: center; }
.rc-lookup-plus,
.rc-lookup-eq {
    align-self: center;
    color: var(--ld-muted, #71717a);
    font-weight: 600;
}
.rc-lookup-story-inline {
    align-self: center;
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 100%;
}
.rc-lookup-story {
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    background: #fff7ef;
    border: 1px solid #f0d7bd;
    color: inherit;
}
.dark .rc-lookup-story {
    background: rgba(245, 158, 11, 0.1);
    border-color: #78350f;
}
.rc-lookup-foot {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.dark .rc-lookup-foot { border-top-color: #27272a; }
.rc-lookup-open {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #0071e3;
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}
.rc-lib-name {
    font-weight: 700;
    color: #111;
    font-size: 0.875rem;
}
.dark .rc-lib-name {
    color: #fafafa;
}
.rc-lib-sep,
.rc-lib-words {
    font-weight: 400;
    color: var(--ld-muted, #71717a);
}
.rc-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0.85rem;
    padding: 0.65rem;
    margin-bottom: 0;
    flex: 0 0 auto;
}
.dark .rc-card {
    background: #111113;
    border-color: #27272a;
}
.rc-freq-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.rc-freq-tabs {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.2rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dark .rc-freq-tabs {
    background: rgba(255, 255, 255, 0.06);
}
.rc-freq-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 3.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fafafa;
    cursor: pointer;
    text-align: left;
}
.rc-freq-tab {
    flex: 1 1 0;
    min-width: 2.5rem;
    align-items: center;
    text-align: center;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    padding: 0.35rem 0.25rem;
}
.dark .rc-freq-chip {
    background: #18181b;
    border-color: #27272a;
    color: #e4e4e7;
}
.dark .rc-freq-tab {
    background: transparent;
    border-color: transparent;
}
.rc-freq-chip.is-active {
    border-color: #0071e3;
    background: rgba(0, 113, 227, 0.08);
}
.rc-freq-tab.is-active {
    border-color: transparent;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    color: #0071e3;
}
.dark .rc-freq-tab.is-active {
    background: #27272a;
    color: #60a5fa;
    box-shadow: none;
}
.rc-freq-chip.is-empty {
    opacity: 0.45;
}
.rc-freq-label {
    font-size: 0.6875rem;
    font-weight: 600;
}
.rc-freq-count {
    font-size: 0.625rem;
    color: var(--ld-muted, #71717a);
}
.rc-freq-tab .rc-freq-count {
    font-variant-numeric: tabular-nums;
}
.rc-card--list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.55rem;
    gap: 0.55rem;
}
.rc-card-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, max-content);
    align-content: start;
    gap: 0.45rem;
    overflow: hidden;
}
.rc-root-card {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    margin: 0;
    padding: 0.55rem 0.65rem 0.5rem;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.65rem;
    background: #fafafa;
    cursor: pointer;
    box-shadow: inset 2px 0 0 #a1a1aa;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-height: 0;
}
.dark .rc-root-card {
    background: #18181b;
    border-color: #27272a;
    color: #f4f4f5;
}
.rc-root-card:hover {
    background: rgba(0, 113, 227, 0.05);
    border-color: rgba(0, 113, 227, 0.25);
}
.rc-root-card--green { box-shadow: inset 2px 0 0 #22c55e; }
.rc-root-card--blue { box-shadow: inset 2px 0 0 #3b82f6; }
.rc-root-card--orange { box-shadow: inset 2px 0 0 #f59e0b; }
.rc-root-card--red { box-shadow: inset 2px 0 0 #ef4444; }
.rc-root-card--gray { box-shadow: inset 2px 0 0 #a1a1aa; }
.rc-root-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
}
.rc-root-name {
    font-weight: 650;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-root-gloss {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.25;
    color: var(--ld-muted, #71717a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-root-count {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 600;
    color: #0071e3;
    white-space: nowrap;
}
.rc-mastery {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.3rem;
    align-items: center;
    margin-top: 0.1rem;
}
.rc-mastery-text,
.rc-mastery-pct {
    font-size: 0.625rem;
    color: var(--ld-muted, #71717a);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.rc-mastery-bar {
    display: block;
    height: 0.25rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}
.dark .rc-mastery-bar { background: rgba(255,255,255,0.1); }
.rc-mastery-bar > span {
    display: block;
    height: 100%;
    background: #0071e3;
    border-radius: inherit;
}
.rc-pager {
    flex: 0 0 auto;
    margin-top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
    justify-content: space-between;
}
.rc-pager-meta {
    font-size: 0.6875rem;
    color: var(--ld-muted, #71717a);
}
.rc-pager-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
    align-items: center;
}
.rc-pager-btn {
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.45rem;
    background: #fff;
    color: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}
.dark .rc-pager-btn {
    background: #18181b;
    border-color: #27272a;
}
.rc-pager-btn:hover:not(:disabled) {
    border-color: #0071e3;
    color: #0071e3;
}
.rc-pager-btn.is-active {
    background: #0071e3;
    border-color: #0071e3;
    color: #fff;
}
.rc-pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.rc-pager-ellipsis {
    color: var(--ld-muted, #71717a);
    font-size: 0.75rem;
    padding: 0 0.1rem;
}
.rc-empty {
    margin: 0;
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--ld-muted, #71717a);
    font-size: 0.8125rem;
    grid-column: 1 / -1;
}
@media (max-width: 1200px) {
    .rc-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .rc-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .rc-page.ld-page {
        height: auto;
        max-height: none;
        overflow: visible;
        min-height: calc(100dvh - var(--topnav-height, 3.5rem));
    }
    .rc-page .rc-inner,
    .rc-card--list,
    .rc-card-grid {
        overflow: visible;
        flex: none;
        min-height: 0;
    }
    .rc-card-grid {
        grid-template-columns: 1fr;
    }
    .rc-pager {
        flex-direction: column;
        align-items: stretch;
    }
    .rc-pager-btns {
        justify-content: center;
    }
}
