/* Learning workspace: coursework, gradebook, projects, discussions, insights. Builds on bootcamps.css (.bc tokens). */

.ws { --ws-heat: #22A06B; --ws-heat-low: #E5484D; }
body.dark-mode .ws { --ws-heat: #4ADE80; }

.ws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ws-head h1 { font-size: 24px; font-weight: 800; color: var(--bc-text); margin: 0; }
.ws-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--bc-muted); max-width: 720px; }
.ws-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bc-muted); }
.ws-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside, 340px); gap: 18px; align-items: start; }
.ws-stack > * + * { margin-top: 18px; }
.ws-field { margin-bottom: 14px; }
.ws-field label, .ws-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--bc-text); margin-bottom: 6px; }
.ws-field small { display: block; font-size: 11.5px; color: var(--bc-muted); margin-top: 4px; }
.ws .form-control, .ws select.form-control { border-radius: 12px; border-color: var(--bc-line); background: var(--bc-card); color: var(--bc-text); font-size: 13.5px; }
.ws textarea.form-control { min-height: 120px; }
.ws-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ws-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ws-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--bc-line); border-radius: 12px; font-size: 13px; cursor: pointer; color: var(--bc-text); }
.ws-check input { accent-color: #7A8F00; }
.ws-check:has(input:checked) { border-color: #A8C400; background: color-mix(in srgb, var(--bc-lime) 22%, transparent); }
.ws-prose { font-size: 14px; line-height: 1.65; color: var(--bc-text); overflow-wrap: anywhere; }
.ws-prose code { padding: 1px 6px; border-radius: 6px; background: var(--bc-soft); font-size: 12.5px; }
.ws-prose blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--bc-line); color: var(--bc-muted); }
.ws-prose a { color: var(--bc-blue); }
.ws-sep { height: 1px; background: var(--bc-line); margin: 16px 0; }
.ws-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.ws-kv dt { color: var(--bc-muted); font-weight: 600; }
.ws-kv dd { margin: 0; color: var(--bc-text); }
.ws-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: var(--bc-soft); color: var(--bc-muted); }
.ws-avatar { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; flex: 0 0 28px; }
.ws-avatars { display: flex; }
.ws-avatars img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bc-card); margin-left: -8px; object-fit: cover; }
.ws-avatars img:first-child { margin-left: 0; }

/* ---------- coursework list + window timeline */
.cw-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--bc-line); }
.cw-item:first-child { border-top: 0; }
.cw-item__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bc-soft); color: var(--bc-text); }
.cw-item__icon--late { background: color-mix(in srgb, var(--bc-amber) 18%, transparent); color: var(--bc-amber); }
.cw-item__icon--closed { background: color-mix(in srgb, var(--bc-red) 14%, transparent); color: var(--bc-red); }
.cw-item__icon--done { background: color-mix(in srgb, var(--bc-green) 15%, transparent); color: var(--bc-green); }
.cw-item__title { font-size: 14.5px; font-weight: 700; color: var(--bc-text); }
.cw-item__title:hover { color: var(--bc-text); text-decoration: underline; }
.cw-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; color: var(--bc-muted); }
.cw-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.cw-score { text-align: right; }
.cw-score strong { display: block; font-size: 18px; color: var(--bc-text); line-height: 1.1; }
.cw-score small { font-size: 11.5px; color: var(--bc-muted); }

.cw-window { position: relative; margin: 6px 0 2px; }
.cw-window__track { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bc-soft); }
.cw-window__open { background: color-mix(in srgb, var(--bc-green) 55%, transparent); }
.cw-window__late { background: color-mix(in srgb, var(--bc-amber) 60%, transparent); }
.cw-window__now { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--bc-text); border-radius: 2px; }
.cw-window__labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--bc-muted); }
.cw-window__labels b { display: block; color: var(--bc-text); font-size: 12px; }
.cw-countdown { font-variant-numeric: tabular-nums; }

.cw-rubric { width: 100%; font-size: 13px; }
.cw-rubric td { padding: 8px 6px; border-bottom: 1px solid var(--bc-line); vertical-align: top; }
.cw-rubric input { width: 80px; }
.cw-files { display: flex; flex-direction: column; gap: 6px; }
.cw-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--bc-line); border-radius: 12px; font-size: 13px; }
.cw-file a { color: var(--bc-text); font-weight: 600; }
.cw-roster a.is-active td { background: color-mix(in srgb, var(--bc-lime) 18%, transparent) !important; }
.cw-roster tr.is-active td { background: color-mix(in srgb, var(--bc-lime) 18%, transparent); }

