.ll-page {
    background: #f6f8fb;
    color: #111827;
    padding-top: 94px;
}

.ll-hero {
    min-height: 92vh;
    padding: 150px 0 86px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.22), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.13), transparent 24%),
        linear-gradient(135deg, #0b1220 0%, #12322f 52%, #172554 100%);
}

.ll-hero-grid,
.ll-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: 38px;
    align-items: center;
}

.ll-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 850;
}

.ll-hero .ll-kicker {
    color: #ccfbf1;
    border: 1px solid rgba(204, 251, 241, 0.22);
}

.ll-hero h1,
.ll-section-head h2,
.ll-two-col h2 {
    margin: 0 0 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.ll-hero h1 {
    max-width: 780px;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: 1.02;
}

.ll-hero p,
.ll-two-col p,
.ll-section-head p {
    color: #64748b;
    line-height: 1.75;
    font-size: 1.02rem;
}

.ll-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.76);
}

.ll-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ll-console,
.ll-form,
.ll-study-card,
.ll-stat,
.ll-empty {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.ll-console {
    padding: 22px;
    border-radius: 28px;
    color: #111827;
}

.ll-console-top {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ll-console-top span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ll-prompt {
    padding: 18px;
    border-radius: 18px;
    background: #ecfeff;
    border: 1px solid #cffafe;
}

.ll-prompt small,
.ll-stat span {
    display: block;
    color: #64748b;
    font-weight: 750;
    margin-bottom: 6px;
}

.ll-prompt strong {
    font-size: 1.1rem;
}

.ll-suggestion-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.ll-suggestion-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.ll-suggestion-list span,
.ll-console-note,
.ll-card-meta,
.ll-note {
    color: #64748b;
}

.ll-console-note {
    padding: 14px;
    border-radius: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 0.92rem;
    line-height: 1.6;
}

.ll-section {
    padding: 54px 0;
}

.ll-section-first {
    padding-top: 28px;
    padding-bottom: 22px;
}

.ll-section-white {
    background: #ffffff;
}

.ll-section-code {
    padding-top: 0;
}

.ll-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ll-stat {
    padding: 18px 20px;
    border-radius: 16px;
}

.ll-stat strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
}

.ll-transfer-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.ll-transfer-code span {
    display: block;
    margin-bottom: 4px;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
}

.ll-transfer-code strong {
    color: #475569;
    font-size: 0.95rem;
}

.ll-form {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
}

.ll-action-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: center;
    padding: 26px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.ll-action-panel h2 {
    margin: 0 0 12px;
    font-weight: 900;
}

.ll-action-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.ll-action-codes {
    display: grid;
    gap: 12px;
}

.ll-action-codes label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 850;
}

.ll-action-mini {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.ll-action-mini strong {
    color: #334155;
}

.ll-form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 800;
}

.ll-form label em {
    color: #dc2626;
    font-style: normal;
    font-size: 0.86rem;
}

.ll-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px minmax(190px, 0.8fr);
    gap: 12px;
}

.ll-field {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 14px;
    padding: 12px 13px;
    color: #111827;
    background: #ffffff;
    font: inherit;
    font-weight: 600;
    outline: none;
}

.ll-field:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.ll-category-grid {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.ll-category-card {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.ll-category-card strong {
    font-size: 1rem;
}

.ll-category-card span,
.ll-category-card em {
    color: #64748b;
    font-style: normal;
}

.ll-section-head {
    max-width: 760px;
    margin-bottom: 32px;
}

.ll-section-head.compact {
    margin-bottom: 22px;
}

.ll-section-head.compact h1,
.ll-section-head.compact h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
}

.ll-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ll-flash-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.ll-flash-index {
    display: grid;
    align-content: start;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.ll-filter-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ll-filter-accordion .ll-filter-panel {
    margin: 0;
    padding: 0 10px 12px;
    border-bottom: 0;
}

.ll-filter-panel label {
    display: grid;
    gap: 5px;
}

.ll-filter-panel label span {
    color: #475569;
    font-size: 0.76rem;
    font-weight: 850;
}

.ll-filter-row {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 8px;
}

.ll-filter-clear {
    width: 100%;
    border: 1px solid rgba(20, 184, 166, 0.32);
    border-radius: 12px;
    padding: 10px 12px;
    background: #ecfeff;
    color: #0f766e;
    font-weight: 900;
}

.ll-filter-accordion {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: #ffffff;
}

.ll-filter-accordion summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #111827;
    font-weight: 900;
}

.ll-filter-options {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}

.ll-filter-options button,
.ll-flash-index > button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    text-align: left;
}

