:root {
    --bg: #f4f7fb;
    --card: #fff;
    --line: #d9e2ef;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #1d4ed8;
    --secondary: #334155;
    --success: #0f7a36;
    --warn: #a86400
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text)
}

a {
    color: var(--primary);
    text-decoration: none
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px
}

.narrow {
    max-width: 720px
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    background: #0f172a;
    color: #fff
}

.topbar h1 {
    margin: 0
}

.topbar .muted {
    color: #cbd5e1
}

.topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05)
}

.mini-card {
    padding: 16px
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer
}

.btn-primary {
    background: var(--primary);
    color: #fff
}

.btn-secondary {
    background: var(--secondary);
    color: #fff
}

.btn-small {
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer
}

.stack {
    display: grid;
    gap: 12px
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff
}

textarea {
    min-height: 90px
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.muted {
    color: var(--muted)
}

.success {
    color: var(--success);
    font-weight: 700
}

.warning {
    color: var(--warn);
    font-weight: 700
}

.list-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

.module-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff
}

.videos-wrapper {
    display: grid;
    gap: 16px;
    margin-top: 12px
}

.video-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px
}

.video-item video {
    border-radius: 10px;
    background: #000
}

.materials-box {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px
}

.quiz-question {
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px
}

.quiz-question label {
    display: block;
    margin: 6px 0
}

.cert-card {
    text-align: center
}

.module-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.badge {
    display: inline-block;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

.module-section {
    margin-top: 18px;
}

.material-item {
    margin-bottom: 8px;
}

.quiz-box {
    background: #f7f8fb;
    border-radius: 10px;
    padding: 14px;
}

.quiz-option {
    display: block;
    margin: 8px 0;
}