/* ---------- gradebook */
.gb-wrap { overflow: auto; max-height: 70vh; border-top: 1px solid var(--bc-line); }
.gb { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.gb th, .gb td { padding: 8px 10px; border-bottom: 1px solid var(--bc-line); border-right: 1px solid var(--bc-line); white-space: nowrap; text-align: center; background: var(--bc-card); color: var(--bc-text); }
.gb thead th { position: sticky; top: 0; z-index: 2; font-size: 11px; font-weight: 700; color: var(--bc-muted); vertical-align: bottom; }
.gb thead th.gb-col { max-width: 120px; white-space: normal; line-height: 1.25; }
.gb thead th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; }
.gb th:first-child, .gb td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 200px; }
.gb thead th:first-child { z-index: 3; }
.gb .gb-cat { background: color-mix(in srgb, var(--bc-soft) 70%, var(--bc-card)); font-weight: 700; }
.gb .gb-final { font-weight: 800; }
.gb-cell { display: inline-block; min-width: 46px; padding: 3px 6px; border-radius: 8px; font-weight: 700; }
.gb-cell--a { background: color-mix(in srgb, var(--bc-green) 22%, transparent); color: var(--bc-green); }
.gb-cell--b { background: color-mix(in srgb, var(--bc-lime) 35%, transparent); color: #5B6B00; }
body.dark-mode .gb-cell--b { color: var(--bc-lime); }
.gb-cell--c { background: color-mix(in srgb, var(--bc-amber) 20%, transparent); color: var(--bc-amber); }
.gb-cell--f, .gb-cell--missing { background: color-mix(in srgb, var(--bc-red) 16%, transparent); color: var(--bc-red); }
.gb-cell--pending { background: color-mix(in srgb, var(--bc-blue) 14%, transparent); color: var(--bc-blue); }
.gb-cell--excused { background: var(--bc-soft); color: var(--bc-muted); }
.gb-late { color: var(--bc-amber); font-size: 10px; margin-left: 2px; }
.gb tfoot td { font-weight: 700; color: var(--bc-muted); background: color-mix(in srgb, var(--bc-soft) 70%, var(--bc-card)); }
.gb-dist { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.gb-dist div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; color: var(--bc-muted); height: 100%; }
.gb-dist span { width: 100%; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--bc-lime) 60%, var(--bc-green)); min-height: 3px; }

/* ---------- heatmaps */
.hm-wrap { overflow-x: auto; }
.hm { border-collapse: separate; border-spacing: 3px; font-size: 12px; min-width: 100%; }
.hm th { font-size: 10.5px; font-weight: 700; color: var(--bc-muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; white-space: nowrap; text-align: center; }
.hm th:first-child { text-align: left; }
.hm td.hm-name { padding: 4px 8px 4px 0; white-space: nowrap; min-width: 180px; }
.hm td.hm-name a { color: var(--bc-text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.hm td.hm-name img { width: 24px; height: 24px; border-radius: 8px; object-fit: cover; }
.hm-cell { position: relative; height: 34px; min-width: 64px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 12px; color: var(--bc-text);
    background: color-mix(in srgb, var(--ws-heat) calc(var(--v, 0) * 88%), var(--bc-soft)); }
.hm-cell[data-hot] { color: #fff; }
body.dark-mode .hm-cell[data-hot] { color: #08210F; }
.hm-cell--empty { background: repeating-linear-gradient(45deg, var(--bc-soft), var(--bc-soft) 4px, transparent 4px, transparent 8px); color: var(--bc-muted); font-weight: 500; }
.hm-cell--week { min-width: 30px; height: 26px; font-size: 10.5px; }
.hm-cell:hover { outline: 2px solid var(--bc-text); outline-offset: -2px; }
.hm-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 11px; font-weight: 800; background: var(--bc-soft); color: var(--bc-muted); margin-right: 4px; }
.hm-rank--1 { background: var(--bc-lime); color: var(--bc-ink); }
.hm-rank--2 { background: color-mix(in srgb, var(--bc-lime) 55%, var(--bc-soft)); color: var(--bc-ink); }
.hm-rank--3 { background: color-mix(in srgb, var(--bc-lime) 30%, var(--bc-soft)); color: var(--bc-ink); }
.hm-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--bc-muted); }
.hm-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--ws-heat) calc(var(--v) * 88%), var(--bc-soft)); }
.hm-overall { display: inline-block; min-width: 42px; padding: 3px 8px; border-radius: 8px; font-weight: 800; background: var(--bc-ink); color: var(--bc-lime); }
.ws-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ws-filters .form-control { min-width: 200px; height: 38px; }
.ws-todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ws-todo a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--bc-line); background: var(--bc-card); color: var(--bc-text); }
.ws-todo a:hover { text-decoration: none; border-color: #A8C400; }
.ws-todo strong { font-size: 22px; line-height: 1; }
.ws-todo small { display: block; font-size: 12px; color: var(--bc-muted); }
.ws-todo .is-zero { opacity: .55; }

/* ---------- projects */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pj-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; border: 1px solid var(--bc-line); background: var(--bc-card); min-width: 0; }
.pj-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pj-card__title { font-size: 15px; font-weight: 800; color: var(--bc-text); margin: 0; }
.pj-card__title a { color: inherit; }
.pj-card__sub { font-size: 13px; color: var(--bc-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pj-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--bc-line); font-size: 12px; color: var(--bc-muted); }
.pj-reasons { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--bc-text); }
.pj-reasons li { display: flex; gap: 6px; align-items: flex-start; }
.pj-reasons .lucide { color: var(--bc-green); margin-top: 2px; flex: 0 0 auto; }
.pj-match { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--bc-ink); color: var(--bc-lime); }
.pj-type--practice { background: color-mix(in srgb, var(--bc-blue) 14%, transparent); color: var(--bc-blue); }
.pj-type--group { background: color-mix(in srgb, var(--bc-violet) 16%, transparent); color: var(--bc-violet); }
.pj-type--request { background: color-mix(in srgb, var(--bc-amber) 16%, transparent); color: var(--bc-amber); }

