.exercise-page { background:var(--flag-stone-50,#faf9f4); color:var(--ux-ink,#252b30); margin:0; }
.exercise-main { max-width:1250px; margin:auto; padding:calc(var(--practice-header-height,80px) + 26px) 24px 90px; }
.exercise-main h1 { font:600 28px/1.25 "Space Grotesk",sans-serif; margin:0 0 10px; overflow-wrap:anywhere; }
.exercise-context,.exercise-note,.exercise-save-status,.exercise-source-status { font:13px/1.55 "Space Grotesk",sans-serif; color:var(--ux-muted,#596771); }
.exercise-note { padding:15px 18px; border:1px solid #e8d69c; background:#fffae9; border-radius:12px; margin:20px 0; }
.exercise-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; margin-top:24px; align-items:start; }
.exercise-main .practice-panel { overflow:visible; }
.exercise-main .exercise-source-panel { position:sticky; top:calc(var(--practice-header-height,80px) + 16px); max-height:calc(100dvh - var(--practice-header-height,80px) - 40px); overflow:auto; }
.exercise-main .practice-reading,.exercise-preserve-lines { white-space:pre-wrap; }
.exercise-main .practice-question { margin-bottom:22px; }
.exercise-options { display:grid; gap:8px; margin-top:12px; }
.exercise-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:24px 0; }
.exercise-source-status { margin:12px 0; }
.exercise-main .practice-editor { min-height:350px; width:100%; resize:vertical; }
.exercise-save-status { position:fixed; bottom:14px; right:20px; padding:10px 15px; border-radius:8px; background:#fff; border:1px solid #d8e2da; z-index:30; }
.exercise-save-status:empty { display:none; }
.exercise-solution { margin:12px 0; padding:10px; background:#f3f5f6; border-radius:8px; font:13px/1.5 "Space Grotesk",sans-serif; }
.exercise-name-details { font:12px/1.5 "Space Grotesk",sans-serif; color:var(--ux-muted,#596771); margin:12px 0 20px; }
.exercise-name-details summary { cursor:pointer; }
.exercise-name-subtitle { font:500 18px/1.4 "Space Grotesk",sans-serif; margin:0 0 10px; overflow-wrap:anywhere; }
.exercise-library-section { margin-top:28px; }
.exercise-library-section h3 { font:500 17px/1.4 "Space Grotesk",sans-serif; margin:12px 0; }
.exercise-library-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; }
.exercise-library-tab { min-width:0; white-space:normal; }
.exercise-library-tab[aria-selected="true"] { background:var(--flag-gold-soft,#fff4d2); border-color:var(--flag-gold-dark,#bd8700); box-shadow:inset 0 0 0 1px var(--flag-gold-dark,#bd8700); }
.exercise-library-tab:focus-visible { outline:3px solid var(--flag-green,#1b7f3b); outline-offset:3px; }
.home-page .exercise-library-card { gap:12px; }
.home-page .exercise-library-card .theme-card-subtitle { text-transform:none; letter-spacing:0; font-size:13px; }
.home-page .exercise-library-card .theme-card-cta { margin-left:auto; }
.exercise-card-context { margin:0; color:var(--ux-muted,#596771); font:13px/1.5 "Space Grotesk",sans-serif; overflow-wrap:anywhere; }
.home-page .exercise-library-card .exercise-name-details { margin:0; font-size:12px; }
.exercise-library-card .exercise-name-details p { margin:8px 0; }
.home-page .exercise-library-card .exercise-review-pending { background:#fff4d2; color:#795800; }
.exercise-source-details a { color:var(--ux-green,#176b45); text-decoration:underline; }
.home-page .home-context-toggle { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:10px 12px; border:1px solid var(--ux-line,#ddd7c9); border-radius:12px; background:white; color:var(--ux-ink,#252b30); font:500 12px/1.4 "Space Grotesk",sans-serif; cursor:pointer; }
.home-context-toggle[aria-expanded="true"] span { transform:rotate(180deg); }
.home-context-toggle:focus-visible { outline:3px solid var(--flag-green,#1b7f3b); outline-offset:2px; }
.exercise-card-links { display:flex; gap:9px; flex-wrap:wrap; margin:12px 0 0; font:12px/1.5 "Space Grotesk",sans-serif; }
.exercise-card-links a { color:#31576b; text-decoration:underline; }
.home-page .theme-card-compact { min-height:160px; padding:20px; gap:16px; border-radius:18px; box-shadow:0 4px 16px rgba(52,43,25,.04); overflow:visible; }
.home-page .theme-card-compact::before { display:none; }
.home-page .theme-card-compact:hover { transform:translateY(-2px); border-color:rgba(23,107,69,.4); }
.home-page .theme-card-compact .theme-card-header { align-items:flex-start; gap:12px; }
.home-page .theme-card-compact .theme-card-title { font-size:18px; line-height:1.35; }
.home-page .theme-card-compact .theme-card-subtitle { font-size:13px; line-height:1.5; text-transform:none; letter-spacing:0; margin-top:6px; }
.home-page .theme-card-compact .theme-card-actions { flex-shrink:0; gap:6px; }
.home-page .theme-card-compact .theme-card-footer { margin-top:auto; align-items:center; }
.home-page .theme-card-compact .theme-card-meta { gap:6px; }
.home-page .theme-card-compact .theme-meta-pill { padding:0; border:0; background:none; font:12px/1.5 "Space Grotesk",sans-serif; letter-spacing:0; text-transform:none; }
.home-page .theme-card-compact .theme-card-cta { min-height:40px; padding:9px 14px; font:500 12px/1.4 "Space Grotesk",sans-serif; letter-spacing:0; text-transform:none; margin-left:auto; }
.theme-card-menu { position:relative; }
.theme-card-more { display:flex; align-items:center; justify-content:center; width:36px; min-height:32px; border-radius:8px; color:var(--ux-muted); font:600 22px/1 "Space Grotesk",sans-serif; cursor:pointer; list-style:none; }
.theme-card-more::-webkit-details-marker { display:none; }
.theme-card-more:hover,.theme-card-menu[open] .theme-card-more { background:#f3f1ea; }
.theme-card-more:focus-visible { outline:3px solid #176b45; outline-offset:2px; }
.theme-card-menu-items { position:absolute; top:calc(100% + 6px); right:0; display:flex; gap:8px; padding:10px; border:1px solid var(--ux-line); border-radius:12px; background:white; box-shadow:0 8px 24px rgba(52,43,25,.12); z-index:35; }
.home-page.version-dialog-open { overflow:hidden; }
.theme-version-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:24px; overflow:auto; border:1px solid var(--ux-line,#ddd7c9); border-radius:22px; background:#fffdf8; color:var(--ux-ink,#192b23); box-shadow:0 24px 80px rgba(0,0,0,.2); font-family:"Space Grotesk",sans-serif; }
.theme-version-dialog::backdrop { background:rgba(22,32,27,.48); backdrop-filter:blur(3px); }
.theme-version-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.theme-version-dialog h2 { margin:4px 0 0; font-size:23px; line-height:1.3; font-weight:600; overflow-wrap:anywhere; }
.theme-version-eyebrow { margin:0; color:var(--ux-muted); font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.theme-version-close { flex:0 0 40px; width:40px; height:40px; border:1px solid var(--ux-line); border-radius:12px; background:white; font-size:26px; line-height:1; color:var(--ux-muted); cursor:pointer; }
#theme-version-description { margin:12px 0 20px; color:var(--ux-muted); font-size:14px; line-height:1.5; }
.theme-version-list { display:grid; gap:10px; }
.theme-version-option { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; padding:16px; text-align:left; border:1px solid var(--ux-line); border-radius:14px; background:white; color:inherit; cursor:pointer; }
.theme-version-option:hover { border-color:#176b45; background:#f5faf6; }
.theme-version-option:focus-visible,.theme-version-close:focus-visible { outline:3px solid #176b45; outline-offset:2px; }
.theme-version-option-copy { display:grid; gap:5px; min-width:0; }
.theme-version-option-title { font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.theme-version-option-parts,.theme-version-option-progress { color:var(--ux-muted); font-size:12px; line-height:1.45; }
.theme-version-option-badges { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.theme-version-default { color:#647067; font-size:11px; }
.theme-version-option-arrow { font-size:20px; }
@media(max-width:600px) { .theme-version-dialog { padding:20px; } .theme-version-option { gap:10px; padding:14px; } .theme-version-option-badges { gap:5px; } .theme-version-default { display:none; } .home-page .theme-card-compact .theme-card-cta { min-height:44px; } .theme-card-more { width:40px; min-height:40px; } }
[hidden] { display:none!important; }
@media(max-width:600px) { .exercise-library-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .exercise-library-tab { width:100%; padding:10px 8px; } }
@media(max-width:740px) {
  .exercise-library-tabs .exercise-library-tab { min-height:44px; }
  .home-page .home-stage-bar[data-stage="themes"] .home-stage-path-current,
  .home-page .home-stage-bar[data-stage="themes"] .home-stage-path-separator:has(+ .home-stage-path-current) { display:none; }
  .home-page .home-search-card { padding:12px 14px; }
  .home-page .home-search-input { min-height:44px; }
  .home-page .exercise-library-card .theme-card-footer { flex-wrap:wrap; }
}
@media(max-width:740px) { .exercise-main { padding-left:14px; padding-right:14px; } .exercise-grid { grid-template-columns:minmax(0,1fr); } .exercise-main .practice-panel { padding:18px; } .exercise-main .exercise-source-panel { position:static; max-height:none; overflow:visible; } .exercise-main h1 { font-size:23px; } }
