/* One flat collection of design exercises; no course grouping. */
.course-entry { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.course-entry .text-button { color: var(--ink); }
.task-library { padding: 30px 0 42px; }
.task-library .library-home { min-height: 40px; font-size: 13px; }
.task-library .library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 14px 0 24px; }
.task-library .library-heading h1 { font-size: clamp(25px,3vw,34px); margin: 8px 0; line-height: 1.4; }
.task-library .library-heading p { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.task-library .library-heading>.btn { flex: none; }
.library-task-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.library-task-list>li { display: flex; min-width: 0; }
.library-task-card { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-panel); text-align: left; background: var(--surface); color: var(--ink); cursor: pointer; }
.library-task-card:hover { border-color: #94ac76; background: #fcfff4; }
.library-task-card:focus-visible { outline: 3px solid #7ba047; outline-offset: 3px; }
.library-task-title { font-size: 18px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.library-task-description { flex: 1; font-size: 15px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.library-task-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.library-task-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.library-task-bottom>span { display: flex; align-items: center; gap: 6px; }
.library-task-bottom>.icon { flex: none; width: 18px; height: 18px; }
.library-task-complete { color: #467839; }
.library-task-complete>.icon { width: 15px; height: 15px; }
.task-library .library-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 18px; }
.work-shell .breadcrumb { white-space: nowrap; }
.work-shell .workspace-heading:has(.lesson-crumb) > div:first-child { display: block; }
.work-shell .workspace-heading:has(.lesson-crumb) h1 { font-size: 20px; }
.work-shell .workspace-heading:has(.lesson-crumb) p { margin-top: 3px; }
.lesson-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Authored work artifacts use the same preview scaling as the WeChat cases. */
.commission-screen { height: calc(var(--wx-height) * var(--wx-u)); background: #f7f7f7; font-size: calc(14 * var(--wx-u)); line-height: 1.55; }
.commission-screen .scene-nav { display: flex; align-items: center; justify-content: space-between; flex: 0 0 calc(48 * var(--wx-u)); padding: 0 calc(18 * var(--wx-u)); border-bottom: calc(1 * var(--wx-u)) solid #e7e7e7; }
.scene-nav > span { width: calc(18 * var(--wx-u)); height: calc(18 * var(--wx-u)); }
.scene-nav img { width: 100%; height: 100%; }
.scene-nav strong { font-size: calc(16 * var(--wx-u)); font-weight: 500; }
.scenario-content { flex: 1; min-height: 0; padding: calc(16 * var(--wx-u)); display: flex; flex-direction: column; gap: calc(12 * var(--wx-u)); }
.scene-context { padding: calc(12 * var(--wx-u)); background: #ededed; border-radius: calc(6 * var(--wx-u)); }
.scene-kicker { display: block; font-size: calc(10 * var(--wx-u)); color: #777; margin-bottom: calc(5 * var(--wx-u)); }
.scene-context p { font-size: calc(12 * var(--wx-u)); }
.scene-context.with-change { background: #fff4dd; }
.scene-context .scene-challenge { padding-top: calc(7 * var(--wx-u)); margin-top: calc(7 * var(--wx-u)); border-top: calc(1 * var(--wx-u)) solid #e4d6b5; font-weight: 500; }
.artifact-title { font-size: calc(17 * var(--wx-u)); font-weight: 600; }
.scene-materials { display: flex; flex-direction: column; gap: calc(6 * var(--wx-u)); font-size: calc(11 * var(--wx-u)); }
.scene-materials > div { display: grid; grid-template-columns: calc(68 * var(--wx-u)) 1fr; gap: calc(8 * var(--wx-u)); }
.scene-materials span { color: #777; }
.scenario-decisions { display: flex; flex-direction: column; gap: calc(12 * var(--wx-u)); }
.decision-block { padding: calc(12 * var(--wx-u)); border: calc(1 * var(--wx-u)) solid #e4e4e4; background: white; border-radius: calc(8 * var(--wx-u)); }
.decision-heading { display: flex; align-items: center; gap: calc(8 * var(--wx-u)); margin-bottom: calc(7 * var(--wx-u)); }
.decision-heading > span { font-family: monospace; color: #aaa; font-size: calc(11 * var(--wx-u)); }
.decision-heading strong { font-size: calc(12 * var(--wx-u)); color: #666; font-weight: 500; }
.decision-text { font-size: calc(14 * var(--wx-u)); }
.decision-response { display: flex; gap: calc(7 * var(--wx-u)); font-size: calc(11 * var(--wx-u)); border-top: calc(1 * var(--wx-u)) solid #eee; margin-top: calc(10 * var(--wx-u)); padding-top: calc(8 * var(--wx-u)); color: #647369; }
.decision-response > span { white-space: nowrap; color: #888; }
.scenario-decisions.flow .decision-block { border-left: calc(3 * var(--wx-u)) solid #07c160; position: relative; }
.scenario-decisions.flow .decision-block + .decision-block::before { content: '↓'; position: absolute; top: calc(-17 * var(--wx-u)); left: 48%; color: #999; }
.scenario-decisions.plan .decision-heading > span { color: #07a651; border: calc(1 * var(--wx-u)) solid #c0dfc8; border-radius: 50%; width: calc(23 * var(--wx-u)); height: calc(23 * var(--wx-u)); text-align: center; line-height: calc(22 * var(--wx-u)); }
.is-conversation { background: #ededed; }
.scenario-turn { display: flex; flex-direction: column; gap: calc(7 * var(--wx-u)); }
.scenario-turn > .scene-kicker { text-align: center; margin: 0; }
.reply { width: 90%; border-radius: calc(5 * var(--wx-u)); background: #fff; padding: calc(9 * var(--wx-u)) calc(12 * var(--wx-u)); }
.reply.own { margin-left: auto; background: #95ec69; }
.reply > span { display: block; color: #65715e; font-size: calc(10 * var(--wx-u)); margin-bottom: calc(3 * var(--wx-u)); }
.reply p { font-size: calc(13 * var(--wx-u)); }
.evidence-chart { padding: calc(10 * var(--wx-u)); background: white; border-radius: calc(6 * var(--wx-u)); }
.evidence-bar { display: grid; grid-template-columns: calc(95 * var(--wx-u)) 1fr calc(38 * var(--wx-u)); gap: calc(6 * var(--wx-u)); align-items: center; font-size: calc(10 * var(--wx-u)); }
.evidence-bar > div { background: #eee; height: calc(7 * var(--wx-u)); }
.evidence-bar i { display: block; height: 100%; background: #07c160; }
.evidence-bar b { font-weight: 400; text-align: right; }
.scene-footnote { flex: 0 0 auto; color: #999; font-size: calc(10 * var(--wx-u)); padding: calc(9 * var(--wx-u)) calc(16 * var(--wx-u)); text-align: center; border-top: calc(1 * var(--wx-u)) solid #e7e7e7; }
.visual-artifact { background: #fff; padding: calc(18 * var(--wx-u)); border-radius: calc(8 * var(--wx-u)); color: #1a1a1a; }
.visual-symbol { width: calc(36 * var(--wx-u)); height: calc(36 * var(--wx-u)); margin-bottom: calc(10 * var(--wx-u)); }
.visual-symbol img { width: 100%; height: 100%; object-fit: contain; }
.visual-artifact h3 { font-size: calc(18 * var(--wx-u)); font-weight: 500; }
.visual-items { display: grid; gap: calc(3 * var(--wx-u)); margin-top: calc(10 * var(--wx-u)); }
.visual-items strong { font-size: calc(13 * var(--wx-u)); font-weight: 500; }
.visual-items p { font-size: calc(13 * var(--wx-u)); }
.visual-action { margin-top: calc(18 * var(--wx-u)); padding: calc(10 * var(--wx-u)); text-align: center; background: #f2f2f2; border-radius: calc(6 * var(--wx-u)); font-size: calc(15 * var(--wx-u)); }
.visual-artifact.emphasis-all h3,.visual-artifact.emphasis-all .visual-items strong,.visual-artifact.emphasis-all .visual-items p,.visual-artifact.emphasis-all .visual-action { font-size: calc(17 * var(--wx-u)); font-weight: 600; }
.visual-artifact.emphasis-title h3 { font-size: calc(23 * var(--wx-u)); font-weight: 600; }
.visual-artifact.emphasis-action .visual-action { color: white; background: #07a651; }

.visual-artifact.emphasis-quiet h3 { font-size: calc(17 * var(--wx-u)); }
.visual-artifact.spacing-grouped .visual-items { gap: calc(12 * var(--wx-u)); }
.visual-artifact.spacing-loose .visual-items { gap: calc(18 * var(--wx-u)); }
.visual-artifact.spacing-loose { padding: calc(24 * var(--wx-u)); }
.visual-artifact.contrast-low { color: #b6b6b6; }
.visual-artifact.align-center { text-align: center; }
.visual-artifact.align-center .visual-symbol { margin-left: auto; margin-right: auto; }
.visual-artifact.align-mixed .visual-items > div:nth-child(2n) { text-align: right; }
.visual-artifact.align-mixed h3 { text-align: center; }
.visual-consequences { padding: calc(10 * var(--wx-u)); color: #647369; font-size: calc(11 * var(--wx-u)); background: #edf2ed; border-radius: calc(6 * var(--wx-u)); }
.visual-consequences p + p { margin-top: calc(6 * var(--wx-u)); }
.visual-consequences strong { font-weight: 500; }
@media (max-width: 960px) { .library-task-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .library-task-list { grid-template-columns: 1fr; gap: 12px; }
  .task-library .library-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .task-library .library-heading>.btn { width: 100%; justify-content: center; }
  .task-library { padding-top: 16px; }
  .library-task-card { padding: 18px; gap: 10px; }
  .library-task-title { font-size: 17px; }
  .library-task-description { font-size: 14px; line-height: 1.7; }
  .top-nav { gap: 8px; }
  .top-nav .version-pill { display: none; }
  .top-nav .nav-button { font-size: 12px; }
}

.visual-note + .visual-note { border-top: calc(1 * var(--wx-u)) solid #dbe5dd; margin-top: calc(10 * var(--wx-u)); padding-top: calc(10 * var(--wx-u)); }
.visual-note > strong { color: #354c3d; font-size: calc(11 * var(--wx-u)); }
.visual-outcome { color: #6c7970; margin-top: calc(5 * var(--wx-u)) !important; }

/* The collection keeps its nine entries and familiar labels. */
.library-task-list { gap: 18px; }
.library-task-card { padding: 24px; gap: 14px; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.library-task-meta, .task-library .library-note { font-size: 13px; }
.library-task-bottom { font-size: 14px; }
.task-library .library-heading p { font-size: 16px; }
.task-library .eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
@media (hover: hover) { .library-task-card:hover { box-shadow: 0 5px 18px -12px rgb(22 61 51 / 30%); } }
@media (max-width:720px) {
 .library-task-card { padding: 20px; gap: 12px; }
 .library-task-description { font-size: 15px; }
 .top-nav .nav-button { font-size: 13px; }
}
.library-task-card:focus-visible { outline-color: var(--ink); }