.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kb-col { min-height: 220px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--bc-soft) 70%, transparent); border: 1px dashed transparent; transition: border-color .15s, background .15s; }
.kb-col.is-over { border-color: #A8C400; background: color-mix(in srgb, var(--bc-lime) 12%, transparent); }
.kb-col h4 { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-muted); margin: 0 0 10px; }
.kb-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--bc-card); border: 1px solid var(--bc-line); cursor: grab; font-size: 13px; color: var(--bc-text); }
.kb-card.is-dragging { opacity: .5; }
.kb-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--bc-muted); }
.kb-card__actions { display: flex; gap: 4px; }
.kb-card__actions button { border: 0; background: none; padding: 2px; color: var(--bc-muted); cursor: pointer; }
.kb-add { display: flex; gap: 6px; margin-top: 6px; }
.kb-add input { flex: 1; height: 34px; }

/* ---------- discussions */
.dz { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.dz-spaces { position: sticky; top: 90px; }
.dz-space { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--bc-text); font-size: 13px; font-weight: 600; }
.dz-space:hover { background: var(--bc-soft); color: var(--bc-text); text-decoration: none; }
.dz-space.is-active { background: var(--bc-ink); color: #fff; }
.dz-space.is-active small { color: rgba(255, 255, 255, .7); }
.dz-space__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex: 0 0 30px; }
.dz-space small { margin-left: auto; font-size: 11px; color: var(--bc-muted); }
.dz-c-lime { background: color-mix(in srgb, var(--bc-lime) 35%, transparent); color: #5B6B00; }
.dz-c-blue { background: color-mix(in srgb, var(--bc-blue) 16%, transparent); color: var(--bc-blue); }
.dz-c-violet { background: color-mix(in srgb, var(--bc-violet) 18%, transparent); color: var(--bc-violet); }
.dz-c-amber { background: color-mix(in srgb, var(--bc-amber) 18%, transparent); color: var(--bc-amber); }
.dz-c-green { background: color-mix(in srgb, var(--bc-green) 16%, transparent); color: var(--bc-green); }
.dz-group { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bc-muted); margin: 14px 10px 6px; }
.dz-compose { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--bc-line); background: var(--bc-card); cursor: pointer; color: var(--bc-muted); font-size: 14px; }
.dz-compose:hover { border-color: #A8C400; }
.dz-thread { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--bc-line); }
.dz-thread:first-child { border-top: 0; }
.dz-thread.is-pinned { background: color-mix(in srgb, var(--bc-lime) 8%, transparent); }
.dz-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dz-vote button { display: grid; place-items: center; width: 30px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--bc-muted); cursor: pointer; }
.dz-vote button:hover { background: var(--bc-soft); color: var(--bc-text); }
.dz-vote button.is-on { color: #7A8F00; background: color-mix(in srgb, var(--bc-lime) 30%, transparent); }
body.dark-mode .dz-vote button.is-on { color: var(--bc-lime); }
.dz-vote button.is-down.is-on { color: var(--bc-red); background: color-mix(in srgb, var(--bc-red) 14%, transparent); }
.dz-vote strong { font-size: 14px; color: var(--bc-text); }
.dz-thread__title { font-size: 15px; font-weight: 700; color: var(--bc-text); }
.dz-thread__title:hover { color: var(--bc-text); text-decoration: underline; }
.dz-thread__excerpt { font-size: 13px; color: var(--bc-muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dz-thread__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--bc-muted); }
.dz-thread__meta span { display: inline-flex; align-items: center; gap: 4px; }
.dz-stats { display: flex; gap: 10px; align-items: center; }
.dz-stat { min-width: 54px; padding: 6px 8px; border-radius: 12px; text-align: center; border: 1px solid var(--bc-line); }
.dz-stat strong { display: block; font-size: 15px; color: var(--bc-text); line-height: 1.1; }
.dz-stat small { font-size: 10.5px; color: var(--bc-muted); }
.dz-stat--answered { border-color: color-mix(in srgb, var(--bc-green) 45%, transparent); background: color-mix(in srgb, var(--bc-green) 12%, transparent); }
.dz-stat--answered strong, .dz-stat--answered small { color: var(--bc-green); }
.dz-type { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.dz-type--question { background: color-mix(in srgb, var(--bc-blue) 14%, transparent); color: var(--bc-blue); }
.dz-type--discussion { background: var(--bc-soft); color: var(--bc-muted); }
.dz-type--announcement { background: var(--bc-lime); color: var(--bc-ink); }
.dz-type--showcase { background: color-mix(in srgb, var(--bc-violet) 16%, transparent); color: var(--bc-violet); }
.dz-tag { display: inline-flex; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; background: var(--bc-soft); color: var(--bc-text); }
.dz-tag:hover { background: color-mix(in srgb, var(--bc-lime) 30%, transparent); color: var(--bc-text); text-decoration: none; }
.dz-post { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-top: 1px solid var(--bc-line); }
.dz-post.is-accepted { background: color-mix(in srgb, var(--bc-green) 8%, transparent); border-left: 3px solid var(--bc-green); }
.dz-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bc-muted); }
.dz-post__head strong { color: var(--bc-text); }
.dz-role { padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--bc-ink); color: var(--bc-lime); }
.dz-post__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dz-post__actions button, .dz-post__actions a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--bc-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.dz-post__actions button:hover, .dz-post__actions a:hover { background: var(--bc-soft); color: var(--bc-text); text-decoration: none; }
.dz-children { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--bc-line); }
.dz-children .dz-post { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 0 12px 4px; border-top: 0; }
.dz-code { margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: #0E1410; color: #E8F5D0; font-size: 12.5px; overflow-x: auto; }
.dz-editor-tools { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--bc-line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.dz-editor-tools button { border: 0; background: none; padding: 4px 8px; border-radius: 8px; color: var(--bc-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.dz-editor-tools button:hover { background: var(--bc-soft); color: var(--bc-text); }
.dz-editor-tools + textarea { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.dz-helper { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.dz-helper strong { display: block; font-size: 13px; color: var(--bc-text); }
.dz-helper small { font-size: 11.5px; color: var(--bc-muted); }

/* ---------- learner profile skills */
.sk-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 70px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bc-line); font-size: 13px; }
.sk-row:last-child { border-bottom: 0; }
.sk-bar { position: relative; height: 8px; border-radius: 999px; background: var(--bc-soft); }
.sk-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--bc-green); }
.sk-bar span.is-evidence { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--bc-green) 70%, transparent), color-mix(in srgb, var(--bc-green) 70%, transparent) 4px, color-mix(in srgb, var(--bc-green) 40%, transparent) 4px, color-mix(in srgb, var(--bc-green) 40%, transparent) 8px); }
.sk-bar i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--bc-text); border-radius: 2px; }
.sk-row input[type=number] { width: 64px; height: 32px; text-align: center; }

