/* Learning Center (dashboard "Learn" tab). Builds on store.css (.store-edition, .sg-btn, .sd-empty). */
.lc-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0 0}
.lc-bar .store-edition{margin:0}
.lc-progress{margin:0;font-size:15px;color:var(--muted)}
.lc-progress b{color:var(--espresso)}
.lc-upsell{margin:18px 0 0;padding:14px 18px;border-radius:12px;background:#f7ede0;border:1px solid var(--line);font-size:15px;line-height:1.55;color:var(--brown)}
.lc-upsell b{color:var(--espresso)}.lc-upsell a{color:var(--terracotta-dark);font-weight:800}
.lc-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0 0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.lc-tabs button{min-height:44px;padding:0 20px;border:1px solid var(--line);border-radius:999px;background:#fffdf8;color:var(--brown);font:800 14px var(--sans);cursor:pointer}
.lc-tabs button.active{background:var(--terracotta);border-color:var(--terracotta-dark);color:#fff}
.lc-intro{margin:16px 0 22px;font-size:16px;line-height:1.6;color:var(--brown)}

/* Modules */
.lc-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.lc-module{padding:24px 26px;border:1px solid var(--line);border-radius:18px;background:#fffdf8;box-shadow:0 14px 40px rgba(65,39,25,.04)}
.lc-module header{display:flex;gap:14px;align-items:flex-start;margin-bottom:12px}
.lc-code{flex:0 0 auto;min-width:44px;padding:6px 10px;border-radius:10px;background:var(--espresso);color:#fff8ef;font:800 13px var(--sans);text-align:center}
.lc-module h4{margin:2px 0 0;font:700 22px/1.2 var(--serif);color:var(--espresso)}
.lc-module header small{display:block;margin-top:4px;font:800 11px var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--terracotta-dark)}
.lc-module ol{margin:0;padding:0;list-style:none}
.lc-lesson{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:12px 4px;border:0;border-top:1px solid #efe3d3;background:none;text-align:left;cursor:pointer;color:var(--espresso);font:600 15px/1.4 var(--sans)}
.lc-lesson:hover:not(:disabled) .lc-ltitle{color:var(--terracotta-dark)}
.lc-lesson:disabled{cursor:default;color:var(--muted)}
.lc-num{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f3e9dc;font:800 12px var(--sans);color:var(--brown)}
.lc-num svg,.lc-status svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lc-lesson.done .lc-num{background:var(--espresso);color:#fff8ef}
.lc-status{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font:800 12px var(--sans);white-space:nowrap}
.lc-lesson.open .lc-status{background:var(--terracotta);color:#fff}
.lc-lesson.done .lc-status{background:#efe3d3;color:var(--espresso)}
.lc-lesson.locked .lc-status{background:#f3e9dc;color:var(--brown)}
.lc-lesson.soon .lc-status{color:var(--muted)}

/* Lesson */
.lc-lessonview{max-width:820px}
.lc-back{padding:0;border:0;background:none;color:var(--terracotta-dark);font:800 14px var(--sans);cursor:pointer}
.lc-meta{margin:20px 0 6px;font:800 12px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--terracotta-dark)}
.lc-title{margin:0 0 8px;font:700 40px/1.12 var(--serif);color:var(--espresso)}
.lc-sec{margin-top:22px;padding:26px 30px;border:1px solid var(--line);border-radius:18px;background:#fffdf8}
.lc-sec p,.lc-sec li{font-size:16px;line-height:1.7;color:var(--brown)}
.lc-sec p{margin:0 0 12px}.lc-sec p:last-child{margin-bottom:0}
.lc-sec b{color:var(--espresso)}
.lc-step{display:flex;align-items:center;gap:12px;margin:0 0 14px!important;font:700 24px var(--serif)!important;color:var(--espresso)!important}
.lc-step span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--terracotta);color:#fff;font:800 14px var(--sans)}
.lc-steps{display:grid;gap:10px;margin:0;padding-left:22px}
.lc-steps li::marker{font-weight:800;color:var(--terracotta-dark)}
.lc-prompt{margin:0 0 14px;padding:16px 20px;border-left:4px solid var(--terracotta);border-radius:0 12px 12px 0;background:#f7ede0;font-size:16px;line-height:1.65;color:var(--espresso)}
.lc-block{margin-top:10px;padding:14px 18px;border:1px solid #efe3d3;border-radius:12px;background:#fff}
.lc-block small{display:block;margin-bottom:4px;font:800 12px var(--sans);letter-spacing:.04em;color:var(--muted)}
.lc-block.good{border-color:#d9b79f;background:#fbf3ea}.lc-block.good small{color:var(--terracotta-dark)}
.lc-block.bad{border-style:dashed;background:#fdfaf6}.lc-block.bad small{color:#a3352a}
.lc-traps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lc-traps div{padding:16px 18px;border-radius:12px;background:#f7ede0}
.lc-traps p{margin-top:6px;font-size:15px!important}

/* Drill */
.lc-q{margin:0 0 18px;padding:0;border:0}
.lc-q legend{padding:0;margin-bottom:10px;font-size:16px;line-height:1.55;color:var(--espresso)}
.lc-qctx{display:block;margin-bottom:6px;font-size:15px;color:var(--muted)}
.lc-opt{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:12px;margin:0 0 8px!important;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;font:500 15px/1.5 var(--sans)!important;color:var(--brown);cursor:pointer}
.lc-opt input{flex:0 0 18px;width:18px!important;min-height:0!important;height:18px!important;margin:3px 0 0!important;padding:0!important;accent-color:var(--terracotta)}
.lc-opt span{flex:1}
.lc-opt.right{border-color:var(--espresso);background:#f3e9dc;color:var(--espresso)}
.lc-opt.wrong{border-color:#a3352a;background:#fbefec}
.lc-why{margin:8px 0 0!important;padding:12px 16px;border-radius:10px;background:#f7ede0;font-size:15px!important}
.lc-drill-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.lc-score{margin:0!important;font-weight:700;color:var(--espresso)!important}
.lc-summary{margin-top:22px;padding:22px 26px;border-radius:16px;background:var(--espresso);color:#fff8ef}
.lc-summary small{font:800 11px var(--sans);letter-spacing:.14em;color:#e6c3a8}
.lc-summary p{margin:6px 0 0;font:700 21px/1.4 var(--serif)}
.lc-next{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0 10px}
.lc-deeper{cursor:pointer}
.lc-nextlesson{margin-left:auto}
.lc-locked{margin-top:22px;padding:40px 32px;border:1px solid var(--line);border-radius:18px;background:#fffdf8;text-align:center}
.lc-locked svg{width:40px;height:40px;fill:none;stroke:var(--terracotta-dark);stroke-width:1.6}
.lc-locked h3{margin:12px 0 8px;font:700 30px var(--serif);color:var(--espresso)}
.lc-locked p{max-width:520px;margin:0 auto 20px;color:var(--brown);line-height:1.6}

@media (max-width:900px){
  .lc-modules,.lc-traps{grid-template-columns:1fr}
  .lc-sec{padding:22px 20px}
  .lc-title{font-size:32px}
  .lc-nextlesson{margin-left:0}
}
@media (max-width:600px){
  .workspace-dialog .app-sidebar nav{grid-template-columns:repeat(6,1fr)!important}
  .lc-tabs{flex-wrap:nowrap;overflow-x:auto}
  .lc-tabs button{flex:0 0 auto}
}
