:root {
    --ls-bg: #F5EFE0;
    --ls-surface: #FFFFFF;
    --ls-border: #E4D9BE;

    --ls-navy: #1B2A4A;
    --ls-navy-hover: #14203A;
    --ls-gold: #C9A227;
    --ls-gold-light: #F5E9C6;

    --ls-text: #2B2620;
    --ls-text-secondary: #6B6357;

    --ls-success: #2E7D4F;
    --ls-danger: #B3402C;

    --ls-radius: 12px;
    --ls-shadow: 0 2px 8px rgba(27, 42, 74, 0.08);

    --ls-font-display: 'Playfair Display', serif;
    --ls-font-body: 'Inter', sans-serif;
}

body {
    background: var(--ls-bg);
    color: var(--ls-text);
    font-family: var(--ls-font-body);
    padding-bottom: 76px;
}

.font-display { font-family: var(--ls-font-display); }

a { color: var(--ls-navy); }

/* Header */
.ls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--ls-navy);
    color: #fff;
}

.ls-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ls-gold);
}

.ls-signout {
    color: #fff;
    opacity: 0.85;
    font-size: 0.875rem;
    text-decoration: none;
}

/* Layout */
.ls-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px;
}

.ls-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ls-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--ls-text-secondary);
}

.ls-empty {
    color: var(--ls-text-secondary);
    padding: 24px 0;
}

/* Bottom nav */
.ls-nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--ls-surface);
    border-top: 1px solid var(--ls-border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    display: flex;
    z-index: 100;
}

.ls-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--ls-text-secondary);
    font-size: 0.75rem;
    min-height: 48px;
}

.ls-nav-tab i { font-size: 1.1rem; }

.ls-nav-tab.active {
    color: var(--ls-navy);
    font-weight: 600;
}

/* Video list / cards */
.ls-video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-video-card {
    display: block;
    background: var(--ls-surface);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    box-shadow: var(--ls-shadow);
    padding: 14px 16px;
    text-decoration: none;
    color: var(--ls-text);
    min-height: 48px;
}

.ls-video-card-due {
    border-left: 4px solid var(--ls-gold);
}

.ls-video-card-done {
    opacity: 0.7;
}

.ls-video-card-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.ls-video-card-meta {
    font-size: 0.875rem;
    color: var(--ls-text-secondary);
}

.ls-video-card-action {
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ls-navy);
}

.ls-back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ls-text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    min-height: 48px;
    line-height: 48px;
}

/* Video embed */
.ls-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--ls-radius);
    overflow: hidden;
    margin: 12px 0;
    background: #000;
}

.ls-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Notes */
.ls-notes {
    background: var(--ls-surface);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    padding: 12px 16px;
    margin: 12px 0;
}

.ls-notes summary {
    font-weight: 600;
    cursor: pointer;
    min-height: 24px;
}

.ls-notes-body {
    margin-top: 10px;
    line-height: 1.6;
}

/* Action card */
.ls-action-card {
    margin: 16px 0;
}

.ls-btn-primary {
    display: block;
    width: 100%;
    min-height: 52px;
    background: var(--ls-navy);
    color: #fff;
    border: none;
    border-radius: var(--ls-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 52px;
    text-decoration: none;
    cursor: pointer;
}

.ls-btn-primary:hover { background: var(--ls-navy-hover); color: #fff; }

/* Prof assign cell */
.ls-assign-cell { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.ls-assign-cell form { margin: 0; }
.ls-btn-small {
    background: var(--ls-surface);
    color: var(--ls-navy);
    border: 1px solid var(--ls-navy);
    border-radius: var(--ls-radius);
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.ls-btn-small:hover { background: var(--ls-navy); color: #fff; }

.ls-due-note {
    color: var(--ls-text-secondary);
    padding: 12px 0;
}

/* Table */
.ls-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ls-surface);
    border-radius: var(--ls-radius);
    overflow: hidden;
    box-shadow: var(--ls-shadow);
}

.ls-table th, .ls-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--ls-border);
    font-size: 0.9rem;
}

.ls-table th {
    background: var(--ls-gold-light);
    font-weight: 600;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--ls-surface);
    border-radius: var(--ls-radius);
    box-shadow: var(--ls-shadow);
    padding: 32px 24px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-subtitle {
    color: var(--ls-text-secondary);
    margin-top: 6px;
}

.login-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px 14px;
    background: var(--ls-bg);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    cursor: pointer;
}

.login-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ls-navy);
    color: var(--ls-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.login-user-name {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.login-user-arrow { color: var(--ls-text-secondary); }

/* Quiz */
.ls-quiz-progress {
    color: var(--ls-text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.ls-quiz-question {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.ls-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-quiz-option {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    background: var(--ls-surface);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.ls-quiz-option-answered { cursor: default; }

.ls-quiz-option-correct {
    border-color: var(--ls-success);
    background: #E6F4EA;
}

.ls-quiz-option-wrong {
    border-color: var(--ls-danger);
    background: #FBEAE6;
}

.ls-quiz-explanation {
    margin: 20px 0;
    padding: 14px 16px;
    background: var(--ls-gold-light);
    border-radius: var(--ls-radius);
}

/* Result */
.ls-result-score {
    text-align: center;
    padding: 24px 0;
}

.ls-result-pct {
    font-family: var(--ls-font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ls-navy);
}

.ls-result-fraction {
    color: var(--ls-text-secondary);
}