.gh-lang { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bc-soft); }
.gh-lang span { height: 100%; }
.gh-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--bc-muted); }
.gh-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.gh-repo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--bc-line); }
.gh-repo:first-child { border-top: 0; }
.gh-repo a { font-weight: 700; color: var(--bc-text); }

/* ---------- v2: shared page chrome */
.ws a:not(.bc-btn):not(.bc-tab):not(.dz-type) { color: var(--bc-text); }
.ws a:not(.bc-btn):not(.bc-tab):not(.dz-type):hover { color: var(--bc-text); }
.ws .ws-link { color: #6E8400; font-weight: 700; }
body.dark-mode .ws .ws-link { color: var(--bc-lime); }
.ws .ws-link:hover { text-decoration: underline; }
.ws h3, .ws .ws-h3 { font-size: 16px; font-weight: 800; color: var(--bc-text); margin: 0; }
.ws h4, .ws .ws-h4 { font-size: 13px; font-weight: 800; color: var(--bc-text); margin: 0; }
.ws .form-control, .ws select.form-control { height: 44px; padding: 0 14px; line-height: 42px; box-shadow: none; }
.ws select.form-control { padding-right: 34px; text-overflow: ellipsis; }
.ws textarea.form-control { height: auto; padding: 12px 14px; line-height: 1.55; }
.ws input[type=file].form-control { line-height: normal; padding: 10px 12px; }
.ws .form-control:focus { border-color: #A8C400; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-lime) 25%, transparent); }
.ws .form-control::placeholder { color: var(--bc-muted); opacity: .8; }
.ws-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--bc-line); }
.ws-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--bc-muted); }
.ws-card-body { padding: 18px 20px; }
.ws-section-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bc-muted); margin: 26px 0 12px; }
.ws-errors { margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--bc-red) 40%, transparent); background: color-mix(in srgb, var(--bc-red) 10%, transparent); color: var(--bc-red); font-size: 13px; }
.ws-errors ul { margin: 4px 0 0; padding-left: 18px; }
.ws-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bc-soft); font-size: 12.5px; color: var(--bc-muted); }
.ws-hint .lucide { flex: 0 0 auto; margin-top: 1px; }
.ws-hint--warn { background: color-mix(in srgb, var(--bc-amber) 14%, transparent); color: var(--bc-amber); }
.ws-hint--ok { background: color-mix(in srgb, var(--bc-green) 12%, transparent); color: var(--bc-green); }
.ws-empty { padding: 40px 20px; text-align: center; color: var(--bc-muted); font-size: 13.5px; }
.ws-empty .ws-empty__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--bc-soft); color: var(--bc-muted); margin-bottom: 10px; }
.ws-empty strong { display: block; color: var(--bc-text); font-size: 14.5px; margin-bottom: 4px; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-person img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; flex: 0 0 34px; }
.ws-person strong { display: block; font-size: 13.5px; color: var(--bc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-person small { display: block; font-size: 11.5px; color: var(--bc-muted); }
.ws-person--sm img { width: 26px; height: 26px; border-radius: 8px; flex-basis: 26px; }
.ws-ring { --p: 0; --c: var(--bc-lime); position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 112px;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.ws-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #121812; }
.ws-ring > * { position: relative; text-align: center; color: #fff; }
.ws-ring strong { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.ws-ring small { font-size: 11px; color: rgba(242, 245, 238, .65); }
.ws-ring--light::before { background: var(--bc-card); }
.ws-ring--light { background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bc-soft) 0); }
.ws-ring--light > * { color: var(--bc-text); }
.ws-ring--light small { color: var(--bc-muted); }
.ws-hero-row { position: relative; display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ws-stat-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.ws-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ws-bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 54px; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; color: var(--bc-text); }
.ws-bar-row small { color: var(--bc-muted); text-align: right; font-weight: 700; }
.ws-bar-row .bc-bar { height: 8px; }

/* ---------- heatmap card tabs + legend */
.hm-card .bc-tabs { border: 0; padding: 0; background: none; }
.hm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 20px 16px; font-size: 11.5px; color: var(--bc-muted); }
.hm-scale { display: inline-flex; align-items: center; gap: 3px; }
.hm-scale i { width: 16px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--ws-heat) calc(var(--v) * 88%), var(--bc-soft)); }
.hm td.hm-name .hm-rank { flex: 0 0 22px; }
.hm-cell--hot { color: #fff; }
body.dark-mode .hm-cell--hot { color: #06200C; }
.hm-overall-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.hm-overall-bar .bc-bar { flex: 1; height: 6px; }
.hm-overall-bar b { min-width: 28px; font-size: 12px; text-align: right; }
.hm-cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; }
.hm-cal i { width: 13px; height: 13px; border-radius: 3px; background: color-mix(in srgb, var(--ws-heat) calc(var(--v, 0) * 90%), var(--bc-soft)); }

/* ---------- coursework v2 */
.cw-list .cw-item { padding: 16px 20px; }
.cw-item__icon .lucide { width: 20px; height: 20px; }
.cw-item__icon--open { background: color-mix(in srgb, var(--bc-lime) 30%, transparent); color: #5B6B00; }
body.dark-mode .cw-item__icon--open { color: var(--bc-lime); }
.cw-item__icon--upcoming { background: color-mix(in srgb, var(--bc-blue) 14%, transparent); color: var(--bc-blue); }
.cw-item__side { display: flex; align-items: center; gap: 14px; }
.cw-progress { min-width: 160px; }
.cw-progress small { display: flex; justify-content: space-between; font-size: 11px; color: var(--bc-muted); margin-bottom: 4px; }
.cw-due { text-align: right; font-size: 12px; color: var(--bc-muted); white-space: nowrap; }
.cw-due strong { display: block; font-size: 13px; color: var(--bc-text); }
.cw-due--soon strong { color: var(--bc-amber); }
.cw-due--over strong { color: var(--bc-red); }
.cw-roster { width: 100%; }
.cw-roster td, .cw-roster th { padding: 10px 14px; }
.cw-roster tr.is-active td { background: color-mix(in srgb, var(--bc-lime) 14%, transparent); }
.cw-roster tbody tr { cursor: pointer; }
.cw-panel { position: sticky; top: 90px; }
.cw-answer { max-height: 340px; overflow: auto; padding: 14px; border-radius: 14px; background: var(--bc-soft); font-size: 13.5px; white-space: pre-wrap; color: var(--bc-text); }
.cw-crit { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bc-line); }
.cw-crit strong { display: block; font-size: 13px; color: var(--bc-text); }
.cw-crit small { display: block; font-size: 11.5px; color: var(--bc-muted); }
.cw-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 4px; font-size: 13px; color: var(--bc-muted); }
.cw-total strong { font-size: 22px; color: var(--bc-text); }
.cw-attempt { padding: 14px 0; border-bottom: 1px solid var(--bc-line); }
.cw-attempt:last-child { border-bottom: 0; }
.cw-grade-badge { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 12px; background: var(--bc-ink); color: var(--bc-lime); font-weight: 800; font-size: 18px; }
.cw-grade-badge small { font-size: 12px; color: rgba(208, 241, 10, .7); }
.cw-rubric-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--bc-line); font-size: 13px; color: var(--bc-text); }
.cw-rubric-row small { display: block; color: var(--bc-muted); font-size: 11.5px; }
.cw-rubric-row b { text-align: right; }
.cw-repeater { display: grid; grid-template-columns: minmax(0, 1.2fr) 100px minmax(0, 2fr) 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.cw-repeater button { height: 44px; border: 1px solid var(--bc-line); background: none; border-radius: 12px; color: var(--bc-muted); cursor: pointer; }
.cw-form-section { padding: 20px; border-top: 1px solid var(--bc-line); }
.cw-form-section:first-child { border-top: 0; }
.cw-form-section > h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; }
.cw-form-section > p { font-size: 12.5px; color: var(--bc-muted); margin: 0 0 14px; }