.ll-filter-options button.active,
.ll-flash-index > button.active {
    border-color: rgba(20, 184, 166, 0.48);
    background: #ecfeff;
}

.ll-filter-options button span,
.ll-flash-index > button span {
    grid-column: 1;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 850;
    text-transform: none;
}

.ll-filter-options button strong,
.ll-flash-index > button strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
}

.ll-filter-options button em,
.ll-flash-index > button em {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 750;
}

.ll-flash-stage {
    display: grid;
    gap: 16px;
}

.ll-flash-card {
    display: none;
    position: relative;
    min-height: 400px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    perspective: 1400px;
}

.ll-flash-card.active {
    display: block;
}

.ll-flash-face {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: 400px;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        radial-gradient(circle at 18% 14%, rgba(20, 184, 166, 0.18), transparent 26%),
        #ffffff;
    box-shadow: 0 26px 75px rgba(15, 23, 42, 0.12);
    backface-visibility: hidden;
    transition: transform 0.48s ease;
    overflow: auto;
    text-align: center;
}

.ll-flash-back {
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at 80% 16%, rgba(250, 204, 21, 0.18), transparent 26%),
        #f8fafc;
}

.ll-flash-card.flipped .ll-flash-front {
    transform: rotateY(180deg);
}

.ll-flash-card.flipped .ll-flash-back {
    transform: rotateY(360deg);
}

.ll-flash-face small,
.ll-flash-face b {
    color: #64748b;
    font-weight: 850;
}

.ll-flash-face strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 2rem;
    line-height: 1.18;
    font-weight: 950;
}

.ll-flash-front strong {
    font-size: 2.45rem;
}

.ll-flash-card[data-category="word"] .ll-flash-front strong {
    font-size: 3.5rem;
    line-height: 1.08;
}

.ll-flash-card[data-category="sentence"] .ll-flash-front strong,
.ll-flash-card[data-category="grammar"] .ll-flash-front strong,
.ll-flash-card[data-category="common_mistake"] .ll-flash-front strong,
.ll-flash-card[data-category="culture_note"] .ll-flash-front strong {
    font-size: 2rem;
}

.ll-flash-face span {
    max-width: 100%;
    color: #334155;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    line-height: 1.55;
}

.ll-flash-face em {
    max-width: 100%;
    color: #0f766e;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
    font-style: normal;
    font-weight: 850;
}

.ll-related-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ll-related-list small {
    flex-basis: 100%;
}

.ll-related-chip {
    max-width: 220px;
    border: 1px solid rgba(20, 184, 166, 0.32);
    border-radius: 999px;
    padding: 8px 11px;
    overflow: hidden;
    background: #ecfeff;
    color: #0f766e;
    font-size: 0.9rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ll-related-chip.muted {
    opacity: 0.55;
}

.ll-flash-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ll-card-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ll-card-nav button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

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

.ll-status-form button {
    min-height: 42px;
    border: 0;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
}

.ll-status-form button[value="new"] {
    background: #64748b;
}

.ll-status-form button[value="studying"] {
    background: #d97706;
}

.ll-status-form button[value="learned"] {
    background: #16a34a;
}

.ll-status-form button:disabled {
    opacity: 0.45;
}

.ll-card-nav span {
    min-width: 84px;
    text-align: center;
    color: #475569;
    font-weight: 850;
}

.ll-study-card {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    padding: 22px;
    border-radius: 22px;
}

.ll-card-grid.compact {
    grid-template-columns: repeat(3, 1fr);
}

.ll-card-grid.compact .ll-study-card {
    min-height: 240px;
}

.ll-study-card.muted {
    box-shadow: none;
    background: #f8fafc;
}

.ll-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ll-study-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 900;
}

.ll-meaning {
    color: #0f766e;
    font-weight: 850;
}

