/* Platform finish: shared visual rules for learning, sharing, and administration.
   Loaded after the existing component styles; no hidden content or new assets. */
:root {
  --ink: #182640;
  --muted: #5c6b80;
  --line: #dfe5ee;
  --bg: #f6f8fc;
  --blue: #3044b8;
  --blue-pale: #eef2ff;
  --radius: 16px;
  --ui-focus: #344ec1;
  --surface: #fff;
  --surface-soft: #f8faff;
  --surface-selected: #f0f4ff;
  --shadow-card: 0 2px 8px rgb(30 47 81 / 3%);
  --shadow-floating: 0 8px 28px rgb(30 47 81 / 10%);
}
body { background: var(--bg); line-height: 1.65; }
main, .header-inner, .footer { max-width: 1440px; }
main { padding: 32px 32px 56px; }
:is(main, .header, .footer) :is(h1, h2, h3, p, label, button, a) { overflow-wrap: break-word; }
:is(main, .header, .footer) :is(button, a, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}
.skip { z-index: 100; border: 1px solid var(--line); border-radius: 8px; }
.page-title, .form-page-title { margin-bottom: 24px; }
.page-title h1, .form-page-title h1 { font-size: clamp(26px, 2.7vw, 32px); line-height: 1.4; letter-spacing: -.8px; }
.page-title .intro, .form-page-title .intro { font-size: 15px; line-height: 1.7; }
.eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: 0; }
.hint { color: var(--muted); line-height: 1.75; }

