.stnld-student-tools {
    --stnld-student-ink: #172033;
    --stnld-student-muted: #5f6b7c;
    --stnld-student-border: #d8e1ec;
    --stnld-student-surface: #ffffff;
    --stnld-student-accent: #1f7a8c;
    --stnld-student-accent-dark: #155c6a;
    color: var(--stnld-student-ink);
    margin: 0 auto;
    max-width: 1080px;
}

.stnld-student-hero,
.stnld-student-login,
.stnld-student-empty,
.stnld-recent-lessons,
.stnld-flashcard-list {
    background: var(--stnld-student-surface);
    border: 1px solid var(--stnld-student-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
    margin: 0 0 18px;
    padding: 22px;
}

.stnld-student-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef8f7 100%);
}

.stnld-student-kicker {
    color: var(--stnld-student-accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.stnld-student-hero h2,
.stnld-student-empty h3,
.stnld-list-heading h3,
.stnld-student-tool-card h3 {
    margin: 0 0 8px;
}

.stnld-student-hero p:last-child,
.stnld-student-empty p:last-child,
.stnld-student-tool-card p:last-child {
    margin-bottom: 0;
}

.stnld-student-tool-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 18px;
}

.stnld-student-tool-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--stnld-student-border);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    padding: 18px;
}

.stnld-tool-icon {
    align-items: center;
    background: #e6f4f1;
    border-radius: 8px;
    color: var(--stnld-student-accent-dark);
    display: inline-flex;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.stnld-student-button,
.stnld-remove-flashcard,
.stnld-remove-lesson {
    background: var(--stnld-student-accent);
    border: 1px solid var(--stnld-student-accent);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    padding: 10px 14px;
    text-decoration: none;
}

.stnld-student-button:hover,
.stnld-remove-flashcard:hover,
.stnld-remove-lesson:hover {
    background: var(--stnld-student-accent-dark);
    border-color: var(--stnld-student-accent-dark);
    color: #fff;
}

.stnld-remove-flashcard,
.stnld-remove-lesson {
    background: #fff;
    border-color: #b42318;
    color: #b42318;
}

.stnld-remove-flashcard:hover,
.stnld-remove-lesson:hover {
    background: #b42318;
    border-color: #b42318;
}

.stnld-remove-flashcard:disabled,
.stnld-remove-lesson:disabled {
    cursor: wait;
    opacity: 0.65;
}

.stnld-flashcard-game {
    margin-bottom: 20px;
}

.stnld-list-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stnld-count-badge {
    background: #edf5ff;
    border: 1px solid #c8def8;
    border-radius: 999px;
    color: #1d4f91;
    font-weight: 700;
    padding: 6px 10px;
}

.stnld-word-list {
    display: grid;
    gap: 10px;
}

.stnld-student-muted {
    color: var(--stnld-student-muted);
    margin: 0;
}

.stnld-lesson-list {
    display: grid;
    gap: 10px;
}

.stnld-lesson-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 12px;
}

.stnld-lesson-main {
    display: grid;
    gap: 8px;
}

.stnld-lesson-main a {
    color: var(--stnld-student-ink);
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.stnld-lesson-main a:hover {
    color: var(--stnld-student-accent-dark);
    text-decoration: underline;
}

.stnld-lesson-progress-track {
    background: #e5edf5;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.stnld-lesson-progress-track span {
    background: linear-gradient(90deg, #1f7a8c, #236736);
    display: block;
    height: 100%;
}

.stnld-lesson-percent {
    color: var(--stnld-student-muted);
    font-weight: 800;
    min-width: 44px;
    text-align: right;
}

.stnld-word-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px;
}

.stnld-word-main {
    display: grid;
    gap: 4px;
}

.stnld-word-main span {
    color: var(--stnld-student-muted);
}

.stnld-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.stnld-pagination a {
    background: #fff;
    border: 1px solid var(--stnld-student-border);
    border-radius: 6px;
    color: var(--stnld-student-ink);
    min-width: 36px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
}

.stnld-pagination a.is-current {
    background: var(--stnld-student-accent);
    border-color: var(--stnld-student-accent);
    color: #fff;
}

@media (max-width: 680px) {
    .stnld-student-tool-card,
    .stnld-word-row,
    .stnld-lesson-row,
    .stnld-list-heading {
        align-items: stretch;
        display: grid;
    }

    .stnld-lesson-percent {
        text-align: left;
    }
}