/* ---------- gradebook v2 */
.gb a { color: var(--bc-text); font-weight: 700; }
.gb td.gb-name { text-align: left; }
.gb-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; color: var(--bc-muted); }
.gb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gb-legend .gb-cell { min-width: 0; padding: 2px 6px; font-size: 10.5px; }
.gb-letter { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 800; background: var(--bc-ink); color: var(--bc-lime); }
.gb-course { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--bc-line); flex-wrap: wrap; }
.gb-course__final { display: flex; align-items: center; gap: 12px; }
.gb-course__final strong { font-size: 28px; font-weight: 800; color: var(--bc-text); line-height: 1; }
.gb-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px 90px; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--bc-line); font-size: 13px; }
.gb-line:last-child { border-bottom: 0; }
.gb-line small { display: block; color: var(--bc-muted); font-size: 11.5px; }
.gb-weights { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; gap: 10px; align-items: center; margin-bottom: 8px; }
.gb-weights--head { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bc-muted); }
.gb-sum { font-weight: 800; }
.gb-sum.is-bad { color: var(--bc-red); }
.gb-sum.is-ok { color: var(--bc-green); }
.gb-dist { height: 120px; padding-top: 8px; }
.gb-dist b { font-size: 12px; color: var(--bc-text); }

/* ---------- projects v2 */
.pj-card { transition: transform .15s, border-color .15s; }
.pj-card:hover { border-color: #A8C400; transform: translateY(-2px); }
.pj-card .bc-btn { align-self: flex-start; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-tags span { padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; background: var(--bc-soft); color: var(--bc-text); }
.pj-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px 140px auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--bc-line); }
.pj-row:first-child { border-top: 0; }
.pj-row__title { font-size: 14.5px; font-weight: 800; color: var(--bc-text); }
.pj-row__sub { font-size: 12.5px; color: var(--bc-muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pj-status--planning { background: var(--bc-soft); color: var(--bc-muted); }
.pj-status--in_progress { background: color-mix(in srgb, var(--bc-blue) 14%, transparent); color: var(--bc-blue); }
.pj-status--submitted { background: color-mix(in srgb, var(--bc-amber) 16%, transparent); color: var(--bc-amber); }
.pj-status--changes_requested { background: color-mix(in srgb, var(--bc-red) 14%, transparent); color: var(--bc-red); }
.pj-status--completed { background: color-mix(in srgb, var(--bc-green) 14%, transparent); color: var(--bc-green); }
.pj-status--abandoned { background: var(--bc-soft); color: var(--bc-muted); text-decoration: line-through; }
.pj-steps { display: flex; gap: 6px; margin-top: 14px; position: relative; }
.pj-step { flex: 1; text-align: center; font-size: 11px; color: rgba(242, 245, 238, .55); }
.pj-step i { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-bottom: 6px; }
.pj-step.is-done i { background: var(--bc-lime); }
.pj-step.is-done { color: rgba(242, 245, 238, .9); }
.kb-card select { height: 30px !important; line-height: 28px !important; font-size: 12px !important; padding: 0 26px 0 8px !important; }
.kb-col h4 span { min-width: 22px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--bc-card); font-size: 11px; color: var(--bc-text); }
.kb-card__title { font-weight: 700; }
.kb-due { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- discussions v2 */
.dz-hero { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--bc-line); }
.dz-hero__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px; }
.dz-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--bc-line); }
.dz-toolbar .bc-tabs { border: 0; padding: 0; background: none; }
.dz-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.dz-search input { padding-left: 36px !important; height: 38px !important; line-height: 36px !important; }
.dz-search .lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bc-muted); }
.dz-thread__meta img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.dz-composer { padding: 0; overflow: hidden; }
.dz-composer summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; color: var(--bc-muted); font-size: 14px; list-style: none; }
.dz-composer summary::-webkit-details-marker { display: none; }
.dz-composer summary img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; }
.dz-composer summary span { flex: 1; padding: 9px 14px; border-radius: 12px; background: var(--bc-soft); }
.dz-composer[open] summary { border-bottom: 1px solid var(--bc-line); }
.dz-composer form { padding: 16px; }
.dz-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dz-kind { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--bc-line); cursor: pointer; font-size: 12.5px; color: var(--bc-text); }
.dz-kind input { position: absolute; opacity: 0; }
.dz-kind small { color: var(--bc-muted); font-size: 11px; }
.dz-kind:has(input:checked) { border-color: #A8C400; background: color-mix(in srgb, var(--bc-lime) 16%, transparent); }
.dz-kind.is-disabled { opacity: .45; pointer-events: none; }
.dz-side-card + .dz-side-card { margin-top: 16px; }
.dz-post__body { margin-top: 8px; }
.dz-post .dz-vote { padding-top: 2px; }
.dz-accepted { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: color-mix(in srgb, var(--bc-green) 16%, transparent); color: var(--bc-green); }
.dz-reply-form textarea { min-height: 90px !important; }
.dz-locked { display: flex; align-items: center; gap: 8px; padding: 14px 20px; color: var(--bc-muted); font-size: 13px; border-top: 1px solid var(--bc-line); }

/* ---------- learner profile + GitHub v2 */
.lp-parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lp-part { padding: 14px; border-radius: 16px; border: 1px solid var(--bc-line); }
.lp-part small { display: block; font-size: 11.5px; color: var(--bc-muted); }
.lp-part strong { display: block; font-size: 22px; font-weight: 800; color: var(--bc-text); margin: 4px 0 8px; }
.lp-part em { font-style: normal; font-size: 11px; color: var(--bc-muted); }
.sk-row__name strong { display: block; font-size: 13px; color: var(--bc-text); }
.sk-row__name small { display: block; font-size: 11px; color: var(--bc-muted); }
.sk-source { display: inline-flex; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.sk-source--staff { background: var(--bc-ink); color: var(--bc-lime); }
.sk-source--evidence { background: var(--bc-soft); color: var(--bc-muted); }
.gh-head { display: flex; align-items: center; gap: 14px; }
.gh-head img { width: 56px; height: 56px; border-radius: 16px; }
.gh-repo__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11.5px; color: var(--bc-muted); }
.gh-repo__meta span { display: inline-flex; align-items: center; gap: 4px; }
.gh-parts .ws-bar-row { grid-template-columns: 96px minmax(0, 1fr) 54px; }

@media (max-width: 1199px) {
    .lp-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ws-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-row { grid-template-columns: minmax(0, 1fr) 160px auto; }
    .pj-row > :nth-child(3) { display: none; }
}
@media (max-width: 767px) {
    .ws-split, .lp-parts { grid-template-columns: minmax(0, 1fr); }
    .dz-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .cw-item__side { grid-column: 1 / -1; justify-content: space-between; }
    .cw-repeater { grid-template-columns: minmax(0, 1fr) 90px; }
    .cw-repeater > :nth-child(3) { grid-column: 1 / -1; }
    .gb-line { grid-template-columns: minmax(0, 1fr) 80px; }
    .gb-line > :nth-child(2) { display: none; }
    .ws-ring { width: 92px; height: 92px; flex-basis: 92px; }
}

@media (max-width: 1199px) {
    .dz { grid-template-columns: 220px minmax(0, 1fr); }
    .dz-aside { display: none; }
    .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .ws-row { grid-template-columns: minmax(0, 1fr); }
    .ws-todo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dz { grid-template-columns: minmax(0, 1fr); }
    .dz-spaces { position: static; display: flex; overflow-x: auto; gap: 6px; }
    .dz-spaces .dz-group { display: none; }
    .dz-space { flex: 0 0 auto; }
    .dz-space small { display: none; }
}
@media (max-width: 767px) {
    .ws-grid-2, .ws-grid-3, .pj-grid, .kb { grid-template-columns: minmax(0, 1fr); }
    .cw-item { grid-template-columns: 36px minmax(0, 1fr); }
    .cw-item > :last-child { grid-column: 2; }
    .dz-thread { grid-template-columns: 40px minmax(0, 1fr); }
    .dz-stats { grid-column: 2; }
    .sk-row { grid-template-columns: minmax(0, 1fr) 70px; }
    .sk-row .sk-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Kanban: with JS, cards are dragged; the status picker is only a no-JS fallback. */
@media (hover: hover) and (pointer: fine) { .kb.kb-js .kb-card form:first-child { display: none; } }
.kb-add { flex-wrap: wrap; }
.kb-add input[name=title] { flex: 1 1 100%; }
.kb-add select { flex: 1 1 auto; max-width: none !important; }
.dz-code code { padding: 0; background: none; font-size: inherit; color: inherit; }
body.dark-mode .dz-c-lime { color: var(--bc-lime); }
.dz-space.is-active .dz-c-lime { background: var(--bc-lime); color: var(--bc-ink); }

.cw-repeater--bands { grid-template-columns: 80px 110px 90px minmax(0, 1fr) 40px; }
@media (max-width: 767px) {
    .cw-repeater--bands { grid-template-columns: 1fr 1fr 1fr 40px; }
    .cw-repeater--bands > :nth-child(4) { grid-column: 1 / -1; grid-row: 2; }
    .ws-head h1 { font-size: 20px; }
    .kb-col { min-height: 0; }
}

/* ---------- gamification */
.gm-streak { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; padding: 16px 10px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: rgba(242, 245, 238, .55); text-align: center; }
.gm-streak strong { font-size: 34px; line-height: 1; color: #fff; margin-top: 4px; }
.gm-streak small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.gm-streak em { font-style: normal; font-size: 11px; margin-top: 6px; color: rgba(242, 245, 238, .6); }
.gm-streak.is-lit { color: #FFB020; border-color: rgba(255, 176, 32, .45); background: radial-gradient(circle at 50% 30%, rgba(255, 176, 32, .22), rgba(255, 176, 32, .04) 70%); }
.gm-streak.is-lit .lucide { filter: drop-shadow(0 0 10px rgba(255, 176, 32, .6)); }
.gm-goal { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--bc-line); }
.gm-goal:first-of-type { border-top: 0; }
.gm-goal strong { font-size: 13.5px; color: var(--bc-text); }
.gm-goal small { font-size: 12px; color: var(--bc-muted); font-weight: 700; }
.gm-goal__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; background: var(--bc-soft); color: var(--bc-muted); }
.gm-goal.is-done .gm-goal__icon { background: color-mix(in srgb, var(--bc-green) 16%, transparent); color: var(--bc-green); }
.gm-goal__reward { min-width: 56px; text-align: center; padding: 5px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; background: var(--bc-soft); color: var(--bc-muted); }
.gm-goal.is-done .gm-goal__reward { background: var(--bc-lime); color: var(--bc-ink); }
.gm-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.gm-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border-radius: 18px; border: 1px dashed var(--bc-line); text-align: center; opacity: .72; }
.gm-badge strong { font-size: 13px; color: var(--bc-text); }
.gm-badge small { font-size: 11px; color: var(--bc-muted); line-height: 1.35; min-height: 30px; }
.gm-badge em { font-style: normal; }
.gm-badge__medal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bc-soft); color: var(--bc-muted); margin-bottom: 4px; }
.gm-badge.is-earned { opacity: 1; border-style: solid; border-color: color-mix(in srgb, var(--bc-lime) 45%, transparent); background: color-mix(in srgb, var(--bc-lime) 6%, transparent); }
.gm-badge.is-earned .gm-badge__medal { background: radial-gradient(circle at 35% 30%, #F2FF8A, var(--bc-lime) 55%, #8FB000); color: var(--bc-ink); box-shadow: 0 6px 18px -6px rgba(208, 241, 10, .6); }
.gm-earn div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--bc-line); font-size: 12.5px; color: var(--bc-text); }
.gm-earn div:last-child { border-bottom: 0; }
.gm-earn span { display: inline-flex; align-items: center; gap: 6px; }
.gm-earn b { white-space: nowrap; color: #6E8400; }
body.dark-mode .gm-earn b { color: var(--bc-lime); }
.dz-space-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.dz-space-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--bc-line); cursor: pointer; min-width: 0; }
.dz-space-option input { position: absolute; opacity: 0; }
.dz-space-option small { font-size: 11px; color: var(--bc-muted); }
.dz-space-option strong { font-size: 13px; color: var(--bc-text); }
.dz-space-option:has(input:checked) { border-color: #A8C400; background: color-mix(in srgb, var(--bc-lime) 14%, transparent); }
.dz-preview { min-height: 260px; padding: 14px; border: 1px solid var(--bc-line); border-radius: 12px; }
@media (max-width: 767px) { .gm-streak { width: 100%; flex-direction: row; gap: 10px; } .gm-streak strong { margin: 0; } }
.dz-composer__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--bc-muted); font-size: 14px; }
.dz-composer__row img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; }
.dz-composer__row > span { flex: 1; padding: 9px 14px; border-radius: 12px; background: var(--bc-soft); }
a.dz-composer:hover { text-decoration: none; border-color: #A8C400; }
.dz-related a { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--bc-line); font-size: 13px; color: var(--bc-text); }
.dz-related a:last-child { border-bottom: 0; }
.dz-related small { margin-left: auto; color: var(--bc-muted); white-space: nowrap; }
.dz-author { display: flex; align-items: center; gap: 12px; }
.dz-author img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; }
.dz-jump { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--bc-green) 14%, transparent); color: var(--bc-green) !important; }
.in-card .pj-card__title { font-size: 16px; }
.in-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 14px; background: var(--bc-soft); text-align: center; }
.in-stats strong { display: block; font-size: 15px; color: var(--bc-text); }
.in-stats small { font-size: 10.5px; color: var(--bc-muted); }
.bc-tab img { flex: 0 0 auto; }

/* ---------- rankings podium */
.rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 760px; margin-left: auto; margin-right: auto; }
.rk-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px 16px; border-radius: 22px 22px 14px 14px; border: 1px solid var(--bc-line); background: var(--bc-card); text-align: center; }
.rk-step img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bc-line); }
.rk-step .hm-rank { position: absolute; top: 12px; left: 12px; }
.rk-step strong { font-size: 14px; color: var(--bc-text); }
.rk-step small { font-size: 11.5px; color: var(--bc-muted); }
.rk-step b { margin-top: 4px; font-size: 18px; color: var(--bc-text); }
.rk-step--1 { padding-top: 30px; padding-bottom: 28px; border-color: color-mix(in srgb, var(--bc-lime) 55%, transparent); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--bc-lime) 16%, transparent), var(--bc-card) 70%); }
.rk-step--1 img { width: 80px; height: 80px; border-color: var(--bc-lime); }
.rk-step--2 img { border-color: #C7CCD1; }
.rk-step--3 img { border-color: #D19A66; }
@media (max-width: 767px) { .rk-podium { grid-template-columns: 1fr; } }
