/* UX flow consolidation — one clear action per screen */
.dashboard-shell { padding-top: clamp(54px,7vw,92px); }
.dashboard-welcome { margin-bottom: 34px; }
.dashboard-welcome h1 { max-width: 980px; }
.dashboard-section { margin-top: 38px; }
.dashboard-explore-section { padding-bottom: 18px; }
.explore-result-head { margin: 28px 0 16px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.explore-result-head small { color: #9a7631; font: 600 11px var(--display); letter-spacing: 2px; }
.explore-result-head h3 { margin: 5px 0 0; font: 600 27px var(--serif); }
.explore-result-head > span { color: #6e7874; font-size: 14px; }
.learner-help-strip { margin-top: 46px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid #c8c0b3; border-left: 4px solid var(--gold); background: rgba(255,253,248,.6); }
.learner-help-strip small { color: #9a7631; font: 600 11px var(--display); letter-spacing: 2px; }
.learner-help-strip h2 { margin: 7px 0 4px; font: 600 23px var(--serif); }
.learner-help-strip p { margin: 0; color: #69736f; font-size: 14px; line-height: 1.55; }
.learner-help-strip button { min-width: 210px; min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; color: var(--ink); background: var(--gold); font-weight: 700; }

.teacher-dashboard.active-studio .teacher-welcome { min-height: 0; padding-top: 58px; padding-bottom: 40px; align-items: end; }
.teacher-dashboard.active-studio .teacher-welcome h1 { font-size: clamp(39px,4.2vw,64px); }
.teacher-dashboard.active-studio .teacher-welcome > div:first-child > p:last-child { max-width: 640px; }
.inbox-channel-switch { margin: 18px 0 10px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c7bfb2; }
.inbox-channel-switch button { min-height: 48px; border: 0; color: #69736f; background: transparent; font-weight: 700; }
.inbox-channel-switch button.active { color: white; background: var(--ink); }

.canvas-return-context { width: max-content; }
.canvas-header-actions { align-items: flex-end; }
.save-state { color: #576560; font-size: 13px; }
.foundation-optional { border: 1px solid #c8c0b3; background: rgba(255,255,255,.36); }
.foundation-optional > summary { min-height: 54px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: #59635f; font-weight: 700; }
.foundation-optional > summary::-webkit-details-marker { display: none; }
.foundation-optional[open] > summary { border-bottom: 1px solid #c8c0b3; }
.foundation-optional[open] > summary b { transform: rotate(45deg); }
.foundation-optional > label { margin: 0; padding: 17px; }
.wizard-step-status { color: #34735d; font-size: 13px; font-weight: 700; }

.topic-dojo-marketplace { padding-top: 30px; }
.testing-open-badge { margin-bottom: 3px; padding: 6px 9px; color: #6e572b; background: #e9dfc9; font-size: 12px; font-weight: 800; }
.topic-level-filters.compact-filters { width: fit-content; grid-template-columns: repeat(4,auto); border: 0; background: transparent; gap: 8px; }
.topic-level-filters.compact-filters button { min-height: 40px; padding: 0 17px; display: block; border: 1px solid #bdb4a5; text-align: center; }
.topic-level-filters.compact-filters button.active { color: white; background: var(--ink); box-shadow: none; }
.topic-template-card, .training-program-card { min-height: 0; }
.topic-template-card .template-card-top, .training-program-card .program-card-status { align-items: center; }
.card-save-icon { width: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 !important; border: 1px solid currentColor !important; color: inherit !important; background: transparent !important; font-size: 19px !important; }
.topic-template-card h4, .training-program-card h4 { margin-top: 16px; }
.topic-template-card .template-primary-action, .training-program-card .template-primary-action { margin-top: 16px; }
.detail-message-teacher { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #a48345; color: #735a2b; background: transparent; font-weight: 700; }
.roadmap-detail-trail nav { display: none; }

@media (max-width: 800px) {
  .workspace-nav { padding-inline: 16px; }
  .workspace-brand { gap: 8px; }
  .workspace-brand span { font-size: 16px; letter-spacing: 2px; }
  .mode-switch-button { min-width: 0; padding-inline: 11px; font-size: 12px; }
  .dashboard-shell { padding: 50px 16px 70px; }
  .dashboard-welcome { margin-bottom: 24px; }
  .dashboard-welcome h1 { font-size: clamp(42px,12vw,60px); }
  .dashboard-section { margin-top: 28px; }
  .learner-help-strip { padding: 21px 18px; align-items: stretch; flex-direction: column; gap: 18px; }
  .learner-help-strip button { width: 100%; min-width: 0; }
  .explore-result-head { align-items: start; flex-direction: column; gap: 4px; }
  .explore-results-grid { grid-template-columns: 1fr; }
  .creator-stepper button div { display: grid !important; }
  .creator-stepper button small { display: none; }
  .creator-stepper button b { font-size: 12px; white-space: nowrap; }
  .canvas-header { padding-inline: 16px; }
  .canvas-title-block input#canvasTitle { font-size: clamp(34px,11vw,50px); }
  .canvas-header-actions { width: 100%; align-items: stretch; }
  .canvas-header-actions button { width: 100%; }
  .creator-wizard-footer { grid-template-columns: auto 1fr auto; gap: 8px; padding-inline: 12px; }
  .wizard-step-status { overflow: hidden; max-width: 110px; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
  .topic-dojo-marketplace { padding-inline: 16px; }
  .topic-hub-tabs { position: sticky; top: 0; z-index: 4; }
  .topic-level-filters.compact-filters { width: 100%; display: flex; overflow-x: auto; }
  .topic-level-filters.compact-filters button { flex: 0 0 auto; }
  .topic-template-grid, .training-program-grid { display: grid; grid-template-columns: 1fr; margin-right: 0; padding-right: 0; overflow: visible; }
  .topic-template-card { width: 100%; min-width: 0; }
  .roadmap-detail-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; }
  .roadmap-detail-close { display: none; }
  .roadmap-detail-trail { position: sticky; top: 0; z-index: 8; background: var(--paper); }
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); }
body.no-scroll { overflow: hidden !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.nav-shell {
  height: 78px; padding: 0 5vw; position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font: 600 19px var(--display); letter-spacing: 3px; }
.brand img { width: 43px; height: 43px; object-fit: cover; border-radius: 50%; filter: grayscale(1) contrast(1.15); }
.nav-actions { display: flex; align-items: center; gap: 30px; }
.text-button { color: white; background: transparent; border: 0; border-bottom: 1px solid var(--gold); padding: 7px 0; }
.language-switch { display: flex; gap: 7px; color: #71807e; align-items: center; }
.language-switch button { border: 0; color: #71807e; background: none; padding: 5px; }
.language-switch button.active { color: var(--gold-light); }
.sync-button { min-height: 42px; padding: 0 17px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: .2px; transition: .2s; }
.sync-button:hover { border-color: var(--gold-light); background: var(--gold-light); transform: translateY(-1px); }

.hero { min-height: 88vh; padding: 150px 8vw 80px; position: relative; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(9,17,19,.98) 0%, rgba(9,17,19,.83) 52%, rgba(9,17,19,.38) 100%),
    url("https://images.unsplash.com/photo-1554068865-24cecd4e34b8?auto=format&fit=crop&w=2000&q=85") center 37% / cover;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 68% 50%, transparent, rgba(8,16,18,.3)); }
.court-lines { position: absolute; right: -8vw; bottom: -23vw; width: 57vw; height: 57vw; border: 1px solid rgba(255,255,255,.13); transform: rotate(11deg); }
.court-lines::before, .court-lines::after { content: ""; position: absolute; background: rgba(255,255,255,.1); }
.court-lines::before { width: 1px; height: 100%; left: 50%; }
.court-lines::after { height: 1px; width: 100%; top: 50%; }
.hero-inner { width: min(1180px, 90vw); }
.eyebrow, .section-number { color: var(--gold-light); font: 500 14px var(--display); letter-spacing: 3px; }
.hero h1 { font: 600 clamp(50px, 6vw, 82px)/1.02 var(--serif); letter-spacing: -3px; margin: 18px 0 20px; }
.hero h1 em, .manifesto h2 em, .builder h2 em { color: var(--gold-light); font-weight: inherit; }
.hero-copy { max-width: 760px; color: #d6d9d5; font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
.hero-auth-entry { max-width: 1080px; margin: -5px 0 17px; padding: 13px 15px 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(225,199,133,.38); background: rgba(9,19,21,.78); backdrop-filter: blur(10px); }
.hero-auth-entry > div { display: flex; flex-direction: column; gap: 3px; }
.hero-auth-entry > div b { color: white; font-size: 15px; }
.hero-auth-entry > div span { color: #9eaaa7; font-size: 13px; }
.hero-auth-entry > button { min-height: 43px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 0; color: var(--ink); background: white; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hero-auth-entry > button:hover { background: #f1eee6; }
.hero-auth-entry svg { width: 18px; height: 18px; }
.hero-auth-entry button > b { margin-left: 5px; color: #9a7632; }
.topic-search { max-width: 770px; height: 72px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; padding: 7px; background: rgba(246,243,235,.97); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.search-icon { color: #53605f; font-size: 30px; text-align: center; transform: rotate(-20deg); }
.topic-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 12px; font-size: 16px; }
.topic-search button, .primary-button { height: 58px; padding: 0 27px; border: 0; background: var(--gold); color: var(--ink); font-weight: 600; }
.topic-search button:hover, .primary-button:hover { background: var(--gold-light); }
.suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; color: #8f9b99; font-size: 15px; }
.suggestions button { color: #e6e6df; border: 1px solid rgba(255,255,255,.24); padding: 7px 13px; background: rgba(10,20,22,.4); border-radius: 100px; }
.suggestions button:hover { color: var(--gold-light); border-color: var(--gold); }
.entry-paths { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; max-width: 1080px; }
.entry-card { min-height: 260px; padding: 24px; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(9px); }
.learn-entry { background: rgba(245,242,234,.96); color: var(--ink); }
.create-entry { display: flex; flex-direction: column; background: rgba(10,20,22,.78); color: white; border-color: rgba(199,160,82,.48); }
.entry-card-head { display: flex; gap: 15px; align-items: start; }
.entry-card-head > span { color: var(--gold); font: 500 13px var(--display); letter-spacing: 1px; }
.entry-card-head small { display: block; color: #9b7b3c; font: 500 11px var(--display); letter-spacing: 2px; }
.entry-card-head h2 { margin: 3px 0 0; font: 600 27px var(--serif); }
.entry-card > p { margin: 12px 0 17px; color: #626d6a; font-size: 15px; }
.create-entry > p { color: #b8c1bf; }
.entry-card .topic-search { width: 100%; max-width: none; height: 58px; padding: 5px; border: 1px solid #d0cabf; box-shadow: none; }
.entry-card .topic-search button { height: 46px; }
.entry-card .suggestions { margin-top: 12px; }
.entry-card .suggestions button { color: #4d5855; background: transparent; border-color: #bbb5aa; }
.mini-map-preview { height: 50px; margin: auto 0 17px; display: flex; align-items: center; justify-content: center; }
.mini-map-preview i { width: 35px; height: 35px; display: grid; place-content: center; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; color: white; background: #2b6c56; box-shadow: 0 4px 0 #174b3a; font: 500 13px var(--display); font-style: normal; }
.mini-map-preview i:nth-of-type(2) { background: #a9843f; box-shadow: 0 4px 0 #72571f; transform: translateY(-7px); }
.mini-map-preview b { width: 38px; height: 3px; background: repeating-linear-gradient(90deg,var(--gold) 0 5px,transparent 5px 9px); transform: rotate(-10deg); }
.mini-map-preview b:nth-of-type(2) { transform: rotate(10deg); }
.create-entry-button { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; color: var(--ink); background: var(--gold); font-weight: 600; }
.create-entry-button:hover { background: var(--gold-light); }
.hero-note { position: absolute; right: 5vw; bottom: 55px; display: flex; gap: 14px; color: #cbd1ce; font-size: 14px; line-height: 1.6; }
.hero-note span { color: var(--gold); font: 500 15px var(--display); }
.hero-note p { margin: 0; }

.manifesto, .examples { padding: 110px 8vw; }
.manifesto { background: var(--paper); color: var(--ink); }
.manifesto .section-number, .examples .section-number { color: #8b713b; }
.manifesto-grid { margin-top: 45px; display: grid; grid-template-columns: 1.05fr .8fr; gap: 11vw; }
.manifesto h2, .builder h2 { font: 600 clamp(40px, 5vw, 70px)/1.13 var(--serif); margin: 0; letter-spacing: -2px; }
.manifesto-grid > div > p { font-size: 17px; line-height: 1.9; color: #4f5957; margin: 5px 0 42px; }
.method-list { border-top: 1px solid #c8c1b4; }
.method-list span { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid #c8c1b4; }
.method-list b { color: #9a7b3e; font: 500 14px var(--display); }
.method-list i { font-style: normal; font-weight: 600; }

.examples { background: #101a1d; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.section-heading h2 { font: 600 clamp(30px, 4vw, 53px) var(--serif); margin: 0; }
.example-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.example-card { min-height: 440px; padding: 27px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.12); isolation: isolate; cursor: pointer; }
.example-card::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform .6s; }
.example-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,12,14,.95), rgba(8,16,18,.08) 75%); }
.example-card:hover::before { transform: scale(1.05); }
.example-card.pickleball::before { background: url("https://images.unsplash.com/photo-1693142518820-78d7a05f1546?auto=format&fit=crop&w=1000&q=82") center/cover; }
.example-card.tennis::before { background: url("https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?auto=format&fit=crop&w=1000&q=80") center/cover; }
.example-card.guitar::before { background: url("https://images.unsplash.com/photo-1510915361894-db8b60106cb1?auto=format&fit=crop&w=1000&q=80") center/cover; }
.example-card.cooking::before { background: url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=1000&q=80") center/cover; }
.card-index { font: 500 14px var(--display); letter-spacing: 2px; color: var(--gold-light); }
.example-card small { color: var(--gold-light); font: 500 13px var(--display); letter-spacing: 2px; }
.example-card h3 { font: 600 38px var(--serif); margin: 7px 0 10px; }
.example-card p { color: #ccd1ce; margin: 0 0 25px; line-height: 1.6; }
.example-card button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); background: rgba(10,20,22,.7); font-size: 20px; }
@media (max-width: 1100px) and (min-width: 801px) { .example-grid { grid-template-columns: repeat(2, 1fr); } }

.builder { min-height: 100vh; padding: 110px 7vw 70px; background: var(--paper); color: var(--ink); }
.builder-topbar { position: absolute; inset: 0 0 auto; height: 78px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #cfc8bb; color: #7b817f; font: 500 13px var(--display); letter-spacing: 2px; }
.back-button { background: none; border: 0; color: inherit; padding: 10px 0; }
.builder-layout { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1fr; gap: 10vw; align-items: start; }
.builder-intro { position: sticky; top: 120px; }
.builder-intro > p:last-child { color: #5f6866; line-height: 1.8; max-width: 440px; }
.brief-form { background: var(--white); padding: 38px; border-top: 4px solid var(--gold); box-shadow: 0 24px 70px rgba(27,31,28,.11); }
.level-route-preview { margin-top: 10px; padding: 13px 15px; border-left: 3px solid var(--gold); background: #eee9df; }
.level-route-preview small { color: #8c6c30; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.level-route-preview > div { margin: 5px 0 3px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.level-route-preview span { color: #69736f; font-size: 13px; }
.level-route-preview i { color: #9b7836; font-style: normal; }
.level-route-preview b { color: var(--ink); font-size: 15px; }
.level-route-preview p { margin: 0; color: #747d79; font-size: 12px; line-height: 1.5; }
.level-route-preview strong { color: #7e6029; }
.brief-form > label, .brief-form fieldset { display: block; border: 0; padding: 0; margin: 0 0 29px; }
.brief-form label > span, .brief-form legend { display: block; margin-bottom: 10px; color: #273231; font-weight: 600; }
.brief-form input[type="text"], .brief-form input:not([type]), .brief-form select { width: 100%; height: 51px; border: 1px solid #c9c5ba; background: #faf8f3; padding: 0 14px; outline: 0; color: var(--ink); border-radius: 0; }
.brief-form input:focus, .brief-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(199,160,82,.12); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented label input { position: absolute; opacity: 0; }
.segmented label span { display: flex; height: 52px; align-items: center; justify-content: center; border: 1px solid #c9c5ba; margin-left: -1px; font-size: 14px; font-weight: 500; }
.segmented label:first-child span { margin-left: 0; }
.segmented label input:checked + span { position: relative; z-index: 1; color: white; background: var(--ink-2); border-color: var(--ink-2); }
.field-hint { margin: -3px 0 14px; color: #7b8381; font-size: 15px; }
.goal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.goal-card { position: relative; cursor: pointer; }
.goal-card input { position: absolute; opacity: 0; pointer-events: none; }
.goal-card-content { min-height: 132px; height: 100%; padding: 18px 18px 16px; border: 1px solid #cbc6ba; background: #faf8f3; transition: border-color .2s, background .2s, transform .2s; }
.goal-card:hover .goal-card-content { border-color: #a88a4d; transform: translateY(-2px); }
.goal-card.selected .goal-card-content { color: white; background: var(--ink-2); border-color: var(--ink-2); box-shadow: inset 4px 0 var(--gold); }
.goal-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.goal-card-index { color: #9a7c40; font: 500 13px var(--display); letter-spacing: 1px; }
.goal-card-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #aca99f; border-radius: 50%; color: transparent; font-size: 13px; }
.goal-card.selected .goal-card-check { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.goal-card-title { display: block; margin: 13px 0 6px; font-size: 15px; line-height: 1.45; font-weight: 600; }
.goal-card-description { display: block; color: #737c79; font-size: 14px; line-height: 1.5; }
.goal-card.selected .goal-card-description { color: #b8c2bf; }
.current-state-field { display: grid; gap: 8px; }
.current-state-field textarea { min-height: 82px; padding: 13px; border: 1px solid #cbc6ba; background: #faf8f3; resize: vertical; }
.current-state-field small { color: #7b8381; font-size: 12px; line-height: 1.5; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 25px; }
.check-row { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-row input { accent-color: var(--gold); margin-top: 4px; }
.check-row span { color: #5c6664 !important; font-size: 14px; font-weight: 400 !important; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 16px; }

.roadmap { min-height: 100vh; background: var(--paper); color: var(--ink); }
.roadmap-header { min-height: 360px; padding: 50px 7vw; background: var(--ink); color: white; display: grid; grid-template-columns: 180px 1fr 150px; gap: 25px; align-items: center; }
.roadmap-header .back-button { align-self: start; color: #aab3b1; }
.roadmap-actions { align-self: stretch; display: flex; flex-direction: column; align-items: start; justify-content: space-between; }
.roadmap-secondary-actions { display: grid; gap: 10px; }
.roadmap-settings-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: #aab3b1; font-size: 12px; }
.roadmap-settings-button span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 12px; }
.roadmap-settings-button:hover { color: var(--gold-light); }
.outline-button { min-height: 40px; padding: 0 15px; border: 1px solid #998358; color: #66542f; background: transparent; font-weight: 600; }
.outline-button:hover { border-color: var(--gold); color: #9a7124; }
.roadmap-actions .outline-button { color: var(--gold-light); }
.roadmap-meta { text-align: center; max-width: 740px; justify-self: center; }
.roadmap-meta > span { color: var(--gold-light); font: 500 13px var(--display); letter-spacing: 3px; }
.roadmap-meta h1 { font: 600 clamp(45px, 6vw, 76px)/1.05 var(--serif); margin: 18px 0 13px; }
.roadmap-meta p { color: #b8c0be; margin: 0; }
.progress-ring { width: 118px; height: 118px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--gold) 0%, rgba(255,255,255,.12) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; background: var(--ink); border-radius: 50%; }
.progress-ring strong, .progress-ring span { position: relative; }
.progress-ring strong { font: 600 25px var(--display); }
.progress-ring span { color: #899491; font-size: 13px; }
.roadmap-body { max-width: 1280px; padding: 70px 6vw 110px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 7vw; align-items: start; }
.roadmap-aside, .lesson-list, .lesson-stage, .lesson-main { min-width: 0; }
.goal-compass { padding: 26px 6vw 30px; color: var(--ink); background: #e7e1d5; border-bottom: 1px solid #c7beae; }
.goal-compass-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; max-width: 1360px; margin: 0 auto 16px; }
.goal-compass-head small { color: #967532; font: 600 12px var(--display); letter-spacing: 2px; }
.goal-compass-head p { margin: 0; color: #6d7673; font-size: 14px; }
.goal-chain { max-width: 1360px; margin: auto; display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1.2fr; align-items: stretch; }
.goal-chain > i { display: grid; place-items: center; color: #a27d35; font-style: normal; }
.goal-chain-item { min-width: 0; padding: 15px 16px; display: grid; grid-template-columns: 28px 1fr; gap: 3px 9px; border: 1px solid #c8c0b2; background: rgba(255,255,255,.47); }
.goal-chain-item > span { grid-row: 1 / span 2; color: #a17e39; font: 600 13px var(--display); }
.goal-chain-item small { color: #747c79; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.goal-chain-item b { overflow: hidden; color: #192321; font-size: 14px; line-height: 1.45; font-weight: 600; }
.goal-chain-item.short { border-color: #b79550; box-shadow: inset 3px 0 var(--gold); background: #fffaf0; }
.goal-chain-item.long { color: white; border-color: var(--ink); background: var(--ink); }
.goal-chain-item.long b { color: white; }
.roadmap-aside { position: sticky; top: 30px; }
#stageNavigation { border-top: 1px solid #c9c3b7; margin-top: 20px; }
.stage-nav { display: flex; gap: 12px; padding: 14px 3px; width: 100%; border: 0; border-bottom: 1px solid #c9c3b7; background: none; text-align: left; color: #79807e; }
.stage-nav b { color: #a7884b; font: 500 13px var(--display); }
.stage-nav.active { color: var(--ink); font-weight: 600; }
.language-legend { margin-top: 38px; display: flex; align-items: center; gap: 8px; color: #987a40; font: 500 13px var(--display); }
.language-legend i { height: 1px; width: 24px; background: #a98b50; }
.language-legend p { color: #697270; font: 400 14px/1.6 var(--body); margin-left: 5px; }
.lesson-stage { margin-bottom: 65px; scroll-margin-top: 35px; }
.stage-heading { display: grid; grid-template-columns: 60px 1fr; border-bottom: 1px solid #bfb9ad; padding-bottom: 18px; margin-bottom: 20px; }
.stage-heading span { color: #9d8046; font: 500 14px var(--display); }
.stage-heading div > small { color: #a18040; font: 600 11px var(--display); letter-spacing: 1.5px; }
.stage-heading h2 { font: 600 31px var(--serif); margin: 0; }
.stage-heading p { margin: 7px 0 0; color: #737b78; font-size: 14px; }
.lesson-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 23px 0 30px; border-bottom: 1px solid #d3cec3; }
.lesson-check { min-width: 58px; min-height: 27px; padding: 0 8px; margin-top: 3px; border: 1px solid #9c9e97; background: transparent; color: #5e6864; font-size: 11px; }
.lesson-check.done { min-width: 27px; color: var(--ink); background: var(--gold); border-color: var(--gold); }
.lesson-main h3 { font-size: 18px; margin: 0 0 8px; }
.lesson-main p { color: #68716f; line-height: 1.6; margin: 0; font-size: 14px; }
.lesson-goal-link { margin: 0 0 9px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: #8d6d2e; font-size: 11px; letter-spacing: .45px; text-transform: uppercase; }
.lesson-goal-link i { font-style: normal; }
.lesson-goal-link b { color: #59635f; font-weight: 600; }
.lesson-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.lesson-tags span { padding: 5px 8px; border: 1px solid #c6c0b5; color: #68716f; font-size: 13px; }
.youtube-link { align-self: center; color: #6f5a2f; text-decoration: none; white-space: nowrap; border-bottom: 1px solid #aa8a4e; padding-bottom: 3px; font-size: 15px; }
.youtube-link:hover { color: #ad7d20; }
.lesson-search { margin-top: 18px; padding: 15px; background: #e9e4d9; border-left: 3px solid #a88b50; }
.lesson-search > label { display: block; margin-bottom: 8px; color: #596360; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.search-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; }
.lesson-keyword { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #c5beb1; background: #faf8f3; color: var(--ink); outline: 0; }
.lesson-keyword:focus { border-color: #a88b50; }
.keyword-language { display: flex; }
.keyword-language button { width: 42px; height: 42px; border: 1px solid #c5beb1; border-left: 0; background: #f6f3ed; color: #6f7775; font-size: 13px; }
.keyword-language button.active { color: white; background: var(--ink-2); border-color: var(--ink-2); }
.keyword-go { min-height: 42px; padding: 0 15px; border: 0; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.assessment-box { margin-top: 12px; border: 1px solid #c8c1b5; background: rgba(255,255,255,.42); }
.assessment-box summary { min-height: 48px; padding: 0 15px; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.assessment-box summary::-webkit-details-marker { display: none; }
.assessment-box summary > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #6b552c; background: var(--gold); }
.assessment-box summary small { margin-left: auto; color: #828986; font-weight: 400; }
.assessment-box[open] summary { border-bottom: 1px solid #d1cbc0; }
.assessment-box > div { padding: 15px 18px 3px; }
.assessment-box > div b { color: #8b6e36; font-size: 13px; letter-spacing: .5px; }
.assessment-box > div p { margin: 5px 0 14px; color: #4f5a57; }
.assessment-box summary .summary-percent { color: #8b6e36; font-size: inherit; letter-spacing: 0; }
.assessment-box > .assessment-layout { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; padding: 22px 20px 20px; align-items: start; }
.task-progress { --task-progress: 0deg; position: sticky; top: 20px; width: 94px; height: 94px; margin: 2px auto 0; border-radius: 50%; background: conic-gradient(var(--gold) var(--task-progress), #d5d1c8 0); display: grid; place-content: center; text-align: center; isolation: isolate; transition: background .35s ease; }
.task-progress::before { content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: inherit; background: #f7f4ed; box-shadow: inset 0 0 0 1px rgba(23,48,43,.06); }
.task-progress strong { color: var(--ink); font: 600 20px var(--display); letter-spacing: -.5px; }
.task-progress small { margin-top: 1px; color: #7e8582; font-size: 12px; }
.micro-task-list { display: grid; gap: 8px; }
.micro-task { position: relative; display: block; cursor: pointer; }
.micro-task input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.micro-task > span { min-height: 48px; padding: 11px 13px; border: 1px solid #d0cbc1; background: rgba(255,255,255,.52); color: #414c49; display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; font-size: 15px; line-height: 1.45; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.micro-task > span::after { content: ""; width: 17px; height: 17px; grid-column: 3; border: 1px solid #999e99; border-radius: 50%; }
.micro-task i { color: #a07e3e; font: 600 12px var(--display); font-style: normal; letter-spacing: .5px; }
.micro-task:hover > span { border-color: #aa8a4e; transform: translateX(2px); }
.micro-task.checked > span { color: #63706c; border-color: #b7c2bc; background: #e4ebe6; }
.micro-task.checked > span::after { content: "✓"; display: grid; place-content: center; color: white; border-color: var(--ink-2); background: var(--ink-2); font-size: 12px; }
.pass-note { margin-top: 7px; padding: 13px 14px 1px; border-left: 3px solid var(--gold); background: #e9e4d9; }
.assessment-box .pass-note b { color: #85682f; }
.assessment-box .pass-note p { margin: 5px 0 11px; font-size: 15px; line-height: 1.5; }
.level-up-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(12,32,28,.62); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.level-up-overlay.show { cursor: pointer; }
.level-up-overlay.show { opacity: 1; visibility: visible; }
.level-up-card { width: min(390px, 100%); padding: 38px 30px 34px; border: 1px solid rgba(215,184,119,.65); background: var(--ink); color: white; text-align: center; box-shadow: 0 25px 80px rgba(0,0,0,.3); transform: translateY(15px) scale(.94); transition: transform .35s cubic-bezier(.2,.9,.25,1.2); }
.level-up-overlay.show .level-up-card { transform: translateY(0) scale(1); }
.level-up-mark { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-content: center; background: var(--gold); color: var(--ink); font-size: 28px; box-shadow: 0 0 0 8px rgba(198,157,77,.12); }
.level-up-card small { color: var(--gold-light); font: 600 13px var(--display); letter-spacing: 2px; }
.level-up-card h3 { margin: 10px 0 8px; font: 600 31px/1.15 var(--serif); }
.level-up-card p { margin: 0; color: #aeb8b5; font-size: 15px; line-height: 1.6; }

.canvas-view { min-height: 100vh; background: var(--paper); color: var(--ink); }
.creator-stepper { max-width: 1360px; margin: 0 auto; padding: 24px 5vw; display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; border-bottom: 1px solid #c9c0b1; }
.creator-stepper > i { color: #a78542; text-align: center; font-style: normal; }
.creator-stepper button { min-height: 62px; padding: 9px 13px; display: flex; gap: 12px; align-items: center; border: 1px solid transparent; background: transparent; color: #7a827f; text-align: left; }
.creator-stepper button > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #bcb4a6; border-radius: 50%; font: 600 12px var(--display); }
.creator-stepper button div { display: grid; gap: 3px; }
.creator-stepper button b { color: inherit; font-size: 14px; }
.creator-stepper button small { font-size: 11px; }
.creator-stepper button.active { color: var(--ink); border-color: #ad8b49; background: #f7eed9; }
.creator-stepper button.active > span { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.creator-stepper button.complete { color: #2e745c; }
.creator-stepper button.complete > span { color: white; border-color: #2e745c; background: #2e745c; }
.creator-step-panel { min-height: 470px; }
.creator-foundation { max-width: 1360px; margin: 0 auto; padding: 55px 5vw 70px; display: grid; grid-template-columns: 280px 1fr; gap: 7vw; }
.creator-panel-intro small, .curriculum-header small { color: #a27e37; font: 600 12px var(--display); letter-spacing: 2px; }
.creator-panel-intro h2 { margin: 16px 0 13px; font: 600 34px/1.18 var(--serif); }
.creator-panel-intro h2 em { color: #a7833e; }
.creator-panel-intro p { color: #68716e; font-size: 15px; line-height: 1.7; }
.foundation-form { display: grid; gap: 25px; }
.roadmap-format-field { padding-bottom: 24px; border-bottom: 1px solid #cdc4b5; }
.roadmap-format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roadmap-format-grid button { min-height: 128px; padding: 18px; display: grid; align-content: center; gap: 7px; border: 1px solid #c6bdad; color: var(--ink); background: #fffdf8; text-align: left; }
.roadmap-format-grid button > span { color: #9c7833; font: 600 11px var(--display); letter-spacing: 1.5px; }
.roadmap-format-grid button b { font: 600 22px var(--serif); }
.roadmap-format-grid button small { color: #6f7975; font-size: 13px; line-height: 1.55; }
.roadmap-format-grid button.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 4px 0 var(--gold); }
.roadmap-format-grid button.active small { color: #b8c2be; }
.roadmap-format-grid button.active > span { color: var(--gold-light); }
.foundation-label, .foundation-form label > span { display: block; margin-bottom: 9px; color: #4e5955; font-size: 13px; font-weight: 700; }
.creator-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.creator-category-card { min-height: 105px; padding: 15px; position: relative; display: grid; align-content: space-between; border: 1px solid #c6bdad; background: #fffdf8; color: var(--ink); text-align: left; }
.creator-category-card > span { color: #9b7934; font: 600 11px var(--display); letter-spacing: 1.4px; }
.creator-category-card b { font-size: 15px; }
.creator-category-card small { position: absolute; right: 11px; top: 10px; color: #aaa397; font-size: 11px; }
.creator-category-card:hover { border-color: #a7884a; transform: translateY(-1px); }
.creator-category-card.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 4px 0 var(--gold); }
.foundation-form label input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #c6bdad; background: #fffdf8; }
.foundation-form label small { display: block; margin-top: 7px; color: #7b8380; font-size: 11px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.backward-planner { max-width: 1360px; margin: 55px auto 0; padding: 0 5vw 45px; display: grid; grid-template-columns: 280px 1fr; gap: 7vw; border-bottom: 1px solid #ccc3b4; }
.backward-planner.creator-step-panel { margin-top: 0; padding-top: 55px; border-bottom: 0; }
.backward-planner-intro > small { color: #a27e37; font: 600 12px var(--display); letter-spacing: 2px; }
.backward-planner-intro h2 { margin: 15px 0 12px; font: 600 32px/1.18 var(--serif); }
.backward-planner-intro h2 em { color: #a7833e; }
.backward-planner-intro > p { color: #68716e; font-size: 14px; line-height: 1.65; }
.backward-planner-fields { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.planner-field { padding: 16px; display: flex; flex-direction: column; gap: 9px; border: 1px solid #c6bdad; background: rgba(255,255,255,.48); }
.planner-field > span { display: flex; gap: 9px; align-items: center; }
.planner-field > span b { color: #a27c35; font: 600 12px var(--display); }
.planner-field > span em { color: #293330; font-style: normal; font-size: 13px; font-weight: 700; }
.planner-field textarea { width: 100%; flex: 1; min-height: 96px; padding: 11px; border: 1px solid #c7bfae; border-radius: 0; color: var(--ink); background: #fffdf8; resize: vertical; font-size: 14px; line-height: 1.5; }
.planner-field > small { color: #7a827f; font-size: 11px; line-height: 1.45; }
.milestone-builder { min-height: 100%; }
.milestone-list { display: grid; gap: 8px; }
.milestone-item { min-height: 46px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; border: 1px solid #c7bfae; background: #fffdf8; }
.milestone-item > span { color: #a27c35; font: 600 12px var(--display); text-align: center; }
.milestone-item > input { min-width: 0; height: 44px; padding: 0 7px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; }
.milestone-item > div { display: flex; padding-right: 5px; }
.milestone-item button { width: 30px; height: 32px; padding: 0; border: 0; border-left: 1px solid #d4cdc1; color: #65706c; background: transparent; }
.milestone-item button:hover { color: var(--ink); background: #eee8dc; }
.milestone-empty { margin: 0; padding: 15px; border: 1px dashed #c1b8a8; color: #78807d; font-size: 13px; line-height: 1.5; }
.milestone-add-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.milestone-add-row input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #c7bfae; background: #fffdf8; border-radius: 8px; }
.milestone-add-row button { min-height: 44px; min-width: 48px; padding: 0 16px; border: 0; color: var(--ink); background: var(--gold); font-size: 1.25rem; font-weight: 700; border-radius: 8px; cursor: pointer; display: inline-grid; place-content: center; transition: all 160ms ease-out; }
.milestone-add-row button:hover { background: var(--dojo-color-gold-hover, #e1c785); transform: translateY(-1px); }
.milestone-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.milestone-chips-label { font-size: 11px; color: #65706c; font-weight: 600; width: 100%; margin-bottom: 2px; }
.milestone-chip-btn { box-sizing: border-box; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid #c7bfae; background: #fffdf8; color: #142926; font-size: 12px; font-weight: 500; cursor: pointer; user-select: none; transition: all 160ms ease-out; }
.milestone-chip-btn:hover { border-color: var(--gold); background: rgba(199, 160, 82, 0.12); color: var(--ink); transform: translateY(-1px); }
.milestone-chip-btn:focus-visible { outline: 2px solid rgba(199, 160, 82, 0.4); outline-offset: 2px; }
.milestone-chip-btn:active { transform: scale(0.96); }
.planner-destination { border-color: #ad8a45; background: #f6edd8; }
.goal-quality { --goal-quality: 0%; margin-top: 18px; padding-top: 13px; display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #d0c8b9; }
.goal-quality > span { width: 4px; height: 38px; background: linear-gradient(to top, var(--gold) var(--goal-quality), #d6d0c4 var(--goal-quality)); }
.goal-quality div { display: grid; gap: 2px; }
.goal-quality b { font-size: 12px; }
.goal-quality small { color: #7a827f; font-size: 11px; line-height: 1.35; }
.goal-quality strong { color: #98752e; font: 600 18px var(--display); }
.goal-quality.ready strong { color: #2d765d; }
.curriculum-editor { max-width: 1360px; margin: 0 auto; padding: 48px 5vw 35px; }
.curriculum-editor.is-overall-view { min-height: 0; padding-bottom: 4px; }
.curriculum-header { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding-bottom: 25px; border-bottom: 1px solid #c8c0b2; }
.curriculum-header h2 { margin: 10px 0 7px; font: 600 30px var(--serif); }
.curriculum-header p { max-width: 720px; margin: 0; color: #68716e; font-size: 14px; }
.curriculum-view-switch { width: max-content; margin: 23px 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #bdb4a5; }
.curriculum-view-switch button { min-width: 145px; min-height: 42px; border: 0; background: transparent; color: #6d7672; font-size: 13px; font-weight: 700; }
.curriculum-view-switch button.active { color: white; background: var(--ink); }
.curriculum-list { display: grid; gap: 22px; }
.curriculum-stage-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid #c7beaf; background: #e9e4da; }
.curriculum-stage-nav button { min-height: 68px; padding: 12px; display: grid; grid-template-columns: 26px 1fr auto; gap: 7px; align-items: center; border: 0; border-right: 1px solid #cbc3b6; background: transparent; color: #6f7774; text-align: left; }
.curriculum-stage-nav button:last-child { border-right: 0; }
.curriculum-stage-nav button > span { color: #9c7832; font: 600 11px var(--display); }
.curriculum-stage-nav button b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.curriculum-stage-nav button small { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #d5cdbf; font-size: 11px; }
.curriculum-stage-nav button.active { color: white; background: var(--ink); box-shadow: inset 0 -3px var(--gold); }
.curriculum-stage-nav button.active small { color: var(--ink); background: var(--gold); }
.curriculum-stage { border: 1px solid #c7beaf; background: rgba(255,255,255,.42); }
.curriculum-stage > header { min-height: 92px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d0c8bb; }
.curriculum-stage > header > div { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
.curriculum-stage > header span { grid-row: 1 / span 2; color: #a17d35; font: 600 13px var(--display); }
.curriculum-stage > header small { color: #8a918e; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.curriculum-stage > header h3 { margin: 3px 0 0; font: 600 24px var(--serif); }
.curriculum-stage > header button { min-height: 38px; padding: 0 14px; border: 1px solid #aa8a4d; background: transparent; color: #735d33; font-size: 12px; font-weight: 700; }
.curriculum-node-list { padding: 0 20px; }
.curriculum-node-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid #d3ccc0; }
.curriculum-node-card:last-child { border-bottom: 0; }
.curriculum-order { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #b9b1a4; color: #8e6f34; font: 600 12px var(--display); }
.curriculum-node-main > small { color: #977630; font-size: 11px; text-transform: uppercase; }
.curriculum-node-main h4 { margin: 7px 0 5px; font-size: 17px; }
.curriculum-node-main > p { margin: 0; color: #6a7470; font-size: 14px; }
.curriculum-purpose { margin-top: 10px; display: flex; gap: 8px; font-size: 12px; }
.curriculum-purpose b { color: #8c6d30; }
.curriculum-purpose span { color: #69726f; }
.curriculum-node-actions { display: flex; gap: 5px; }
.curriculum-node-actions button { min-height: 32px; padding: 0 9px; border: 1px solid #bcb4a7; background: transparent; color: #5f6865; font-size: 11px; }
.curriculum-node-actions button:hover { border-color: #9c7c3e; color: var(--ink); }
.curriculum-empty { min-height: 90px; display: flex; gap: 10px; align-items: center; justify-content: center; color: #8a918e; font-size: 13px; }
.curriculum-empty > span { color: #a6813b; font-size: 20px; }
.curriculum-zero { min-height: 280px; display: grid; place-content: center; gap: 10px; text-align: center; border: 1px dashed #bbb2a4; }
.curriculum-zero span { color: #a17e38; font: 600 14px var(--display); }
.curriculum-zero h3 { margin: 0; }
.curriculum-zero button { border: 0; background: none; color: #8c6e34; font-weight: 700; }
.teacher-roadmap-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 7vw; align-items: start; }
.teacher-roadmap-aside { position: sticky; top: 95px; min-width: 0; }
.teacher-roadmap-aside .curriculum-stage-nav { display: block; border: 0; border-top: 1px solid #c9c3b7; background: transparent; }
.teacher-roadmap-aside .curriculum-stage-nav button { width: 100%; min-height: 58px; padding: 13px 4px; display: grid; grid-template-columns: 30px minmax(0,1fr) 24px; border: 0; border-bottom: 1px solid #c9c3b7; color: #7b8380; background: transparent; box-shadow: none; }
.teacher-roadmap-aside .curriculum-stage-nav button > span { color: #9c7935; font-size: 13px; }
.teacher-roadmap-aside .curriculum-stage-nav button b { color: inherit; font-size: 14px; white-space: normal; }
.teacher-roadmap-aside .curriculum-stage-nav button small { color: #66706c; background: #ddd6c9; font-size: 12px; }
.teacher-roadmap-aside .curriculum-stage-nav button.active { color: var(--ink); font-weight: 700; background: transparent; box-shadow: inset 3px 0 var(--gold); }
.teacher-roadmap-aside .curriculum-stage-nav button.active small { color: var(--ink); background: var(--gold); }
.teacher-goal-note { margin-top: 28px; padding: 15px; border-left: 3px solid var(--gold); background: #e9e4da; }
.teacher-goal-note small { color: #8f6e30; font-size: 13px; font-weight: 700; }
.teacher-goal-note p { margin: 6px 0 0; color: #5e6864; font-size: 15px; line-height: 1.55; }
.teacher-stage-panel { border: 0; background: transparent; }
.teacher-stage-heading { position: relative; padding-right: 180px; }
.teacher-stage-heading > button { position: absolute; right: 0; bottom: 18px; min-height: 40px; padding: 0 14px; border: 1px solid #a8884b; background: transparent; color: #735d33; font-size: 14px; font-weight: 700; }
.teacher-stage-panel .curriculum-node-list { padding: 0; }
.teacher-lesson-card.curriculum-node-card { grid-template-columns: 50px minmax(0, 1fr); gap: 20px; padding: 27px 0; }
.teacher-lesson-card .lesson-main h3 { margin-bottom: 8px; font-size: 20px; }
.teacher-video-link { width: max-content; margin-top: 14px; display: inline-flex; padding-bottom: 3px; color: #735a2c; border-bottom: 1px solid #a98848; font-size: 14px; text-decoration: none; }
.teacher-lesson-card .curriculum-node-actions { margin-top: 13px; justify-content: flex-end; }
.teacher-lesson-card .curriculum-node-actions button { min-height: 36px; font-size: 13px; }
.teacher-lesson-card .curriculum-node-actions .edit-challenge { padding: 0 14px; color: var(--ink); border-color: #9e7c3d; font-weight: 700; }
.teacher-curriculum-empty { min-height: 230px; flex-direction: column; border: 1px dashed #bdb4a6; }
.teacher-curriculum-empty button { min-height: 38px; padding: 0 14px; border: 1px solid #9f7d3c; color: #755d31; background: transparent; }
.overall-canvas-panel { padding-top: 18px; padding-bottom: 45px; }
.creator-wizard-footer { position: relative; z-index: 5; min-height: 84px; padding: 12px 6vw; display: grid; grid-template-columns: 180px 1fr 180px; align-items: center; gap: 20px; border-top: 1px solid #bdb5a7; background: #f6f3eb; }
.creator-wizard-footer > span { display: grid; gap: 3px; text-align: center; }
.creator-wizard-footer > span b { color: #2e705a; font-size: 12px; }
.creator-wizard-footer > span small { color: #7b8380; font-size: 11px; }
.creator-wizard-footer > button:last-child { justify-self: end; width: 180px; }
.canvas-header { min-height: 290px; padding: 43px 6vw; background: var(--ink); color: white; display: grid; grid-template-columns: 170px 1fr 220px; gap: 30px; align-items: center; }
.canvas-header > .back-button { color: #aab3b1; align-self: start; }
.canvas-title-block { max-width: 720px; text-align: center; justify-self: center; }
.canvas-title-block input { display: block; width: 100%; border: 0; outline: 0; background: transparent; color: white; text-align: center; }
#canvasTitle { font: 600 clamp(38px, 5vw, 66px)/1.1 var(--serif); border-bottom: 1px solid transparent; }
#canvasDescription { margin-top: 15px; color: #aeb8b5; font-size: 14px; }
.canvas-title-block input:focus { border-bottom-color: var(--gold); }
.canvas-header-actions { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: end; padding: 5px 0; }
.save-state { color: #576560; font-size: 13px; }
.outline-button.light { border-color: var(--gold); color: var(--gold-light); }
.canvas-shell { max-width: 1360px; margin: 0 auto; padding: 26px 5vw 80px; display: grid; grid-template-columns: 235px minmax(0,1fr); gap: clamp(24px,4vw,58px); align-items: start; }
.canvas-guide { position: sticky; top: 30px; }
.canvas-guide h2 { font: 600 32px/1.18 var(--serif); margin: 13px 0; }
.canvas-guide h2 em { color: #a7833e; }
.canvas-guide > p:not(.section-number) { color: #66706d; font-size: 12px; line-height: 1.6; }
.canvas-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0; border-top: 1px solid #c9c3b7; border-bottom: 1px solid #c9c3b7; }
.canvas-stats span { padding: 18px 5px; display: flex; flex-direction: column; }
.canvas-stats span + span { border-left: 1px solid #c9c3b7; padding-left: 18px; }
.canvas-stats strong { font: 600 27px var(--display); }
.canvas-stats small { color: #7b8381; margin-top: 3px; }
.passport-button { width: 100%; min-height: 46px; margin: -15px 0 12px; padding: 0 15px; border: 1px solid #a88b50; background: transparent; color: #765c2c; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.skill-canvas-wrap { min-height: 450px; position: relative; }
.skill-canvas { position: relative; }
.skill-node { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 19px; padding: 22px 22px 22px 17px; margin-bottom: 18px; background: var(--white); border: 1px solid #d0cabf; box-shadow: 0 9px 28px rgba(36,43,39,.06); transition: transform .2s, opacity .2s, border-color .2s; }
.skill-node:not(:last-child)::after { content: ""; position: absolute; left: 45px; top: 100%; width: 1px; height: 19px; background: #ae9563; }
.skill-node.dragging { opacity: .38; transform: scale(.98); }
.skill-node.drag-over { border-color: var(--gold); transform: translateY(3px); }
.drag-handle { align-self: stretch; display: grid; place-content: center; color: #9c9e98; cursor: grab; border-right: 1px solid #ddd8ce; font-size: 19px; letter-spacing: -5px; padding-right: 15px; }
.node-number { color: #9a7c40; font: 500 13px var(--display); letter-spacing: 1px; }
.node-content h3 { margin: 5px 0 7px; font-size: 19px; }
.node-content p { margin: 0; color: #697270; font-size: 15px; line-height: 1.65; }
.node-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.node-meta span, .node-meta a { padding: 5px 8px; border: 1px solid #d0cabf; color: #6d7472; text-decoration: none; font-size: 12px; }
.node-meta a { color: #7a5d26; border-color: #c2a66f; }
.node-menu { display: flex; gap: 7px; }
.node-menu button { width: 35px; height: 35px; border: 1px solid #cbc5ba; background: transparent; color: #6e7775; }
.node-menu button:hover { border-color: var(--gold); color: var(--ink); }
.canvas-add-tail { width: 100%; height: 54px; border: 1px dashed #b4aa98; background: transparent; color: #716346; }
.canvas-add-tail:hover { border-color: var(--gold); background: rgba(199,160,82,.05); }
.canvas-empty { min-height: 330px; display: grid; place-content: center; text-align: center; border: 1px dashed #b4aa98; margin-bottom: 18px; color: #68716f; }
.canvas-empty > span { color: #ad8b4c; font-size: 38px; }
.canvas-empty h3 { color: var(--ink); margin: 8px 0; }
.canvas-empty p { max-width: 390px; font-size: 15px; }

.node-dialog { width: min(620px, calc(100vw - 30px)); max-height: 90vh; overflow-y: auto; border: 0; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.node-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(3px); }
.node-dialog form { padding: 33px; }
.dialog-top { display: flex; justify-content: space-between; border-bottom: 1px solid #d5d0c6; padding-bottom: 19px; margin-bottom: 23px; }
.dialog-top small { color: #97783a; font: 500 12px var(--display); letter-spacing: 2px; }
.dialog-top h2 { margin: 6px 0 0; font: 600 28px var(--serif); }
.dialog-close { border: 0; background: none; font-size: 28px; color: #7a817f; }
.node-dialog label { display: block; margin-bottom: 20px; }
.node-dialog label > span { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.node-dialog input, .node-dialog textarea, .node-dialog select { width: 100%; border: 1px solid #c9c5ba; background: #faf8f3; padding: 12px; color: var(--ink); border-radius: 0; }
.node-dialog textarea { resize: vertical; }
.dialog-note { margin: -9px 0 23px; color: #7c8582; font-size: 13px; }
.node-dialog-intro { margin: -10px 0 24px; color: #65706c; font-size: 15px; line-height: 1.6; }
.node-stepper { margin-bottom: 24px; display: grid; grid-template-columns: 1fr 16px 1fr 16px 1fr; align-items: center; }
.node-stepper > i { color: #a18449; font-size: 13px; font-style: normal; text-align: center; }
.node-stepper button { min-height: 54px; padding: 8px; display: grid; grid-template-columns: 27px 1fr; gap: 8px; align-items: center; border: 1px solid #c9c2b6; color: #7a827f; background: #f4f0e8; text-align: left; }
.node-stepper button > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #b8b0a2; font: 600 12px var(--display); }
.node-stepper button b { font-size: 13px; }
.node-stepper button.active { color: var(--ink); border-color: #a9853f; background: #f5ead1; }
.node-stepper button.active > span { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.node-stepper button.complete > span { color: white; border-color: #2b725b; background: #2b725b; }
.node-step-panel { min-height: 360px; animation: nodeStepIn .18s ease-out; }
.program-node-fields { margin-bottom: 22px; padding: 18px; border: 1px solid #b99a5e; background: #f3ede0; }
.program-field-heading { display: flex; gap: 14px; align-items: start; margin-bottom: 16px; }
.program-field-heading > span { padding: 5px 7px; background: var(--ink); color: var(--gold-light); font: 500 10px var(--display); letter-spacing: 1.5px; }
.program-field-heading h4 { margin: 0 0 4px; font-size: 18px; }
.program-field-heading p { margin: 0; color: #707a77; font-size: 13px; line-height: 1.5; }
.program-scale-grid, .program-log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.program-node-fields textarea, .program-node-fields input, .program-node-fields select { background: #fffdf8; }
@keyframes nodeStepIn { from { opacity: .4; transform: translateX(8px); } }
.node-step-copy { margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid #d5cfc4; }
.node-step-copy small { color: #9b7834; font: 600 12px var(--display); letter-spacing: 1.5px; }
.node-step-copy h3 { margin: 7px 0 5px; font: 600 22px var(--serif); }
.node-step-copy p { margin: 0; color: #717b77; font-size: 14px; }
.node-dialog label > small { display: block; margin-top: 7px; color: #7a8380; font-size: 13px; }
.node-search-term-field { margin-bottom: 20px; }
.node-search-term-field > span { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.node-search-term-field > small { display: block; margin-top: 7px; color: #7a8380; font-size: 13px; line-height: 1.5; }
.node-search-term-list { min-height: 42px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.node-search-term-list > small { color: #89918e; font-size: 13px; }
.node-search-term-list > span { min-height: 34px; padding-left: 10px; display: inline-flex; align-items: center; border: 1px solid #bda66f; color: #5d4b28; background: #f4ead3; }
.node-search-term-list b { font-size: 13px; }
.node-search-term-list button { width: 30px; height: 32px; margin-left: 7px; border: 0; border-left: 1px solid #ccb986; color: #735f35; background: transparent; }
.node-search-term-add { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.node-search-term-add button { padding: 0 16px; border: 0; color: var(--ink); background: var(--gold); font-size: 14px; font-weight: 700; }
.node-task-field { margin-bottom: 20px; }
.node-task-field > span { display: block; margin-bottom: 9px; font-size: 15px; font-weight: 600; }
.node-task-field > small { display: block; margin-top: 7px; color: #7a8380; font-size: 13px; }
.node-task-list { display: grid; gap: 8px; }
.node-task-item { min-height: 48px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; border: 1px solid #c9c2b6; background: #faf8f3; }
.node-task-item > span { color: #9b7834; font: 600 12px var(--display); text-align: center; }
.node-task-item > input { min-width: 0; height: 46px; padding: 0 7px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.node-task-item > div { display: flex; padding-right: 5px; }
.node-task-item button { width: 30px; height: 32px; padding: 0; border: 0; border-left: 1px solid #d4cdc1; color: #65706c; background: transparent; }
.node-task-empty { margin: 0 0 8px; padding: 14px; border: 1px dashed #c2baad; color: #7b8480; font-size: 13px; line-height: 1.5; }
.node-task-add { margin-top: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.node-task-add button { min-height: 44px; padding: 0 14px; border: 0; color: var(--ink); background: var(--gold); font-size: 13px; font-weight: 700; }
.search-term-chips { margin-bottom: 9px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-term-chips small { margin-right: 2px; color: #7b8380; font-size: 12px; }
.search-term-chips button { min-height: 29px; padding: 0 9px; border: 1px solid #b9a16e; color: #69532a; background: #f7f0e1; font-size: 12px; }
.search-term-chips button:hover { color: var(--ink); border-color: #94712f; background: #eeddb9; }
.node-advanced { margin: 5px 0 22px; border: 1px solid #c9c2b6; background: #f1ede5; }
.node-advanced summary { min-height: 58px; padding: 0 15px; display: grid; grid-template-columns: 1fr auto 20px; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.node-advanced summary::-webkit-details-marker { display: none; }
.node-advanced summary > span { font-size: 15px; font-weight: 700; }
.node-advanced summary small { color: #727c78; font-size: 13px; }
.node-advanced summary b { color: #9a7733; font-size: 18px; }
.node-advanced[open] summary { border-bottom: 1px solid #cec7bb; }
.node-advanced[open] summary b { transform: rotate(45deg); }
.node-advanced > div { padding: 18px 16px 1px; }
.node-dialog-footer { position: sticky; z-index: 3; bottom: -33px; margin: 25px -33px -33px; padding: 13px 33px; display: grid; grid-template-columns: auto auto minmax(130px,1fr) 150px; gap: 9px; align-items: center; border-top: 1px solid #c9c2b6; background: rgba(255,253,248,.97); backdrop-filter: blur(10px); }
.node-dialog-footer > span { display: grid; gap: 2px; text-align: center; }
.node-dialog-footer > span b { color: #2d725b; font-size: 12px; }
.node-dialog-footer > span small { color: #7c8581; font-size: 11px; }
.node-dialog-footer > button { min-height: 46px; }
#nodeDialogSave { position: relative; z-index: 1; pointer-events: auto; cursor: pointer; }
#nodeDialogSave[aria-busy="true"] { cursor: wait; opacity: .72; }

/* Readability pass: keep the editorial hierarchy while avoiding sub-10px UI text. */
.section-number, .creator-panel-intro small, .curriculum-header small, .backward-planner-intro > small, .roadmap-detail-body > section > small, .roadmap-detail-body > aside > small { font-size: 13px; }
.creator-stepper button small, .foundation-form label small, .planner-field > small, .goal-quality small, .curriculum-stage > header small, .curriculum-node-main > small, .explore-card-cat, .teacher-map-card > div > small { font-size: 12px; line-height: 1.45; }
.creator-stepper button b, .foundation-label, .foundation-form label > span, .planner-field > span em, .lesson-tags span, .assessment-box summary, .workspace-current { font-size: 14px; }
.lesson-goal-link, .map-node-label small, .map-node-label em { font-size: 12px; line-height: 1.45; }
.goal-chain-item small, .goal-quality b, .curriculum-stage-nav button b { font-size: 13px; }
.goal-chain-item b, .field-hint, .dialog-note { font-size: 14px; line-height: 1.55; }
.category-chip-mark, .category-chip > small, .explore-badge-sm, .explore-card-tags span, .category-section-mark, .teacher-stage-heading div > small, .creator-wizard-footer > span small { font-size: 12px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.dialog-actions .primary-button { min-height: 52px; }

.canvas-mode-switch { display: grid; grid-template-columns: 1fr 1fr; margin-top: 25px; border: 1px solid #bcb4a6; }
.canvas-mode-switch button { min-height: 44px; border: 0; background: transparent; color: #68716f; font-size: 14px; font-weight: 600; }
.canvas-mode-switch button.active { color: white; background: var(--ink-2); }
.canvas-module-kit { margin-top: 12px; padding: 11px; border: 1px solid #c8c0b3; background: rgba(255,253,248,.72); }
.canvas-module-kit > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.canvas-module-kit > header div { display: grid; gap: 3px; }
.canvas-module-kit > header small { color: #9b7837; font: 600 10px var(--display); letter-spacing: 1.4px; }
.canvas-module-kit > header b { font-size: 14px; }
.canvas-module-kit > header button { min-width: 48px; min-height: 32px; border: 1px solid #af9563; color: #705a31; background: transparent; font-size: 12px; font-weight: 700; }
.canvas-module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.canvas-module-grid > button { min-width: 0; min-height: 45px; padding: 7px; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 7px; align-items: center; border: 1px solid #d0c8bb; color: var(--ink); background: #fffdf8; text-align: left; }
.canvas-module-grid > button:hover { border-color: #9e7d3d; transform: translateY(-1px); }
.canvas-module-grid i { width: 24px; height: 24px; display: grid; place-items: center; color: white; background: #406d61; font-style: normal; font-size: 12px; font-weight: 700; }
.canvas-module-grid button[data-canvas-module="practice"] i { border-radius: 50%; background: #3f7560; }
.canvas-module-grid button[data-canvas-module="program"] i { color: #5f4a23; background: #e5cf9f; }
.canvas-module-grid button[data-canvas-module="milestone"] i { color: #473714; background: var(--gold); transform: rotate(45deg); }
.canvas-module-grid button[data-canvas-module="milestone"] i::first-letter { transform: rotate(-45deg); }
.canvas-module-grid span { min-width: 0; display: grid; gap: 2px; }
.canvas-module-grid b { font-size: 12px; }
.canvas-module-grid small { display: none; }
.canvas-module-kit > p { margin: 8px 0 0; color: #737c79; font-size: 10px; line-height: 1.45; }
.canvas-taxonomy { margin-top: 16px; padding: 16px; display: grid; gap: 13px; border: 1px solid #bcb4a6; background: rgba(255,253,248,.65); }
.canvas-taxonomy label { display: grid; gap: 6px; color: #4d5854; font-size: 12px; font-weight: 600; }
.canvas-taxonomy select, .canvas-taxonomy input, .canvas-taxonomy textarea { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #c5bdaf; border-radius: 0; color: var(--ink); background: var(--white); font-size: 13px; }
.canvas-taxonomy textarea { min-height: 72px; padding-top: 10px; resize: vertical; }
.canvas-taxonomy > small { color: #7c8582; font-size: 11px; line-height: 1.5; }
.skill-canvas-wrap { width: 100%; max-width: 780px; justify-self: center; position: relative; overflow: hidden; padding: 10px; border: 1px solid #a7884b; background: #091416; box-shadow: 0 22px 60px rgba(17,27,25,.2), inset 0 0 0 5px #162528; }
.skill-canvas-wrap::before { content: ""; position: absolute; z-index: 5; inset: 6px; border: 1px solid rgba(211,176,103,.28); pointer-events: none; }
.skill-canvas { position: relative; min-width: 100%; background-color: #0d1b1d; background-image: radial-gradient(circle at 9% 13%,rgba(229,198,127,.34) 0 1px,transparent 2px),radial-gradient(circle at 78% 22%,rgba(229,198,127,.25) 0 1px,transparent 2px),radial-gradient(circle at 35% 68%,rgba(229,198,127,.22) 0 1px,transparent 2px),radial-gradient(circle at 88% 82%,rgba(229,198,127,.3) 0 1px,transparent 2px),linear-gradient(145deg,rgba(38,73,61,.23),transparent 42%); background-size: 113px 97px,137px 121px,149px 133px,173px 157px,100% 100%; overflow: hidden; touch-action: none; }
.skill-canvas::before { content: "START"; position: absolute; z-index: 2; top: 18px; left: 18px; color: #c8aa6a; font: 500 10px var(--display); letter-spacing: 2px; }
.skill-canvas::after { content: "MASTERY"; position: absolute; z-index: 2; bottom: 18px; right: 18px; color: #c8aa6a; font: 500 10px var(--display); letter-spacing: 2px; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.route-shadow, .route-line { fill: none; stroke-linecap: round; }
.route-shadow { stroke: rgba(0,0,0,.42); stroke-width: 7; }
.route-line { stroke: #9f8249; stroke-width: 2.5; stroke-dasharray: none; }
.route-line.passed { stroke: #e1b95e; stroke-width: 3.5; filter: drop-shadow(0 0 4px rgba(225,185,94,.45)); }
.map-scenery { position: absolute; border-radius: 50%; pointer-events: none; opacity: .16; filter: blur(1px); }
.scenery-one { width: 250px; height: 250px; left: -145px; top: 180px; border: 1px solid #c7a35b; box-shadow: 0 0 70px rgba(199,163,91,.2); }
.scenery-two { width: 320px; height: 320px; right: -210px; bottom: 40px; border: 1px solid #486f60; box-shadow: 0 0 90px rgba(72,111,96,.24); }
.skill-node.map-node { position: absolute; width: 138px; min-height: 0; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: transparent; box-shadow: none; transform: translate(-50%, -50%); z-index: 3; user-select: none; }
.skill-node.map-node::after { display: none; }
.skill-node.map-node.dragging { opacity: .86; transform: translate(-50%, -50%) scale(1.06); z-index: 8; }
.node-orb { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #c7a458; display: grid; place-content: center; color: #f8edcf; background: #285d4c; box-shadow: 0 0 0 4px #102724,0 0 0 5px rgba(213,177,99,.3),0 9px 22px rgba(0,0,0,.38); font: 600 15px var(--display); transition: transform .18s, filter .18s, box-shadow .18s; }
.node-orb > small { position: absolute; right: -9px; top: -9px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #f2d999; background: #142426; border: 1px solid #a88747; font: 700 8px var(--display); }
.map-node.node-learn .node-orb { border-radius: 12px; background: #305f5c; }
.map-node.node-practice .node-orb { background: #23644f; }
.map-node.node-program .node-orb { width: 60px; border-radius: 11px; color: #392b11; background: #d4ad58; }
.map-node.milestone .node-orb { width: 64px; height: 64px; border-radius: 18px; background: #b9473c; color: #f9df9e; border-color: #d8ae55; box-shadow: 0 0 0 4px #351c1c,0 0 0 5px rgba(216,174,85,.4),0 9px 24px rgba(0,0,0,.4); transform: rotate(45deg); }
.map-node.milestone .node-orb > span,.map-node.milestone .node-orb > small { transform: rotate(-45deg); }
.map-node-label em { display: block; max-width: 240px; margin-top: 5px; color: #75807c; font-size: 11px; line-height: 1.35; font-style: normal; }
.map-node.side-quest .node-orb { background: #b94239; box-shadow: 0 8px 0 #752720, 0 0 0 10px rgba(185,66,57,.12), 0 13px 28px rgba(90,30,26,.28); animation: sideQuestPulse 1.8s ease-in-out infinite; }
.map-node.side-quest .map-node-label { border-color: rgba(185,66,57,.4); }
.map-node.side-quest .map-node-label small { color: #a23831; }
@keyframes sideQuestPulse { 50% { box-shadow: 0 8px 0 #752720, 0 0 0 17px rgba(185,66,57,0), 0 13px 28px rgba(90,30,26,.28); } }
.edit-mode .map-node { cursor: grab; }
.edit-mode .node-orb::after { content: ""; position: absolute; inset: -10px; border: 1px dashed rgba(218,182,102,.4); border-radius: inherit; }
.play-mode .map-node.active .node-orb { animation:nodePulse 1.8s ease-in-out infinite; }
.play-mode .map-node.completed .node-orb { color: #533f18; background: var(--gold); box-shadow: 0 8px 0 #98742d, 0 13px 28px rgba(65,50,20,.23); }
.play-mode .map-node.locked .node-orb { color: #8c9894; background: #b7c0bd; box-shadow: 0 8px 0 #929c98; filter: grayscale(.5); }
.play-mode .map-node.locked { opacity: .68; }
.skill-canvas.play-mode { box-shadow: inset 0 0 0 2px rgba(213,177,99,.26); background-color: #0d1b1d; }
.play-mode .map-node { cursor: pointer; }
.play-mode .map-node-label { pointer-events: auto; }
@keyframes nodePulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.map-node-label { width: 128px; min-width: 0; max-width: 128px; padding: 4px 5px; text-align: center; color: #f5f0e6; background: transparent; border: 0; box-shadow: none; text-shadow: 0 2px 5px rgba(0,0,0,.7); pointer-events: none; }
.node-learn .map-node-label,.node-practice .map-node-label,.node-program .map-node-label,.node-milestone .map-node-label { border: 0; background: transparent; }
.map-node-label small { display: block; color: #c7a55f; font: 500 9px var(--display); letter-spacing: .7px; }
.map-node-label strong { display: -webkit-box; margin-top: 2px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.25; }
.map-node-label em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-mode .map-node-label { cursor: pointer; pointer-events: auto; }
.map-node .node-menu { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); display: flex; gap: 3px; opacity: 0; transition: opacity .2s; }
.edit-mode .map-node:hover .node-menu, .edit-mode .map-node:focus-within .node-menu { opacity: 1; }
.map-node .node-menu button { width: 27px; height: 27px; border: 1px solid rgba(207,171,93,.45); color: #f5dfaa; background: #142426; font-size: 13px; box-shadow: 0 5px 13px rgba(0,0,0,.25); }
.play-mode .node-menu { display: none; }
.canvas-add-tail { min-height: 50px; border: 0; border-top: 1px solid rgba(200,164,88,.38); color: #d7ba79; background: #0d1b1d; }
.canvas-add-tail:hover { color: #fff1c8; background: #142426; }

.challenge-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 0; color: var(--ink); background: var(--white); box-shadow: 0 25px 90px rgba(0,0,0,.4); }
.challenge-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(3px); }
.challenge-hero { height: 120px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: start; color: white; background: linear-gradient(135deg,#173f34,#2b6c56); }
.challenge-hero > span { width: 70px; height: 70px; display: grid; place-content: center; border: 4px solid white; border-radius: 50%; background: var(--gold); color: var(--ink); font: 600 25px var(--display); box-shadow: 0 6px 0 #92712f; }
.challenge-hero .dialog-close { color: white; }
.challenge-content { padding: 28px 32px 34px; }
.challenge-content > small { color: #92743a; font: 500 12px var(--display); letter-spacing: 2px; }
.challenge-content h2 { margin: 8px 0 10px; font: 600 31px var(--serif); }
.challenge-content > p { color: #65706d; line-height: 1.7; }
.challenge-meta { display: flex; gap: 8px; margin: 18px 0 25px; }
.challenge-meta span { padding: 6px 9px; border: 1px solid #cdc6b9; color: #6d7472; font-size: 12px; text-transform: uppercase; }
.challenge-content > a { display: flex; min-height: 48px; align-items: center; justify-content: center; margin-bottom: 10px; text-decoration: none; }
.challenge-search .lesson-search { margin-top: 14px; }
.challenge-search .search-row { grid-template-columns: minmax(0,1fr) auto; }
.challenge-content .primary-button { min-height: 54px; }
.challenge-actions { margin-top: 12px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 9px; }
.challenge-actions > button { min-height: 54px; }
.sos-button { display: flex; align-items: center; justify-content: space-between; border-color: #b94239; color: #9e352e; }
.sos-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.4); }
.sos-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(4px); }
.sos-dialog form { padding: 30px; }
.sos-dialog form > p { color: #68716e; font-size: 14px; line-height: 1.65; }
.prototype-notice { padding: 11px 12px; display: grid; gap: 3px; border-left: 3px solid var(--gold); background: #f3ead7; }
.prototype-notice b { color: #795d27; font-size: 11px; }
.prototype-notice span { color: #68716e; font-size: 11px; line-height: 1.45; }
.sos-dialog label { margin: 18px 0; display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.sos-dialog input, .sos-dialog textarea { width: 100%; padding: 12px; border: 1px solid #c5bdaf; border-radius: 0; background: white; }
.teacher-sos-list { margin-top: 12px; display: grid; gap: 8px; }
.teacher-sos-list > span { color: #899691; font-size: 12px; line-height: 1.5; }
.teacher-sos-list article { padding: 13px; border: 1px solid rgba(255,255,255,.18); background: rgba(5,13,14,.15); }
.teacher-sos-list article small { color: #e08b82; font: 500 11px var(--display); letter-spacing: 1px; }
.teacher-sos-list article b { display: block; margin-top: 5px; font-size: 14px; }
.teacher-sos-list article p { margin: 6px 0 10px; color: #aeb9b6; font-size: 12px; line-height: 1.5; }
.teacher-sos-list article button { width: 100%; min-height: 35px; border: 1px solid #d16a61; color: #ffd5d1; background: transparent; font-size: 11px; font-weight: 600; }
.support-marketplace { padding-top: 8px; }
.support-options { border: 1px solid #c9c1b4; background: rgba(255,253,248,.62); }
.support-options > summary { min-height: 112px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; cursor: pointer; list-style: none; }
.support-options > summary::-webkit-details-marker { display: none; }
.support-options > summary > span { display: grid; gap: 5px; }
.support-options > summary small { color: #9b7836; font: 600 12px var(--display); letter-spacing: 2px; }
.support-options > summary b { font: 600 25px var(--serif); }
.support-options > summary em { color: #6c7672; font-size: 13px; font-style: normal; }
.support-options > summary > strong { min-width: 150px; color: #72582a; font-size: 13px; text-align: right; }
.support-options > summary > strong i { margin-left: 8px; font-size: 20px; font-style: normal; }
.support-options[open] > summary { border-bottom: 1px solid #c9c1b4; }
.support-options[open] > summary > strong i { display: inline-block; transform: rotate(45deg); }
.support-options-body { padding: 28px; }
.support-marketplace-head { display: flex; justify-content: space-between; gap: 45px; align-items: end; margin-bottom: 24px; }
.support-marketplace-head small, .teacher-service-ladder > div > small { color: #a27c35; font: 600 12px var(--display); letter-spacing: 2px; }
.support-marketplace-head h2, .teacher-service-ladder h2 { margin: 8px 0 0; font: 600 31px var(--serif); }
.support-marketplace-head p { max-width: 520px; margin: 0; color: #68726f; font-size: 14px; line-height: 1.65; }
.support-start-here { margin-bottom: 14px; padding: 13px 16px; display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--gold); background: #ebe4d7; }
.support-start-here span { color: #765a29; font-size: 13px; font-weight: 800; }
.support-start-here p { margin: 0; color: #606b67; font-size: 13px; line-height: 1.55; }
.support-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #c9c1b4; }
.support-tier-grid article { min-height: 390px; padding: 25px; display: flex; flex-direction: column; border-right: 1px solid #c9c1b4; background: rgba(255,255,255,.42); }
.support-tier-grid article:last-child { border-right: 0; }
.support-tier-grid article.featured { color: white; background: var(--ink); box-shadow: inset 0 4px var(--gold); }
.support-tier-grid article > span { color: #a17c35; font: 600 12px var(--display); }
.support-tier-grid article > small { width: max-content; margin: 18px 0 7px; padding: 4px 7px; color: #80652f; background: #ede1c6; font-size: 12px; font-weight: 700; }
.support-tier-grid article h3 { margin: 0; font: 600 21px var(--serif); }
.support-tier-grid article p { margin: 10px 0 24px; color: #697370; font-size: 13px; line-height: 1.65; }
.support-tier-grid article.featured p { color: #b8c1be; }
.support-tier-grid article ol { margin: 0 0 22px; padding: 15px 0 15px 27px; display: grid; gap: 9px; border-top: 1px solid #d0c8bb; border-bottom: 1px solid #d0c8bb; color: #59635f; }
.support-tier-grid article.featured ol { color: #b8c1be; border-color: rgba(255,255,255,.17); }
.support-tier-grid article li { padding-left: 3px; font-size: 12px; line-height: 1.45; }
.support-tier-grid article button { min-height: 42px; margin-top: auto; border: 1px solid #a98748; color: #755c2e; background: transparent; font-size: 12px; font-weight: 700; }
.support-tier-grid article.featured button { color: var(--ink); background: var(--gold); }
.support-tier-grid #resumeForSos { padding: 0 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.support-button-hint { min-height: 34px; margin: 8px 0 0 !important; padding: 0 !important; color: #929e9a !important; background: transparent !important; font-size: 11px !important; line-height: 1.45; }
.support-request-status { margin: -7px 0 14px; padding: 9px 10px; display: flex; gap: 8px; align-items: center; color: #785d2c; background: #eee4ce; font-size: 11px; line-height: 1.45; }
.support-request-status span { font-weight: 800; }
.explore-expand { width: 100%; min-height: 58px; margin-top: 5px; border: 1px solid #a98748; color: #6d5428; background: transparent; font-size: 14px; font-weight: 700; }
.explore-expand b { margin-left: 8px; }
.explore-card-trust { margin-top: 10px; display: flex; gap: 7px; align-items: center; color: #e6ddca; font-size: 12px; }
.explore-card-trust i { color: var(--gold-light); font-style: normal; }
.empty-studio .teacher-journey,
.empty-studio .teacher-service-ladder,
.empty-studio .teacher-next-panel,
.empty-studio .teacher-welcome-actions #newTeacherRoadmap { display: none; }
.empty-studio .teacher-welcome { padding-bottom: 34px; }
.empty-studio .teacher-content-grid { grid-template-columns: 1fr; }
.empty-studio .teacher-maps-section { min-height: 0; }
.empty-studio .teacher-map-empty { min-height: 280px; padding: clamp(28px,5vw,58px); border-style: solid; background: linear-gradient(115deg,#fffdf8 0%,#fffdf8 68%,#eee4ce 68%); }
.empty-studio .teacher-map-empty h3 { font-size: clamp(28px,3vw,38px); }
.empty-studio .teacher-map-empty p { max-width: 610px; margin-top: 12px; font-size: 15px; line-height: 1.7; }
.empty-studio .teacher-map-empty button { min-width: 190px; min-height: 56px; }
.learner-canvas .creator-stepper,
.learner-canvas .canvas-header-actions,
.learner-canvas .creator-wizard-footer { display: none; }
.learner-canvas .canvas-header { grid-template-columns: minmax(180px,.55fr) minmax(0,1.4fr) minmax(180px,.55fr); }
.learner-canvas .canvas-title-block input { cursor: default; }
.learner-canvas .curriculum-header .primary-button { display: none; }
.learner-canvas .curriculum-editor { padding-top: 42px; }
.learner-canvas .learner-lesson-card { cursor: pointer; }
.learner-canvas .learner-lesson-card:hover { border-color: #a88440; box-shadow: 0 12px 32px rgba(33,37,31,.08); }
.learner-canvas .learner-lesson-card.is-complete { opacity: .72; }
.learner-canvas .learner-open-check { cursor: pointer; }
.learner-canvas .learner-open-check span { background: var(--gold); }
.route-flash { animation: routeFlash 1.8s ease; }
@keyframes routeFlash { 0%,100% { box-shadow: none; } 25%,65% { box-shadow: 0 0 0 4px rgba(201,158,75,.5), 0 15px 38px rgba(73,58,29,.18); } }
.page-breadcrumb, .dark-breadcrumb, .canvas-return-context nav { display: flex; gap: 8px; align-items: center; font-family: var(--sans); letter-spacing: 0; }
.page-breadcrumb { color: #8a918e; font-size: 12px; }
.page-breadcrumb i, .dark-breadcrumb i, .canvas-return-context nav i { color: #af8740; font-style: normal; }
.page-breadcrumb b { color: var(--ink); }
.dark-breadcrumb { max-width: 170px; flex-wrap: wrap; color: #808d89; font-size: 11px; line-height: 1.4; }
.dark-breadcrumb b { color: var(--gold-light); }
.canvas-return-context { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.canvas-return-context nav { color: #7c8985; font-size: 11px; line-height: 1.4; }
.canvas-return-context nav b { color: #a8833c; }
.dialog-breadcrumb { color: #9a7836 !important; font: 600 11px var(--sans) !important; letter-spacing: .5px !important; }
.roadmap-detail-trail { min-height: 56px; padding: 0 58px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d2cabe; background: var(--paper); }
.roadmap-detail-trail > button { border: 0; color: #775d2e; background: transparent; font-size: 12px; font-weight: 700; }
.roadmap-detail-trail nav { display: flex; gap: 8px; align-items: center; color: #818a87; font-size: 11px; }
.roadmap-detail-trail i { color: #a9833d; font-style: normal; }
.roadmap-detail-trail b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 800px) {
  .support-options > summary { min-height: 104px; padding: 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .support-options > summary > strong { min-width: 0; text-align: left; }
  .support-options-body { padding: 18px; }
  .learner-canvas .canvas-header { grid-template-columns: 1fr; }
  .learner-canvas .curriculum-editor { padding-top: 28px; }
}
.teacher-service-ladder { margin: 36px 0 28px; padding: 24px 28px; display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 30px; align-items: center; border: 1px solid rgba(230,204,149,.28); background: #152426; }
.teacher-service-ladder h2 { color: white; font-size: 22px; }
.teacher-service-ladder > div > p { margin: 8px 0 0; color: #94a09c; font-size: 12px; line-height: 1.55; }
.teacher-service-steps { display: flex; gap: 12px; align-items: center; }
.teacher-service-steps > span { display: grid; gap: 3px; }
.teacher-service-steps b { color: var(--gold-light); font: 600 12px var(--display); }
.teacher-service-steps em { color: white; font-style: normal; font-size: 13px; font-weight: 700; }
.teacher-service-steps small { color: #86938f; font-size: 12px; }
.teacher-service-steps i { color: #836b3d; font-style: normal; }
.teacher-service-ladder > button { min-width: 180px; min-height: 52px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gold); color: var(--gold-light); background: transparent; font-size: 12px; font-weight: 700; }
.teacher-service-ladder > button b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); }
.request-choice { margin: 19px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 0; }
.request-choice legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.request-choice label { margin: 0 !important; min-width: 0; }
.request-choice input { position: absolute; opacity: 0; pointer-events: none; }
.request-choice label > span { min-height: 82px; padding: 11px; display: grid; align-content: center; gap: 4px; border: 1px solid #c8c0b4; border-right: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.request-choice label:last-child > span { border-right: 1px solid #c8c0b4; }
.request-choice input:checked + span { border-color: #a98034; color: var(--ink); background: #f4e9d0; box-shadow: inset 0 -3px var(--gold); }
.request-choice b { font-size: 12px; }
.request-choice small { color: #77817d; font-size: 12px; line-height: 1.4; }
.custom-plan-dialog, .teacher-reply-dialog { width: min(720px, calc(100vw - 28px)); max-height: 90vh; padding: 0; overflow-y: auto; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.42); }
.custom-plan-dialog::backdrop, .interaction-inbox-dialog::backdrop, .teacher-reply-dialog::backdrop, .feedback-detail-dialog::backdrop { background: rgba(7,14,16,.8); backdrop-filter: blur(4px); }
.custom-plan-dialog form, .teacher-reply-dialog form { padding: 30px; }
.custom-plan-dialog form > p { color: #697370; font-size: 14px; line-height: 1.6; }
.custom-plan-dialog label, .teacher-reply-dialog label { margin-top: 17px; display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.custom-plan-dialog input, .custom-plan-dialog textarea, .custom-plan-dialog select, .teacher-reply-dialog input, .teacher-reply-dialog textarea { width: 100%; padding: 12px; border: 1px solid #c7bfb2; border-radius: 0; background: #fffdf9; }
.custom-plan-steps { margin: 20px 0; display: flex; align-items: center; }
.custom-plan-steps span { flex: 1; padding: 10px; display: flex; gap: 8px; border: 1px solid #ccc4b8; color: #8b6c31; font: 600 11px var(--display); }
.custom-plan-steps span.active { color: var(--ink); border-color: #aa8744; background: #f4e9d1; }
.custom-plan-steps b { font: 700 12px var(--sans); }
.custom-plan-steps i { margin: 0 5px; color: #a47f37; font-style: normal; }
.custom-plan-split { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.interaction-inbox-dialog { width: min(980px, calc(100vw - 28px)); max-height: 90vh; padding: 30px; overflow-y: auto; border: 0; color: white; background: #0d1a1c; box-shadow: 0 25px 90px rgba(0,0,0,.5); }
.interaction-inbox-dialog .dialog-top { border-color: rgba(255,255,255,.18); }
.interaction-inbox-dialog .dialog-top small { color: var(--gold-light); }
.interaction-inbox-dialog .dialog-close { color: #c2cbc8; }
.inbox-summary { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.16); }
.inbox-summary span { padding: 15px; display: grid; gap: 3px; border-right: 1px solid rgba(255,255,255,.16); }
.inbox-summary span:last-child { border-right: 0; }
.inbox-summary b { color: var(--gold-light); font: 600 24px var(--display); }
.inbox-summary small { color: #8f9b97; font-size: 12px; }
.inbox-filters { display: flex; border-bottom: 1px solid rgba(255,255,255,.16); }
.inbox-filters button { min-height: 42px; padding: 0 18px; border: 0; color: #83908c; background: transparent; font-size: 12px; font-weight: 700; }
.inbox-filters button.active { color: white; box-shadow: inset 0 -2px var(--gold); }
.interaction-request-list { margin-top: 17px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.interaction-request-card { padding: 18px; border: 1px solid rgba(255,255,255,.17); background: #142426; }
.interaction-request-card.answered, .interaction-request-card.planning, .interaction-request-card.prescribed { opacity: .78; }
.request-card-head { display: flex; justify-content: space-between; gap: 12px; }
.request-card-head small { color: #d5b467; font: 600 12px var(--display); letter-spacing: 1px; }
.request-card-head span { color: #95a19d; font-size: 12px; }
.interaction-request-card h3 { margin: 13px 0 7px; font: 600 18px var(--serif); }
.interaction-request-card p { min-height: 48px; margin: 0; color: #a7b2ae; font-size: 12px; line-height: 1.6; }
.request-card-meta { margin: 12px 0; display: flex; gap: 7px; }
.request-card-meta span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.14); color: #94a09c; font-size: 12px; }
.request-card-actions { display: flex; gap: 7px; }
.request-card-actions button { flex: 1; min-height: 38px; border: 1px solid var(--gold); color: var(--ink); background: var(--gold); font-size: 12px; font-weight: 700; }
.request-card-actions button.outline { color: var(--gold-light); background: transparent; }
.interaction-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-content: center; text-align: center; color: #84918d; }
.reply-request-context { margin: 18px 0; padding: 15px; border-left: 3px solid var(--gold); background: #e9e3d7; }
.reply-request-context small { color: #8b6a2e; font-size: 12px; }
.reply-request-context h3 { margin: 7px 0; }
.reply-request-context p { margin: 0; color: #5f6965; font-size: 13px; line-height: 1.6; }
.reply-request-context a { display: inline-flex; margin-top: 9px; color: #7c5f29; font-size: 12px; }
.reply-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.reply-actions button { min-height: 48px; padding: 0 17px; }
.feedback-detail-dialog { width: min(660px, calc(100vw - 28px)); padding: 36px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.45); }
.feedback-detail-dialog > .dialog-close { float: right; }
.feedback-detail-dialog small { color: #9b7730; font: 600 12px var(--display); letter-spacing: 1px; }
.feedback-detail-dialog h2 { max-width: 520px; margin: 12px 0 28px; font: 600 31px var(--serif); }
.feedback-detail-dialog section { padding: 18px 0; display: grid; grid-template-columns: 42px 1fr; gap: 14px; border-top: 1px solid #ccc4b7; }
.feedback-detail-dialog section > span { color: #9b7730; font: 600 12px var(--display); }
.feedback-detail-dialog section p { margin: 7px 0 0; color: #4e5955; line-height: 1.7; }
.feedback-detail-dialog section.next { padding: 20px; border: 0; background: #eee5d3; }
.feedback-detail-dialog > div > a { min-height: 44px; margin-top: 18px; display: grid; place-items: center; color: var(--ink); background: var(--gold); font-size: 12px; font-weight: 700; text-decoration: none; }
.notification-list article.clickable { cursor: pointer; }
.notification-list article.clickable:hover { background: #eee8dc; }
.primary-button:disabled { cursor: not-allowed; opacity: .45; background: #b9b4aa; }
.challenge-dialog { max-height: min(90vh, 820px); overflow-y: auto; }
.challenge-assessment { margin: 22px 0 16px; padding-top: 18px; border-top: 1px solid #d1cbc0; }
.challenge-prescription { margin: 20px 0; border: 1px solid #c9b074; background: #0d1a1d; color: white; }
.challenge-prescription header { display: flex; justify-content: space-between; align-items: end; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.challenge-prescription header small { color: var(--gold-light); font: 500 10px var(--display); letter-spacing: 2px; }
.challenge-prescription header h3 { margin: 0; font-size: 20px; }
.prescription-lines { display: grid; padding: 8px 18px; }
.prescription-lines > span { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.prescription-lines i { color: var(--gold-light); font: normal 11px var(--display); }
.prescription-lines b { font-size: 15px; }
.prescription-variants { display: grid; grid-template-columns: repeat(3, 1fr); background: #f2eee6; color: var(--ink); }
.prescription-variants article { min-height: 100px; padding: 14px; border-right: 1px solid #d2c9ba; }
.prescription-variants article:last-child { border-right: 0; }
.prescription-variants article.standard { background: #ead7a8; }
.prescription-variants small { color: #8a692f; font: 500 10px var(--display); letter-spacing: 1.5px; }
.prescription-variants p { margin: 7px 0 0; white-space: pre-line; color: #4f5956; font-size: 13px; line-height: 1.5; }
.program-result-log { margin-top: 16px; padding: 18px; border: 1px solid #b99a5e; background: #f3ede0; }
.program-result-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 16px; }
.program-result-heading small { display: block; color: #9b762e; font: 500 10px var(--display); letter-spacing: 1.5px; }
.program-result-heading b { display: block; margin-top: 3px; font-size: 18px; }
.program-result-heading > span { color: #65706d; font-size: 12px; }
.program-result-log fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.program-result-log legend { margin-bottom: 8px; color: #596360; font-size: 12px; font-weight: 600; }
.program-scale-choice { display: grid; grid-template-columns: repeat(3, 1fr); }
.program-scale-choice input { position: absolute; opacity: 0; }
.program-scale-choice span { min-height: 42px; display: grid; place-items: center; border: 1px solid #c7bdab; background: white; font-size: 13px; }
.program-scale-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: white; }
.program-result-fields { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.program-result-fields label { display: grid; gap: 6px; color: #596360; font-size: 12px; font-weight: 600; }
.program-result-fields input, .program-result-fields select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #c5beb1; background: white; }
.program-card-prescription { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding: 12px; border-left: 3px solid var(--gold); background: #eee7da; }
.program-card-prescription small { width: 100%; color: #8b682b; font: 500 10px var(--display); letter-spacing: 1.5px; }
.program-card-prescription span { padding: 5px 8px; border: 1px solid #c9beaa; background: white; color: #505a57; font-size: 12px; }
.program-stage-panel { border-color: #a98849; background: #f4efe5; }
.program-stage-panel .curriculum-node-list { display: grid; gap: 14px; padding: 18px; }
.program-schedule-card { display: grid; grid-template-columns: 118px minmax(0,1fr); border: 1px solid #aeb4ae; background: #fffdf8; box-shadow: 0 9px 24px rgba(24,34,31,.06); }
.program-schedule-card.is-complete { border-color: #36735e; }
.program-day-index { padding: 20px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: var(--ink); }
.program-day-index small { color: var(--gold-light); font: 600 10px var(--display); letter-spacing: 1.6px; }
.program-day-index b { margin: 9px 0; font: 600 34px var(--display); }
.program-day-index span { color: #aab5b1; font-size: 11px; text-align: center; }
.program-day-main { min-width: 0; padding: 20px 22px 14px; }
.program-day-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.program-day-heading > div { min-width: 0; }
.program-day-heading small { color: #97732f; font: 600 10px var(--display); letter-spacing: 1px; }
.program-day-heading h3 { margin: 6px 0 5px; font: 600 22px var(--serif); }
.program-day-heading p { margin: 0; color: #69736f; font-size: 13px; line-height: 1.55; }
.program-open-button { min-width: 130px; min-height: 40px; padding: 0 13px; border: 1px solid #9f7c38; color: #725827; background: transparent; font-size: 12px; font-weight: 700; }
.learner-program-card { cursor: pointer; }
.learner-program-card .program-open-button { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.program-work-block { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); border: 1px solid #d0c7b8; }
.program-work-block > span { min-height: 58px; padding: 12px; display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 8px; align-items: center; border-right: 1px solid #d0c7b8; }
.program-work-block > span:last-child { border-right: 0; }
.program-work-block i { color: #a27c34; font: normal 10px var(--display); }
.program-work-block b { overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.program-work-block .program-empty-prescription { display: flex; color: #838b87; font-size: 13px; }
.program-day-footer { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.program-day-footer span { padding: 4px 7px; color: #606a66; border: 1px solid #d0c8bb; background: #f2eee6; font-size: 10px; }
.program-schedule-card .curriculum-node-actions { margin-top: 13px; justify-content: flex-end; }
.program-execution-dialog { width: min(720px, calc(100vw - 28px)); background: #f5f1e8; }
.program-execution-dialog .challenge-hero { background: linear-gradient(135deg,#071416,#1b2929); }
.program-execution-dialog .challenge-hero > span { border-radius: 5px; background: transparent; color: var(--gold-light); border-color: var(--gold); box-shadow: none; }
.program-execution-dialog .challenge-content h2 { font-size: 36px; }
.program-execution-dialog .challenge-goal-context { opacity: .78; }
.program-execution-dialog .challenge-prescription { margin-top: 18px; }
.program-execution-dialog .challenge-assessment { border-top: 3px solid var(--gold); }
.challenge-goal-context { margin: 18px 0 5px; padding: 15px; border-left: 3px solid var(--gold); background: #eee9df; }
.challenge-goal-context > small { color: #99752e; font-size: 11px; letter-spacing: 1px; }
.challenge-goal-context > p { margin: 5px 0 11px; color: #39433f; font-size: 14px; }
.challenge-goal-context > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11px; color: #727a77; }
.challenge-goal-context i { color: #a47e36; font-style: normal; }
.challenge-goal-context b { color: #26312e; }
.challenge-goal-context strong { color: #8d6c2d; }
.roadmap-detail-controls .detail-baseline { grid-column: 1 / -1; }
.roadmap-detail-controls .detail-baseline textarea { min-height: 62px; padding: 9px; border: 1px solid #c5bdaf; resize: vertical; }
.challenge-progress-row { display: grid; grid-template-columns: 78px 1fr; gap: 17px; align-items: center; margin-bottom: 15px; }
.challenge-progress-row .task-progress { position: relative; top: auto; width: 72px; height: 72px; margin: 0; }
.challenge-progress-row .task-progress::before { inset: 6px; }
.challenge-progress-row .task-progress strong { font-size: 16px; }
.challenge-progress-row b { color: #8b6e36; font-size: 14px; }
.challenge-progress-row p { margin: 4px 0 0; color: #76807d; font-size: 13px; line-height: 1.45; }
.challenge-assessment .micro-task > span { min-height: 44px; font-size: 14px; }
.challenge-assessment .pass-note { margin-top: 10px; }
.proof-entry, .self-review { margin-top: 16px; padding: 16px; border: 1px solid #d0cabf; background: #f2eee6; }
.proof-entry-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.proof-entry-heading b, .self-review > b { color: #80632e; font-size: 14px; }
.proof-entry-heading span { padding: 4px 7px; background: var(--ink-2); color: white; font-size: 11px; text-transform: uppercase; }
.proof-entry > p { margin: 6px 0 11px; color: #747d7a; font-size: 13px; line-height: 1.5; }
.proof-entry input, .reflection-field textarea { width: 100%; border: 1px solid #c5beb1; background: white; color: var(--ink); padding: 11px; }
.rubric-list { display: grid; gap: 7px; margin: 11px 0 15px; }
.rubric-item { cursor: pointer; }
.rubric-item input { position: absolute; opacity: 0; }
.rubric-item span { min-height: 38px; padding: 8px 10px 8px 36px; display: flex; align-items: center; position: relative; border: 1px solid #cbc5b9; background: white; color: #56615e; font-size: 13px; line-height: 1.4; }
.rubric-item span::before { content: ""; position: absolute; left: 10px; width: 15px; height: 15px; border: 1px solid #9ba19d; border-radius: 50%; }
.rubric-item.checked span { background: #e3ebe5; border-color: #aebdb4; }
.rubric-item.checked span::before { content: "✓"; display: grid; place-content: center; border-color: var(--ink-2); background: var(--ink-2); color: white; font-size: 11px; }
.confidence-field, .reflection-field { display: block; margin-top: 13px; }
.confidence-field > span, .reflection-field > span { display: block; margin-bottom: 7px; color: #59635f; font-size: 13px; font-weight: 600; }
.confidence-field > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.confidence-field label input { position: absolute; opacity: 0; }
.confidence-field label span { min-height: 36px; display: grid; place-content: center; border: 1px solid #c5beb1; background: white; color: #6f7774; font: 600 14px var(--display); cursor: pointer; }
.confidence-field label input:checked + span { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.account-dialog { width: min(500px, calc(100vw - 28px)); max-height: min(90vh, calc(100dvh - 20px)); overflow-y: auto; overscroll-behavior: contain; padding: 34px; border: 0; color: var(--ink); background: var(--white); box-shadow: 0 25px 90px rgba(0,0,0,.4); }
.account-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(3px); }
.account-dialog > p { margin: -5px 0 22px; color: #66716e; font-size: 15px; line-height: 1.65; }
.account-dialog label { display: block; margin-bottom: 13px; }
.account-dialog label span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.account-dialog input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #c9c5ba; background: #faf8f3; color: var(--ink); }
.account-dialog .outline-button { width: 100%; min-height: 48px; }
.account-benefits { margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #d1cabe; background: #f4f0e8; }
.account-benefits span { min-height: 72px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.account-benefits span + span { border-left: 1px solid #d1cabe; }
.account-benefits b { color: #a27d37; font: 500 11px var(--display); }
.account-benefits small { color: #3f4946; font-size: 12px; font-weight: 600; }
.google-signin-button { width: 100%; min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #bdb8ad; color: #27312f; background: white; font-weight: 600; }
.google-signin-button:hover { border-color: #8c7650; background: #faf8f3; }
.google-signin-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.account-divider { margin: 21px 0 17px; display: flex; align-items: center; gap: 12px; color: #89908d; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; }
.account-divider::before, .account-divider::after { content: ""; height: 1px; flex: 1; background: #d2cdc3; }
.signed-in-profile { margin: 4px 0 18px; padding: 15px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: #f1eee6; border: 1px solid #d2cbbf; }
.signed-in-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink-2) center/cover; font: 500 13px var(--display); }
.signed-in-profile b, .signed-in-profile span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-in-profile span { margin-top: 3px; color: #69726f; font-size: 13px; }
.workspace-avatar.has-photo { color: transparent; background-position: center; background-size: cover; }
.passport-dialog { width: min(720px, calc(100vw - 28px)); max-height: 90vh; overflow-y: auto; padding: 30px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.4); }
.passport-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(3px); }
.passport-summary { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; border: 1px solid #c9c3b7; }
.passport-summary span { padding: 17px; display: flex; flex-direction: column; }
.passport-summary span + span { border-left: 1px solid #c9c3b7; }
.passport-summary strong { font: 600 27px var(--display); }
.passport-summary small { color: #75807c; font-size: 12px; }
.passport-list { display: grid; gap: 12px; }
.passport-empty { padding: 45px 25px; border: 1px dashed #bdb7ac; text-align: center; color: #7a817f; }
.passport-empty span { font-size: 32px; color: #aa8744; }
.passport-skill { padding: 18px; border: 1px solid #cfc8bc; background: var(--white); }
.passport-skill header { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; }
.passport-skill header > span { color: #a27d37; font: 600 13px var(--display); }
.passport-skill header small { color: #858c89; font-size: 11px; text-transform: uppercase; }
.passport-skill header h3 { margin: 3px 0 0; font: 600 20px var(--serif); }
.passport-skill header > b { color: #84662d; font: 600 18px var(--display); }
.proof-card { min-height: 75px; margin-top: 14px; padding: 13px; border-left: 3px solid var(--gold); background: #ece7dd; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.proof-card small { color: #8a713e; font-size: 11px; text-transform: uppercase; }
.proof-card b { margin-top: 4px; font-size: 14px; }
.proof-card span { margin-top: 5px; color: #707976; font-size: 12px; }
.proof-compare { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 5px; align-items: center; }
.proof-compare > i { color: #9a7a3d; text-align: center; font-style: normal; }
.proof-card.latest { border-left-color: var(--ink-2); background: #e1e9e4; }

footer { padding: 40px 7vw; background: #090f11; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; color: #747f7d; font-size: 14px; }
footer div { display: flex; flex-direction: column; gap: 8px; }
footer b { color: white; font: 600 17px var(--display); letter-spacing: 3px; }
footer p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 13px 20px; background: var(--ink); color: white; border: 1px solid var(--gold); opacity: 0; pointer-events: none; transition: .25s; z-index: 30; box-shadow: 0 12px 35px rgba(0,0,0,.28); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Logged-in workspace: learning stays primary; creation is one clear mode away. */
.dashboard { min-height: 100vh; color: var(--ink); background: var(--paper); }

/* ─── Explore page ─── */
.dashboard-explore-section { padding-top: 30px !important; }
.explore-header { margin-bottom: 28px; }
.explore-header small { color: #9b7836; font: 500 12px var(--display); letter-spacing: 2px; }
.explore-header h2 { margin: 5px 0 8px; font: 600 31px var(--serif); }
.explore-header > p { margin: 0; color: #626d69; font-size: 14px; }

/* Search bar */
.explore-search-wrap { margin-bottom: 22px; }
.explore-search { max-width: 100%; height: 62px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; padding: 6px; background: var(--white); border: 1px solid #c9c1b3; box-shadow: 0 8px 30px rgba(27,31,28,.06); transition: border-color .2s, box-shadow .2s; }
.explore-search:focus-within { border-color: var(--gold); box-shadow: 0 8px 30px rgba(199,160,82,.1); }
.explore-search-icon { color: #9aa3a1; font-size: 26px; text-align: center; transform: rotate(-20deg); }
.explore-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 10px; font-size: 15px; }
.explore-search input::placeholder { color: #9aa3a1; }
.explore-search button { height: 48px; padding: 0 22px; border: 0; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 15px; transition: background .15s; }
.explore-search button:hover { background: var(--gold-light); }

/* Category chips – horizontal scroll */
.category-scroll-wrap { margin-bottom: 32px; overflow: hidden; }
.category-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-chip { min-width: 126px; min-height: 108px; flex: 0 0 auto; position: relative; display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 7px; padding: 16px; border: 1px solid #c9c1b3; background: var(--white); color: var(--ink); cursor: pointer; overflow: hidden; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.category-chip::after { content: ""; width: 42px; height: 42px; position: absolute; right: -13px; top: -13px; border: 1px solid rgba(155,120,54,.22); border-radius: 50%; }
.category-chip:hover { transform: translateY(-3px); border-color: #967638; box-shadow: 0 6px 18px rgba(199,160,82,.1); }
.category-chip.active { color: var(--ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 6px 18px rgba(199,160,82,.18); transform: translateY(-2px); }
.category-chip-mark { color: #94702e; font: 600 11px var(--display); letter-spacing: 1.6px; }
.category-chip.active .category-chip-mark { color: #4b3816; }
.category-chip > span:nth-child(2) { font: 600 16px var(--serif); white-space: nowrap; }
.category-chip > small { color: #7d8682; font: 500 11px var(--display); }
.category-chip.active > small { color: #5d491f; }

/* Trending section */
.trending-section { margin-bottom: 42px; }
.trending-section .dashboard-section-head { margin-bottom: 18px; }
.trending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Explore cards (shared between trending and small cards) */
.explore-card { min-height: 320px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; isolation: isolate; border: 1px solid rgba(255,255,255,.12); background: #172327; box-shadow: 0 12px 32px rgba(16,26,29,.1); transition: transform .25s, box-shadow .25s; }
.explore-card::after { content: ""; height: 3px; position: absolute; inset: 0 0 auto; background: var(--gold); z-index: 2; }
.explore-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.explore-card-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .5s; }
.explore-card:hover .explore-card-bg { transform: scale(1.06); }
.explore-card-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,12,14,.92) 0%, rgba(8,16,18,.45) 45%, rgba(8,16,18,.08) 100%); }
.explore-card-content { position: relative; padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; color: white; min-height: 100%; }
.explore-badge { align-self: flex-start; padding: 5px 10px; background: rgba(199,160,82,.88); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .3px; backdrop-filter: blur(4px); margin-bottom: auto; }
.explore-badge-sm { font-size: 11px; padding: 4px 8px; }
.explore-card-bottom { margin-top: auto; }
.explore-card-cat { display: block; color: var(--gold-light); font: 500 12px var(--display); letter-spacing: 2px; margin-bottom: 6px; }
.explore-card h3 { font: 600 28px var(--serif); margin: 0 0 6px; }
.explore-card p { margin: 0; color: #c0c8c5; font-size: 15px; line-height: 1.55; }
.explore-card-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.explore-card-tags span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.2); color: #d5ddda; background: rgba(8,15,17,.28); font-size: 11px; }
.explore-card-arrow { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(199,160,82,.6); color: var(--gold-light); background: rgba(10,20,22,.5); font-size: 17px; display: grid; place-items: center; backdrop-filter: blur(4px); opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.explore-card:hover .explore-card-arrow { opacity: 1; transform: translateY(0); }

/* Trending cards — larger */
.trending-card { min-height: 360px; }
.trending-card h3 { font-size: 34px; }

/* Small explore cards */
.explore-card-small { min-height: 260px; min-width: 255px; flex: 0 0 255px; }
.explore-card-small h3 { font-size: 22px; }
.explore-card-small p { font-size: 14px; }
.explore-card-small .explore-card-content { padding: 17px; }

/* Category section */
.category-section { margin-bottom: 38px; }
.category-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.category-section-head > div { display: flex; align-items: center; gap: 9px; }
.category-section-mark { min-width: 58px; padding: 6px 8px; display: inline-grid; place-items: center; color: #795a22; border: 1px solid #b89a61; font: 600 11px var(--display); letter-spacing: 1px; }
.category-section-head h3 { margin: 0; font: 600 22px var(--serif); }
.category-see-all { border: 0; border-bottom: 1px solid #9b7836; padding: 5px 0; color: #5d4b2a; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; }
.category-see-all:hover { color: #9a7124; }
.category-scroll-cards { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-scroll-cards::-webkit-scrollbar { display: none; }

/* Filtered results grid */
.explore-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }

/* Empty state */
.explore-empty { min-height: 200px; display: grid; place-content: center; text-align: center; border: 1px dashed #bdb7ac; color: #7a817f; padding: 35px; }
.explore-empty span { font-size: 36px; color: #9aa3a1; display: block; margin-bottom: 12px; }
.continue-empty { position: relative; overflow: hidden; background: linear-gradient(110deg,#fffdf8 0%,#fffdf8 64%,#e9dfc7 64%,#f5eddc 100%); }
.continue-empty::after { content: "01"; position: absolute; right: 8%; bottom: -35px; color: rgba(151,112,43,.14); font: 600 130px var(--display); }
.continue-empty > * { position: relative; z-index: 1; }
.workspace-nav { min-height: 76px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d1cabb; background: rgba(255,253,248,.94); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(12px); }
.topic-search-hint { margin: 9px 0 0 !important; color: #697470 !important; font-size: 12px !important; line-height: 1.55; }
.workspace-brand { color: var(--ink); }
.workspace-links { display: flex; align-items: center; gap: 25px; }
.workspace-links > button:not(.workspace-avatar) { padding: 9px 0; border: 0; border-bottom: 1px solid transparent; color: #69726f; background: transparent; font-size: 14px; font-weight: 600; }
.workspace-links > button.active { color: var(--ink); border-color: var(--gold); }
.workspace-links .mode-switch-button { min-height: 40px; padding: 0 14px !important; display: flex; align-items: center; gap: 16px; border: 1px solid #aa9567 !important; color: #705c32 !important; }
.workspace-current { color: #55605c; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.teacher-current { color: #d8dfdc; }
.workspace-mode-flag { padding: 7px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: .8px; }
.learner-mode-flag { color: #315e50; background: #dbe8e2; }
.teacher-mode-flag { color: #4e3b17; background: var(--gold-light); }
.mode-switch-button b { color: #9b7936; }
.workspace-avatar { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--ink-2); font: 500 12px var(--display); letter-spacing: 1px; }
.dashboard-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 70px 0 110px; }
.dashboard-welcome { padding: 18px 0 52px; border-bottom: 1px solid #cfc7b9; }
.dashboard-welcome h1 { margin: 14px 0 12px; font: 600 clamp(22px, 4vw, 54px)/1.1 var(--serif); letter-spacing: -1.5px; white-space: nowrap; }
.dashboard-welcome h1 em { color: #a47d34; font-style: normal; font-weight: inherit; }
.dashboard-welcome > p:last-child { margin: 0; color: #4f5e5a; }
.journey-guide { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; }
.journey-guide > div { min-height: 104px; padding: 19px; display: grid; grid-template-columns: 31px 1fr; align-content: center; border: 1px solid #c9c1b3; background: rgba(255,253,248,.72); }
.journey-guide > div span { grid-row: 1 / span 2; color: #9b7836; font: 500 12px var(--display); }
.journey-guide > div b { font-size: 15px; }
.journey-guide > div small { margin-top: 5px; color: #6f7875; font-size: 12px; }
.journey-guide > i { color: #9b7836; text-align: center; font-style: normal; }
.learner-journey { margin: 32px 0 8px; }
.dashboard-section { padding: 55px 0 15px; }
.dashboard-section-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: end; }
.dashboard-section-head small, .creator-invitation small { color: #9b7836; font: 500 12px var(--display); letter-spacing: 2px; }
.dashboard-section-head h2 { margin: 5px 0 0; font: 600 31px var(--serif); }
.dashboard-section-head > button { border: 0; border-bottom: 1px solid #9b7836; padding: 7px 0; color: #5d4b2a; background: transparent; font-weight: 600; }
.continue-card { min-height: 280px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; color: white; background: var(--ink-2); box-shadow: 0 22px 55px rgba(25,31,27,.13); }
.continue-card-main { padding: 37px 40px; display: flex; flex-direction: column; align-items: start; }
.continue-card-main > small { color: var(--gold-light); font: 500 12px var(--display); letter-spacing: 2px; }
.continue-card-main h3 { margin: 12px 0 8px; font: 600 clamp(33px, 4vw, 50px) var(--serif); }
.continue-card-main p { margin: 0; color: #b7c0bd; line-height: 1.6; }
.continue-context { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.continue-context span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.16); color: #9faaa7; font-size: 11px; }
.continue-context b { color: var(--gold-light); }
.continue-progress { width: 100%; margin: auto 0 22px; }
.continue-progress div { height: 4px; overflow: hidden; background: rgba(255,255,255,.14); }
.continue-progress i { display: block; height: 100%; background: var(--gold); }
.continue-progress span { margin-top: 9px; display: flex; justify-content: space-between; color: #9aa5a2; font-size: 13px; font-style: normal; }
.continue-card-main > button { min-height: 50px; padding: 0 19px; display: flex; align-items: center; gap: 45px; border: 0; color: var(--ink); background: var(--gold); font-weight: 600; }
.continue-card-visual { min-height: 280px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg,#1f5e4b,#0e2f29); }
.continue-card-visual::before { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.16); transform: rotate(35deg); }
.continue-orb { width: 126px; height: 126px; position: relative; display: grid; place-items: center; border: 7px solid rgba(255,255,255,.9); border-radius: 50%; color: var(--ink); background: var(--gold); box-shadow: 0 10px 0 #806121, 0 22px 50px rgba(0,0,0,.3); font: 600 25px var(--display); }
.continue-empty { min-height: 210px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border: 1px solid #c9c1b3; background: var(--white); }
.continue-empty h3 { margin: 0 0 8px; font: 600 28px var(--serif); }
.continue-empty p { margin: 0; color: #69736f; }
.continue-empty button { min-height: 48px; padding: 0 19px; border: 0; color: var(--ink); background: var(--gold); font-weight: 600; white-space: nowrap; }
.cloud-save-prompt { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #cfc6b6; border-top: 0; background: #fffaf0; }
.cloud-save-prompt div { display: grid; gap: 3px; }
.cloud-save-prompt b { font: 600 15px var(--serif); }
.cloud-save-prompt span { color: #747d79; font-size: 12px; }
.cloud-save-prompt button { min-height: 38px; padding: 0 13px; border: 1px solid #9d7b3b; color: #6f5526; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dashboard-topic-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.dashboard-topic-grid button { min-height: 185px; padding: 21px; display: flex; flex-direction: column; align-items: start; text-align: left; border: 1px solid #c9c1b3; color: var(--ink); background: transparent; transition: .2s; }
.dashboard-topic-grid button:hover { transform: translateY(-3px); border-color: #967638; background: var(--white); }
.dashboard-topic-grid span { color: #9b7836; font: 500 12px var(--display); }
.dashboard-topic-grid b { margin: auto 0 10px; font: 600 24px var(--serif); }
.dashboard-topic-grid small { color: #66706d; line-height: 1.5; }
.creator-invitation { margin-top: 70px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 35px; color: white; background: #172327; }
.creator-invitation h2 { margin: 7px 0 8px; font: 600 29px var(--serif); }
.creator-invitation p { margin: 0; color: #aeb8b5; }
.creator-invitation button { min-height: 50px; min-width: 230px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--gold); color: var(--gold-light); background: transparent; font-weight: 600; }
.teacher-dashboard { min-height: 100vh; color: var(--ink); background: #101a1d; }
.teacher-nav { color: white; border-color: rgba(255,255,255,.13); background: rgba(8,15,17,.96); }
.teacher-nav .workspace-brand { color: white; }
.teacher-nav .workspace-links > button:not(.workspace-avatar) { color: #aab4b1; }
.teacher-nav .workspace-links > button.active { color: white; border-color: var(--gold); }
.teacher-nav .teacher-return-button { color: var(--gold-light) !important; border-color: rgba(213,177,101,.62) !important; }
.teacher-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 65px 0 110px; }
.teacher-welcome { padding: 10px 0 50px; display: flex; justify-content: space-between; align-items: end; gap: 45px; color: white; }
.teacher-welcome h1 { margin: 13px 0 12px; font: 600 clamp(43px, 5vw, 68px)/1.08 var(--serif); letter-spacing: -2px; }
.teacher-welcome h1 em { color: var(--gold-light); font-weight: inherit; }
.teacher-welcome p:last-child { margin: 0; max-width: 680px; color: #aeb8b5; line-height: 1.7; }
.teacher-welcome-actions { min-width: 235px; display: grid; gap: 9px; }
.teacher-welcome-actions button { min-height: 52px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border: 0; color: var(--ink); background: var(--gold); font-weight: 600; }
.teacher-welcome-actions .teacher-profile-button { border: 1px solid rgba(213,177,101,.6); color: var(--gold-light); background: transparent; }
.teacher-journey { margin-bottom: 52px; }
.teacher-journey > div { border-color: rgba(255,255,255,.17); color: white; background: #172427; }
.teacher-journey > div small { color: #9faaa7; }
.teacher-content-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.65fr); gap: 18px; align-items: start; }
.teacher-maps-section, .teacher-next-panel { min-height: 360px; padding: 30px; background: var(--paper); }
.teacher-section-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: end; }
.teacher-section-head small, .teacher-next-panel > small { color: #987433; font: 500 11px var(--display); letter-spacing: 2px; }
.teacher-section-head h2, .teacher-next-panel h2 { margin: 5px 0 0; font: 600 29px var(--serif); }
.teacher-section-head > span { color: #77807d; font-size: 12px; }
.teacher-map-card { min-height: 220px; padding: 25px; display: grid; grid-template-columns: 1fr 150px; gap: 24px; color: white; background: var(--ink-2); }
.teacher-map-card small { color: var(--gold-light); font: 500 11px var(--display); letter-spacing: 1.5px; }
.teacher-map-card > div:first-child > small { display: flex; align-items: center; gap: 7px; }
.roadmap-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8d9693; }
.teacher-map-card.is-published .roadmap-status-dot { background: #62c59d; box-shadow: 0 0 0 4px rgba(98,197,157,.12); }
.teacher-map-card h3 { margin: 9px 0 7px; font: 600 30px var(--serif); }
.teacher-map-card p { margin: 0; color: #aeb8b5; font-size: 14px; }
.teacher-map-tags { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-map-tags span { padding: 5px 8px; border: 1px solid rgba(213,177,101,.38); color: var(--gold-light); font-size: 11px; }
.teacher-map-stats { margin-top: 31px; display: flex; gap: 25px; }
.teacher-map-stats span { display: flex; flex-direction: column; }
.teacher-map-stats b { font: 600 20px var(--display); }
.teacher-map-stats small { color: #8f9a97; letter-spacing: 0; }
.teacher-map-actions { display: flex; flex-direction: column; justify-content: end; gap: 9px; }
.teacher-map-actions button { min-height: 45px; border: 1px solid var(--gold); color: var(--gold-light); background: transparent; font-size: 13px; font-weight: 600; }
.teacher-map-actions button:first-child { color: var(--ink); background: var(--gold); }
.teacher-map-actions .publish-map-button { border-color: rgba(255,255,255,.27); color: #d3dcda; }
.teacher-map-empty { min-height: 220px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px dashed #aaa397; }
.teacher-map-empty h3 { margin: 0 0 8px; font: 600 25px var(--serif); }
.teacher-map-empty p { margin: 0; color: #68716e; }
.teacher-map-empty button { min-height: 48px; padding: 0 17px; border: 0; background: var(--gold); font-weight: 600; white-space: nowrap; }
.teacher-next-panel { color: white; background: #21332f; }
.teacher-next-panel h2 { color: white; }
.teacher-analytics { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.18); }
.teacher-analytics span { min-height: 105px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; }
.teacher-analytics span:nth-child(2) { border-left: 1px solid rgba(255,255,255,.18); }
.teacher-analytics span:last-child { grid-column: 1 / -1; min-height: 82px; border-top: 1px solid rgba(255,255,255,.18); }
.teacher-analytics b { color: var(--gold-light); font: 600 31px var(--display); }
.teacher-analytics small { color: #aeb9b6; font-size: 11px; }
.teacher-review-divider { margin-top: 25px; padding-top: 19px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.18); }
.teacher-review-divider small { color: var(--gold-light); font: 500 11px var(--display); letter-spacing: 1.5px; }
.teacher-review-divider b { font: 600 24px var(--display); }
.teacher-review-copy { color: #aeb9b6; font-size: 13px; line-height: 1.6; }
.teacher-empty-review { margin-top: 34px; padding: 27px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.teacher-empty-review strong { font: 600 48px var(--display); color: var(--gold-light); }
.teacher-empty-review p { color: #b2bcb9; font-size: 14px; line-height: 1.6; }
.teacher-next-panel > span { display: block; margin-top: 18px; color: #889591; font-size: 12px; }
.profile-view { min-height: 100vh; color: var(--ink); background: #e9e5db; }
.profile-nav { background: rgba(255,253,248,.96); }
.profile-shell { width: min(1080px, calc(100% - 44px)); margin: 0 auto; padding: 68px 0 110px; }
.profile-hero { min-height: 230px; padding: 35px 42px; display: flex; align-items: center; gap: 34px; color: white; background: var(--ink-2); }
.profile-avatar-large { width: 126px; height: 126px; flex: 0 0 126px; display: grid; place-items: center; border: 4px solid var(--gold); border-radius: 50%; color: white; background-color: #4a2bb4; background-size: cover; background-position: center; font: 600 31px var(--display); letter-spacing: 2px; }
.profile-avatar-editor { display: grid; justify-items: center; gap: 8px; cursor: pointer; }
.profile-avatar-editor > span { color: var(--gold-light); font-size: 12px; }
.profile-identity { min-width: 0; }
.profile-hero small { color: var(--gold-light); font: 500 11px var(--display); letter-spacing: 2px; }
.profile-hero h1 { margin: 8px 0 3px; font: 600 clamp(35px, 5vw, 54px) var(--serif); }
.profile-hero p { margin: 0 0 11px; color: #c0c8c5; }
.profile-hero span { color: #8f9b97; font-size: 13px; }
.profile-hero-tags { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-hero-tags span { padding: 5px 8px; color: var(--gold-light); border: 1px solid rgba(213,177,101,.35); }
.profile-settings { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-panel { min-height: 410px; padding: 32px; background: var(--paper); }
.profile-panel-heading { margin-bottom: 30px; padding-bottom: 22px; display: grid; grid-template-columns: 35px 1fr; border-bottom: 1px solid #cec6b7; }
.profile-panel-heading > span { color: #9b7836; font: 500 12px var(--display); }
.profile-panel-heading h2 { margin: 0 0 5px; font: 600 28px var(--serif); }
.profile-panel-heading p { margin: 0; color: #6c7672; font-size: 14px; }
.profile-panel > label { margin-top: 20px; display: grid; gap: 8px; color: #3f4946; font-size: 13px; font-weight: 600; }
.profile-panel input, .profile-panel select, .profile-panel textarea { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #bdb5a7; border-radius: 0; color: var(--ink); background: var(--white); }
.profile-panel textarea { min-height: 112px; padding-top: 12px; resize: vertical; }
.avatar-actions { margin-top: 16px; display: flex; gap: 8px; }
.avatar-actions label, .avatar-actions button { min-height: 40px; padding: 0 13px; display: grid; place-items: center; border: 1px solid #9c8048; color: #6c5427; background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.preference-heading { margin-top: 30px; }
.interest-input-row { display: grid; grid-template-columns: 1fr 48px; }
.interest-input-row button { border: 0; color: var(--ink); background: var(--gold); font-size: 20px; }
.interest-chips { min-height: 55px; margin-top: 12px; display: flex; flex-wrap: wrap; align-content: start; gap: 7px; }
.interest-chips button { padding: 7px 10px; border: 1px solid #b4965a; color: #604b25; background: #f7eed9; font-size: 12px; }
.profile-field-note { margin: 8px 0 0; color: #7a8480; font-size: 12px; }
.default-mode-field { margin: 0; padding: 0; border: 0; }
.default-mode-field legend { margin-bottom: 10px; color: #3f4946; font-size: 13px; font-weight: 600; }
.profile-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-mode-options label { position: relative; }
.profile-mode-options input { position: absolute; opacity: 0; }
.profile-mode-options span { min-height: 112px; padding: 17px; display: flex; flex-direction: column; border: 1px solid #bdb5a7; background: var(--white); cursor: pointer; }
.profile-mode-options b { font: 600 17px var(--serif); }
.profile-mode-options small { margin-top: auto; color: #717b77; line-height: 1.5; }
.profile-mode-options input:checked + span { border-color: #8c6c30; box-shadow: inset 4px 0 var(--gold); background: #f7eed9; }
.profile-actions { grid-column: 1 / -1; padding: 22px 28px; display: flex; justify-content: flex-end; gap: 10px; background: var(--paper); }
.profile-actions button { min-width: 160px; }
.teacher-profile-view { min-height: 100vh; color: white; background: #101a1d; }
.teacher-profile-shell { width: min(1080px, calc(100% - 44px)); margin: 0 auto; padding: 68px 0 110px; }
.teacher-profile-hero { padding-bottom: 42px; }
.teacher-profile-hero small { color: var(--gold-light); font: 500 12px var(--display); letter-spacing: 2px; }
.teacher-profile-hero h1 { margin: 12px 0; font: 600 clamp(43px, 5vw, 66px)/1.08 var(--serif); }
.teacher-profile-hero h1 em { color: var(--gold-light); font-weight: inherit; }
.teacher-profile-hero p { max-width: 650px; color: #aeb8b5; line-height: 1.7; }
.teacher-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; color: var(--ink); }
.teacher-profile-form > section { padding: 32px; background: var(--paper); }
.teacher-profile-form > section > span { color: #9b7836; font: 500 12px var(--display); }
.teacher-profile-form h2 { margin: 7px 0 28px; padding-bottom: 20px; border-bottom: 1px solid #cec6b7; font: 600 29px var(--serif); }
.teacher-profile-form label { margin-top: 19px; display: grid; gap: 8px; color: #414b48; font-size: 13px; font-weight: 600; }
.teacher-profile-form input, .teacher-profile-form textarea { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #bdb5a7; border-radius: 0; background: var(--white); }
.teacher-profile-form textarea { min-height: 130px; padding-top: 12px; resize: vertical; }
.teacher-form-split { display: grid; grid-template-columns: .55fr 1.45fr; gap: 10px; }
.teacher-profile-actions { grid-column: 1 / -1; padding: 22px; display: flex; justify-content: flex-end; background: var(--paper); }
.teacher-profile-actions button { min-width: 230px; }
.teacher-profile-actions .outline-button { min-height: 50px; display: flex; align-items: center; justify-content: space-between; }

.notification-button { width: 44px; height: 44px; position: relative; display: grid; place-items: center; border: 1px solid #c9c2b5; border-radius: 50%; background: transparent; }
.notification-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-button > span { min-width: 17px; height: 17px; padding: 0 4px; position: absolute; top: -5px; right: -5px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 10px; color: var(--ink); background: var(--gold); font: 700 11px var(--display); }
.notification-dialog { width: min(520px, calc(100vw - 28px)); max-height: 80vh; overflow-y: auto; padding: 30px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.notification-dialog::backdrop, .roadmap-detail-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(4px); }
.notification-list { display: grid; gap: 9px; }
.notification-list article { padding: 16px; display: grid; grid-template-columns: 8px 1fr; gap: 13px; border: 1px solid #d2cbbf; background: white; }
.notification-list article > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--gold); }
.notification-list b { font: 600 16px var(--serif); }
.notification-list p { margin: 5px 0; color: #68716e; font-size: 14px; line-height: 1.5; }
.notification-list small { color: #a07b36; font-size: 11px; }
.notification-empty { padding: 42px 25px; text-align: center; border: 1px dashed #bbb4a8; color: #747d7a; }
.notification-empty span { color: #aa8744; font-size: 31px; }

.roadmap-detail-dialog { width: min(1180px, calc(100vw - 28px)); max-height: 90vh; overflow-y: auto; overflow-x: hidden; padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.roadmap-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
  color: var(--ink) !important;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  z-index: 10;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.roadmap-detail-close:hover {
  background: #f5f0e6;
  color: #a27c36 !important;
  border-color: #a27c36;
}
.roadmap-detail-close:focus-visible {
  outline: 2px solid #b18739;
  outline-offset: 2px;
}
.roadmap-detail-cover { min-height: 330px; padding: 62px 55px 42px; display: flex; flex-direction: column; justify-content: end; color: white; background-size: cover; background-position: center; }
.roadmap-detail-cover > small, .roadmap-detail-body > section > small, .roadmap-detail-body aside > small { color: var(--gold-light); font: 500 11px var(--display); letter-spacing: 2px; }
.roadmap-detail-cover h2 { margin: 9px 0 8px; font: 600 clamp(40px,6vw,66px) var(--serif); }
.roadmap-detail-cover p { max-width: 620px; margin: 0; color: #d0d8d5; line-height: 1.7; }
.roadmap-detail-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.roadmap-detail-tags span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.35); font-size: 11px; }
.roadmap-detail-body { padding: 36px 42px 42px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 38px; }
.roadmap-detail-body > aside { position: sticky; top: 18px; align-self: start; }
.roadmap-detail-body h3 { margin: 8px 0; font: 600 29px var(--serif); }
.roadmap-detail-body section > p { margin: 0; color: #697370; font-size: 15px; line-height: 1.65; }
.roadmap-detail-body ol { margin: 25px 0 0; padding: 0; list-style: none; border-top: 1px solid #d4cdc1; }
.roadmap-detail-body li { padding: 13px 0; display: grid; grid-template-columns: 36px 1fr; border-bottom: 1px solid #d4cdc1; }
.roadmap-detail-body li span { color: #a17c36; font: 600 11px var(--display); }
.roadmap-detail-body li b { font-size: 14px; }
.roadmap-detail-facts { margin-top: 13px; display: grid; border: 1px solid #c9c2b6; }
.roadmap-detail-facts span { padding: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.roadmap-detail-facts span + span { border-top: 1px solid #c9c2b6; }
.roadmap-detail-facts b { font: 600 24px var(--display); }
.roadmap-detail-facts em { color: #747d7a; font-size: 11px; font-style: normal; text-align: right; }
.roadmap-detail-body aside button { width: 100%; min-height: 52px; margin-top: 13px; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; border: 0; color: var(--ink); background: var(--gold); font-weight: 700; }
.roadmap-detail-controls { margin-top: 12px; display: grid; gap: 7px; }
.roadmap-detail-controls .detail-level-control { display: none; }
.detail-route-preview { padding: 10px 11px; display: grid; gap: 3px; border-left: 3px solid var(--gold); background: #eee8dc; }
.detail-route-preview small { color: #8f6f31; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
.detail-route-preview b { color: var(--ink); font-size: 13px; }
.detail-route-preview span { color: #727b78; font-size: 11px; line-height: 1.35; }
.roadmap-detail-controls label { display: grid; gap: 4px; color: #59635f; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.roadmap-detail-controls select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid #c9c2b6; border-radius: 0; color: var(--ink); background: white; font-size: 12px; }
.topic-dojo-marketplace { padding: 36px 42px 40px; border-bottom: 1px solid #c9c1b4; background: #ece7dd; }
.topic-dojo-marketplace > header { display: flex; justify-content: space-between; gap: 35px; align-items: end; }
.topic-dojo-marketplace > header > div:first-child { max-width: 650px; }
.topic-dojo-marketplace header small { color: #9d7730; font: 600 13px var(--display); letter-spacing: 2px; }
.topic-dojo-marketplace header h3 { margin: 9px 0 7px; font: 600 34px var(--serif); }
.topic-dojo-marketplace header p { margin: 0; color: #68726e; font-size: 16px; line-height: 1.65; }
.topic-cohort { min-width: 210px; display: grid; justify-items: end; gap: 7px; }
.cohort-avatars { display: flex; flex-direction: row-reverse; justify-content: flex-start; }
.cohort-avatars i { width: 34px; height: 34px; margin-left: -7px; display: grid; place-items: center; border: 2px solid #ece7dd; border-radius: 50%; color: white; background: var(--ink-2); font: normal 9px var(--display); }
.cohort-avatars i:last-child { color: var(--ink); background: var(--gold); }
.topic-cohort b { color: #5d6864; font-size: 14px; }
.topic-level-filters { margin-top: 23px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #bdb4a5; background: #f8f5ee; }
.topic-level-filters button { min-height: 62px; padding: 9px 15px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; border: 0; border-right: 1px solid #c8c0b3; color: #68716e; background: transparent; text-align: left; }
.topic-level-filters button:last-child { border-right: 0; }
.topic-level-filters span { color: #9d7832; font: 600 10px var(--display); }
.topic-level-filters b { font-size: 16px; }
.topic-level-filters em { grid-column: 2; color: #8c9591; font-size: 12px; font-style: normal; }
.topic-level-filters button.active { color: white; background: var(--ink); box-shadow: inset 0 -3px var(--gold); }
.topic-level-filters button.active span { color: var(--gold-light); }
.topic-level-filters button.active em { color: #aeb9b5; }
.topic-results-heading { margin: 22px 0 0; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.topic-results-heading > div { display: flex; align-items: baseline; gap: 10px; }
.topic-results-heading b { font: 600 25px var(--serif); }
.topic-results-heading span { color: #8d6c2e; font-size: 14px; font-weight: 700; }
.topic-results-heading small { color: #747e7a; font-size: 14px; }
.topic-tag-row { margin: 19px 0 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.topic-tag-row button { min-height: 36px; padding: 0 12px; border: 1px solid #bdb4a5; color: #725b31; background: transparent; font-size: 14px; }
.topic-template-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 10px; }
.topic-template-card.level-hidden { display: none; }
.topic-template-card { min-width: 0; min-height: 310px; padding: 17px; display: flex; flex-direction: column; border: 1px solid #c5bcad; background: #f9f7f2; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.topic-template-card:hover { transform: translateY(-2px); border-color: #9f8350; box-shadow: 0 12px 28px rgba(26,34,31,.08); }
.topic-template-card.official { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 0 4px var(--gold); }
.topic-template-card.community.selected { border-color: #9e7934; box-shadow: inset 0 4px var(--gold), 0 10px 25px rgba(28,32,29,.08); }
.template-card-top { display: flex; justify-content: space-between; align-items: center; }
.template-card-top span { color: #9b7835; font: 600 10px var(--display); letter-spacing: 1.2px; }
.topic-template-card.official .template-card-top span { color: var(--gold-light); }
.template-card-top b { color: #a28142; }
.topic-template-card h4 { margin: 22px 0 9px; overflow-wrap: anywhere; font: 600 23px/1.35 var(--serif); }
.topic-template-card p { margin: 0; color: #6c7672; font-size: 15px; line-height: 1.55; }
.topic-template-card.official p { color: #aeb9b5; }
.topic-template-card i { color: #8c692b; font-style: normal; }
.template-instructor { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.teacher-avatar { width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid #d5c7aa; border-radius: 50%; background-color: #d6d0c4; background-position: center; background-size: cover; }
.official-avatar { display: grid; place-items: center; color: var(--ink); background: var(--gold); font: 700 13px var(--serif); }
.template-instructor > span:last-child { min-width: 0; display: grid; gap: 3px; }
.template-instructor b { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.template-instructor small { color: #826425; font-size: 12px; font-weight: 700; }
.topic-template-card.official .template-instructor b { color: white; }
.topic-template-card.official .template-instructor small { color: var(--gold-light); }
.template-price-row { margin-top: auto; padding-top: 17px; display: flex; justify-content: space-between; gap: 8px; color: #69736f; font-size: 14px; }
.topic-template-card.official .template-price-row { color: #ced6d3; }
.topic-template-card button { min-height: 44px; margin-top: 12px; border: 1px solid #b9af9f; color: #747b78; background: transparent; font-size: 14px; font-weight: 700; }
.topic-template-card.community button:hover { color: white; border-color: var(--ink); background: var(--ink); }
.topic-template-card.official button { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.topic-community-strip { margin-top: 14px; padding: 15px; display: grid; grid-template-columns: .8fr 1.25fr auto; gap: 18px; align-items: center; border-left: 4px solid var(--gold); background: #fffdf8; }
.topic-community-strip > div { display: grid; gap: 4px; }
.topic-community-strip > div small { color: #9c762f; font: 600 10px var(--display); letter-spacing: 1px; }
.topic-community-strip > div b { font-size: 12px; }
.topic-community-strip blockquote { margin: 0; color: #58635f; font-size: 12px; line-height: 1.5; }
.topic-community-strip blockquote small { display: block; margin-top: 4px; color: #8a928f; font-size: 10px; }
.topic-community-strip > button { min-height: 42px; padding: 0 14px; border: 1px solid #9c7834; color: #745b2d; background: transparent; font-size: 11px; font-weight: 700; }
.topic-hub-tabs { margin-top: 26px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #bdb4a5; background: #f8f5ee; }
.topic-hub-tabs button { min-height: 82px; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-content: center; border: 0; border-right: 1px solid #c8c0b3; color: #68716e; background: transparent; text-align: left; }
.topic-hub-tabs button:last-child { border-right: 0; }
.topic-hub-tabs span { grid-row: 1 / 3; align-self: center; color: #a17b33; font: 600 10px var(--display); letter-spacing: 1.4px; }
.topic-hub-tabs b { color: var(--ink); font-size: 18px; }
.topic-hub-tabs small { font-size: 13px; }
.topic-hub-tabs button.active { color: #b7c2be; background: var(--ink); box-shadow: inset 0 -4px var(--gold); }
.topic-hub-tabs button.active b { color: white; }
.topic-hub-tabs button.active span { color: var(--gold-light); }
.topic-hub-pane { animation: topicPaneIn .22s ease; }
@keyframes topicPaneIn { from { opacity: .35; transform: translateY(5px); } }
.template-social-actions { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.topic-template-card .template-social-actions button, .training-program-card .template-social-actions button { min-height: 40px; margin: 0; border: 1px solid #c8c0b3; color: #646f6a; background: transparent; font-size: 13px; }
.topic-template-card .template-social-actions button[aria-pressed="true"], .training-program-card .template-social-actions button[aria-pressed="true"] { color: #765a23; border-color: #ae8a43; background: #f3e8ce; }
.topic-template-card button.template-primary-action, .training-program-card button.template-primary-action { min-height: 40px; margin-top: 7px; }
.training-pane { margin: 22px -42px -20px; padding: 30px 42px 40px; color: white; background: #0e1b1e; }
.training-pane-intro { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.training-pane-intro small { color: #d0a651; font: 600 10px var(--display); letter-spacing: 2px; }
.training-pane-intro h4 { margin: 7px 0 5px; color: white; font: 600 32px var(--serif); }
.training-pane-intro p { margin: 0; color: #a9b5b1; font-size: 15px; }
.training-pane-intro > span { min-width: 110px; display: grid; justify-items: end; color: #aab5b1; font-size: 10px; }
.training-pane-intro > span b { color: var(--gold-light); font: 600 31px var(--display); }
.program-level-filters { margin: 24px 0 14px; display: flex; gap: 7px; }
.program-level-filters button { min-height: 42px; padding: 0 15px; border: 1px solid #405054; color: #aab6b2; background: transparent; font-size: 14px; }
.program-level-filters button.active { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.training-program-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.training-program-card { min-height: 360px; padding: 18px; display: flex; flex-direction: column; border: 1px solid #435155; background: #17272a; transition: transform .18s ease, border-color .18s ease; }
.training-program-card:hover, .training-program-card.selected { transform: translateY(-2px); border-color: var(--gold); }
.training-program-card.accent-mint { box-shadow: inset 0 4px #4f9b82; }
.training-program-card.accent-court { box-shadow: inset 0 4px #287b62; }
.training-program-card.accent-gold { box-shadow: inset 0 4px var(--gold); }
.training-program-card.accent-ember { box-shadow: inset 0 4px #c85843; }
.program-card-status { display: flex; justify-content: space-between; color: #b3beba; font-size: 10px; }
.program-card-status span { color: var(--gold-light); font: 600 10px var(--display); letter-spacing: 1px; }
.training-program-card h4 { margin: 23px 0 8px; color: white; font: 600 23px/1.35 var(--serif); }
.training-program-card > p { min-height: 46px; margin: 0; color: #a9b5b1; font-size: 15px; line-height: 1.55; }
.program-card-value { margin: 16px 0; display: grid; border-top: 1px solid #415054; border-bottom: 1px solid #415054; }
.program-card-value p { min-height: auto; margin: 0; padding: 10px 0; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; align-items: start; }
.program-card-value p + p { border-top: 1px solid #344448; }
.program-card-value small { color: var(--gold-light); font: 700 10px/1.5 var(--display); letter-spacing: 1px; }
.program-card-value b { color: #d9e0dd; font-size: 13px; line-height: 1.5; font-weight: 500; }
.training-program-card .template-instructor b { color: white; }
.training-program-card .template-instructor small { color: var(--gold-light); }
.training-program-card .template-price-row { color: #a7b1ae; }
.training-program-card .template-social-actions button { color: #b2bdb9; border-color: #46565a; }
.training-program-card .template-social-actions button[aria-pressed="true"] { color: var(--gold-light); border-color: #a67e34; background: #2a3028; }
.training-program-card button.template-primary-action { border: 0; color: var(--ink); background: var(--gold); font-weight: 700; }
.topic-community-pane { margin-top: 22px; }
.community-pane-head { padding: 25px; display: flex; justify-content: space-between; gap: 25px; align-items: end; color: white; background: #17362f; }
.community-pane-head small { color: var(--gold-light); font: 600 10px var(--display); letter-spacing: 1.8px; }
.community-pane-head h4 { margin: 7px 0 5px; font: 600 31px var(--serif); }
.community-pane-head p { margin: 0; color: #b8c7c2; font-size: 15px; }
.community-pane-head button { min-height: 43px; padding: 0 16px; border: 0; color: var(--ink); background: var(--gold); font-weight: 700; }
.community-feed-filters { display: flex; gap: 5px; padding: 13px 0; overflow-x: auto; }
.community-feed-filters button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid #beb5a7; color: #66716d; background: transparent; font-size: 14px; }
.community-feed-filters button.active { color: white; border-color: var(--ink); background: var(--ink); }
.topic-community-feed { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.topic-post-card { min-height: 215px; padding: 18px; display: flex; flex-direction: column; border: 1px solid #c7bfb2; background: #faf8f3; }
.topic-post-card.post-proof { box-shadow: inset 4px 0 #3c8b70; }
.topic-post-card.post-question { box-shadow: inset 4px 0 #bc4c40; }
.topic-post-card.post-log { box-shadow: inset 4px 0 #b48a3b; }
.topic-post-card header { display: flex; gap: 9px; align-items: center; }
.post-avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 600 9px var(--display); }
.topic-post-card header div { min-width: 0; display: grid; gap: 2px; }
.topic-post-card header div b { font-size: 14px; }
.topic-post-card header div small { overflow: hidden; color: #7a8480; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.topic-post-card header em { margin-left: auto; color: #966f27; font: normal 600 9px var(--display); letter-spacing: 1px; }
.topic-post-card > p { margin: 18px 0 12px; color: #39433f; font-size: 15px; line-height: 1.65; }
.topic-post-card > a { color: #805f25; font-size: 13px; font-weight: 700; }
.post-metric { width: max-content; padding: 7px 9px; color: white; background: #263b3d; font: 600 10px var(--display); }
.topic-post-card > footer { margin-top: auto; padding: 14px 0 0; display: flex; justify-content: flex-start; align-items: center; gap: 7px; border-top: 1px solid #ddd6cb; color: #65706c; background: transparent; font-size: 10px; }
.topic-post-card footer button { min-height: 28px; padding: 0 8px; border: 0; color: #65706c; background: #eeeae2; font-size: 10px; }
.topic-post-card footer button.active { color: #795918; background: #f2e0b6; }
.topic-post-card footer > span { margin-left: auto; color: #287258; font-size: 9px; font-weight: 700; }
.topic-post-comment-drawer { margin: 14px -18px -18px; padding: 16px 18px 18px; border-top: 1px solid #cfc7ba; background: #f0ece4; }
.topic-post-comment-drawer > header { margin-bottom: 11px; display: flex; justify-content: space-between; color: #68736f; }
.topic-post-comment-drawer > header b { color: var(--ink); font-size: 11px; }
.topic-post-comment-drawer > header small { font-size: 9px; }
.topic-post-replies { display: grid; gap: 9px; }
.topic-post-replies > article { padding: 10px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; border: 1px solid #d2cabc; background: #fffdf9; }
.topic-post-replies > article.teacher-reply { border-left: 3px solid #2f725d; background: #f5faf7; }
.topic-post-replies > article > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: #354a46; font: 600 8px var(--display); }
.topic-post-replies article header { display: flex; align-items: center; gap: 6px; }
.topic-post-replies article header b { font-size: 10px; }
.topic-post-replies article header em { margin: 0; padding: 2px 4px; color: #27634f; background: #dbeae4; font-size: 7px; }
.topic-post-replies article header i { margin-left: auto; color: #287258; font-size: 8px; font-style: normal; font-weight: 700; }
.topic-post-replies article p { margin: 5px 0 0; color: #505b57; font-size: 10px; line-height: 1.55; }
.no-public-replies { margin: 0; color: #74807b; font-size: 10px; }
.topic-post-reply-form { margin-top: 11px; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.topic-post-reply-form textarea { min-height: 58px; padding: 9px; resize: vertical; border: 1px solid #c9c0b3; border-radius: 0; background: #fffdf9; font: inherit; font-size: 10px; }
.topic-post-reply-form button, .topic-comment-signin { min-width: 105px; border: 0; color: var(--ink); background: var(--gold); font-size: 10px; font-weight: 700; }
.topic-comment-signin { width: 100%; min-height: 38px; margin-top: 11px; }
.community-empty { min-height: 180px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; color: #7c8581; border: 1px dashed #bdb5a9; }
.message-center-button { min-height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 0; color: #53605b; background: transparent; font-size: 11px; font-weight: 700; }
.message-center-button b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: #b5453c; font-size: 9px; }
.teacher-message-button { color: #d6deda; }

/* Threads-style contextual Dojo community. The interaction pattern is familiar,
   while color, typography and roadmap context remain native to THE DOJO. */
.roadmap-detail-cover-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.roadmap-detail-cover-actions .roadmap-detail-tags { margin: 0; }
.roadmap-detail-tabs { min-height: 64px; display: flex; justify-content: center; gap: 36px; border-bottom: 1px solid #d5cfc4; background: #fffdf9; }
.roadmap-detail-tabs button { min-width: 150px; position: relative; border: 0; color: #7a827f; background: transparent; font-size: 15px; font-weight: 700; }
.roadmap-detail-tabs button::after { content: ""; height: 2px; position: absolute; inset: auto 0 -1px; background: transparent; }
.roadmap-detail-tabs button.active { color: var(--ink); }
.roadmap-detail-tabs button.active::after { background: var(--ink); }
.dojo-thread-community { max-width: 760px; margin: 0 auto; padding: 0 24px 70px; background: #fffdf9; }
.thread-community-head { padding: 36px 18px 26px; display: flex; justify-content: space-between; gap: 24px; align-items: end; border-bottom: 1px solid #ded8ce; }
.thread-community-head small { color: #98732e; font: 600 10px var(--display); letter-spacing: 1.5px; }
.thread-community-head h3 { margin: 7px 0 5px; font: 600 29px/1.25 var(--serif); }
.thread-community-head p { max-width: 560px; margin: 0; color: #727b78; font-size: 13px; line-height: 1.55; }
.thread-community-head > button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex: 0 0 44px; border: 1px solid var(--ink); border-radius: 50%; color: white; background: var(--ink); }
.thread-community-head > button:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.thread-community-head > button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.thread-feed-tabs { height: 58px; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid #ded8ce; }
.thread-feed-tabs button { position: relative; border: 0; color: #838b88; background: transparent; font-size: 14px; font-weight: 700; }
.thread-feed-tabs button::after { content: ""; height: 1px; position: absolute; inset: auto 18px -1px; background: transparent; }
.thread-feed-tabs button.active { color: var(--ink); }
.thread-feed-tabs button.active::after { background: var(--ink); }
.dojo-thread-community .topic-community-feed { display: block; }
.dojo-thread-post, .dojo-thread-reply { padding: 19px 16px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; border: 0; border-bottom: 1px solid #ded8ce; background: transparent; }
.dojo-thread-post { min-height: 0; box-shadow: none; }
.dojo-thread-post:hover { background: #fcfaf6; }
.thread-avatar-column { min-height: 44px; display: flex; align-items: center; flex-direction: column; }
.thread-avatar-column > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: #122427; font: 600 10px var(--display); }
.sos-thread > .thread-avatar-column > span { background: #a9473e; }
.thread-avatar-column > i { width: 2px; min-height: 30px; margin-top: 8px; flex: 1; background: #d2cec6; }
.thread-post-main { min-width: 0; }
.thread-post-main > header { min-height: 25px; display: flex; align-items: center; gap: 7px; }
.thread-post-main > header b { color: var(--ink); font-size: 14px; }
.thread-post-main > header em { padding: 2px 5px; border-radius: 8px; color: #336957; background: #e2eee9; font-size: 9px; font-style: normal; }
.thread-post-main > header time { margin-left: auto; color: #929996; font-size: 12px; }
.thread-post-main > header button { padding: 3px 0 3px 8px; border: 0; color: #6f7875; background: transparent; letter-spacing: 1px; }
.thread-more-wrap { position: relative; }
.thread-settings-menu { width: 190px; position: absolute; z-index: 9; top: 30px; right: 0; padding: 6px; display: grid; border: 1px solid #d4cdc2; border-radius: 12px; background: #fffdf9; box-shadow: 0 14px 40px rgba(21,29,27,.16); }
.thread-settings-menu button { min-height: 39px; padding: 0 10px !important; display: flex; align-items: center; gap: 10px; border-radius: 8px !important; color: #35403d !important; font-size: 12px; font-weight: 700; letter-spacing: 0 !important; text-align: left; }
.thread-settings-menu button:hover { background: #f1ede5 !important; }
.thread-settings-menu button.danger { color: #a9433b !important; }
.thread-settings-menu svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.thread-post-main > p { margin: 7px 0 11px; color: #26312e; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.thread-type-label { display: block; margin-top: 3px; color: #9a752e; font: 600 9px var(--display); letter-spacing: 1px; }
.thread-roadmap-context { width: 100%; margin: 5px 0 4px; padding: 9px 11px; display: grid; gap: 3px; border: 1px solid #ddd5c8; border-radius: 10px; color: #5e6864; background: #f4f0e7; text-align: left; }
.thread-roadmap-context small { color: #9b7025; font: 600 9px var(--display); letter-spacing: 1px; }
.thread-roadmap-context span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.thread-media-preview { min-height: 72px; margin: 10px 0; padding: 12px; display: flex; gap: 12px; align-items: center; border: 1px solid #d5cfc4; border-radius: 12px; color: var(--ink); background: #f7f4ed; text-decoration: none; }
.thread-media-preview > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: white; background: #17362f; }
.thread-media-preview div { display: grid; gap: 3px; }
.thread-media-preview small { color: #8a928f; font: 600 9px var(--display); letter-spacing: 1px; }
.thread-media-preview b { font-size: 12px; }
.thread-metric { width: max-content; margin: 9px 0; padding: 6px 9px; border-radius: 14px; color: #624a1e; background: #efe1bf; font-size: 11px; font-weight: 700; }
.thread-sos-state { margin: 10px 0; padding: 11px; border-left: 3px solid #b94b42; background: #f6e9e6; }
.thread-sos-state span { color: #a23d35; font-size: 11px; font-weight: 700; }
.thread-sos-state p { margin: 3px 0 0; color: #6d615e; font-size: 11px; }
.thread-actions { min-height: 34px; display: flex; align-items: center; gap: 2px; }
.thread-actions button { min-width: 38px; height: 34px; padding: 0 8px; display: flex; align-items: center; gap: 5px; border: 0; border-radius: 17px; color: #525c58; background: transparent; }
.thread-actions button:hover { background: #eeeae3; }
.thread-actions button.active { color: #bd3f4c; }
.thread-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thread-actions button.active svg { fill: currentColor; }
.thread-actions b { font-size: 11px; }
.thread-view-replies { padding: 4px 0; border: 0; color: #7c8582; background: transparent; font-size: 12px; font-weight: 600; }
.thread-replies { margin: 7px 0 0; }
.dojo-thread-reply { margin: 0; padding: 14px 0 0; border: 0; }
.dojo-thread-reply .thread-avatar-column > span { width: 32px; height: 32px; flex-basis: 32px; background: #4f625d; font-size: 8px; }
.dojo-thread-reply.teacher-reply .thread-avatar-column > span { background: #2f725d; }
.dojo-thread-reply .thread-post-main > p { margin-top: 5px; font-size: 14px; }
.thread-accepted { width: max-content; margin: 6px 0; padding: 5px 8px; border-radius: 12px; color: #276b54; background: #e4f0eb; font-size: 10px; font-weight: 700; }
.thread-inline-reply { margin-top: 13px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.thread-inline-reply > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 600 8px var(--display); }
.thread-inline-reply textarea { min-height: 38px; padding: 9px 0; resize: none; border: 0; border-bottom: 1px solid #d6d0c6; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.thread-inline-reply button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; color: white; background: var(--ink); }
.thread-inline-reply button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thread-loading, .thread-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 6px; color: #7d8582; text-align: center; }
.thread-empty span { font-size: 28px; }
.thread-empty p { margin: 0; font-size: 12px; }
.discussion-list { display: block; }
.node-thread-comment, .node-thread-reply { padding: 17px 2px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; border-bottom: 1px solid #dcd6cb; }
.node-thread-avatar { display: flex; align-items: center; flex-direction: column; }
.node-thread-avatar > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: white; background-size: cover !important; background-position: center !important; font: 600 9px var(--display); }
.node-thread-avatar > i { width: 2px; min-height: 28px; margin-top: 7px; flex: 1; background: #d3cec5; }
.node-thread-main { min-width: 0; }
.node-thread-main > header { display: flex; align-items: center; gap: 7px; }
.node-thread-main > header b { font-size: 13px; }
.node-thread-main > header time { margin-left: auto; color: #929996; font-size: 11px; }
.node-thread-main > header > button { border: 0; color: #76807c; background: transparent; }
.node-thread-main > p { margin: 6px 0 8px; color: #2c3633; font-size: 14px; line-height: 1.55; }
.node-thread-reply { padding: 12px 0 0; border: 0; }
.node-thread-reply .node-thread-avatar > span { width: 30px; height: 30px; flex-basis: 30px; font-size: 8px; }
.discussion-form { margin-top: 10px; padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 9px; border-top: 1px solid #dcd6cb; }
.discussion-form textarea { min-height: 44px; padding: 11px 0; resize: vertical; border: 0; border-bottom: 1px solid #d2cbc0; outline: 0; background: transparent; font: inherit; }
.discussion-form .form-actions { align-self: end; }
.discussion-form .primary-button { min-height: 36px; padding: 0 14px; border-radius: 18px; }
.inline-reply-form { margin-top: 9px; display: grid; gap: 8px; }
.inline-reply-form textarea { min-height: 42px; padding: 9px 0; border: 0; border-bottom: 1px solid #d3cdc3; outline: 0; background: transparent; font: inherit; }
.inline-reply-form .form-actions { display: flex; justify-content: end; gap: 7px; }
.inline-reply-form .form-actions button { min-height: 34px; padding-inline: 12px; border-radius: 17px; }
.community-post-dialog { width: min(640px,calc(100vw - 28px)); padding: 0; border-radius: 16px; background: #fffdf9; overflow: hidden; }
.community-post-dialog form { padding: 0 22px 22px; }
.thread-compose-head { height: 58px; margin: 0 -22px 16px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #ded8ce; }
.thread-compose-head b { text-align: center; font-size: 14px; }
.thread-compose-head button { border: 0; color: var(--ink); background: transparent; font-weight: 700; }
.thread-compose-head button:first-child { justify-self: start; font-weight: 500; }
.thread-compose-head button:last-child { min-height: 34px; padding: 0 13px; justify-self: end; border-radius: 17px; color: white; background: var(--ink); }
.thread-compose-head .compose-icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.thread-compose-head .compose-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thread-compose-head .compose-publish-button { color: white; background: var(--ink); }
.thread-compose-head .compose-publish-button:hover { color: var(--ink); background: var(--gold); }
.thread-composer { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
.thread-composer-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 600 9px var(--display); }
.thread-composer-main { min-width: 0; display: grid; gap: 4px; }
.thread-composer-main > b { font-size: 14px; }
.thread-composer-main > small { color: #8b9390; font-size: 11px; }
.thread-composer-main textarea { min-height: 125px; padding: 8px 0; resize: vertical; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; line-height: 1.55; }
.thread-compose-context { display: grid; gap: 3px; }
.thread-compose-context:not(:empty) { padding: 9px 10px; border: 1px solid #ddd5c8; border-radius: 9px; background: #f4f0e7; }
.thread-compose-context small { color: #98702a; font-size: 9px; }
.thread-compose-context b { overflow: hidden; color: #5e6864; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.community-post-dialog .community-post-types { margin: 16px 0 8px 54px; display: flex; gap: 7px; }
.community-post-dialog .community-post-types legend { width: 100%; margin-bottom: 3px; color: #7d8582; font-size: 10px; }
.community-post-dialog .community-post-types span { min-height: 32px; padding: 0 11px; display: flex; align-items: center; border: 1px solid #d0c9be !important; border-radius: 16px; }
.community-post-dialog .community-post-types input:checked + span { color: white; border-color: var(--ink) !important; background: var(--ink); box-shadow: none; }
.community-post-dialog .thread-media-field, .community-post-dialog .community-log-fields { margin-left: 54px; }
.sos-community-share { margin-top: 14px; padding: 12px; display: grid !important; grid-template-columns: 18px 1fr; gap: 9px !important; border: 1px solid #d6cec1; background: #f5f0e7; }
.sos-community-share input { width: 17px; height: 17px; margin-top: 2px; }
.sos-community-share span { display: grid; gap: 3px; }
.sos-community-share b { font-size: 12px; }
.sos-community-share small { color: #747d79; font-size: 10px; line-height: 1.45; }

@media (max-width: 680px) {
  .roadmap-detail-tabs { min-height: 54px; gap: 0; }
  .roadmap-detail-tabs button { min-width: 0; flex: 1; }
  .dojo-thread-community { padding: 0 0 50px; }
  .thread-community-head { padding: 24px 16px 18px; align-items: start; flex-direction: column; }
  .thread-community-head h3 { font-size: 25px; }
  .thread-community-head { position: relative; padding-right: 70px; }
  .thread-community-head > button { position: absolute; top: 24px; right: 16px; width: 44px; }
  .dojo-thread-post { padding: 17px 15px; grid-template-columns: 38px minmax(0,1fr); gap: 10px; }
  .thread-avatar-column > span { width: 34px; height: 34px; flex-basis: 34px; }
  .thread-post-main > p { font-size: 15px; }
  .thread-roadmap-context span { white-space: normal; line-height: 1.4; }
  .community-post-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .community-post-dialog form { min-height: 100%; padding-inline: 16px; }
  .thread-compose-head { margin-inline: -16px; }
  .community-post-dialog .community-post-types, .community-post-dialog .thread-media-field, .community-post-dialog .community-log-fields { margin-left: 0; }
  .community-post-dialog .community-post-types { flex-wrap: wrap; }
  .thread-inline-reply { grid-template-columns: 30px minmax(0,1fr); }
  .thread-inline-reply button { grid-column: 2; justify-self: end; }
}

/* Training programs: dojo tokens lead into an execution-first weekly board. */
.is-program-marketplace {
  --program-ink: #102724;
  --program-paper: #e9e2d5;
  --program-brass: #c49a47;
  background:
    linear-gradient(rgba(16, 39, 36, .035) 1px, transparent 1px),
    #e9e3d8;
  background-size: 100% 42px;
}
.is-program-marketplace > header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(16, 39, 36, .18);
  align-items: center;
}
.is-program-marketplace > header > div { max-width: 790px; }
.is-program-marketplace > header h3 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -.04em; }
.is-program-marketplace > header > span {
  padding: 8px 11px;
  border: 1px solid #9b7b40;
  color: #705726;
  background: rgba(255, 251, 242, .55);
  font: 700 11px var(--display);
  letter-spacing: 1px;
}
.program-marketplace-actions {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #9f9584;
  background: rgba(251, 248, 240, .78);
  box-shadow: 0 12px 30px rgba(22, 32, 29, .06);
}
.program-marketplace-actions article {
  min-height: 132px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
}
.program-marketplace-actions article + article { border-left: 1px solid #b9b0a2; }
.program-marketplace-actions small {
  color: #8a6729;
  font: 700 10px var(--display);
  letter-spacing: 1.6px;
}
.program-marketplace-actions b { grid-column: 1; font: 700 20px var(--serif); }
.program-marketplace-actions p {
  grid-column: 1;
  margin: 2px 0 0;
  color: #66706c;
  font-size: 12px;
  line-height: 1.5;
}
.program-marketplace-actions button {
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 170px;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--program-ink);
  color: #f9f4e8;
  background: var(--program-ink);
  font-weight: 800;
}
.program-marketplace-actions article:last-child button { color: #6e5424; background: transparent; border-color: #997533; }
.program-marketplace-actions button span { margin-left: 9px; color: var(--program-brass); }
.is-program-marketplace .topic-level-filters.compact-filters { margin-top: 0; }
.is-program-marketplace .marketplace-template-grid { gap: 18px; }
.program-token-card {
  min-height: 555px;
  overflow: visible;
  border: 0;
  background: transparent;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  contain: layout paint;
}
.program-token-card:hover { transform: translateY(-4px); box-shadow: none; }
.program-token-card.selected { box-shadow: none; outline: 3px solid var(--program-brass); outline-offset: 3px; }
.program-token-cap {
  position: relative;
  min-height: 150px;
  padding: 21px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  overflow: hidden;
  color: #f4edde;
  background: var(--program-ink);
}
.program-token-cap::before,
.program-token-cap::after {
  content: "";
  position: absolute;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(196, 154, 71, .35);
  transform: rotate(45deg);
}
.program-token-cap::before { right: -50px; top: -48px; }
.program-token-cap::after { left: -54px; bottom: -60px; }
.marketplace-card-variant-1 .program-token-cap { background: #243943; }
.marketplace-card-variant-2 .program-token-cap { background: #433b31; }
.program-token-cap > small { z-index: 1; font: 700 9px var(--display); letter-spacing: 1.8px; }
.program-token-cap > span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 181, 103, .78);
  border-radius: 50%;
  color: #dfbd74;
  background: rgba(5, 17, 16, .25);
  font: 600 31px var(--serif);
  transform: translate(-50%, -50%);
}
.program-token-cap > b { align-self: end; color: var(--program-brass); font: 700 42px var(--display); }
.program-token-cap > em {
  align-self: end;
  color: #efe7d7;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.program-token-card .marketplace-card-body { padding: 0 21px 21px; background: #fbf8f0; }
.program-token-stats {
  margin: 0 -21px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #c9c0b2;
  background: #e7dfd0;
}
.program-token-stats > span { min-width: 0; padding: 11px 8px; display: grid; gap: 3px; text-align: center; }
.program-token-stats > span + span { border-left: 1px solid #c9c0b2; }
.program-token-stats small { color: #7a827e; font-size: 9px; }
.program-token-stats b { overflow: hidden; color: #34413e; font: 700 10px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.program-token-card h4 { margin: 15px 0 7px; font-size: 24px; }
.program-token-card .marketplace-card-body > p { min-height: 42px; }
.program-token-preview { margin-top: 15px; border-top: 1px solid #c8bfae; }
.program-token-preview > span {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #d8d1c6;
}
.program-token-preview i { color: #a47a2c; font: normal 700 9px var(--display); }
.program-token-preview b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.program-token-preview small { color: #77807c; font: 700 9px var(--display); }
.program-token-coach { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.program-token-coach > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.program-token-coach > span:nth-child(2) b { font-size: 12px; }
.program-token-coach > span:nth-child(2) small { overflow: hidden; color: #75807b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.program-token-coach strong { color: #765a24; font-size: 12px; }
.program-token-card .template-primary-action { border: 0; color: #f6f0e3; background: var(--program-ink); }
.program-token-card.selected .template-primary-action { color: var(--program-ink); background: var(--program-brass); }
.program-template-detail { border-color: #8f826d; background: #f7f2e7; }
.program-template-detail > header { color: #f8f2e6; background: var(--program-ink); border-bottom-color: #705d39; }
.program-template-detail > header small { color: #d0aa5c; }
.program-template-detail > header p,
.program-template-detail > header span { color: #bdc7c2; }
.program-template-detail .marketplace-access-note { background: #ded3c0; }
.program-template-detail .marketplace-outline { padding: 20px; background: #e8e1d4; }
.program-week-board > header { min-height: 60px; padding: 0 4px 14px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.program-week-board > header > div { display: grid; gap: 4px; }
.program-week-board > header small { color: #8c6726; font: 700 9px var(--display); letter-spacing: 1.5px; }
.program-week-board > header b { font: 700 23px var(--serif); }
.program-week-board > header > span { color: #6e7773; font-size: 11px; }
.program-week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #8e877a; background: #faf8f2; }
.program-board-day { min-width: 0; }
.program-board-day + .program-board-day { border-left: 1px solid #8e877a; }
.program-board-day > header { min-height: 53px; padding: 10px 13px; display: grid; align-content: center; gap: 3px; color: #f5efe2; background: var(--program-ink); }
.program-board-day:nth-child(2) > header { background: #263c46; }
.program-board-day:nth-child(3) > header { background: #453c31; }
.program-board-day > header span { color: #caa352; font: 700 9px var(--display); letter-spacing: 1px; }
.program-board-day > header b { font: 700 12px var(--display); letter-spacing: .8px; }
.program-board-day > h4 { min-height: 67px; margin: 0; padding: 15px 13px; border-bottom: 1px solid #b9b1a4; font: 700 17px/1.35 var(--serif); }
.program-board-day > section { padding: 14px 13px; }
.program-board-day > section > div { display: grid; gap: 4px; }
.program-board-day > section > div small { color: #926e2b; font: 700 9px var(--display); }
.program-board-day > section > div b { font-size: 13px; }
.program-board-day ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: training-block; }
.program-board-day li {
  min-height: 47px;
  padding: 9px 0 9px 27px;
  position: relative;
  border-top: 1px solid #d3ccc1;
  color: #3f4946;
  font-size: 12px;
  line-height: 1.45;
  counter-increment: training-block;
}
.program-board-day li::before { content: counter(training-block, upper-alpha) "."; position: absolute; left: 0; color: #936d28; font-weight: 800; }
.program-board-day footer { margin-top: 14px; display: grid; gap: 6px; }
.program-board-day footer span { padding: 9px; display: grid; gap: 3px; color: #59635f; background: #ede7db; font-size: 10px; line-height: 1.4; }
.program-board-day footer small { color: #8c6828; font: 700 8px var(--display); }

@media (max-width: 980px) {
  .program-marketplace-actions { grid-template-columns: 1fr; }
  .program-marketplace-actions article + article { border-top: 1px solid #b9b0a2; border-left: 0; }
  .program-week-grid { grid-template-columns: 1fr; }
  .program-board-day + .program-board-day { border-top: 1px solid #8e877a; border-left: 0; }
}

@media (max-width: 680px) {
  .is-program-marketplace > header { align-items: start; }
  .is-program-marketplace > header h3 { font-size: 34px; }
  .program-marketplace-actions article { min-height: 0; padding: 17px; grid-template-columns: 1fr; gap: 5px; }
  .program-marketplace-actions button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 9px; }
  .program-token-card { min-height: 530px !important; }
  .program-token-card .marketplace-card-body > p { display: block !important; }
  .program-token-card .template-primary-action { display: block !important; }
  .program-template-detail .marketplace-outline { padding: 12px; }
  .program-week-board > header { padding: 5px 2px 13px; align-items: start; flex-direction: column; gap: 4px; }
}
.community-post-dialog, .message-center-dialog { width: min(900px,calc(100vw - 28px)); max-height: 90vh; padding: 28px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.42); }
.community-post-dialog::backdrop, .message-center-dialog::backdrop { background: rgba(7,14,16,.78); backdrop-filter: blur(4px); }
.community-post-dialog form > p, .message-center-intro { color: #69736f; font-size: 12px; }
.community-post-dialog label { display: grid; gap: 6px; margin-top: 14px; font-size: 11px; font-weight: 700; }
.community-post-dialog textarea, .community-post-dialog input, .community-post-dialog select { width: 100%; padding: 11px; border: 1px solid #c5bdae; border-radius: 0; background: #fffdf9; font: inherit; }
.community-post-types { margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); border: 0; }
.community-post-types legend { margin-bottom: 8px; font-size: 11px; font-weight: 700; }
.community-post-types label { margin: 0; }
.community-post-types input { position: absolute; opacity: 0; pointer-events: none; }
.community-post-types span { min-height: 75px; padding: 12px; display: grid; gap: 3px; border: 1px solid #c6beb0; }
.community-post-types label + label span { border-left: 0; }
.community-post-types input:checked + span { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 0 -3px var(--gold); }
.community-post-types b { font-size: 13px; }
.community-post-types small { color: #7b8581; font-size: 9px; }
.community-post-types input:checked + span small { color: #b8c2bf; }
.community-log-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.message-center-layout { min-height: 540px; display: grid; grid-template-columns: 260px 1fr; border: 1px solid #c5bdae; }
.message-center-layout > aside { border-right: 1px solid #c5bdae; background: #ebe6dc; }
.message-center-layout > aside > header { padding: 15px; display: grid; gap: 3px; }
.message-center-layout > aside > header small { color: #98712c; font: 600 9px var(--display); letter-spacing: 1.4px; }
.message-center-layout > aside > button { width: 100%; min-height: 72px; padding: 11px; display: grid; grid-template-columns: 34px 1fr 8px; gap: 9px; align-items: center; border: 0; border-top: 1px solid #d1c9bd; color: var(--ink); background: transparent; text-align: left; }
.message-center-layout > aside > button.active { color: white; background: var(--ink); }
.message-center-layout > aside > button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: #376b5b; font: 600 9px var(--display); }
.message-center-layout > aside > button div { min-width: 0; display: grid; gap: 3px; }
.message-center-layout > aside > button div b, .message-center-layout > aside > button div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-center-layout > aside > button div b { font-size: 11px; }
.message-center-layout > aside > button div small { color: #77817d; font-size: 9px; }
.message-center-layout > aside > button.active div small { color: #aeb9b5; }
.message-center-layout > aside > button i { width: 7px; height: 7px; border-radius: 50%; background: #c44b3f; }
.message-empty { padding: 20px 14px; color: #78817e; font-size: 11px; line-height: 1.5; }
.message-center-layout > section { min-width: 0; display: grid; grid-template-rows: auto minmax(220px,1fr) auto auto; background: #fdfbf7; }
.conversation-head { padding: 15px 17px; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #d3ccc0; }
.conversation-head small { color: #9b742d; font: 600 9px var(--display); letter-spacing: 1px; }
.conversation-head h3 { margin: 3px 0; font: 600 20px var(--serif); }
.conversation-head p { margin: 0; color: #747e7a; font-size: 10px; }
.conversation-head button { align-self: center; min-height: 34px; padding: 0 10px; border: 1px solid #a37c34; color: #755a29; background: transparent; font-size: 10px; }
.teacher-inbox-mode { align-self: center; color: #98712c; font: 600 10px var(--display); }
.message-bubbles { max-height: 310px; padding: 16px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.message-bubbles article { width: min(80%,480px); padding: 10px 12px; align-self: flex-start; color: var(--ink); background: #ece7de; }
.message-bubbles article.teacher { align-self: flex-end; color: white; background: #17362f; }
.message-bubbles article small { font-size: 9px; font-weight: 700; }
.message-bubbles article p { margin: 4px 0; font-size: 12px; line-height: 1.55; }
.message-bubbles article time { color: #8a928f; font-size: 8px; }
.message-bubbles article.teacher time { color: #aebdb8; }
.conversation-starter { margin: auto; max-width: 330px; color: #737c79; text-align: center; }
.conversation-starter b { color: var(--ink); font: 600 18px var(--serif); }
.conversation-starter p { font-size: 11px; line-height: 1.5; }
.message-quick-questions { padding: 8px 14px; display: flex; gap: 5px; overflow-x: auto; border-top: 1px solid #ddd6cc; }
.message-quick-questions button { flex: 0 0 auto; min-height: 29px; padding: 0 8px; border: 1px solid #c6beb1; color: #65706c; background: transparent; font-size: 9px; }
.message-composer { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border-top: 1px solid #d3ccc0; }
.message-composer textarea { min-height: 65px; padding: 9px; resize: none; border: 1px solid #c5bdae; border-radius: 0; font: inherit; }
.message-composer button { min-width: 90px; border: 0; color: var(--ink); background: var(--gold); font-weight: 700; }
.message-conversation-empty { display: grid; place-items: center; align-content: center; text-align: center; }
.message-conversation-empty h3 { margin: 10px 0 4px; font: 600 21px var(--serif); }
.message-conversation-empty p { color: #78817e; font-size: 11px; }
.roadmap-detail-controls.template-locked { display: none; }
.roadmap-detail-body li.free-preview-node { position: relative; grid-template-columns: 36px minmax(0,1fr) auto; background: #f4ecda; }
.roadmap-detail-body li.free-preview-node small { padding: 3px 6px; align-self: center; color: #7a5b22; border: 1px solid #b89652; font-size: 9px; }
.roadmap-detail-body li.locked-preview-node { color: #8b918e; background: #ebe7de; }
.roadmap-detail-body li.locked-preview-node span { filter: grayscale(1); opacity: .65; }
.roadmap-detail-body aside button.locked-template-button { cursor: default; justify-content: center; color: #6e7471; background: #d9d4ca; }
.roadmap-detail-body ol:has(.curriculum-chapter) { border: 0; }
.roadmap-detail-body li.curriculum-chapter { margin-bottom: 14px; padding: 0; display: block; border: 1px solid #c9c2b6; background: #fffdf9; }
.curriculum-chapter-toggle { width: 100%; min-height: 92px; padding: 18px 20px; display: grid; grid-template-columns: 46px minmax(0,1fr) 28px; gap: 14px; align-items: center; border: 0; color: #4f5956; background: #eee9df; text-align: left; }
.curriculum-chapter.open .curriculum-chapter-toggle { background: #e8dfcf; }
.curriculum-chapter-toggle > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white !important; background: #a77e36; font: 700 15px var(--display) !important; }
.curriculum-chapter-toggle > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.curriculum-chapter-toggle small { grid-column: 1 / -1; color: #6d7773; font-size: 12px; font-weight: 700; }
.curriculum-chapter-toggle b { min-width: 0; overflow-wrap: anywhere; font: 700 20px/1.35 var(--serif) !important; }
.curriculum-chapter-toggle em { align-self: center; color: #77817d; font-size: 13px; font-style: normal; }
.curriculum-chapter-toggle > i { width: 12px; height: 12px; justify-self: center; border-right: 2px solid #59635f; border-bottom: 2px solid #59635f; transform: rotate(45deg); transition: transform .2s ease; }
.curriculum-chapter.open .curriculum-chapter-toggle > i { transform: rotate(225deg); }
.curriculum-unit-list { padding: 8px 20px 14px; background: #fff; }
.curriculum-unit { width: 100%; min-height: 62px; padding: 10px 5px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto 82px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid #e1ddd5; color: #58615e; background: transparent; text-align: left; }
.curriculum-unit:last-child { border-bottom: 0; }
.curriculum-unit > span { color: #a77e36 !important; font-size: 21px !important; }
.curriculum-unit > b { overflow-wrap: anywhere; font-size: 16px !important; font-weight: 500; }
.curriculum-unit > em { color: #8a918f; font-size: 13px; font-style: normal; }
.curriculum-unit > i { justify-self: end; color: #888f8c; font-size: 12px; font-style: normal; font-weight: 700; }
.curriculum-unit.preview > i { padding: 5px 8px; color: #302819; background: #d8bd7d; }
.curriculum-unit.is-tested { background: #f3ecdf; }
.curriculum-unit.is-tested > i { color: #fff; background: #8e713c; }
.curriculum-unit.locked:hover { background: #f6f3ed; }
.detail-purchase-summary { margin-top: 16px; padding: 18px; border: 1px solid #c7bfb2; background: #fffdf9; }
.detail-purchase-summary > small { color: #7e6636 !important; font: 700 12px var(--display) !important; letter-spacing: 1px !important; }
.detail-purchase-summary strong { display: block; margin-top: 9px; color: var(--ink); font: 700 30px var(--display); }
.detail-purchase-summary p { margin: 6px 0 12px; color: #68726e; font-size: 14px; line-height: 1.5; }
.detail-purchase-summary ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.roadmap-detail-body .detail-purchase-summary li { padding: 0; display: block; border: 0; color: #59635f; font-size: 14px; }

@media (max-width: 800px) {
  .roadmap-detail-body > aside { position: static; order: -1; }
}
.level-up-card > b { display: block; margin-top: 13px; color: var(--gold-light); font-size: 12px; }
.creator-workspace-nav { color: white; border-color: rgba(255,255,255,.12); background: #091214; }
.creator-workspace-nav .workspace-brand { color: white; }
.creator-workspace-nav .studio-label { color: #8f9a97; font: 500 12px var(--display); letter-spacing: 2px; }
.creator-workspace-nav .light-mode-switch { color: var(--gold-light) !important; border-color: rgba(213,177,101,.6) !important; }
.creator-workspace-nav + .canvas-header { min-height: 270px; }
.onboarding-dialog { width: min(720px, calc(100vw - 28px)); padding: 42px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.onboarding-dialog::backdrop { background: rgba(7,14,16,.88); backdrop-filter: blur(5px); }
.onboarding-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; font: 600 15px var(--display); letter-spacing: 2px; }
.onboarding-mark img { width: 38px; height: 38px; border-radius: 50%; filter: grayscale(1); }
.onboarding-dialog > small { color: #9b7836; font: 500 12px var(--display); letter-spacing: 2px; }
.onboarding-dialog h2 { margin: 10px 0 8px; font: 600 39px var(--serif); }
.onboarding-dialog > p { color: #626d69; }
.onboarding-options { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onboarding-options button { min-height: 170px; padding: 22px; display: grid; grid-template-columns: 25px 1fr 20px; gap: 12px; align-items: start; text-align: left; border: 1px solid #bfb7a8; color: var(--ink); background: var(--white); }
.onboarding-options button:hover { border-color: #8e6f34; box-shadow: inset 4px 0 var(--gold); }
.onboarding-options button > span { color: #9b7836; font: 500 12px var(--display); }
.onboarding-options button div { align-self: center; }
.onboarding-options b { display: block; margin-bottom: 8px; font: 600 21px var(--serif); }
.onboarding-options small { display: block; color: #68716e; line-height: 1.55; }
.onboarding-options i { align-self: center; color: #9b7836; font-style: normal; }
.onboarding-dialog .onboarding-note { margin: 20px 0 0; text-align: center; font-size: 14px; }

@media (max-width: 800px) {
  .nav-shell { height: 68px; padding: 0 20px; }
  .nav-actions { gap: 9px; }
  .brand { font-size: 15px; letter-spacing: 2px; }
  .brand img { width: 36px; height: 36px; }
  .text-button { display: none; }
  #canvasButton { display: block; font-size: 14px; white-space: nowrap; }
  .sync-button { min-width: 76px; min-height: 38px; padding: 0 11px; font-size: 13px; white-space: nowrap; }
  .hero { min-height: 820px; padding: 130px 22px 80px; align-items: start; }
  .hero::before { background-position: 64% center; }
  .hero-inner { width: 100%; }
  .hero h1 { font-size: clamp(46px, 14vw, 67px); letter-spacing: -2px; }
  .hero-copy { font-size: 16px; }
  .hero { min-height: auto; padding: 110px 16px 55px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-copy { margin-bottom: 22px; }
  .hero-auth-entry { margin-bottom: 12px; padding: 12px; align-items: stretch; flex-direction: column; gap: 11px; }
  .hero-auth-entry > button { width: 100%; justify-content: center; }
  .entry-paths { grid-template-columns: 1fr; gap: 12px; }
  .entry-card { min-height: 0; padding: 19px 16px; }
  .entry-card .topic-search { height: auto; }
  .entry-card-head h2 { font-size: 24px; }
  .create-entry { min-height: 235px; }
  .entry-card .suggestions { gap: 7px; }
  .entry-card .suggestions button { padding: 6px 10px; font-size: 14px; }
  .topic-search { height: auto; grid-template-columns: 38px 1fr; padding: 8px; }
  .topic-search button { grid-column: 1 / -1; width: 100%; margin-top: 7px; }
  .hero-note { display: none; }
  .manifesto, .examples { padding: 75px 22px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 35px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .example-grid { grid-template-columns: 1fr; }
  .example-card { min-height: 390px; }
  .builder { padding: 100px 20px 55px; }
  .builder-layout { grid-template-columns: 1fr; gap: 35px; }
  .builder-intro { position: static; }
  .brief-form { padding: 25px 18px; }
  .segmented { grid-template-columns: 1fr; }
  .segmented label span { margin: -1px 0 0; }
  .goal-cards { grid-template-columns: 1fr; }
  .goal-card-content { min-height: 116px; }
  .split-fields { grid-template-columns: 1fr; }
  .roadmap-header { grid-template-columns: 1fr; padding: 30px 22px 48px; text-align: center; }
  .roadmap-header .back-button { justify-self: start; }
  .progress-ring { justify-self: center; }
  .roadmap-body { grid-template-columns: 1fr; padding: 45px 22px 80px; }
  .roadmap-aside { position: static; }
  #stageNavigation { display: flex; overflow-x: auto; border: 0; gap: 8px; }
  .stage-nav { min-width: max-content; border: 1px solid #c9c3b7; padding: 10px 12px; }
  .language-legend { display: none; }
  .lesson-card { grid-template-columns: 64px 1fr; }
  .youtube-link { grid-column: 2; justify-self: start; margin-top: 5px; }
  .search-row { grid-template-columns: 1fr auto; }
  .keyword-language { grid-column: 1; grid-row: 2; }
  .keyword-language button { border-top: 0; }
  .keyword-go { grid-column: 2; grid-row: 1 / span 2; height: 84px; white-space: normal; max-width: 94px; }
  .challenge-search .keyword-go { grid-column: 2; grid-row: 1; height: 42px; }
  .assessment-box summary small { display: none; }
  .assessment-box > .assessment-layout { grid-template-columns: 1fr; gap: 15px; padding: 18px 14px 15px; }
  .task-progress { position: relative; top: auto; width: 82px; height: 82px; }
  .micro-task > span { grid-template-columns: 24px 1fr; padding: 11px 10px; }
  .roadmap-actions { min-height: 78px; flex-direction: row; align-items: start; }
  .canvas-header { grid-template-columns: 1fr; padding: 30px 22px 45px; }
  .canvas-header > .back-button { justify-self: start; }
  .canvas-header-actions { flex-direction: row; align-items: center; }
  .creator-stepper { padding: 12px 14px; grid-template-columns: 1fr 10px 1fr 10px 1fr; }
  .creator-stepper > i { font-size: 11px; }
  .creator-stepper button { min-height: 58px; padding: 7px; justify-content: center; }
  .creator-stepper button > span { width: 28px; height: 28px; }
  .creator-stepper button div { display: none; }
  .creator-step-panel { min-height: 0; }
  .creator-foundation { grid-template-columns: 1fr; gap: 20px; padding: 35px 20px 100px; }
  .creator-category-grid { grid-template-columns: 1fr 1fr; }
  .creator-category-card { min-height: 85px; }
  .canvas-shell { grid-template-columns: 1fr; padding: 22px 16px 70px; }
  .canvas-guide h2 { font-size: 29px; }
  .canvas-module-kit { margin-bottom: 8px; }
  .skill-canvas-wrap { min-height: 330px; }
  .backward-planner, .backward-planner.creator-step-panel { grid-template-columns: 1fr; gap: 25px; margin-top: 0; padding: 35px 20px 110px; }
  .backward-planner-fields { grid-template-columns: 1fr; }
  .node-search-term-add, .node-task-add { grid-template-columns: 1fr; }
  .milestone-add-row { grid-template-columns: minmax(0, 1fr) auto; }
  .milestone-add-row button, .node-search-term-add button, .node-task-add button { min-height: 42px; }
  .node-dialog form { padding: 24px 16px; }
  .node-stepper { grid-template-columns: 1fr 10px 1fr 10px 1fr; }
  .node-stepper button { grid-template-columns: 1fr; justify-items: center; }
  .node-stepper button b { display: none; }
  .node-step-panel { min-height: 330px; }
  .program-scale-grid, .program-log-grid, .program-result-fields { grid-template-columns: 1fr; }
  .prescription-variants { grid-template-columns: 1fr; }
  .prescription-variants article { min-height: 0; border-right: 0; border-bottom: 1px solid #d2c9ba; }
  .program-result-heading { align-items: start; flex-direction: column; }
  .node-dialog-footer { bottom: -24px; margin: 22px -16px -24px; padding: 11px 16px; grid-template-columns: repeat(3,1fr); }
  .node-dialog-footer > span { grid-column: 1 / -1; grid-row: 1; }
  .node-dialog-footer > button { padding: 0 7px; font-size: 13px; }
  .curriculum-editor { padding: 34px 16px 110px; }
  .curriculum-header { align-items: stretch; flex-direction: column; }
  .curriculum-header .primary-button { width: 100%; }
  .curriculum-view-switch { width: 100%; }
  .curriculum-view-switch button { min-width: 0; }
  .curriculum-stage > header { align-items: stretch; flex-direction: column; }
  .curriculum-stage-nav { display: flex; overflow-x: auto; }
  .curriculum-stage-nav button { min-width: 145px; border-right: 1px solid #cbc3b6; }
  .teacher-roadmap-layout { grid-template-columns: 1fr; gap: 28px; }
  .teacher-roadmap-aside { position: static; }
  .teacher-roadmap-aside .curriculum-stage-nav { display: flex; overflow-x: auto; border-top: 0; gap: 8px; }
  .teacher-roadmap-aside .curriculum-stage-nav button { min-width: 155px; min-height: 48px; padding: 9px 10px; border: 1px solid #c8c0b3; }
  .teacher-roadmap-aside .curriculum-stage-nav button.active { box-shadow: inset 0 -3px var(--gold); }
  .teacher-goal-note { display: none; }
  .teacher-stage-heading { padding-right: 0; }
  .teacher-stage-heading > button { position: static; grid-column: 2; width: 100%; margin-top: 12px; }
  .teacher-lesson-card.curriculum-node-card { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
  .teacher-lesson-preview { grid-template-columns: 1fr; }
  .teacher-lesson-preview > div + div { border-left: 0; border-top: 1px solid #ccc4b7; }
  .curriculum-stage > header button { width: 100%; }
  .curriculum-node-list { padding: 0 13px; }
  .curriculum-node-card { grid-template-columns: 32px 1fr; gap: 11px; }
  .curriculum-node-actions { grid-column: 2; flex-wrap: wrap; }
  .curriculum-purpose { align-items: start; flex-direction: column; }
  .creator-wizard-footer { min-height: 72px; padding: 10px 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .creator-wizard-footer > span { display: none; }
  .creator-wizard-footer > button:last-child { width: 100%; }
  .goal-compass { padding: 20px; overflow: hidden; }
  .goal-compass-head { align-items: start; flex-direction: column; gap: 5px; }
  .goal-chain { overflow-x: auto; grid-template-columns: 210px 22px 210px 22px 210px 22px 245px; padding-bottom: 8px; }
  .canvas-guide { position: static; }
  .skill-node { grid-template-columns: 38px 1fr; padding: 18px 15px 18px 10px; }
  .skill-node:not(:last-child)::after { left: 29px; }
  .node-menu { grid-column: 2; }
  .edit-mode .map-node .node-menu { opacity: 1; }
  .dialog-actions { grid-template-columns: 1fr; }
  .passport-dialog { padding: 22px 16px; }
  .proof-compare { grid-template-columns: 1fr; }
  .proof-compare > i { transform: rotate(90deg); }
  .workspace-nav { min-height: 68px; padding: 0 16px; }
  .workspace-brand span { font-size: 15px; }
  .workspace-links { gap: 9px; }
  .workspace-links > button:not(.workspace-avatar), .studio-label, .workspace-mode-flag, .workspace-current { display: none; }
  .workspace-links .mode-switch-button { display: flex !important; min-height: 36px; padding: 0 10px !important; font-size: 12px !important; }
  .workspace-links .notification-button { width: 44px; height: 44px; display: grid !important; }
  .workspace-links .message-center-button { min-width: 44px; min-height: 44px; padding: 0 6px !important; display: flex !important; justify-content: center; }
  .workspace-avatar { width: 44px; height: 44px; }
  .dashboard-shell { width: min(calc(100% - 32px), 1180px); padding: 42px 0 75px; }
  .dashboard-welcome { padding: 8px 0 38px; }
  .dashboard-welcome h1 { font-size: 42px; }
  .journey-guide { grid-template-columns: 1fr; gap: 8px; }
  .journey-guide > i { display: none; }
  .journey-guide > div { min-height: 88px; }
  .dashboard-section { padding-top: 42px; }
  .continue-card { grid-template-columns: 1fr; }
  .continue-card-main { min-height: 310px; padding: 28px 22px; }
  .continue-card-visual { min-height: 190px; }
  .continue-card-visual::before { width: 230px; height: 230px; }
  .continue-orb { width: 100px; height: 100px; }
  .continue-empty { align-items: start; flex-direction: column; }
  .cloud-save-prompt { align-items: stretch; flex-direction: column; }
  .explore-search { height: 54px; }
  .explore-search button { height: 42px; padding: 0 15px; font-size: 14px; }
  .category-chip { min-width: 108px; min-height: 92px; padding: 12px; }
  .category-chip > span:nth-child(2) { font-size: 14px; }
  .trending-grid { grid-template-columns: 1fr; }
  .trending-card { min-height: 280px; }
  .trending-card h3 { font-size: 26px; }
  .explore-card-small { min-width: 220px; flex: 0 0 220px; min-height: 230px; }
  .explore-results-grid { grid-template-columns: 1fr 1fr; }
  .explore-header h2 { font-size: 24px; }
  .creator-invitation { padding: 28px 22px; align-items: start; flex-direction: column; }
  .creator-invitation button { width: 100%; min-width: 0; }
  .teacher-shell { width: min(calc(100% - 32px), 1180px); padding: 42px 0 75px; }
  .teacher-welcome { align-items: start; flex-direction: column; gap: 25px; }
  .teacher-welcome h1 { font-size: 40px; }
  .teacher-welcome-actions { width: 100%; min-width: 0; }
  .teacher-content-grid { grid-template-columns: 1fr; }
  .teacher-maps-section, .teacher-next-panel { padding: 22px 18px; }
  .teacher-section-head { align-items: start; flex-direction: column; gap: 7px; }
  .teacher-map-card { grid-template-columns: 1fr; }
  .teacher-map-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .teacher-map-actions .publish-map-button { grid-column: 1 / -1; }
  .teacher-map-empty { align-items: start; flex-direction: column; }
  .profile-shell { width: min(calc(100% - 32px), 1080px); padding: 38px 0 75px; }
  .profile-hero { padding: 30px 23px; align-items: start; flex-direction: column; }
  .profile-avatar-large { width: 104px; height: 104px; flex-basis: 104px; }
  .profile-settings { grid-template-columns: 1fr; }
  .profile-panel { min-height: 0; padding: 25px 20px; }
  .profile-mode-options { grid-template-columns: 1fr; }
  .profile-actions { grid-column: auto; padding: 20px; flex-direction: column; }
  .profile-actions button { width: 100%; }
  .teacher-profile-shell { width: min(calc(100% - 32px), 1080px); padding: 42px 0 75px; }
  .teacher-profile-form { grid-template-columns: 1fr; }
  .teacher-profile-form > section { padding: 25px 20px; }
  .teacher-form-split { grid-template-columns: 1fr; }
  .teacher-profile-actions { grid-column: auto; flex-direction: column; }
  .teacher-profile-actions button { width: 100%; min-width: 0; }
  .roadmap-detail-cover { min-height: 290px; padding: 55px 22px 28px; }
  .roadmap-detail-body { padding: 27px 20px 30px; grid-template-columns: 1fr; gap: 28px; }
  .roadmap-detail-cover h2 { font-size: 41px; }
  .notification-dialog { padding: 24px 17px; }
  .onboarding-dialog { padding: 28px 18px; }
  .onboarding-mark { margin-bottom: 28px; }
  .onboarding-dialog h2 { font-size: 32px; }
  .onboarding-options { grid-template-columns: 1fr; }
  .onboarding-options button { min-height: 125px; }
  .account-dialog { padding: 27px 20px; }
  .account-benefits small { font-size: 11px; }
  .support-marketplace-head { align-items: start; flex-direction: column; gap: 10px; }
  .support-start-here { align-items: start; flex-direction: column; gap: 5px; }
  .support-tier-grid { grid-template-columns: 1fr; }
  .support-tier-grid article { min-height: 210px; border-right: 0; border-bottom: 1px solid #c9c1b4; }
  .support-tier-grid article:last-child { border-bottom: 0; }
  .teacher-service-ladder { padding: 22px 18px; grid-template-columns: 1fr; }
  .teacher-service-steps { justify-content: space-between; }
  .teacher-service-ladder > button { width: 100%; }
  .request-choice { grid-template-columns: 1fr; }
  .request-choice label > span { min-height: 62px; border-right: 1px solid #c8c0b4; border-bottom: 0; }
  .request-choice label:last-child > span { border-bottom: 1px solid #c8c0b4; }
  .custom-plan-split, .interaction-request-list { grid-template-columns: 1fr; }
  .custom-plan-dialog form, .teacher-reply-dialog form { padding: 23px 17px; }
  .interaction-inbox-dialog { padding: 23px 16px; }
  .inbox-summary b { font-size: 19px; }
  .request-card-actions, .reply-actions { flex-direction: column; }
  .feedback-detail-dialog { padding: 28px 20px; }
  .page-breadcrumb { max-width: 58vw; justify-content: flex-end; flex-wrap: wrap; text-align: right; }
  .dark-breadcrumb, .canvas-return-context nav { display: none; }
  .canvas-return-context { min-height: 42px; }
  footer { align-items: start; flex-direction: column; gap: 24px; }
}

/* Final type floor: these labels are decorative, but should still be readable. */
.category-chip-mark,
.category-chip > small,
.explore-badge-sm,
.explore-card-tags span,
.category-section-mark,
.teacher-stage-heading div > small,
.creator-wizard-footer > span small,
.lesson-check { font-size: 12px; }

/* === Embedded YouTube Player & Clip Styling === */
.challenge-video-player {
  margin: 18px 0 20px;
  width: 100%;
}
.challenge-video-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  display: block;
}
.video-clip-fields {
  margin: 15px 0;
  padding: 15px;
  background: #fdfbf7;
  border: 1px dashed #dcd6c8;
  border-radius: 4px;
}
.video-preview-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 15px;
}
.video-preview-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
  display: block;
}

/* === Learning flow polish: status, help and route review === */
.lesson-card { grid-template-columns: 78px minmax(0, 1fr); gap: 24px; }
.lesson-check {
  width: 70px; min-width: 0; min-height: 78px; padding: 0; margin: 0; display: grid; place-items: start center;
  align-content: start; gap: 7px; border: 0; background: transparent; color: #6b736f;
}
.lesson-check > span {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #a9aaa4;
  border-radius: 50%; color: #8b6b30; background: #f8f5ee; font: 600 13px var(--display);
  box-shadow: 0 4px 0 rgba(19,35,33,.08); transition: transform .2s, color .2s, background .2s;
}
.lesson-check > small { width: 100%; color: #737c78; font-size: 12px; line-height: 1.35; text-align: center; white-space: nowrap; }
.lesson-check:hover > span { transform: translateY(-2px); border-color: #a7823b; }
.lesson-check.done { min-width: 0; color: #365e50; background: transparent; border: 0; }
.lesson-check.done > span { color: white; border-color: var(--ink-2); background: var(--ink-2); box-shadow: 0 4px 0 #0c241f; }
.lesson-check.done > small { color: #376454; font-weight: 700; }
.teacher-lesson-card.curriculum-node-card { grid-template-columns: 78px minmax(0, 1fr); gap: 24px; }
.teacher-preview-check > span { color: var(--ink); border-color: #b89551; background: #efe3c7; }

.lesson-support-bar {
  margin-top: 13px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px;
  align-items: center; border: 1px solid #c8c0b3; border-left: 3px solid #a8453d; background: #f4f0e8;
}
.lesson-support-bar > div:first-child { display: flex; gap: 10px; align-items: center; }
.lesson-support-bar small { color: #a44038; font: 600 10px var(--display); letter-spacing: 1.2px; white-space: nowrap; }
.lesson-support-bar b { font-size: 13px; }
.lesson-support-bar p { display: none; }
.lesson-support-bar > div:last-child { min-width: 180px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.lesson-support-bar button { min-height: 34px; padding: 0 10px; border: 1px solid #a8453d; color: #923b34; background: transparent; font-size: 11px; font-weight: 700; }
.lesson-support-bar button:first-child { color: white; background: #a8453d; }
.lesson-support-bar button:hover { transform: translateY(-1px); }
#openRouteHelpButton { display: none !important; }
.challenge-support > div:last-child { grid-template-columns: 1fr !important; }
.sos-resolution-preview { margin: 18px 0; padding: 16px; border: 1px solid #c9c0b2; background: #eee8dc; }
.sos-resolution-preview > small { display: block; margin-bottom: 12px; color: #825f25; font-size: 12px; font-weight: 700; }
.sos-resolution-preview > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.sos-resolution-preview span { min-width: 0; padding: 11px; display: grid; grid-template-columns: 25px minmax(0,1fr); align-content: start; border-left: 1px solid #cec5b7; }
.sos-resolution-preview span:first-child { border-left: 0; }
.sos-resolution-preview i { grid-row: 1 / span 2; color: #a17931; font: normal 10px var(--display); }
.sos-resolution-preview b { font-size: 13px; }
.sos-resolution-preview em { margin-top: 4px; color: #69736f; font-size: 11px; font-style: normal; line-height: 1.45; }

.challenge-support {
  margin: 24px 0 12px; padding: 18px; display: grid; grid-template-columns: minmax(0,1fr) 155px; gap: 18px;
  align-items: center; border: 1px solid #c8c0b3; border-left: 4px solid #a8453d; background: #f2ede4;
}
.challenge-support small { color: #a33f37; font: 600 11px var(--display); letter-spacing: 1.4px; }
.challenge-support b { display: block; margin: 5px 0 4px; font-size: 15px; }
.challenge-support p { margin: 0; color: #6d7773; font-size: 13px; line-height: 1.5; }
.challenge-support > div:last-child { display: grid; gap: 7px; }
.challenge-support .sos-button { min-height: 43px; padding: 0 12px; color: white; border-color: #a8453d; background: #a8453d; }
.route-help-button { min-height: 36px; border: 0; border-bottom: 1px solid #90733b; color: #6d582f; background: transparent; font-size: 12px; font-weight: 700; }
.challenge-actions { display: block; }
.challenge-actions .primary-button { width: 100%; }

.sos-route-context { margin: 18px 0 6px; padding: 14px 16px; border-left: 3px solid var(--gold); background: #e9e4da; }
.sos-route-context small { display: block; color: #8f6d2f; font: 600 11px var(--display); letter-spacing: 1px; }
.sos-route-context b { display: block; margin: 4px 0 8px; font-size: 16px; }
.sos-route-context div, .reply-goal-chain { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: #6a7470; font-size: 12px; }
.sos-route-context i, .reply-goal-chain i { color: #a17d35; font-style: normal; }
.sos-route-context strong, .reply-goal-chain b { color: #795e2b; }
.request-choice label > span { min-height: 92px; padding: 13px; }
.request-choice b { font-size: 13px; }

.teacher-resolution-choice { margin: 20px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); border: 0; }
.teacher-resolution-choice legend { margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.teacher-resolution-choice label { margin: 0 !important; }
.teacher-resolution-choice input { position: absolute; opacity: 0; pointer-events: none; }
.teacher-resolution-choice label > span { min-height: 94px; padding: 13px; display: grid; align-content: center; gap: 5px; border: 1px solid #c8c0b4; border-right: 0; background: rgba(255,255,255,.48); cursor: pointer; }
.teacher-resolution-choice label:last-child > span { border-right: 1px solid #c8c0b4; }
.teacher-resolution-choice b { font-size: 13px; }
.teacher-resolution-choice small { color: #747e7a; font-size: 12px; line-height: 1.4; }
.teacher-resolution-choice input:checked + span { border-color: #a98034; background: #f2e5c8; box-shadow: inset 0 -4px var(--gold); }
.reply-goal-chain { margin-top: 12px; padding-top: 12px; border-top: 1px solid #d0c8bb; }

.overall-review-banner {
  grid-column: 1 / -1; margin: -20px 0 30px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0,1fr) 230px;
  gap: 28px; align-items: center; border: 1px solid #b86760; border-left: 5px solid #a8453d; background: #f1e8e1;
  box-shadow: 0 13px 34px rgba(74,38,32,.1);
}
.overall-review-banner.hidden { display: none; }
.overall-review-banner small { color: #9e3e36; font: 600 11px var(--display); letter-spacing: 1.4px; }
.overall-review-banner h3 { margin: 6px 0 5px; font: 600 23px var(--serif); }
.overall-review-banner p { margin: 0; color: #66706d; font-size: 14px; line-height: 1.55; }
.overall-review-chain { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.overall-review-chain i { color: #a8453d; font-style: normal; }
.overall-review-chain b { color: #795d2a; }
.overall-review-banner > div:last-child { display: grid; gap: 8px; }
.overall-review-banner .primary-button { min-height: 47px; font-size: 13px; }
.map-node.route-review .node-orb { box-shadow: 0 8px 0 #8c322c, 0 0 0 12px rgba(168,69,61,.18), 0 13px 28px rgba(65,50,20,.23); }
.map-node.route-review .map-node-label::before { content: "ROUTE REVIEW"; display: block; margin-bottom: 4px; color: #a23f37; font: 600 10px var(--display); letter-spacing: 1px; }
.feedback-detail-dialog section.route { padding: 20px; border: 1px solid #c9b88f; background: #f3ead7; }

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #b18739; outline-offset: 3px; }
.primary-button, .outline-button, .keyword-go, .curriculum-node-actions button { transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.primary-button:not(:disabled):hover, .outline-button:hover, .keyword-go:hover { transform: translateY(-1px); }

/* ─── Community Interactions & Discussions ─── */
.challenge-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #d5d0c6;
  margin: 18px 0;
  padding-bottom: 1px;
}
.tab-btn {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #727e7b;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  color: var(--ink);
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #aa8744;
}
.comments-badge {
  background: #e2dbce;
  color: #5b6562;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 500;
}
.tab-btn.active .comments-badge {
  background: #aa8744;
  color: white;
}
.tab-pane.hidden {
  display: none !important;
}

/* Likes */
.node-likes-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.node-like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfc8bc;
  background: var(--white);
  padding: 7px 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}
.node-like-btn:hover {
  border-color: #ff758c;
  color: #ff758c;
}
.node-like-btn.liked {
  background: #fff0f2;
  border-color: #ff758c;
  color: #e02447;
}
.roadmap-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  color: #d3dcda;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.roadmap-like-btn:hover {
  border-color: #ff758c;
  color: #ff758c;
}
.roadmap-like-btn.liked {
  background: rgba(255, 117, 140, 0.12);
  border-color: #ff758c;
  color: #ff758c;
}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.node-like-btn.liked .heart-icon,
.comment-action-btn.liked span,
.roadmap-like-btn.liked .heart-icon {
  animation: heartPop .3s ease-in-out;
}

/* Discussion List */
.discussion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
  border-bottom: 1px solid #e7e2d9;
}
.discussion-empty {
  padding: 40px 0;
  text-align: center;
  color: #8c9693;
  font-size: 14px;
}
.comment-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--white);
  border: 1px solid #e7e2d9;
  position: relative;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  background-size: cover;
  background-position: center;
}
.comment-meta {
  display: flex;
  flex-direction: column;
}
.comment-user {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.comment-time {
  font-size: 11px;
  color: #8c9693;
}
.comment-body {
  font-size: 14px;
  color: #454d4b;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.comment-action-btn {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: #727e7b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.comment-action-btn:hover {
  color: var(--ink);
}
.comment-action-btn.liked {
  color: #e02447;
}

/* Threads-style reply list and thread line */
.replies-container {
  margin-left: 20px;
  padding-left: 16px;
  border-left: 2px solid #e7e2d9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.reply-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: #fdfcf9;
  border: 1px solid #ece8df;
}

/* Discussion Form */
.discussion-form-container {
  border-top: 1px solid #d5d0c6;
  padding-top: 16px;
  margin-top: 10px;
}
.discussion-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.discussion-form textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #bdb5a7;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  background: var(--white);
  color: var(--ink);
}
.discussion-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.discussion-form button {
  min-height: 38px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
}

/* Reply input box nested inline */
.inline-reply-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fdfcf9;
  padding: 10px;
  border: 1px solid #ece8df;
}
.inline-reply-form textarea {
  min-height: 48px;
  font-size: 13px;
  padding: 8px;
  border: 1px solid #c9c1b3;
}

/* Comment Login prompt */
.comment-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f8f6f0;
  border: 1px dashed #bdb5a7;
  text-align: center;
  gap: 12px;
}
.comment-login-prompt p {
  margin: 0;
  font-size: 14px;
  color: #65706d;
}
.comment-login-prompt button {
  min-height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

@media (max-width: 720px) {
  body { width: 100%; overflow-x: hidden; }
  .roadmap-body { padding-inline: 16px; }
  .lesson-list, .lesson-stage, .lesson-main, .lesson-search, .assessment-box, .challenge-support { width: 100%; max-width: 100%; min-width: 0; }
  .lesson-card, .teacher-lesson-card.curriculum-node-card { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 24px 0 30px; }
  .lesson-check { width: auto; min-height: 46px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
  .lesson-check > span { width: 40px; height: 40px; flex: 0 0 40px; }
  .lesson-check > small { width: auto; font-size: 12px; white-space: normal; text-align: left; }
  .lesson-main h3 { overflow-wrap: anywhere; font-size: 22px; line-height: 1.3; }
  .lesson-main p { font-size: 15px; }
  .lesson-tags span { font-size: 12px; }
  .lesson-search { padding: 13px; }
  .lesson-search .search-row, .challenge-search .search-row { grid-template-columns: 1fr 1fr; }
  .lesson-keyword { grid-column: 1 / -1; width: 100%; }
  .keyword-language { grid-column: 1; grid-row: 2; }
  .keyword-language button { width: 50%; flex: 1; border-top: 0; }
  .keyword-go, .challenge-search .keyword-go { grid-column: 2; grid-row: 2; width: 100%; max-width: none; height: 42px; padding: 0 10px; white-space: normal; line-height: 1.25; }
  .challenge-search .keyword-go { grid-column: 1 / -1; }
  .teacher-lesson-card .curriculum-node-actions { grid-column: 1; }
  .lesson-support-bar, .challenge-support, .overall-review-banner { grid-template-columns: 1fr; gap: 14px; }
  .lesson-support-bar > div:first-child { align-items: flex-start; flex-wrap: wrap; }
  .lesson-support-bar > div:last-child { min-width: 0; grid-template-columns: 1fr; }
  .challenge-support { padding: 16px 14px; }
  .challenge-support > div:last-child { grid-template-columns: 1fr; }
  .challenge-support button { width: 100%; }
  dialog.roadmap-detail-dialog {
    position: fixed;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  .roadmap-detail-trail { padding: 0 48px 0 14px; }
  .roadmap-detail-trail nav { display: none; }
  .roadmap-detail-cover { min-height: 250px; padding-inline: 18px; }
  .roadmap-detail-cover h2 { overflow-wrap: anywhere; font-size: 38px; }
  .roadmap-detail-body { padding-inline: 16px; }
  .teacher-resolution-choice { grid-template-columns: 1fr; }
  .teacher-resolution-choice label > span { min-height: 70px; border-right: 1px solid #c8c0b4; border-bottom: 0; }
  .teacher-resolution-choice label:last-child > span { border-bottom: 1px solid #c8c0b4; }
  .overall-review-banner { margin-top: 0; }
}

/* Mobile composition pass: keep every workspace readable without desktop wrapping. */
@media (max-width: 480px) {
  body { font-size: 15px; }
  button, a, input, textarea, select, summary { max-width: 100%; }
  h1, h2, h3, p, b, span, small, label { overflow-wrap: break-word; }

  .workspace-nav {
    min-height: 64px; padding: 0 12px; gap: 8px;
  }
  .workspace-brand { min-width: 0; gap: 7px; flex: 0 1 auto; }
  .workspace-brand img { width: 35px; height: 35px; flex: 0 0 35px; }
  .workspace-brand span {
    min-width: 0; font-size: 0 !important; line-height: 1; letter-spacing: 1.4px; white-space: nowrap;
  }
  .workspace-brand span::after { content: "THE DOJO"; font: 600 12px var(--display); letter-spacing: 1.4px; }
  .teacher-nav .workspace-brand span::after { content: "DOJO · TEACH"; }
  .creator-workspace-nav .workspace-brand span::after { content: "DOJO · STUDIO"; }
  html[lang="en"] .teacher-nav .workspace-brand span::after { content: "DOJO · TEACH"; }
  html[lang="en"] .creator-workspace-nav .workspace-brand span::after { content: "DOJO · STUDIO"; }
  .workspace-links { min-width: 0; gap: 6px; }
  .workspace-links .mode-switch-button {
    min-width: 0; min-height: 38px; padding: 0 9px !important; gap: 7px; white-space: nowrap;
  }
  .workspace-links .mode-switch-button span { font-size: 0; white-space: nowrap; }
  .workspace-links .mode-switch-button span::after { font-size: 12px; line-height: 1; }
  #switchToCreator span::after { content: "老師工作室"; }
  #teacherSwitchToLearner span::after { content: "學員首頁"; }
  #profileBackButton span::after { content: "返回"; }
  #canvasReturnToStudio span::after, #teacherProfileBack span::after { content: "老師首頁"; }
  html[lang="en"] #switchToCreator span::after { content: "Teach"; }
  html[lang="en"] #teacherSwitchToLearner span::after { content: "Learn"; }
  html[lang="en"] #profileBackButton span::after { content: "Back"; }
  html[lang="en"] #canvasReturnToStudio span::after,
  html[lang="en"] #teacherProfileBack span::after { content: "Studio"; }
  .workspace-links .mode-switch-button b { flex: 0 0 auto; }
  .workspace-links .notification-button { width: 44px; height: 44px; flex: 0 0 44px; }
  .workspace-avatar { width: 44px; height: 44px; flex: 0 0 44px; }

  .dashboard-shell { width: calc(100% - 28px); padding: 36px 0 68px; }
  .dashboard-welcome { padding: 5px 0 30px; }
  .dashboard-welcome .section-number { font-size: 11px; letter-spacing: 2px; }
  .dashboard-welcome h1 { margin-top: 12px; font-size: clamp(16px, 5.1vw, 25px); line-height: 1.15; letter-spacing: -1px; white-space: nowrap; }
  .dashboard-welcome h1 em { white-space: nowrap; }
  .dashboard-welcome > p:last-child { font-size: 14px; line-height: 1.65; }
  .journey-guide > div { min-height: 78px; padding: 15px; }
  .dashboard-section { padding-top: 36px; }
  .dashboard-section-head { align-items: end; gap: 14px; }
  .dashboard-section-head h2 { font-size: 28px; }
  .dashboard-section-head > button { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
  .continue-card-main { min-height: 0; padding: 25px 20px; }
  .continue-card-main > small { font-size: 11px; letter-spacing: 1.4px; }
  .continue-card-main h3 { font-size: 36px; line-height: 1.15; }
  .continue-card-main p { font-size: 15px; }
  .continue-context { display: grid; grid-template-columns: 1fr; width: 100%; }
  .continue-context span { width: 100%; }
  .continue-progress { margin-top: 25px; }
  .continue-card-main > button { width: 100%; justify-content: space-between; gap: 12px; }
  .continue-card-visual { min-height: 150px; }
  .continue-empty { min-height: 190px; padding: 25px 20px; }
  .continue-empty h3 { font-size: 24px; }
  .continue-empty button { width: 100%; white-space: normal; }

  .explore-header h2 { font-size: 28px; }
  .explore-search { grid-template-columns: 34px minmax(0,1fr) 58px; padding: 5px; }
  .explore-search input { padding: 0 6px; font-size: 14px; }
  .explore-search button { width: 58px; padding: 0 8px; }
  .category-chip { min-width: 112px; width: 112px; padding: 12px; }
  .category-chip::after { right: -17px; top: -17px; }
  .category-chip > span:nth-child(2) { font-size: 14px; white-space: normal; }
  .trending-card { min-height: 270px; }
  .explore-card-content { padding: 17px; }
  .explore-card h3 { font-size: 26px; }
  .explore-card p { font-size: 13px; }
  .explore-results-grid { grid-template-columns: 1fr; }
  .category-section-head { gap: 12px; }
  .category-section-head h3 { font-size: 20px; }
  .category-see-all { flex: 0 0 auto; font-size: 12px; white-space: nowrap; }
  .support-options summary { gap: 12px; }
  .support-options-body { min-width: 0; padding: 15px; }
  .support-tier-grid, .support-tier-grid article { min-width: 0; }
  .support-tier-grid article { padding: 20px 17px; }
  .support-tier-grid article > small { width: fit-content; max-width: 100%; white-space: normal; }

  .teacher-shell { width: calc(100% - 28px); padding: 38px 0 68px; }
  .teacher-welcome { padding-bottom: 34px; }
  .teacher-welcome h1 { font-size: 35px; line-height: 1.14; letter-spacing: -1.3px; }
  .teacher-welcome p:last-child { font-size: 14px; }
  .teacher-map-empty { padding: 22px 18px; }
  .teacher-map-empty h3 { font-size: 23px; }
  .teacher-map-empty button { width: 100%; white-space: normal; }
  .teacher-service-steps { overflow-x: auto; justify-content: flex-start; padding-bottom: 5px; }
  .teacher-service-steps > span { min-width: 88px; }

  .builder { padding: 84px 14px 48px; }
  .builder-topbar { height: 64px; padding: 0 14px; }
  .builder-topbar .page-breadcrumb { display: none; }
  .builder-layout { gap: 27px; }
  .builder-intro h2 { font-size: 39px; line-height: 1.13; }
  .builder-intro > p:last-child { font-size: 15px; }
  .brief-form { padding: 24px 18px; }
  .brief-form > label, .brief-form fieldset { margin-bottom: 24px; }
  .current-state-field { display: grid !important; gap: 8px; }
  .current-state-field textarea { display: block; width: 100%; min-width: 0; }
  .current-state-field small { display: block; width: 100%; }
  .check-row span { margin: 0 !important; line-height: 1.55; }

  .roadmap-header { min-height: 0; padding: 22px 16px 36px; gap: 24px; }
  .roadmap-actions { width: 100%; min-height: 0; flex-direction: column; align-items: stretch; gap: 16px; }
  .roadmap-actions > .back-button { align-self: flex-start; white-space: nowrap; }
  .roadmap-secondary-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .roadmap-secondary-actions .roadmap-like-btn { flex: 1 1 auto; min-height: 38px; font-size: 12px; justify-content: center; border-color: rgba(255, 255, 255, 0.22); color: #aab3b1; }
  .roadmap-settings-button { justify-self: start; order: -1; }
  .roadmap-settings-button b { display: none; }
  .roadmap-secondary-actions .outline-button { flex: 2 1 auto; min-height: 38px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
  .roadmap-meta h1 { font-size: 43px; line-height: 1.08; overflow-wrap: anywhere; }
  .roadmap-meta p { font-size: 14px; line-height: 1.55; }
  .goal-compass { padding: 18px 16px; }
  .goal-chain { display: grid; grid-template-columns: 1fr; gap: 7px; overflow: visible; }
  .goal-chain > i { transform: rotate(90deg); min-height: 15px; }
  .goal-chain-item { min-height: 82px; }
  #stageNavigation { width: 100%; padding-bottom: 6px; }
  .stage-nav { min-width: 142px; white-space: normal; }
  .stage-heading { grid-template-columns: 38px minmax(0,1fr); }
  .stage-heading h2 { font-size: 27px; line-height: 1.25; }
  .lesson-goal-link { line-height: 1.5; }
  .lesson-main h3 { font-size: 21px; }
  .lesson-search .search-row, .challenge-search .search-row { grid-template-columns: 1fr 112px; }
  .keyword-go { font-size: 12px; }

  .creator-workspace-nav + .canvas-header { min-height: 0; }
  .canvas-header { padding: 24px 16px 32px; }
  .canvas-return-context { min-height: 36px; }
  .canvas-title-block h1 { font-size: 38px; line-height: 1.12; }
  .canvas-title-block p { line-height: 1.55; }
  .canvas-header-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .creator-stepper { padding: 10px 12px; }
  .creator-foundation, .backward-planner, .backward-planner.creator-step-panel { padding-inline: 16px; }
  .creator-panel-intro h2, .backward-planner-intro h2 { font-size: 35px; line-height: 1.16; }
  .curriculum-editor { padding-inline: 14px; }
  .curriculum-header h2 { font-size: 29px; line-height: 1.28; }
  .teacher-curriculum-empty { min-height: 220px; padding: 24px 18px; text-align: center; line-height: 1.55; }
  .teacher-curriculum-empty p { max-width: 270px; margin: 0 auto; }
  .creator-wizard-footer { padding-inline: 12px; }
  .creator-wizard-footer button { min-width: 0; padding-inline: 10px; font-size: 13px; }

  .profile-shell, .teacher-profile-shell { width: calc(100% - 28px); padding-top: 34px; }
  .profile-hero { padding: 25px 20px; }
  .profile-identity h1 { font-size: 35px; line-height: 1.15; overflow-wrap: anywhere; }
  .profile-identity p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-panel, .teacher-profile-form > section { padding: 23px 18px; }
  .avatar-actions { grid-template-columns: 1fr; }

  dialog { max-width: calc(100vw - 20px) !important; }
  .account-dialog, .notification-dialog, .passport-dialog, .feedback-detail-dialog { padding: 23px 17px; }
  .node-dialog form, .sos-dialog form, .custom-plan-dialog form, .teacher-reply-dialog form { padding: 21px 15px; }
  .dialog-top { gap: 12px; }
  .dialog-top > div { min-width: 0; }
  .dialog-top h2 { font-size: 25px; line-height: 1.25; }
  .challenge-content { padding: 24px 17px 27px; }
  .challenge-content h2 { font-size: 28px; line-height: 1.24; }
  .challenge-meta { flex-wrap: wrap; }
  .request-choice label > span, .teacher-resolution-choice label > span { height: auto; }
  .custom-plan-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .custom-plan-steps i { display: none; }
  .custom-plan-steps span { min-width: 0; padding: 8px 6px; flex-direction: column; gap: 2px; text-align: center; line-height: 1.25; }
  .feedback-detail-dialog h2 { font-size: 27px; overflow-wrap: anywhere; }
  .toast { width: calc(100% - 28px); bottom: 16px; text-align: center; }

  /* Interactive items responsive tuning */
  .replies-container {
    margin-left: 12px;
    padding-left: 10px;
  }
  .challenge-tabs {
    gap: 12px;
    margin: 14px 0;
  }
  .tab-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 6px 2px;
  }
  .comment-card {
    padding: 12px;
  }
  .reply-card {
    padding: 10px;
  }
  .discussion-list {
    max-height: 350px;
  }
}

@media (max-width: 350px) {
  .dashboard-section-head h2 { font-size: 24px; }
  .dashboard-section-head > button { font-size: 11px; }
  .workspace-brand span::after { font-size: 11px; letter-spacing: 1px; }
  .workspace-links .mode-switch-button { padding-inline: 8px !important; }
  .canvas-title-block h1, .builder-intro h2 { font-size: 35px; }
}

@media (max-width: 600px) {
  .topic-dojo-marketplace { padding: 27px 16px 30px; }
  .topic-dojo-marketplace > header { align-items: start; flex-direction: column; gap: 16px; }
  .topic-dojo-marketplace header h3 { font-size: 29px; }
  .topic-dojo-marketplace header p { font-size: 15px; }
  .topic-cohort { min-width: 0; justify-items: start; }
  .cohort-avatars { flex-direction: row; padding-left: 7px; }
  .cohort-avatars i { margin-left: -7px; }
  .topic-level-filters button { min-width: 0; padding: 9px 4px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .topic-level-filters b { font-size: 14px; }
  .topic-level-filters em { font-size: 11px; }
  .topic-results-heading { margin-top: 18px; align-items: start; flex-direction: column; gap: 5px; }
  .topic-results-heading b { font-size: 19px; }
  .topic-results-heading small { line-height: 1.45; }
  .topic-template-grid { display: flex; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .topic-template-card { min-width: min(320px,calc(100vw - 48px)); flex: 0 0 min(320px,calc(100vw - 48px)); scroll-snap-align: start; }
  .topic-community-strip { grid-template-columns: 1fr; gap: 13px; }
  .topic-community-strip > button { width: 100%; }
  .topic-hub-tabs button { min-height: 76px; padding: 9px 5px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .topic-hub-tabs span { grid-row: auto; font-size: 8px; }
  .topic-hub-tabs b { font-size: 14px; }
  .topic-hub-tabs small { font-size: 10px; }
  .training-pane { margin: 18px -16px -15px; padding: 25px 16px 30px; }
  .training-pane-intro { align-items: start; flex-direction: column; gap: 10px; }
  .training-pane-intro h4 { font-size: 24px; }
  .training-pane-intro > span { min-width: 0; justify-items: start; }
  .program-level-filters { overflow-x: auto; }
  .program-level-filters button { flex: 0 0 auto; }
  .training-program-grid { display: flex; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .training-program-card { min-width: min(320px,calc(100vw - 48px)); flex: 0 0 min(320px,calc(100vw - 48px)); scroll-snap-align: start; }
  .community-pane-head { padding: 20px 16px; align-items: start; flex-direction: column; }
  .community-pane-head h4 { font-size: 27px; }
  .community-pane-head button { width: 100%; }
  .topic-community-feed { grid-template-columns: 1fr; }
  .topic-post-card { min-height: 205px; }
  .topic-post-reply-form { grid-template-columns: 1fr; }
  .topic-post-reply-form button { min-height: 40px; }
  .topic-post-replies article header { flex-wrap: wrap; }
  .topic-post-replies article header i { width: 100%; margin-left: 0; }
  .message-center-button { padding: 0 5px; }
  .message-center-button span { display: none; }
  .community-post-dialog, .message-center-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 17px; }
  .community-post-types { grid-template-columns: 1fr; }
  .community-post-types label + label span { border-left: 1px solid #c6beb0; border-top: 0; }
  .community-log-fields { grid-template-columns: 1fr; }
  .message-center-layout { min-height: 0; display: block; border: 0; }
  .message-center-layout > aside { max-height: 145px; display: flex; overflow-x: auto; border: 1px solid #c5bdae; }
  .message-center-layout > aside > header { min-width: 95px; flex: 0 0 95px; }
  .message-center-layout > aside > button { min-width: 190px; flex: 0 0 190px; border-top: 0; border-left: 1px solid #d1c9bd; }
  .message-center-layout > section { min-height: 500px; margin-top: 8px; border: 1px solid #c5bdae; }
  .conversation-head h3 { font-size: 18px; }
  .message-bubbles { max-height: 285px; }
  .message-bubbles article { width: 88%; }
  .message-composer { grid-template-columns: 1fr; }
  .message-composer button { min-height: 42px; }
  .roadmap-detail-body h3 { font-size: 27px; }
  .roadmap-detail-body section > p { font-size: 16px; }
  .curriculum-chapter-toggle { min-height: 82px; padding: 14px 12px; grid-template-columns: 38px minmax(0,1fr) 20px; gap: 10px; }
  .curriculum-chapter-toggle > span { width: 36px; height: 36px; font-size: 13px !important; }
  .curriculum-chapter-toggle > div { grid-template-columns: 1fr; gap: 3px; }
  .curriculum-chapter-toggle b { font-size: 17px !important; }
  .curriculum-chapter-toggle em { font-size: 12px; }
  .curriculum-unit-list { padding: 5px 12px 10px; }
  .curriculum-unit { min-height: 66px; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; }
  .curriculum-unit > b { font-size: 15px !important; }
  .curriculum-unit > em { display: none; }
  .curriculum-unit > i { font-size: 11px; }
  .detail-purchase-summary strong { font-size: 27px; }
  .sos-resolution-preview > div { grid-template-columns: 1fr; }
  .sos-resolution-preview span { border-left: 0; border-top: 1px solid #cec5b7; }
  .sos-resolution-preview span:first-child { border-top: 0; }
  .roadmap-format-grid { grid-template-columns: 1fr; }
  .roadmap-format-grid button { min-height: 108px; padding: 15px; }
  .roadmap-format-grid button b { font-size: 20px; }
  .program-stage-panel .curriculum-node-list { padding: 10px; }
  .program-schedule-card { grid-template-columns: 1fr; }
  .program-day-index { padding: 12px 15px; flex-direction: row; justify-content: flex-start; gap: 12px; }
  .program-day-index b { margin: 0; font-size: 23px; }
  .program-day-index span { margin-left: auto; }
  .program-day-main { padding: 17px 14px 13px; }
  .program-day-heading { flex-direction: column; gap: 13px; }
  .program-open-button { width: 100%; }
  .program-work-block { grid-template-columns: 1fr; }
  .program-work-block > span { min-height: 51px; border-right: 0; border-bottom: 1px solid #d0c7b8; }
  .program-work-block > span:last-child { border-bottom: 0; }
  .program-schedule-card .curriculum-node-actions { display: grid; grid-template-columns: 42px 42px 1fr 42px; }
  .program-execution-dialog .challenge-content h2 { font-size: 29px; }
}

/* Final responsive overrides kept last to protect the simplified flow. */
.sos-resolution-preview > summary { min-height: 50px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: #59635f; font-size: 13px; font-weight: 700; }
.sos-resolution-preview > summary::-webkit-details-marker { display: none; }
.sos-resolution-preview[open] > summary { border-bottom: 1px solid #cec5b7; }
.sos-resolution-preview[open] > summary b { transform: rotate(45deg); }
.sos-resolution-preview:not([open]) > div { display: none; }
@media (max-width: 800px) {
  .dashboard .explore-results-grid {
    display: flex;
    width: 100%;
    margin-right: 0;
    padding: 0 16px 8px 0;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .dashboard .explore-results-grid .explore-card-small {
    min-width: min(320px,calc(100vw - 54px));
    flex: 0 0 min(320px,calc(100vw - 54px));
    scroll-snap-align: start;
  }
  .roadmap-detail-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .roadmap-detail-dialog .roadmap-detail-close { display: none !important; }
  .roadmap-detail-trail { position: sticky; top: 0; z-index: 12; background: var(--paper); }
  .topic-template-grid,
  .training-program-grid { display: grid; grid-template-columns: 1fr; margin-right: 0; padding-right: 0; overflow: visible; }
  .topic-template-card,
  .training-program-card { width: 100%; min-width: 0; }
  .creator-stepper button div { display: grid !important; }
  .creator-stepper button b { display: block !important; font-size: 12px; white-space: nowrap; }
  .creator-stepper button small { display: none !important; }
}

/* Final composer cascade: keep the social composer lightweight after legacy dialog rules. */
dialog.community-post-dialog { width: min(640px,calc(100vw - 28px)); padding: 0; border-radius: 16px; background: #fffdf9; }
.community-post-dialog .thread-composer-main textarea { min-height: 125px; padding: 8px 0; border: 0; outline: 0; background: transparent; font-size: 16px; line-height: 1.55; }
.community-post-dialog .thread-media-field input { border-radius: 9px; }
@media (max-width: 680px) {
  dialog.community-post-dialog {
    inset: 0;
    width: 100% !important;
    min-width: 100vw;
    max-width: 100vw !important;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
}

/* Community polish: one consistent control grid and an in-product share sheet. */
.thread-actions {
  min-height: 42px;
  margin-left: -7px;
  gap: 6px;
}
.thread-actions button {
  min-width: 40px;
  width: auto;
  height: 40px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  border-radius: 20px;
  line-height: 1;
}
.thread-actions button:focus-visible,
.thread-more:focus-visible,
.thread-community-head > button:focus-visible,
.compose-icon-button:focus-visible,
.share-dialog-close:focus-visible,
.community-share-destinations button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.thread-actions svg { display: block; flex: 0 0 20px; }
.thread-actions b { min-width: 8px; line-height: 1; text-align: left; }
.thread-more {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
}
.thread-more:hover { background: #eeeae3; }
.thread-settings-menu { top: 38px; }
.thread-settings-menu button { width: 100%; }
.thread-inline-reply button { flex: 0 0 36px; }
.thread-compose-head {
  grid-template-columns: 42px minmax(0,1fr) 42px;
  column-gap: 8px;
}
.thread-compose-head b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-compose-head button:first-child,
.thread-compose-head button:last-child { justify-self: center; }
.thread-compose-head .compose-icon-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

dialog.community-share-dialog {
  width: min(650px,calc(100vw - 28px));
  max-width: 650px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: #fffdf9;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
  overflow: hidden;
}
.community-share-dialog::backdrop {
  background: rgba(7,14,16,.74);
  backdrop-filter: blur(5px);
}
.community-share-sheet { padding: 0 26px 24px; }
.community-share-sheet > header {
  min-height: 76px;
  margin: 0 -26px;
  padding: 0 22px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ded8ce;
}
.community-share-sheet > header div { min-width: 0; display: grid; gap: 3px; }
.community-share-sheet > header small {
  color: #9b742b;
  font: 600 9px var(--display);
  letter-spacing: 1.5px;
}
.community-share-sheet > header h2 { margin: 0; font-size: 22px; }
.share-dialog-close {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}
.share-dialog-close:hover { background: #eeeae3; }
.share-dialog-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.community-share-preview {
  min-height: 116px;
  margin: 22px 0 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 12px;
  border: 1px solid #d9d2c7;
  border-radius: 14px;
  background: #f7f3eb;
}
.community-share-preview > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font: 600 9px var(--display);
}
.community-share-preview > div { min-width: 0; display: grid; align-content: start; gap: 3px; }
.community-share-preview small {
  overflow: hidden;
  color: #98712c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-share-preview b { font-size: 14px; }
.community-share-preview p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: #56615d;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.community-share-destinations {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.community-share-destinations button {
  min-width: 0;
  min-height: 116px;
  padding: 13px 10px 11px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #d8d1c5;
  border-radius: 14px;
  color: var(--ink);
  background: #fffdf9;
  text-align: center;
}
.community-share-destinations button:hover {
  border-color: #a9833d;
  background: #f3ecdc;
  transform: translateY(-1px);
}
.community-share-destinations button b { font-size: 13px; }
.community-share-destinations button small { color: #7e8784; font-size: 9px; }
.share-brand {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.share-instagram { background: linear-gradient(135deg,#7b3fc6,#d74e74 58%,#d8a43d); }
.share-threads { color: white; background: #111; font-size: 23px; }
.share-facebook { background: #2664b5; font: 700 27px Arial,sans-serif; }
.share-x { background: #111; font-size: 20px; }
.share-line { background: #4a8069; font-size: 9px; letter-spacing: -.2px; }
.share-copy { color: var(--ink); background: #e9dfcb; }
.share-copy svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-share-note {
  min-height: 18px;
  margin: 15px 0 0;
  color: #7c8582;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 680px) {
  .thread-actions { gap: 3px; }
  .thread-actions button { min-width: 40px; height: 40px; padding-inline: 8px; }
  .thread-post-main > header { gap: 5px; }
  .thread-post-main > header time { font-size: 11px; }
  dialog.community-share-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 14px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .community-share-sheet { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
  .community-share-sheet > header { min-height: 68px; margin-inline: -16px; padding-inline: 18px 14px; }
  .community-share-sheet > header h2 { font-size: 19px; }
  .community-share-preview { min-height: 98px; margin-block: 16px; padding: 13px; }
  .community-share-destinations { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .community-share-destinations button { min-height: 102px; padding-inline: 5px; }
  .community-share-destinations button small { display: none; }
  .share-brand { width: 44px; height: 44px; }
}

/* Cascade guard: marketplace base rules are legacy and load later in this file. */
.is-program-marketplace .program-token-card { min-height: 555px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.is-program-marketplace .program-token-card:hover { box-shadow: none; }
.is-program-marketplace .program-token-card.selected { box-shadow: none; }
.is-program-marketplace .program-token-card h4 { margin: 15px 0 7px; font-size: 24px; }
.is-program-marketplace .program-token-card .template-primary-action { border: 0; color: #f6f0e3; background: var(--program-ink); }
.is-program-marketplace .program-token-card.selected .template-primary-action { color: var(--program-ink); background: var(--program-brass); }
@media (max-width: 680px) {
  .topic-marketplace.is-program-marketplace .program-token-card { min-height: 530px !important; overflow: visible !important; }
  .topic-marketplace.is-program-marketplace .program-token-card .marketplace-card-body > p,
  .topic-marketplace.is-program-marketplace .program-token-card .template-primary-action { display: block !important; }
}

@media (max-width: 390px) {
  .community-share-destinations { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-share-destinations button { min-height: 88px; }
}

/* Course/program marketplace: format first, then level, then a concrete teacher template. */
.marketplace-main-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; }
.marketplace-main-tabs button > span { color: #a37b30; font: 600 10px var(--display); letter-spacing: 1px; }
.marketplace-main-tabs button > em { font-style: normal; }
.topic-marketplace { padding: 38px 42px 52px; background: #eee9df; }
.topic-marketplace > header { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.topic-marketplace > header > div { max-width: 720px; }
.topic-marketplace > header small,
.marketplace-template-detail > header small { color: #997329; font: 600 11px var(--display); letter-spacing: 1.8px; }
.topic-marketplace > header h3 { margin: 7px 0; font: 600 34px var(--serif); }
.topic-marketplace > header p { margin: 0; color: #65706c; font-size: 16px; line-height: 1.6; }
.topic-marketplace > header > span { flex: 0 0 auto; color: #76613b; font-size: 14px; font-weight: 700; }
.topic-marketplace .topic-level-filters.compact-filters { width: fit-content; display: grid; grid-template-columns: repeat(3,minmax(92px,auto)); gap: 10px; overflow: visible; }
.topic-marketplace .topic-level-filters.compact-filters button,
.topic-marketplace .topic-level-filters.compact-filters button:last-child { min-height: 48px; padding: 0 20px; border: 1px solid #bdb4a5; }
.marketplace-template-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.marketplace-template-card { min-width: 0; min-height: 430px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c8bfae; background: #fffdf8; cursor: pointer; transition: transform .18s,border-color .18s,box-shadow .18s; }
.marketplace-template-card:hover { transform: translateY(-2px); border-color: #9e7a37; box-shadow: 0 12px 30px rgba(24,31,28,.08); }
.marketplace-template-card.selected { border-color: var(--ink); box-shadow: inset 0 4px var(--gold); }
.marketplace-card-visual { position: relative; min-height: 104px; padding: 19px 20px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; overflow: hidden; color: #f8f2e7; background: #17332e; }
.marketplace-card-visual::before { content: ""; position: absolute; width: 150px; height: 150px; right: -38px; bottom: -92px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; }
.marketplace-card-visual::after { content: ""; position: absolute; width: 80px; height: 80px; right: 43px; top: -45px; border: 18px solid rgba(203,162,76,.22); transform: rotate(25deg); }
.marketplace-card-variant-1 .marketplace-card-visual { background: #273c4a; }
.marketplace-card-variant-2 .marketplace-card-visual { background: #443b31; }
.marketplace-card-visual > span { grid-row: 1 / 3; align-self: center; color: #d2a94f; font: 600 39px var(--display); }
.marketplace-card-visual small { z-index: 1; font: 600 9px var(--display); letter-spacing: 1.5px; }
.marketplace-card-visual b { z-index: 1; justify-self: end; font-size: 14px; }
.marketplace-card-body { padding: 20px; display: flex; flex: 1; flex-direction: column; }
.marketplace-card-top { display: flex; justify-content: space-between; gap: 10px; color: #987329; font: 600 10px var(--display); letter-spacing: 1.1px; }
.marketplace-card-top b { padding: 3px 6px; color: #715722; background: #eee2c7; font: 700 10px sans-serif; letter-spacing: 0; }
.marketplace-template-card h4 { margin: 22px 0 8px; overflow-wrap: anywhere; font: 600 23px/1.32 var(--serif); }
.marketplace-template-card > p { min-height: 48px; margin: 0; color: #65706c; font-size: 14px; line-height: 1.6; }
.marketplace-card-meta { margin: 16px 0 0; display: flex; gap: 7px; }
.marketplace-card-meta span { padding: 5px 7px; border: 1px solid #d1c8b8; color: #68716e; font-size: 11px; }
.marketplace-rating { margin-top: auto; padding-top: 15px; display: flex; gap: 8px; align-items: center; color: #6d7773; font-size: 12px; }
.marketplace-rating > button { padding: 0; display: flex; gap: 8px; align-items: center; border: 0; color: inherit; background: transparent; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.marketplace-rating > button:hover { text-decoration-color: #a27c35; }
.marketplace-rating button span:first-child { color: #9a7126; font-weight: 700; }
.marketplace-rating b { margin-left: auto; color: #755a25; }
.marketplace-template-card .template-primary-action { width: 100%; min-height: 45px; margin-top: 13px; border: 1px solid #a07b38; color: #725725; background: transparent; font-size: 13px; font-weight: 700; }
.marketplace-template-card.selected .template-primary-action { color: var(--ink); background: var(--gold); }
.marketplace-template-detail { margin-top: 28px; scroll-margin-top: 20px; border: 1px solid #bfb5a4; background: #fffdf9; }
.marketplace-template-detail > header { padding: 27px 30px; display: flex; justify-content: space-between; gap: 30px; border-bottom: 1px solid #cec6b8; }
.marketplace-template-detail > header h3 { margin: 6px 0; font: 600 31px var(--serif); }
.marketplace-template-detail > header p { margin: 0; color: #65706c; font-size: 15px; }
.marketplace-template-detail > header > div:last-child { min-width: 145px; display: grid; align-content: center; justify-items: end; gap: 6px; }
.marketplace-template-detail > header span { color: #68726e; font-size: 13px; }
.marketplace-template-detail > header b { font-size: 18px; }
.marketplace-access-note { padding: 13px 30px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #d5ccbf; background: #eee8dc; }
.marketplace-access-note span { flex: 0 0 auto; padding: 6px 9px; color: #775a23; background: #f7eed9; font-size: 11px; font-weight: 800; }
.marketplace-access-note p { margin: 0; color: #626c68; font-size: 13px; line-height: 1.5; }
.marketplace-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; }
.marketplace-outline { padding: 24px 28px 30px; border-right: 1px solid #d0c8ba; }
.marketplace-outline details { margin-bottom: 10px; border: 1px solid #cbc3b6; background: white; }
.marketplace-outline summary { min-height: 76px; padding: 12px 17px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 20px; gap: 10px; align-items: center; cursor: pointer; list-style: none; background: #eee9df; }
.marketplace-outline summary::-webkit-details-marker { display: none; }
.marketplace-outline summary > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 600 10px var(--display); }
.marketplace-outline summary div { min-width: 0; display: grid; gap: 3px; }
.marketplace-outline summary small { color: #94702d; font-size: 10px; }
.marketplace-outline summary b { overflow-wrap: anywhere; font-size: 17px; }
.marketplace-outline summary em { color: #747d79; font-size: 12px; font-style: normal; }
.marketplace-outline summary i { color: #8b6b2d; font-style: normal; transition: transform .2s; }
.marketplace-outline details[open] summary i { transform: rotate(180deg); }
.marketplace-outline details > div > article { padding: 18px 17px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; border-top: 1px solid #ded8ce; }
.marketplace-outline article > span { color: #aa8033; font-size: 18px; }
.marketplace-outline article b { font-size: 15px; }
.marketplace-outline article p { margin: 5px 0 0; color: #67716d; font-size: 13px; line-height: 1.55; }
.marketplace-outline article time { color: #7a827f; font-size: 11px; white-space: nowrap; }
.marketplace-outline .marketplace-locked-unit { background: #fbf9f4; }
.marketplace-outline .marketplace-locked-unit > div { display: grid; gap: 5px; }
.marketplace-outline .marketplace-locked-unit small { color: #858d89; font-size: 11px; line-height: 1.45; }
.marketplace-outline .marketplace-locked-unit time { color: #8b7447; }
.marketplace-outline article ul { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid #ddd6ca; }
.marketplace-outline article li { padding: 8px 0; display: grid; grid-template-columns: 18px 1fr; color: #4e5955; font-size: 13px; border-bottom: 1px solid #e4ded4; }
.marketplace-outline article li::before { content: "✓"; color: #a17a30; font-weight: 700; }
.marketplace-outline article aside { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.marketplace-outline article aside span { padding: 10px; display: grid; gap: 4px; color: #596460; background: #f1ece3; font-size: 12px; line-height: 1.45; }
.marketplace-outline article aside small { color: #98732d; font-size: 10px; font-weight: 700; }
.marketplace-enroll { position: sticky; top: 15px; height: fit-content; padding: 28px 24px; display: grid; align-content: start; }
.marketplace-enroll > small { color: #98732d; font-size: 11px; font-weight: 700; }
.marketplace-enroll strong { margin-top: 12px; font: 600 48px var(--display); }
.marketplace-enroll > span { color: #737d79; font-size: 13px; }
.marketplace-enroll p { margin: 20px 0; color: #5e6965; font-size: 14px; line-height: 1.6; }
.marketplace-enroll a { color: #795e29; font-size: 12px; line-height: 1.5; }
.marketplace-enroll button { min-height: 52px; margin-top: 18px; border: 0; color: var(--ink); background: var(--gold); font-size: 14px; font-weight: 800; }
.marketplace-enroll .marketplace-edit-template { margin-top: 9px; border: 1px solid #9c7835; color: #705623; background: transparent; }
.marketplace-enroll .marketplace-request-coach { margin-top: 9px; border: 1px solid #18312e; color: #f8f1e4; background: #18312e; }
.marketplace-enroll .marketplace-review-jump { min-height: 38px; margin-top: 5px; color: #68716e; background: transparent; font-size: 12px; }
.course-unit-tasks { margin-top: 14px !important; }
.course-pass-standard { margin-top: 12px; padding: 11px 13px; border-left: 3px solid #cba34e; background: #f2ede3; }
.course-pass-standard small { color: #95702d; font-size: 10px; font-weight: 800; }
.course-pass-standard p { margin-top: 4px !important; }
.marketplace-reviews { scroll-margin-top: 20px; border-top: 1px solid #c9c0b2; background: #f7f3eb; }
.marketplace-reviews > header { padding: 28px 30px 20px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.marketplace-reviews > header small { color: #997329; font: 600 10px var(--display); letter-spacing: 1.6px; }
.marketplace-reviews > header h3 { margin: 5px 0 0; font: 600 26px var(--serif); }
.marketplace-review-score { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
.marketplace-review-score strong { grid-row: 1 / 3; font: 600 41px var(--display); }
.marketplace-review-score span { color: #b48835; letter-spacing: 2px; }
.marketplace-review-score small { color: #78817e; font-size: 11px; }
.marketplace-review-layout { padding: 0 30px 32px; display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 22px; }
.marketplace-review-layout > form { height: fit-content; padding: 20px; display: grid; gap: 10px; border: 1px solid #c9c0b2; background: #fffdf9; }
.marketplace-review-locked { height: fit-content; padding: 24px; display: grid; gap: 10px; border: 1px solid #c9c0b2; background: #fffdf9; }
.marketplace-review-locked > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #7b5d25; background: #f1e6cc; font-size: 24px; }
.marketplace-review-locked > small { color: #9b762e; font: 600 10px var(--display); letter-spacing: 1.2px; }
.marketplace-review-locked h4 { margin: 0; font: 600 20px var(--serif); }
.marketplace-review-locked p { margin: 0; color: #67716d; font-size: 13px; line-height: 1.65; }
.marketplace-review-locked button { min-height: 44px; margin-top: 5px; border: 1px solid #a07a32; color: #705623; background: transparent; font-weight: 800; }
.marketplace-reviews.is-readonly .marketplace-review-layout { grid-template-columns: minmax(0,1.4fr) minmax(230px,.6fr); }
.marketplace-review-readonly {
  height: fit-content;
  padding: 20px;
  display: grid;
  gap: 8px;
  border-left: 3px solid #b18a43;
  background: #eee8dc;
}
.marketplace-review-readonly span {
  color: #98712c;
  font: 600 9px var(--display);
  letter-spacing: 1.3px;
}
.marketplace-review-readonly p {
  margin: 0;
  color: #626d69;
  font-size: 12px;
  line-height: 1.65;
}
.marketplace-review-layout label { color: #46514d; font-size: 13px; font-weight: 800; }
.marketplace-star-picker { display: flex; gap: 3px; }
.marketplace-star-picker button { padding: 0 2px; border: 0; color: #c8c0b3; background: transparent; font-size: 27px; line-height: 1; transition: color .15s,transform .15s; }
.marketplace-star-picker button:hover { transform: translateY(-1px); }
.marketplace-star-picker button.active { color: #b68731; }
.marketplace-review-layout textarea { min-height: 100px; padding: 12px; resize: vertical; border: 1px solid #c7beaf; background: #fbfaf6; font: inherit; line-height: 1.55; }
.marketplace-review-layout form > div:last-child { display: grid; gap: 11px; }
.marketplace-review-layout form > div:last-child small { color: #7c8581; font-size: 11px; line-height: 1.5; }
.marketplace-review-layout form button[type="submit"] { min-height: 44px; border: 0; color: var(--ink); background: var(--gold); font-weight: 800; }
.marketplace-review-list { display: grid; align-content: start; border-top: 1px solid #cdc4b6; }
.marketplace-review-list article { padding: 17px 4px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; border-bottom: 1px solid #d7d0c5; }
.marketplace-review-list article > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 600 10px var(--display); }
.marketplace-review-list article header { display: flex; justify-content: space-between; gap: 12px; }
.marketplace-review-list article header b { font-size: 14px; }
.marketplace-review-list article header span { color: #aa7f2f; font-size: 12px; letter-spacing: 1px; }
.marketplace-review-list article header i { margin-left: 8px; color: #89918e; font-size: 10px; font-style: normal; letter-spacing: 0; }
.marketplace-review-list article p { margin: 7px 0 0; color: #59635f; font-size: 13px; line-height: 1.6; }
.learner-template-review-button { min-height: 44px; padding: 0 16px; border: 1px solid #a17a30; color: #735822; background: #fffaf0; font-size: 13px; font-weight: 800; white-space: nowrap; }
.learner-template-review-button:hover { color: var(--ink); background: var(--gold); }
.learner-course-review-destination {
  max-width: 1500px;
  margin: 42px auto 0;
  padding: 0 4.5vw 56px;
  scroll-margin-top: 18px;
}
.learner-course-review-destination .marketplace-reviews {
  border: 1px solid #c7beaf;
  background: #f7f3eb;
  box-shadow: 0 18px 50px rgba(29,36,33,.06);
}
.learner-course-review-destination .marketplace-reviews > header h3 {
  font-size: 30px;
}

@media (max-width: 900px) {
  .marketplace-template-grid { grid-template-columns: 1fr; }
  .marketplace-template-card { min-height: 0; }
  .marketplace-template-card > p { min-height: 0; }
  .marketplace-detail-layout { grid-template-columns: 1fr; }
  .marketplace-outline { border-right: 0; }
  .marketplace-enroll { position: static; border-top: 1px solid #d0c8ba; }
  .marketplace-review-layout { grid-template-columns: 1fr; }
  .marketplace-reviews.is-readonly .marketplace-review-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .marketplace-main-tabs { position: sticky; top: 48px; z-index: 11; overflow-x: auto; justify-content: flex-start; }
  .marketplace-main-tabs button { min-width: 130px; flex: 1 0 130px; font-size: 14px; }
  .topic-marketplace { padding: 27px 16px 42px; }
  .topic-marketplace > header { display: grid; gap: 11px; }
  .topic-marketplace > header h3 { font-size: 28px; }
  .topic-marketplace > header p { font-size: 15px; }
  .topic-marketplace .topic-level-filters.compact-filters { width: 100%; margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; overflow: visible; }
  .topic-marketplace .topic-level-filters.compact-filters button,
  .topic-marketplace .topic-level-filters.compact-filters button:last-child { min-width: 0; padding: 0 7px; }
  .marketplace-template-grid { gap: 10px; }
  .marketplace-template-card { padding: 18px; }
  .marketplace-template-card { padding: 0; }
  .marketplace-template-detail > header { padding: 22px 18px; display: grid; gap: 15px; }
  .marketplace-template-detail > header h3 { font-size: 27px; }
  .marketplace-template-detail > header > div:last-child { justify-items: start; }
  .marketplace-access-note { padding: 12px 18px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .marketplace-outline { padding: 15px 12px 20px; }
  .marketplace-outline summary { min-height: 70px; padding: 10px; grid-template-columns: 38px minmax(0,1fr) 17px; }
  .marketplace-outline summary em { display: none; }
  .marketplace-outline details > div > article { padding: 15px 11px; grid-template-columns: 22px minmax(0,1fr); }
  .marketplace-outline article time { grid-column: 2; }
  .marketplace-outline article aside { grid-template-columns: 1fr; }
  .marketplace-enroll { padding: 22px 18px; }
  .marketplace-reviews > header { padding: 23px 18px 17px; align-items: start; flex-direction: column; }
  .marketplace-review-layout { padding: 0 18px 25px; }
  .marketplace-review-list article header { display: grid; gap: 4px; }
  .learner-template-review-button { width: 100%; margin-top: 8px; }
  .learner-course-review-destination { margin-top: 26px; padding: 0 14px 42px; }
  .learner-course-review-destination .marketplace-reviews > header h3 { font-size: 25px; }
}

/* Keep the training-token treatment above the legacy marketplace defaults. */
.topic-marketplace.is-program-marketplace {
  background:
    linear-gradient(rgba(16, 39, 36, .035) 1px, transparent 1px),
    #e9e3d8;
  background-size: 100% 42px;
}
.topic-marketplace.is-program-marketplace > header { align-items: center; }
.topic-marketplace.is-program-marketplace > header > div { max-width: 790px; }
.topic-marketplace.is-program-marketplace > header h3 { font-size: clamp(36px, 4vw, 54px); }
.topic-marketplace.is-program-marketplace .program-token-card { min-height: 555px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.topic-marketplace.is-program-marketplace .program-token-card:hover,
.topic-marketplace.is-program-marketplace .program-token-card.selected { box-shadow: none; }
.topic-marketplace.is-program-marketplace .program-token-card h4 { margin: 15px 0 7px; font-size: 24px; }
.topic-marketplace.is-program-marketplace .program-token-card .template-primary-action { border: 0; color: #f6f0e3; background: var(--program-ink); }
.topic-marketplace.is-program-marketplace .program-token-card.selected .template-primary-action { color: var(--program-ink); background: var(--program-brass); }
.topic-marketplace.is-program-marketplace .program-template-detail > header { color: #f8f2e6; background: var(--program-ink); border-bottom-color: #705d39; }
.topic-marketplace.is-program-marketplace .program-template-detail > header small { color: #d0aa5c; }
.topic-marketplace.is-program-marketplace .program-template-detail > header p,
.topic-marketplace.is-program-marketplace .program-template-detail > header span { color: #bdc7c2; }
@media (max-width: 680px) {
  .topic-marketplace.is-program-marketplace > header { align-items: start; }
  .topic-marketplace.is-program-marketplace > header h3 { font-size: 34px; }
  .topic-marketplace.is-program-marketplace .program-token-card { min-height: 530px !important; overflow: visible !important; }
  .topic-marketplace.is-program-marketplace .program-token-card .marketplace-card-body > p,
  .topic-marketplace.is-program-marketplace .program-token-card .template-primary-action { display: block !important; }
}