.ll-study-card blockquote {
    margin: 6px 0 10px;
    padding-left: 14px;
    border-left: 3px solid #14b8a6;
    color: #334155;
    line-height: 1.65;
}

.ll-translation,
.ll-note {
    line-height: 1.6;
}

.ll-topic {
    width: fit-content;
    margin-top: auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.82rem;
    font-weight: 850;
}

.ll-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ll-card-actions button {
    border: 0;
    border-radius: 999px;
    padding: 8px 11px;
    background: #ecfeff;
    color: #0f766e;
    font-weight: 850;
}

.ll-card-actions button.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.ll-empty {
    padding: 34px;
    border-radius: 22px;
}

.ll-related-modal[hidden] {
    display: none;
}

.ll-related-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.ll-related-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(82vh, 720px);
    overflow: auto;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.3);
}

.ll-related-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1;
}

.ll-related-dialog small {
    color: #64748b;
    font-weight: 850;
}

.ll-related-dialog h3 {
    margin: 12px 0;
    font-size: 2rem;
    font-weight: 950;
}

.ll-related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ll-related-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ll-related-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.82rem;
    font-weight: 850;
}

@media (max-width: 991px) {
    .ll-hero-grid,
    .ll-two-col,
    .ll-action-panel,
    .ll-flash-layout,
    .ll-card-grid {
        grid-template-columns: 1fr;
    }

    .ll-flash-index {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .ll-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ll-page {
        padding-top: 82px;
    }

    .ll-hero {
        padding-top: 126px;
    }

    .ll-section {
        padding: 34px 0;
    }

    .ll-section-first {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .ll-section-head.compact {
        margin-bottom: 16px;
    }

    .ll-section-head.compact h1,
    .ll-section-head.compact h2 {
        font-size: 1.55rem;
    }

    .ll-hero-actions,
    .ll-form-row,
    .ll-stat-row,
    .ll-transfer-code {
        grid-template-columns: 1fr;
    }

    .ll-hero-actions .btn {
        width: 100%;
    }

    .ll-form-row {
        display: grid;
    }

    .ll-flash-index {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 10px;
        border-radius: 16px;
    }

    .ll-filter-accordion {
        border-radius: 12px;
    }

    .ll-filter-accordion summary {
        padding: 10px 11px;
        font-size: 0.9rem;
    }

    .ll-filter-accordion .ll-filter-panel {
        padding: 0 8px 10px;
    }

    .ll-filter-panel {
        gap: 8px;
    }

    .ll-filter-panel label span {
        font-size: 0.7rem;
    }

    .ll-filter-row {
        grid-template-columns: 1fr;
    }

    .ll-field {
        min-height: 40px;
        border-radius: 11px;
        padding: 9px 10px;
        font-size: 0.9rem;
    }

    .ll-filter-options {
        gap: 6px;
        padding: 0 8px 8px;
    }

    .ll-filter-options button,
    .ll-flash-index > button {
        padding: 9px 10px;
        border-radius: 10px;
    }

    .ll-filter-options button span,
    .ll-flash-index > button span {
        font-size: 0.82rem;
    }

    .ll-filter-options button strong,
    .ll-flash-index > button strong {
        font-size: 0.9rem;
    }

    .ll-filter-options button em,
    .ll-flash-index > button em {
        font-size: 0.7rem;
    }

    .ll-filter-clear {
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 0.86rem;
    }

    .ll-flash-card,
    .ll-flash-face {
        min-height: 360px;
    }

    .ll-flash-face {
        gap: 12px;
        padding: 22px;
        border-radius: 20px;
    }

    .ll-flash-front strong,
    .ll-flash-card[data-category="word"] .ll-flash-front strong,
    .ll-flash-card[data-category="sentence"] .ll-flash-front strong,
    .ll-flash-card[data-category="grammar"] .ll-flash-front strong,
    .ll-flash-card[data-category="common_mistake"] .ll-flash-front strong,
    .ll-flash-card[data-category="culture_note"] .ll-flash-front strong {
        font-size: 1.85rem;
    }

    .ll-flash-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .ll-status-form {
        justify-content: center;
    }

    .ll-status-form button {
        min-height: 38px;
        padding: 0 11px;
        font-size: 0.84rem;
    }
}