/* Navigation remains visible and readable without dominating the workspace. */
.header { background: var(--surface); }
.header-inner { padding: 17px 32px; gap: 20px; flex-wrap: nowrap; }
.brand { gap: 11px; font-size: 20px; white-space: nowrap; flex-shrink: 0; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 29px; }
.brand small { margin-top: 2px; letter-spacing: 0; color: var(--muted); }
.header nav { flex: 1; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.header nav a { min-height: 44px; padding: 10px 11px; font-size: 13px; white-space: nowrap; border-radius: 9px; }
.header nav a:hover { background: #f4f6fb; color: var(--ink); }
.header nav a.active { background: var(--blue-pale); color: var(--blue); box-shadow: inset 0 -2px 0 #b1bdef; }
.header nav a#admin-menu { border-color: #d6dff4; }
.header-account { flex-shrink: 0; }
.profile-menu > summary { border-color: var(--line); border-radius: 11px; min-height: 48px; padding: 7px 10px; }
.profile-menu > summary:hover, .profile-menu[open] > summary { background: var(--surface-soft); border-color: #b9c7e6; }
.profile-menu strong { font-size: 13px; }
.profile-menu small { max-width: 94px; font-size: 12px; }
.profile-popover { border-radius: 13px; box-shadow: var(--shadow-floating); z-index: 40; }
.profile-popover a, .profile-popover button { min-height: 46px; }
.profile-popover a[aria-current=page] { color: var(--blue); font-weight: 700; background: var(--blue-pale); }

/* One control language for learners and instructors. */
.button { border-radius: 9px; min-height: 44px; padding: 10px 17px; font-size: 14px; }
.button.small { min-height: 44px; padding: 9px 12px; font-size: 13px; }
.button.secondary { background: var(--surface); border-color: #d8e0ec; color: #35435e; }
.button.secondary:hover { background: #f5f7fb; border-color: #b9c7df; }
.button.subtle { background: var(--blue-pale); color: var(--blue); }
.button.subtle:hover { background: #e4eafd; }
.button.danger { background: #b8354c; color: #fff; }
.button.danger:hover { background: #992b40; }
.text-button { min-height: 44px; }
:is(.close-dialog, .exercise-view-close) { min-width: 44px; min-height: 44px; }
:is(main, dialog) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  border-color: #ccd6e5;
  border-radius: 9px;
  background-color: var(--surface);
  min-width: 0;
  max-width: 100%;
}
:is(main, dialog) :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 46px; }
input::placeholder, textarea::placeholder { color: #6c798e; opacity: 1; }
input[readonly], textarea[readonly] { background: #f3f5f8; }
.field label, .field-label { color: #263652; font-weight: 700; }
.field { margin-bottom: 20px; }
.field-requirement { color: #526588; font-size: 12px; }
.panel, .consent-document, .entry-hero, .storybook-panel { border-radius: 16px; box-shadow: var(--shadow-card); }
.panel { padding: 26px; }
.status { border-radius: 6px; font-size: 12px; padding: 4px 8px; }
.empty-state, .library-empty { border-radius: 14px; background: var(--surface); padding: 36px 24px; }
.loading { min-height: 200px; }

/* The collection is a useful starting point, followed quickly by course cards. */
.collection-hero.collection-hub { background: linear-gradient(110deg, #fff 20%, #f1f5ff); border-color: var(--line); border-radius: 18px; padding: 28px 30px; gap: 32px; margin-bottom: 28px; }
.collection-hub h1 { font-size: clamp(26px, 2.9vw, 34px); line-height: 1.4; letter-spacing: -.9px; margin: 8px 0 10px; }
.collection-hub .intro { color: #536580; font-size: 15px; margin-bottom: 18px; }
.hub-actions { gap: 8px; }
.resume-training { gap: 10px; padding: 20px; border-radius: 13px; background: #fffffff2; border-color: #dce4f2; box-shadow: var(--shadow-card); }
.resume-training > strong { font-size: 19px; line-height: 1.55; }
.resume-training > span { font-size: 12px; }
.collection-heading { gap: 20px; margin-bottom: 14px; }
.collection-heading h2 { font-size: 22px; }
.collection-search { width: 340px; }
.collection-search input { background-color: var(--surface); }
.collection-status { margin: 12px 0; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.category-filters { gap: 7px; margin-bottom: 12px; }
.category-filters button { min-height: 44px; padding: 8px 13px; border-radius: 9px; font-weight: 600; }
.category-filters button[aria-pressed=true] { background: var(--blue-pale); color: var(--blue); border-color: #aebee9; }
.training-library { gap: 16px; margin-top: 16px; }
.training-tile { border-radius: 14px; padding: 22px; box-shadow: var(--shadow-card); }
.training-tile:hover { border-color: #adbee3; box-shadow: 0 4px 16px rgb(30 47 81 / 6%); }
.tile-meta { margin-bottom: 14px; }
.training-tile h3 { font-size: 19px; line-height: 1.55; margin-bottom: 8px; }
.training-open { min-height: 44px; line-height: 1.55; }
.training-tile > p { font-size: 13px; margin-bottom: 14px; }
.tile-activities { gap: 5px; margin-bottom: 18px; }
.tile-activities span { color: #52637b; background: #f1f4f9; padding: 3px 6px; font-size: 12px; }
.tile-view { padding-top: 13px; color: var(--blue); min-height: 48px; }

/* A restrained workspace keeps practice, peer work, and feedback connected. */
.room-presence { border-color: #dce8e3; background: #f4faf7; border-radius: 11px; padding: 10px 16px; margin-top: 16px; }
.presence-room-name, .presence-info strong { font-size: 13px; }
.presence-help { font-size: 11px; }
.toolbar { padding: 18px 20px; border-radius: 14px; margin-bottom: 22px; gap: 16px; }
.work-outline { padding: 20px; border-radius: 14px; margin-bottom: 20px; }
.learning-overview { margin-bottom: 16px; padding-bottom: 16px; }
.work-outline-heading { margin-bottom: 14px; }
.work-outline-heading h2 { font-size: 19px; }
.work-exercise-list { gap: 8px; }
.work-exercise-chip { padding: 12px; min-height: 72px; border-radius: 10px; background: #f9fbfe; }
.work-exercise-chip[aria-pressed=true] { background: var(--surface-selected); border-color: #5b74cc; box-shadow: inset 3px 0 0 var(--blue); }
.work-chip-name { font-size: 14px; }
.work-chip-status { font-size: 12px; }
.work-chip-count { color: #526581; }
.work-sticky-nav { padding: 13px 16px; border-radius: 12px; box-shadow: 0 4px 14px rgb(30 47 81 / 6%); border-color: #d1dbec; margin-bottom: 24px; }
.work-picker-field select { background-color: var(--surface-soft); }
.work-results-heading h2 { font-size: 23px; }
.work-practice-guide { background: #fdfefe; border-color: var(--line); }
.work-grid, .activity-page-grid { gap: 18px; }
.work-grid .card, .activity-page-grid .card { border-radius: 13px; box-shadow: var(--shadow-card); padding: 18px; }
.card-top { gap: 9px; margin-bottom: 12px; }
.card-name { font-size: 14px; }
.time { color: #63718a; font-size: 12px; }
.card .rule { background: #f7f9fc; color: #4f6079; line-height: 1.75; }
.rule small { color: #5f7190; font-size: 12px; letter-spacing: 0; }
.card-title { min-height: 44px; }
.heart-button { min-height: 44px; min-width: 72px; font-size: 22px; border-radius: 10px; }
.heart-button.liked { color: #b8315e; background: #fff2f6; border-color: #edbbce; }
.work-pagination .button, .work-step-controls .button { min-height: 44px; }
.work-sharing-guide { margin: 14px 0 18px; font-size: 13px; }

/* Form cards are distinct from reference/help content. */
.form-layout { gap: 28px; }
.form-section + .form-section { margin-top: 26px; padding-top: 24px; }
.form-section h2 { font-size: 19px; }
.form-section h2 span { font-size: 13px; margin-right: 9px; }
.submission-progress { padding: 14px 16px; border-color: #d9e3f6; background: #f3f6ff; margin-bottom: 24px; }
.submission-progress strong { font-size: 14px; }
.submission-progress .hint { font-size: 12px; }
.course-choice-grid, .exercise-choice-grid { gap: 10px; }
.course-choice, .exercise-choice { border-radius: 11px; background: var(--surface); border-color: #d5dfec; padding: 16px; gap: 7px; min-height: 64px; }
.course-choice strong { font-size: 16px; }
.course-choice .choice-meta { font-size: 12px; color: #546783; }
.course-choice[aria-pressed=true], .exercise-choice[aria-pressed=true] { background: var(--surface-selected); border-color: #5c75cd; box-shadow: inset 3px 0 var(--blue); }
.choice-selected { font-size: 12px; font-weight: 600; }
.choice-list-fallback > summary { min-height: 44px; align-content: center; }
.exercise-choice { padding: 13px; }
.aside-note { border-radius: 13px; background: #f0f4fa; padding: 22px; }
.aside-note h2 { font-size: 16px; }
.aside-note ol, .aside-note ul { padding-left: 22px; line-height: 1.9; }
.story-field-example, .story-example-note { background: #f4f7fc; color: #475a77; }
.story-field-example { border-left-color: #9db2de; }
.report-block, .completion-essential { border-color: var(--line); border-radius: 12px; }
.report-optional, .completion-optional, .report-check { border-radius: 12px; }
.course-date-label { font-size: 14px; color: #405b87; }
.submit-footer .button { min-height: 48px; }

/* My work uses the same cards, filters, and readable secondary information. */
.library-summary { gap: 30px; padding: 16px 20px; margin-bottom: 24px; border-radius: 13px; }
.library-summary strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.library-layout { gap: 26px; }
.library-courses button { border-radius: 9px; min-height: 48px; padding: 11px 12px; }
.library-courses button[aria-pressed=true] { background: var(--blue-pale); border-color: #d0dcf6; color: var(--blue); }
.library-tabs button, .library-views button { min-height: 44px; border-radius: 7px; }
.library-tabs button[aria-pressed=true] { background: var(--blue-pale); color: var(--blue); }
.library-views { background: #eaf0f8; }
.library-results { gap: 16px; }
.library-work { border-color: var(--line); border-radius: 13px; box-shadow: var(--shadow-card); }
.library-work-top { padding: 16px 18px; background: #f7f9fd; border-color: var(--line); }
.library-work-body { padding: 18px 18px 0; }
.library-work-body h2 { font-size: 19px; }
.library-step { background: #eaf0fc; color: #49628e; border-radius: 8px; min-width: 36px; height: 40px; font-size: 16px; }
.library-work-actions { padding: 12px 18px 18px; }
.library-work-actions .button { min-height: 44px; }
.library-progress { border-color: #dce7e5; background: #f2f8f6; border-radius: 13px; padding: 20px; }
.library-progress h2 { font-size: 19px; }

/* Administration follows the learner interface instead of looking like a separate app. */
.admin-workspace-tabs { padding: 5px; gap: 5px; background: #edf2f9; border-color: #dce4ef; border-radius: 12px; margin-bottom: 22px; }
.admin-workspace-tabs button { font-size: 14px; border-radius: 8px; min-height: 46px; padding: 10px 14px; }
.admin-workspace-tabs button[aria-selected=true] { border-color: #d6e0f0; color: var(--blue); box-shadow: 0 2px 4px rgb(30 47 81 / 4%); }
.stat-grid { gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow-card); }
.stat strong { font-size: 29px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.stat span { font-size: 13px; }
.operations-overview { border-radius: 13px; padding: 20px; margin-bottom: 24px; }
.operations-heading h2 { font-size: 18px; }
.operations-checks { gap: 10px; }
.operations-checks details { background: #fafbfd; border-color: #e1e7f0; }
.operations-checks summary { font-size: 13px; }
.admin-workspace { margin-top: 22px; }
.admin-search-bar { margin: 14px 0 20px; max-width: 680px; }
.admin-training { padding: 22px; border-radius: 14px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.admin-training h3 { font-size: 21px; }
.admin-training .meta { font-size: 13px; margin-bottom: 10px; }
.admin-training code { background: #f0f4fa; color: #52647f; font-size: 13px; }
.admin-training-actions { gap: 7px; }
.practice-stats { gap: 10px; }
.practice-stat-button { border-color: #e0e6ef; background: #f7f9fc; border-radius: 10px; padding: 12px; min-height: 64px; }
.practice-stat-button .practice-stat-label { font-size: 14px; }
.practice-stat-button .practice-stat-action { font-size: 12px; }
.practice-stat-button:hover { border-color: #acbfe7; background: #f0f4ff; }
.admin-submission-details { margin-top: 18px; }
.admin-submission-details > summary { min-height: 48px; font-size: 14px; padding: 12px 0; }
.admin-row { padding: 14px 0; }
.admin-workspace #training-editor { max-width: 1120px; }
.editor-step-tabs { background: #f0f4fa; border-radius: 10px; margin: 20px 0; }
.editor-step-tabs button { min-height: 46px; font-size: 14px; border-radius: 7px; }
.editor-basic-grid { column-gap: 22px; }
.editor-question-layout { gap: 22px; grid-template-columns: 220px minmax(0, 1fr); }
.editor-outline { gap: 7px; }
.editor-outline > button { background: #f8fafd; border-color: #dfe6f0; border-radius: 9px; min-height: 64px; }
.editor-outline > button[aria-current=true] { background: var(--surface-selected); border-color: #8ba5da; }
.editor-question-content .activity-settings h3 { font-size: 20px; }
.editor-question-content details.editor-question { border-color: #dce4ef; border-radius: 10px; }
.editor-question > summary { padding: 13px 14px; min-height: 60px; }
.editor-question > summary [data-question-title] { font-size: 14px; }
.editor-question-number { background: #eef3fb; color: #425f99; }
.editor-question-body { background: #f9fbfe; padding: 18px; border-radius: 0 0 10px 10px; }
.editor-save-bar { border-color: #cfdced; border-radius: 12px; box-shadow: var(--shadow-floating); padding: 12px 16px; }
.editor-save-bar .hint { color: #62728a; }
.showcase-policy { background: #f5f8fe; border-color: #dfe6f1; padding: 16px 18px; }
.candidate-filters { padding: 16px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; }
.candidate-filters label { font-weight: 600; }
.candidate-badges span { border-radius: 6px; }

/* The selection stays editable while the learner concentrates on the answer. */
.submission-context { max-width: 1040px; margin: -4px auto 22px; padding: 14px 18px; border: 1px solid #dbe4f3; border-radius: 12px; background: #f0f5ff; display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.submission-context > div:first-child { flex: 1; min-width: 0; }
.submission-context strong { display: block; color: #435b85; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.submission-context span { display: block; color: var(--ink); font-size: 15px; font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; }
.submission-context-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.submission-context-links .text-button { color: #3557a5; font-size: 13px; min-height: 44px; white-space: nowrap; }
.submission-choice-details { border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.submission-choice-details > summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 4px 12px; padding: 13px 15px; min-height: 62px; cursor: pointer; list-style: none; }
.submission-choice-details > summary::-webkit-details-marker { display: none; }
.submission-choice-details > summary::after { content: '⌄'; grid-column: 2; grid-row: 1 / 3; font-size: 19px; text-align: center; color: #5d7096; }
.submission-choice-details[open] > summary::after { content: '⌃'; }
.submission-choice-details > summary:hover { background: #f8faff; border-radius: 11px; }
.choice-summary-label { grid-column: 1; font-size: 12px; color: var(--muted); }
.choice-summary-value { grid-column: 1; font-size: 15px; color: #263958; min-width: 0; overflow-wrap: anywhere; }
.submission-choice-content { border-top: 1px solid var(--line); padding: 16px; }
.submission-choice-content .course-choice-grid { margin-top: 0; }
.submission-choice-content .choice-list-fallback { margin-bottom: 0; }
.submission-choice-content .grid-two { gap: 14px; }
.submission-choice-content .exercise-choice-grid { margin-bottom: 0; }

/* Choose one training to manage, then read its participants and submissions together. */
.admin-course-browser { margin: 0 0 24px; }
.admin-course-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, .85fr) minmax(180px, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-course-tools > div { min-width: 0; }
.admin-course-tools label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.admin-course-tools input, .admin-course-tools select { width: 100%; min-width: 0; }
.admin-course-browser > .hint { margin: 12px 2px; font-size: 13px; }
.admin-course-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-course-choice { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; font: inherit; min-width: 0; cursor: pointer; }
.admin-course-choice:hover { border-color: #9bb0df; background: #fafbff; }
.admin-course-choice[aria-pressed=true] { border-color: #6b85d0; background: var(--surface-selected); box-shadow: inset 3px 0 var(--blue); }
.admin-course-choice > strong { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.admin-course-choice-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 12px; color: #46618d; }
.admin-course-choice-meta > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.admin-course-choice-meta > span:last-child { flex-shrink: 0; font-size: 11px; color: #506783; padding: 2px 6px; background: #f0f4fa; border-radius: 5px; }
.admin-course-choice-code, .admin-course-choice-stats { font-size: 12px; color: #5b6c84; overflow-wrap: anywhere; }
.admin-course-choice-stats { margin-top: auto; }
.admin-course-choice-selected { visibility: hidden; font-size: 12px; font-weight: 700; color: var(--blue); }
.admin-course-choice[aria-pressed=true] .admin-course-choice-selected { visibility: visible; }
.admin-course-overview { margin: 20px 0; }
.admin-course-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: #f7f9fd; border: 1px solid var(--line); border-radius: 11px; }
.admin-course-metrics > div { padding: 16px 18px; min-width: 0; }
.admin-course-metrics > div + div { border-left: 1px solid var(--line); }
.admin-course-metrics dt { font-size: 12px; color: #586b86; }
.admin-course-metrics dd { margin: 5px 0 0; font-size: 25px; font-weight: 700; color: #263c63; font-variant-numeric: tabular-nums; line-height: 1.4; }
.admin-course-metrics dd > span { font-size: 12px; font-weight: 500; margin-left: 5px; color: #5e708b; }
.admin-course-overview > .hint { margin-top: 9px; font-size: 12px; }
.admin-course-empty { border: 1px dashed #cad5e7; border-radius: 12px; padding: 24px; background: #fff; text-align: center; }
.admin-course-empty p { font-size: 15px; margin-bottom: 12px; }
.admin-selected-course { border-color: #cedaed; }

/* Public-facing identity is intentionally quiet and visible on every page. */
.footer { padding: 22px 32px 26px; gap: 12px 24px; align-items: center; flex-wrap: wrap; }
.footer > span { font-size: 12px; color: #62728a; }
.footer .creator-credit { margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: .03em; color: #63748b; white-space: nowrap; }
.footer .creator-credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; padding: 15px 24px 12px; gap: 12px 20px; }
  .header-inner > .brand { flex: 1; }
  .header-inner > .header-account { order: 1; }
  .header-inner > nav { order: 2; flex-basis: 100%; justify-content: flex-start; }
  .header nav a { font-size: 14px; padding: 9px 13px; }
}
@media (max-width: 1000px) {
  main { padding: 28px 24px 44px; }
  .collection-hero.collection-hub { padding: 24px; gap: 24px; }
  .collection-hub h1 { font-size: 29px; }
  .form-layout { gap: 22px; }
  .library-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .editor-question-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
  .admin-course-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submission-context { align-items: flex-start; }
  .submission-context-links { max-width: 190px; gap: 0; }
}
@media (max-width: 700px) {
  main { padding: 24px 16px 36px; }
  .header-inner { padding: 13px 16px 10px; gap: 12px 10px; }
  .header-inner > .brand { min-width: 0; font-size: 17px; gap: 8px; }
  .brand-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 26px; }
  .header-inner .brand small { font-size: 10px; }
  .header-inner > nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
  .header nav a { min-height: 44px; padding: 8px 3px; font-size: 12px; }
  .profile-menu > summary { min-height: 44px; padding: 6px 8px; gap: 7px; }
  .profile-menu small { font-size: 11px; max-width: 65px; }
  .profile-menu strong { font-size: 12px; }
  .page-title, .form-page-title { margin-bottom: 22px; }
  .page-title h1, .form-page-title h1 { font-size: 26px; }
  .page-title .intro, .form-page-title .intro { font-size: 14px; }
  .panel { padding: 22px 18px; }
  .button, .button.small { min-height: 44px; }
  :is(main, dialog) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px; }
  .collection-hero.collection-hub { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; margin-bottom: 24px; }
  .collection-hub h1 { font-size: 27px; }
  .collection-hub .intro { font-size: 14px; }
  .hub-actions .button { min-width: 0; padding: 10px 12px; }
  .resume-training { padding: 18px; }
  .resume-training > strong { font-size: 18px; }
  .collection-heading h2 { font-size: 21px; }
  .collection-search { width: 100%; }
  .training-library { gap: 14px; }
  .training-tile { padding: 20px; }
  .category-filters button { font-size: 13px; }
  .room-presence { margin: 12px 16px 0; padding: 10px 13px; }
  .presence-room-name, .presence-room-picker { min-width: 0; flex-basis: 100%; }
  .presence-help { text-align: left; }
  .toolbar { padding: 16px; }
  .work-outline { padding: 16px; }
  .work-exercise-chip { padding: 11px; gap: 7px; min-height: 76px; }
  .work-chip-name { font-size: 13px; }
  .work-chip-status { font-size: 11px; }
  .work-sticky-nav { padding: 12px; }
  .work-step-controls .button { font-size: 13px; min-height: 44px; }
  .work-results-heading h2 { font-size: 21px; }
  .work-personal-actions { gap: 8px; }
  .work-personal-actions .button { padding: 10px 9px; }
  .work-pagination .button, .work-pagination select { min-height: 44px; font-size: 13px; }
  .work-grid .card, .activity-page-grid .card { padding: 18px; }
  .work-grid .card-top .time { font-size: 12px; }
  .course-choice { padding: 15px; }
  .exercise-choice { padding: 12px; }
  .course-choice-grid { grid-template-columns: minmax(0, 1fr); }
  .course-choice strong { font-size: 15px; }
  .form-section h2 { font-size: 18px; }
  .submission-progress { padding: 14px; }
  .form-layout aside { margin-top: 20px; }
  .aside-note { padding: 20px; }
  .library-summary { padding: 15px; gap: 14px; }
  .library-summary span { font-size: 12px; }
  .library-summary strong { font-size: 23px; }
  .library-work-top { padding: 15px 16px; }
  .library-work-body { padding: 17px 16px 0; }
  .library-work-actions { padding: 12px 16px 18px; }
  .library-work-actions .button { padding: 10px 12px; }
  .library-tabs, .library-views { flex-wrap: wrap; }
  .library-sort { min-width: 0; }
  .stat-grid { gap: 8px; }
  .stat { padding: 14px 12px; }
  .stat span { font-size: 12px; }
  .stat strong { font-size: 25px; }
  .admin-workspace-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .admin-workspace-tabs button { font-size: 13px; padding: 9px 7px; }
  .operations-overview { padding: 18px; }
  .operations-checks { grid-template-columns: minmax(0, 1fr); }
  .admin-training { padding: 19px 16px; }
  .admin-training h3 { font-size: 20px; }
  .admin-training-actions { width: 100%; }
  .admin-training-actions .button { padding: 9px 10px; }
  .practice-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .practice-stat-button { min-height: 60px; }
  .editor-question-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .editor-mobile-selector { padding: 10px; border-radius: 10px; }
  .editor-question-body { padding: 14px; }
  .editor-save-bar { padding: 12px; bottom: 8px; }
  .editor-save-actions .button { font-size: 13px; min-height: 44px; padding: 10px 8px; }
  .candidate-filters { padding: 14px; }
  .candidate-filters > div { min-width: 0; }
  .submission-context { padding: 14px; display: block; margin: -4px 0 20px; }
  .submission-context-links { max-width: none; justify-content: flex-start; gap: 4px 16px; margin-top: 5px; }
  .submission-context-links .text-button { font-size: 12px; }
  .submission-context strong { font-size: 12px; }
  .submission-context span { font-size: 14px; }
  .submission-choice-details > summary { padding: 12px; }
  .submission-choice-content { padding: 12px; }
  .submission-choice-content .grid-two { gap: 0; }
  .choice-summary-value { font-size: 14px; }
  .admin-course-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 15px; }
  .admin-course-search { grid-column: 1 / -1; }
  .admin-course-tools label { font-size: 12px; }
  .admin-course-tools select { padding-left: 9px; padding-right: 20px; font-size: 16px; }
  .admin-course-choices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .admin-course-choice { padding: 15px; gap: 6px; }
  .admin-course-choice > strong { font-size: 15px; }
  .admin-course-choice-selected { display: none; }
  .admin-course-choice[aria-pressed=true] .admin-course-choice-selected { display: block; }
  .admin-course-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-course-metrics > div { padding: 14px; }
  .admin-course-metrics > div:nth-child(3) { border-left: 0; }
  .admin-course-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .admin-course-metrics dd { font-size: 24px; }
  .footer { padding: 20px 16px 24px; gap: 5px; align-items: flex-start; }
  .footer > span { font-size: 11px; }
  .footer .creator-credit { margin: 8px 0 0; font-size: 11px; }
}
@media (max-width: 370px) {
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .header-inner > .brand { font-size: 15px; }
  .brand-icon { width: 32px; height: 32px; }
  .header-inner .brand small { font-size: 9px; }
  .profile-menu > summary { padding: 6px; }
  .profile-menu strong { font-size: 11px; }
  .header nav a { font-size: 11px; }
  .work-chip-count { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :is(.button, .training-tile, .heart-button, .practice-stat-button, .work-exercise-chip) { transition: none; }
}

.form-layout > .form-safety-status { grid-column: 1 / -1; margin: 0; }
.candidate-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.form-safety-dialog { max-width: min(480px, calc(100vw - 32px)); }
.form-safety-dialog .dialog-actions { flex-wrap: wrap; }

.submission-footer-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.submit-footer .submission-footer-navigation .button { width: 100%; margin: 0; text-align: center; white-space: normal; }
.submission-navigation-note { margin: 12px 0 0; font-size: 12px; line-height: 1.7; }
@media (max-width: 600px) {
  .submission-footer-navigation { grid-template-columns: 1fr; gap: 8px; }
}

/* Original Byeoli artwork, displayed without the former blue tile. */
.story-preparation,.story-optional { margin: 20px 0; padding: 18px 20px; border: 1px solid #dbe3ed; border-radius: 14px; background: #f8fafc; }
.story-preparation summary,.story-optional summary { cursor: pointer; font-weight: 700; color: #183b56; line-height: 1.7; }
.story-preparation[open] summary,.story-optional[open] summary { margin-bottom: 16px; }
.story-preparation p { line-height: 1.8; }
.story-preparation textarea { margin-top: 10px; line-height: 1.7; resize: vertical; }
.story-preparation-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.story-preparation [data-story-result] { margin-top: 20px; }
@media (max-width: 600px) { .story-preparation,.story-optional { padding: 15px; } .story-preparation-actions .button { width: 100%; } }
.brand-icon { display: block; width: 52px; height: 52px; object-fit: cover; background: transparent; border-radius: 0; flex-shrink: 0; }
.story-resources { margin: 4px 0 26px; padding: 20px; border: 1px solid #d8e4ed; border-radius: 14px; background: #f6fafb; }
.story-resources-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.story-resources-heading h3 { margin: 3px 0 8px; font-size: 18px; }
.story-resources-heading .eyebrow { margin: 0; font-size: 12px; color: #406b73; }
.story-resource-flow { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 12px 0; list-style: none; counter-reset: story-flow; }
.story-resource-flow li { counter-increment: story-flow; font-size: 12px; color: #375968; line-height: 1.8; }
.story-resource-flow li::before { content: counter(story-flow); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; background: #e1efee; border-radius: 50%; font-size: 11px; font-weight: 700; }
.story-resource-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.story-resource-links .button { min-height: 44px; white-space: normal; }
.story-step-map { margin-top: 16px; border-top: 1px solid #dce7eb; padding-top: 12px; }
.story-step-map summary { min-height: 44px; padding: 12px 0; box-sizing: border-box; cursor: pointer; font-size: 12px; color: #47677a; }
.story-step-map ol { list-style: none; padding: 0; margin-bottom: 0; }
.story-step-map li { display: grid; grid-template-columns: 86px 1fr; gap: 4px 10px; padding: 10px; border-radius: 8px; font-size: 12px; }
.story-step-map li[aria-current=step] { background: #e8f1f3; }
.story-step-map small { grid-column: 2; color: #587180; }
@media (max-width: 600px) { .story-resources { padding: 15px; } .story-resources-heading h3 { font-size: 16px; } .story-resource-flow { display: grid; gap: 7px; } .story-resource-links { display: grid; } }
@media (max-width: 700px) { .brand-icon { width: 44px; height: 44px; } }
@media (max-width: 370px) { .brand-icon { width: 40px; height: 40px; } }

/* SPARK-L: one decision at a time, with optional evidence kept nearby. */
.spark-form { min-width: 0; }
.spark-intro { margin: 0 0 20px; padding: 16px 18px; border-left: 3px solid #4961b8; background: #f5f7fc; border-radius: 0 10px 10px 0; color: #33486c; line-height: 1.8; }
.spark-essential,.spark-reason,.spark-final { min-width: 0; }
.spark-form .field { margin-bottom: 24px; }
.spark-field-help { margin: 0 0 9px; line-height: 1.75; }
.spark-field-example { margin: 0 0 12px; padding: 10px 13px; color: #465d79; border-radius: 8px; background: #f6f8fc; font-size: 13px; line-height: 1.75; }
.spark-field-example strong { color: #304467; margin-right: 5px; }
.spark-form textarea { min-height: 90px; line-height: 1.8; resize: vertical; }
.spark-form textarea[maxlength="1500"] { min-height: 150px; }
.spark-optional,.spark-change-details { margin: 12px 0; border: 1px solid #dae2ec; border-radius: 12px; background: #fff; padding: 0 18px; }
.spark-optional > summary,.spark-change-details > summary { cursor: pointer; min-height: 48px; padding: 14px 0; box-sizing: border-box; color: #344c70; font-size: 14px; font-weight: 700; line-height: 1.7; }
.spark-optional[open] > summary,.spark-change-details[open] > summary { border-bottom: 1px solid #e5eaf1; margin-bottom: 18px; }
.spark-optional .field:last-child,.spark-change-row .field:last-child { margin-bottom: 10px; }
.spark-change-row { border: 0; margin: 0; padding: 12px 0; min-width: 0; }
.spark-change-row legend { font-size: 15px; font-weight: 800; padding: 0; color: #223a63; }
.spark-change-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
.spark-change-grid > .field:first-child { grid-column: 1 / -1; }
.spark-reason { margin-top: 26px; }
.spark-form summary:focus-visible { outline: 3px solid #8c9aff; outline-offset: 3px; border-radius: 5px; }
@media (max-width: 600px) {
 .spark-change-grid { grid-template-columns: 1fr; }
 .spark-optional,.spark-change-details { padding: 0 13px; }
 .spark-intro { padding: 13px 15px; }
}

.spark-resources { margin: 4px 0 26px; padding: 20px; border: 1px solid #d8e2f2; border-radius: 14px; background: #f7f9fd; }
.spark-resource-heading h3 { margin: 7px 0 14px; font-size: 18px; line-height: 1.6; }
.spark-resource-phase { margin: 0; color: #415c94; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.spark-resource-flow { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; counter-reset: spark-flow; }
.spark-resource-flow li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.75; font-size: 13px; color: #394f6e; counter-increment: spark-flow; }
.spark-resource-flow li::before { content: counter(spark-flow); flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #e6ecfa; color: #334fa1; font-weight: 800; font-size: 11px; }
.spark-resource-help,.spark-resource-return { font-size: 12px; line-height: 1.8; color: #4b607c; }
.spark-resource-help { padding-top: 12px; border-top: 1px solid #dfe6f1; }
.spark-resource-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.spark-resource-links .button { min-height: 44px; white-space: normal; line-height: 1.6; }
.spark-resource-return { margin-bottom: 0; }
@media (max-width: 600px) {
 .spark-resources { padding: 15px; }
 .spark-resource-heading h3 { font-size: 16px; }
 .spark-resource-links { display: grid; }
}

/* Workshop flow: selected actions must remain unmistakable. */
.header nav a.active,.header nav a.active:hover { color: #fff; background: #293fac; box-shadow: inset 0 -3px 0 #10226f; }
:is(.work-exercise-chip,.course-choice,.exercise-choice,.admin-course-choice)[aria-pressed=true] { background: #263caa; border: 2px solid #142778; color: #fff; box-shadow: 0 0 0 3px #d8e0ff, 0 5px 14px rgb(35 56 151 / 15%); }
:is(.work-exercise-chip,.course-choice,.exercise-choice,.admin-course-choice)[aria-pressed=true] :is(strong,span,small,b,.choice-meta,.choice-selected,.work-chip-status) { color: #fff; }
.work-exercise-chip[aria-pressed=true] :is(.work-chip-number,.work-chip-count) { background: transparent; color: #fff; }
.exercise-choice[aria-pressed=true]::after { content: '✓ 선택한 실습'; font-size: 12px; font-weight: 800; }
.library-tabs button[aria-pressed=true],.category-filters button[aria-pressed=true],.editor-outline button[aria-current=true] { background: #293fac; color: #fff; border-color: #1a2a80; }
.editor-outline button[aria-current=true] :is(span,small) { color: #fff; }
.submission-context.has-selected-activity { border: 2px solid #354fbc; border-left-width: 7px; background: #eef2ff; box-shadow: 0 3px 12px rgb(27 49 120 / 9%); }
.submission-context.has-selected-activity > div:first-child > span { color: #213794; font-size: 17px; }
.submission-title-row { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 24px; padding: 14px 16px; background: #f3f6fc; border: 1px solid #d7dfed; border-radius: 12px; }
.submission-activity-tag { flex-shrink: 0; color: #fff; background: #293fac; border-radius: 7px; padding: 5px 9px; font-weight: 800; font-size: 12px; }
.submission-activity-tag:empty { display: none; }
#submission-title-options { flex: 1; min-width: 0; }
#submission-title-options summary { cursor: pointer; min-height: 36px; line-height: 1.8; }
#submission-title-options summary strong { font-size: 15px; }
#submission-title-options summary span { display: block; font-size: 12px; color: #4d6290; }
#submission-title-options .field { margin: 14px 0 0; }
.quick-optional { margin: 16px 0; border-top: 1px solid #dce4ef; padding-top: 12px; }
.quick-optional summary { cursor: pointer; padding: 12px 0; color: #435a7d; font-size: 14px; font-weight: 700; }
.quick-submission .preview-hint,.quick-submission #link-preview-box { display: none; }
.quick-submission .form-section { padding-bottom: 20px; margin-bottom: 20px; }
.quick-submission .submit-footer { border-top: 1px solid #dce4ef; padding-top: 18px; }
.detail-reactions { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px; border: 1px solid #efdae2; background: #fff9fb; border-radius: 12px; }
.detail-reactions > span { font-size: 13px; color: #6e4c61; }
.detail-reactions .heart-button { min-height: 48px; min-width: 86px; }
.work-sync-status { color: #247452; font-size: 12px; font-weight: 700; }
.submission-saved-banner { padding: 16px 20px; border: 1px solid #b8dacb; border-radius: 12px; background: #eef9f3; color: #155639; font-weight: 700; }
@media (max-width: 600px) {
 .submission-title-row { padding: 12px; gap: 8px; }
 .detail-reactions { flex-wrap: wrap; }
 .work-sync-status { width: 100%; }
 .submission-context.has-selected-activity > div:first-child > span { font-size: 15px; }
}

.consent-default-notice { margin: 16px 0; padding: 14px 16px; border: 1px solid #cdd8f4; border-radius: 12px; background: #f1f5ff; color: #294578; font-size: 14px; line-height: 1.8; }
.story-inherited-link { padding: 12px 14px; border-left: 4px solid #36765d; border-radius: 8px; background: #eff8f3; color: #215840; font-size: 14px; line-height: 1.8; }
.participant-progress { margin-top: 22px; min-width: 0; }
.participant-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.participant-progress-heading h3 { margin: 0; font-size: 21px; }
.participant-progress-heading button { flex-shrink: 0; }
.participant-progress-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.participant-progress-summary span { padding: 10px 14px; border: 1px solid #dae4f0; background: #f6f9fd; border-radius: 10px; color: #4b5f7c; font-size: 14px; }
.participant-progress-summary b { color: #203a80; margin-left: 8px; }
.participant-progress-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 20px 0 14px; }
.participant-progress-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; min-width: 0; }
.participant-progress-filters input,.participant-progress-filters select { width: 100%; min-width: 0; font-size: 14px; min-height: 44px; }
.admin-course-tools { grid-template-columns: minmax(0,2fr) minmax(180px,1fr); }
.admin-course-sections { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.admin-course-sections button { display:flex; align-items:center; gap:9px; padding:12px 18px; min-height:48px; border:1px solid #dae2ef; border-radius:11px; background:#fff; color:#526581; font-weight:750; cursor:pointer; }
.admin-course-sections button span { font-size:12px; padding:2px 7px; border-radius:6px; background:#edf2f9; }
.admin-course-sections button[aria-pressed=true] { background:#293fac; border-color:#293fac; color:#fff; box-shadow:0 2px 6px #263caa20; }
.admin-course-sections button[aria-pressed=true] span { background:#ffffff25; color:#fff; }
.admin-course-choice[aria-pressed=true] .admin-course-choice-meta > span:last-child { background:#ffffff25; }
.admin-selected-course > .participant-progress { padding-top:24px; border-top:1px solid #e1e8f3; }
.admin-course-materials { margin-top:24px; border-top:1px solid #dce4ef; padding-top:6px; }
.admin-course-materials > summary { cursor:pointer; padding:18px 4px; font-size:15px; font-weight:750; color:#344b82; }
.admin-materials-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.participant-progress-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 20px; margin-bottom:12px; }
.participant-progress-caption p { margin:0; }
.participant-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr)); align-items:start; gap:16px; }
.participant-card { min-width:0; background:#fff; border:1px solid #d6e0ed; border-radius:15px; box-shadow:0 2px 5px #273d6010; overflow:hidden; }
.participant-card.complete { border-color:#a8d4c1; }
.participant-card[open] { border-color:#536bc7; box-shadow:0 0 0 2px #e7edff; }
.participant-card > summary { list-style:none; display:block; padding:20px; cursor:pointer; }
.participant-card > summary::-webkit-details-marker { display:none; }
.participant-card > summary:hover { background:#f8faff; }
.participant-card > summary:focus-visible { outline:3px solid #6174d3; outline-offset:-4px; border-radius:14px; }
.participant-card-top { display:flex; gap:10px; align-items:center; }
.participant-avatar { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border-radius:12px; background:#edf1fc; color:#364e99; font-weight:750; }
.participant-identity { min-width:0; flex:1; }
.participant-identity strong { display:block; font-size:17px; color:#172b4d; overflow-wrap:anywhere; }
.participant-identity small { display:block; margin-top:4px; font-size:12px; color:#64748b; overflow-wrap:anywhere; }
.participant-state { flex-shrink:0; font-size:11px; border-radius:7px; padding:5px 7px; color:#5a6b85; background:#f0f3f8; }
.participant-card.complete .participant-state { color:#196047; background:#e8f6ed; }
.participant-card.started .participant-state { color:#304da3; background:#edf1ff; }
.participant-total { display:flex; align-items:baseline; gap:9px; color:#576b89; font-size:13px; margin:22px 0 12px; }
.participant-total b { color:#243e84; font-size:27px; font-weight:800; line-height:1.1; margin-left:4px; }
.participant-total > span:last-child b { font-size:18px; color:#50627c; }
.participant-total-divider { color:#a2aec1; font-size:20px; }
.participant-card progress { display:block; appearance:none; border:0; border-radius:8px; overflow:hidden; width:100%; height:7px; background:#edf1f8; color:#4563c1; accent-color:#4563c1; }
.participant-card progress::-webkit-progress-bar { background:#edf1f8; }
.participant-card progress::-webkit-progress-value { background:#4563c1; border-radius:8px; }
.participant-card.complete progress::-webkit-progress-value { background:#348161; }
.participant-card progress::-moz-progress-bar { background:#4563c1; border-radius:8px; }
.participant-exercise-marks { display:flex; flex-wrap:wrap; gap:6px; margin:16px 0; }
.participant-exercise-marks > span { display:inline-flex; justify-content:center; align-items:center; gap:4px; border-radius:6px; border:1px solid #e0e6f0; padding:4px 7px; min-width:34px; font-size:12px; color:#758399; background:#f7f9fc; }
.participant-exercise-marks .submitted { color:#205c47; border-color:#c7e4d7; background:#edf7f1; font-weight:750; }
.participant-exercise-marks .selected { outline:2px solid #4c66c0; outline-offset:1px; }
.participant-filtered-exercise { display:block; padding:9px 10px; border-radius:8px; font-size:12px; background:#f0f4ff; color:#344c87; margin-bottom:12px; line-height:1.7; }
.participant-last { display:block; color:#728199; font-size:12px; margin-top:12px; }
.participant-expand { display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:750; color:#3752a1; padding-top:16px; margin-top:14px; border-top:1px solid #e9edf5; }
.participant-card:not([open]) .when-open,.participant-card[open] .when-closed { display:none; }
.participant-card[open] .participant-expand > span:last-child { transform:rotate(180deg); }
.participant-submissions { list-style:none; padding:0 20px 12px; margin:0; }
.participant-submissions li { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 12px; padding:12px 0; border-top:1px solid #e6edf6; font-size:12px; line-height:1.7; }
.participant-submissions li > span:first-child { flex:1 1 140px; color:#354b6d; overflow-wrap:anywhere; }
.participant-submissions .progress-submitted { display:inline-block; padding:6px 8px; border-radius:6px; background:#edf7f1; color:#205c47; font-weight:700; }
.participant-submissions a:hover { text-decoration:underline; background:#d9eee2; }
.participant-submissions .progress-missing { color:#758399; padding:6px 8px; }
.participant-card .progress-consent-note { display:block; font-size:12px; color:#8e6324; }
.participant-card-grid .progress-empty { grid-column:1/-1; text-align:center; padding:30px; border:1px dashed #dce4ef; border-radius:12px; color:#657791; }
@media(max-width:700px) {
 .admin-course-tools { grid-template-columns:1fr; }
 .admin-course-sections { display:grid; grid-template-columns:1fr 1fr; }
 .admin-course-sections button { padding:11px 10px; justify-content:center; font-size:13px; gap:5px; }
 .admin-materials-toolbar { align-items:flex-start; flex-direction:column; }
 .participant-progress-heading { align-items:flex-start; flex-direction:column; gap:10px; }
 .participant-progress-filters { grid-template-columns:1fr; gap:10px; }
 .participant-progress-summary { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
 .participant-progress-summary span { padding:9px; font-size:12px; }
 .participant-progress-summary b { display:block; margin:3px 0 0; font-size:18px; }
 .participant-card-grid { grid-template-columns:1fr; }
 .participant-card > summary { padding:18px; }
 .participant-submissions { padding:0 18px 12px; }
}

/* Anonymous public case reading pages. */
.showcase-article{max-width:860px;margin:0 auto;padding:24px 0 48px}
.case-back{display:inline-block;margin-bottom:28px;font-weight:700}
.case-heading{padding-bottom:28px;border-bottom:1px solid #dce3f2}
.case-heading h1{font-size:clamp(28px,4vw,40px);line-height:1.4;margin:12px 0 16px;word-break:keep-all}
.case-description{font-size:18px;line-height:1.8;color:#51627d}
.case-label{display:inline-block;padding:7px 12px;border-radius:8px;background:#eef1ff;color:#293bb0;font-size:13px;font-weight:700}
.case-intro{margin:28px 0;padding:24px 28px;background:#eef5f3;border:1px solid #d6e8e2;border-radius:16px;line-height:1.9;white-space:pre-wrap}
.case-intro p{margin:0;color:#294f49}
.case-contents{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}
.case-contents button{border:1px solid #dce3f2;border-radius:10px;background:#fff;color:#344771;padding:10px 14px;font:inherit;font-size:14px;cursor:pointer}
.case-contents button:hover{background:#eef1ff;border-color:#7483d8}
.case-contents button:focus-visible{outline:3px solid #6578e3;outline-offset:3px}
.case-section{margin:24px 0;padding:30px 32px;background:#fff;border:1px solid #dce3f2;border-radius:16px;scroll-margin-top:24px}
.case-section h2{font-size:21px;margin:0 0 20px;line-height:1.5}
.case-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.95;color:#273b58}
.case-note{font-size:14px;line-height:1.85;color:#61728c;margin:28px 0}
@media(max-width:600px){.showcase-article{padding-top:12px}.case-section,.case-intro{padding:22px 20px}.case-text{font-size:16px}.case-description{font-size:16px}}

.case-labels{display:flex;flex-wrap:wrap;gap:8px}
.case-intro h2{margin:0 0 10px;font-size:18px;color:#294f49}

/* 2026-10-16: task-first navigation and calmer workshop controls. */
.secondary-navigation { display:flex; align-items:center; gap:4px; }
.navigation-more { display:none; }
.footer-home { color:var(--blue); font-size:13px; text-underline-offset:3px; }
.showcase-title-link { color:inherit; text-decoration:none; }
.showcase-title-link:hover { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.showcase-tile .button { align-self:flex-start; }
.submission-choice-details.has-selection { border-color:#b4c3eb; background:#f8faff; }
.submission-choice-details.has-selection .choice-summary-value { color:#253da8; }
.library-progress li { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px; }
.library-progress li .button { font-size:12px; white-space:nowrap; }
.library-more { display:flex;justify-content:center;margin-top:20px; }
.library-more .button { gap:8px; }
.library-more span { font-weight:400; }
.work-results-options { display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px; }
.work-results-options .work-sync-status { padding-top:12px; }
.work-sync-controls { display:flex;align-items:center;gap:12px;flex:1;flex-wrap:wrap; }
.work-sync-controls>div { flex:1;min-width:190px; }
.work-sync-controls .work-sync-status { display:block;padding-top:0; }
.work-sync-controls #work-sync-time { display:block;font-size:12px;margin:3px 0 0; }
.work-sync-status.is-stale { color:#805211; }
.work-sync-controls #work-refresh { min-height:44px;white-space:nowrap; }
.operations-service-links { display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px; }
.operations-service ol { padding-left:24px; }
.operations-service li { margin:8px 0;line-height:1.8; }
.work-view-settings { margin-left:auto;max-width:100%; }
.work-view-settings summary { cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:var(--ink);list-style:none; }
.work-view-settings summary::-webkit-details-marker { display:none; }
.work-view-settings summary::before { content:'＋'; }
.work-view-settings[open] summary::before { content:'−'; }
#work-settings-summary { color:var(--muted);font-weight:400; }
.work-view-settings-content { display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px; }
.work-view-settings-content label { font-size:12px; }
.work-view-settings-content select { display:block;width:auto;min-height:44px;margin-top:4px; }
.work-result-count { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.work-result-count p { margin:0; }
.work-closed-note { font-size:13px;color:var(--muted);background:var(--surface-soft);padding:12px 14px;border-radius:10px; }
.participant-progress-summary { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
.participant-progress-summary > button { display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:80px;padding:14px 16px;border:1px solid #d4deef;border-radius:12px;background:#f8faff;color:#334b70;text-align:left;font:inherit;cursor:pointer; }
.participant-progress-summary > button:hover { border-color:#889ed9; }
.participant-progress-summary > button > span { padding:0;border:0;background:transparent;color:inherit;border-radius:0;font-size:13px; }
.participant-progress-summary > button > b { margin:0;font-size:24px;line-height:1.3;color:inherit; }
.participant-progress-summary > button[aria-pressed=true] { color:#fff;background:#293fac;border-color:#293fac;box-shadow:inset 0 -3px #15256e; }
.participant-progress-filters { grid-template-columns:minmax(150px,1.1fr) minmax(180px,1.35fr) minmax(200px,1.5fr) minmax(140px,1fr); }
.participant-filter-result { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px; }
.participant-filter-result p { margin:0; }
@media (max-width:1100px) { .participant-progress-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
 .header-inner > nav.primary-navigation { position:relative;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible; }
 .header nav.primary-navigation > a,.navigation-more { min-height:46px;display:flex;align-items:center;justify-content:center;gap:3px;padding:8px 3px;font-size:12px;line-height:1.4;text-align:center;border-radius:9px; }
 .navigation-more { border:1px solid transparent;background:transparent;color:var(--muted);font-family:inherit;font-weight:700;cursor:pointer; }
 .navigation-more.active { color:var(--blue);background:var(--blue-pale);border-color:#c9d4f1; }
 .navigation-more[aria-expanded=true] { color:var(--ink);border-color:#bccbeb;background:var(--surface-soft); }
 .header .secondary-navigation { display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:45;min-width:210px;max-width:100%;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-floating); }
 .header.navigation-open .secondary-navigation { display:grid;gap:4px; }
 .header .secondary-navigation a { justify-content:flex-start;padding:12px 14px;font-size:14px;text-align:left;min-height:46px; }
 .header .secondary-navigation a#admin-menu { margin:0; }
 .participant-progress-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .participant-progress-summary > button { min-height:78px;padding:12px; }
 .participant-progress-filters { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:600px) {
 .work-view-settings { width:100%; }
 .work-view-settings summary { justify-content:space-between;gap:6px; }
 .work-view-settings-content label { flex:1 1 130px; }
 .work-view-settings-content select { width:100%; }
 .work-view-settings #work-refresh { width:100%; }
 .library-progress li { grid-template-columns:minmax(0,1fr) auto; }
 .library-progress li > span { grid-column:1/-1; }
}
[hidden] { display:none !important; }
.training-reuse{padding:18px;margin:0 0 22px;border:1px solid #d6def5;border-radius:14px;background:#f5f7ff;min-width:0}
.training-reuse select{width:100%;max-width:100%;text-overflow:ellipsis}
.training-reuse-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.training-reuse-actions button{min-height:44px}
.training-reuse [data-reuse-status]:empty{display:none}

.admin-archive-notice{padding:14px 16px;margin:14px 0;border:1px solid #ecd4a1;border-radius:12px;background:#fff8e9;color:#694813;line-height:1.7}
.admin-course-choice-date{font-size:.85rem;color:var(--muted,#536480)}

/* Clear numbers without text-sized white rectangles. */
.work-chip-number{min-inline-size:1.8em;text-align:center;font-variant-numeric:tabular-nums;font-weight:800}
.work-chip-count{flex-shrink:0;font-variant-numeric:tabular-nums;font-weight:600}
.card[data-card] :is(a.card-title,a.preview-trigger){cursor:pointer}
.card[data-card] a.card-title:hover{text-decoration:underline;text-underline-offset:4px}
/* 2026-11-15 실습 카드: 한글 낱말 중간에서 줄이 끊기지 않게 */
.work-chip-name,.work-chip-status{word-break:keep-all}
/* 2026-11-16 연수방 실습 카드: 카드는 바로 쓰기, 오른쪽 아래 작품 수 단추는 아래에서 작품 보기 */
.work-exercise-chip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;cursor:default;padding:0;gap:0}
.work-chip-main{grid-row:1;grid-column:1 / -1;min-width:0;display:flex;align-items:center;gap:10px;padding:12px 14px;border:0;border-radius:inherit;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:68px}
.work-exercise-chip:has(.work-chip-main:hover){border-color:#9ca9e7;background:#f0f3ff}
.work-chip-main .work-chip-status{color:#2c48b5;font-weight:700;padding-right:84px}
.work-chip-main .work-chip-status.is-submitted{color:#22754f}
.work-exercise-chip .work-chip-count{grid-row:1;grid-column:2;position:relative;z-index:1;align-self:end;margin:0 10px 9px 0;padding:4px 10px;min-height:30px;border:1px solid #cdd6ee;border-radius:999px;background:#fff;color:#3c4f7a;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.work-exercise-chip .work-chip-count:hover{border-color:#5b74cc;color:#263caa}
.work-exercise-chip .work-chip-count[aria-pressed=true]{background:#263caa;border-color:#142778;color:#fff}
.work-exercise-chip.is-viewing{border-color:#5b74cc;box-shadow:inset 3px 0 0 #5b74cc}
@media (max-width:640px){
 .work-chip-main{padding:10px;min-height:60px;gap:7px}
 .work-chip-main .work-chip-status{padding-right:74px}
 .work-exercise-chip .work-chip-count{margin:0 8px 8px 0;padding:3px 8px;min-height:28px;font-size:11px}
}
/* 2026-11-16 작성 화면 실습 줄: 지금 실습과 다음 실습이 늘 보이게 화면 위에 고정 */
.submission-context.has-practice-steps{position:sticky;top:8px;z-index:30;flex-wrap:wrap;row-gap:8px;padding:10px 14px;box-shadow:0 6px 18px rgb(27 49 120 / 14%)}
.submission-context.has-practice-steps > div:first-child > span{display:none}
.submission-context.has-practice-steps .submission-context-links .text-button{min-height:28px}
.practice-bar{flex-basis:100%;display:flex;align-items:stretch;gap:8px;min-width:0}
.practice-steps{flex:1;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin:0;padding:0;list-style:none}
.practice-steps li{min-width:0;display:flex}
.practice-steps .practice-step span{margin:0}
.practice-steps .practice-step-text,.practice-steps .practice-step-title{color:inherit}
.practice-steps .practice-step-text{display:flex}
.practice-steps .practice-step-number{display:inline-grid}
.practice-bar .practice-next span{margin:0;color:inherit;font-size:inherit;font-weight:inherit}
.practice-steps .practice-step{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #c9d3f0;border-radius:10px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;min-height:44px}
.practice-steps .practice-step:hover{border-color:#5b74cc;background:#f6f8ff}
.practice-steps .practice-step-number{flex-shrink:0;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e6ebfb;color:#263caa;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.practice-steps .practice-step-text{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.practice-steps .practice-step-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.practice-steps .practice-step-state{font-size:11px;color:#5b6b8c}
.practice-steps .practice-step-check{display:none}
.practice-steps .practice-step.is-done .practice-step-number{background:#dff3e8;color:#1d6b45}
.practice-steps .practice-step.is-done .practice-step-state{color:#22754f;font-weight:700}
.practice-steps .practice-step.is-next{border:2px dashed #5b74cc;padding:5px 9px}
.practice-steps .practice-step.is-next .practice-step-state{color:#263caa;font-weight:800}
.practice-steps .practice-step.is-current{background:#263caa;border-color:#142778;color:#fff;box-shadow:0 0 0 3px #d8e0ff}
.practice-steps .practice-step.is-current:hover{background:#263caa}
.practice-steps .practice-step.is-current .practice-step-number{background:#fff;color:#263caa}
.practice-steps .practice-step.is-current .practice-step-state{color:#dfe6ff;font-weight:700}
.practice-next{display:none}
.submission-success-steps{max-width:900px;margin:22px auto 6px;text-align:left}
.submission-success-steps .hint{text-align:center;margin:0 0 8px}
@media (max-width:640px){
 .submission-context.has-practice-steps{top:4px;padding:8px 10px;margin:-4px 0 16px}
 .submission-context.has-practice-steps > div:first-child > strong,.submission-context.has-practice-steps .submission-context-links{display:none}
 .submission-context.has-practice-steps > div:first-child > span{display:block;margin:0;font-size:14px}
 .practice-bar{gap:6px}
 .practice-steps{gap:5px}
 .practice-steps .practice-step{justify-content:center;padding:6px 2px;min-height:40px}
 .practice-steps .practice-step.is-next{padding:5px 1px}
 .practice-steps .practice-step-text{display:none}
 .practice-steps .practice-step-number{width:26px;height:26px;font-size:13px}
 .practice-steps .practice-step.is-done .practice-step-check{display:grid;place-items:center;position:absolute;top:-6px;right:-4px;width:16px;height:16px;border-radius:50%;background:#22754f;color:#fff;font-size:10px;font-weight:800}
 .practice-next{display:inline-flex;align-items:center;flex-shrink:0;padding:0 10px;min-height:40px;white-space:nowrap}
 .practice-bar .practice-next .practice-next-long{display:none}
 .practice-bar .practice-next .practice-next-short{display:inline}
}

/* 2026-11-16 제출 화면 오른쪽: 같은 실습 다른 선생님 산출물(peer-works.mjs). 좁은 화면은 .form-layout이 한 줄이 되어 제출 칸 아래로 내려온다. */
.peer-works{margin-top:16px;border-radius:13px;background:#fff;border:1px solid #dfe5ef;padding:16px}
.peer-works h2{font-size:16px;margin:0 0 10px;line-height:1.4;word-break:keep-all}
.peer-works-count{color:#4b5875;font-weight:700}
.peer-works .hint{margin:0}
.peer-works-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.peer-work{border:1px solid #e3e8f1;border-radius:11px;padding:10px 12px;background:#fbfcfe;min-width:0}
.peer-work.is-own{border-color:#b9c4ef;background:#f3f5ff}
.peer-work-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px}
.peer-work-top .avatar{width:26px;height:26px;font-size:16px}
.peer-work-top .own-work-badge{margin-left:0}
.peer-work-name{font-size:13px;word-break:keep-all}
.peer-work-meta{margin-left:auto;color:#5b6475;font-size:12px;white-space:nowrap}
.peer-work-title{margin:6px 0 2px;font-weight:700;font-size:14px;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.peer-work-line{margin:0 0 6px;font-size:12.5px;line-height:1.5;color:#4a5263;word-break:keep-all;overflow-wrap:anywhere}
.peer-work-actions{display:flex;flex-wrap:wrap;gap:6px}
.peer-work-actions .button.small{min-height:40px;padding:6px 10px;font-size:12.5px}
.peer-works-more{margin-top:10px;width:100%}
.peer-works-empty{margin-top:4px}
/* 2026-11-16 제출 화면 오른쪽 칸이 스크롤을 따라온다(선생님 요청). 위에 고정되는 실습 줄 아래(--aside-top, peer-works.mjs가 잰 값)에 붙고,
   화면보다 길면 칸 안에서 스크롤한다. 700px 이하는 제출 칸 아래 한 줄 배치라 그대로 둔다. */
@media (min-width:701px){
 .form-layout aside.follows-scroll{position:sticky;top:var(--aside-top,16px);align-self:start;max-height:calc(100vh - var(--aside-top,16px) - 16px);overflow-y:auto;scrollbar-width:thin;padding:2px 4px 2px 2px;margin-right:-4px}
}
