/* Lessons stay within the existing drawing studio. */
.drawing-starts{display:flex;flex-direction:column;gap:10px;flex:none;max-width:100%}
.lesson-start-button{display:flex;align-items:center;gap:13px;min-height:64px;padding:12px 18px;border:1px solid #8b7f96;border-radius:17px;background:#ece7f7;color:var(--purple-dark);font:inherit;font-size:15px;font-weight:700;text-align:left;cursor:pointer}
.lesson-start-button>span:first-child{font-size:28px}
.lesson-start-button>span:last-child{margin-left:auto}
.lesson-start-button small{display:block;font-size:12px;font-weight:500;margin-top:4px;color:var(--muted)}
.lesson-start-button:hover{background:#e2d9f4}
.lessons-dialog{width:min(740px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.lessons-dialog>.dialog-heading{position:sticky;top:-20px;background:var(--paper);z-index:1;padding:9px 0}
.lesson-collection{margin-top:22px}
.lesson-collection h3{font-size:15px;color:var(--ink);margin:0 0 10px}
.lesson-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.lesson-card{display:flex;flex-direction:column;align-items:center;min-width:48px;min-height:48px;padding:0 0 13px;overflow:hidden;border:1px solid #8b7f96;border-radius:15px;background:#fff;color:var(--ink);font:inherit;cursor:pointer}
.lesson-card:hover{border-color:var(--purple-dark);box-shadow:inset 0 0 0 2px var(--purple-dark)}
.lesson-card canvas{display:block;width:100%;aspect-ratio:800/540}
.lesson-card strong{font-size:15px;line-height:1.5}
.lesson-card>span{font-size:12px;color:var(--muted);margin-top:3px}
.lesson-choose-button{width:100%;margin-bottom:12px;min-height:48px}
.lesson-reference-group{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.lesson-reference-group h3{font-size:14px;margin:0 0 8px;color:var(--ink)}
.lesson-reference-group canvas{display:block;width:100%;aspect-ratio:800/540;border:1px solid #8b7f96;border-radius:12px;background:#fff}
.lesson-reference-group p{font-size:13px;line-height:1.5;color:var(--ink)}
.lesson-reference-group button{font-size:12px;width:100%;min-height:48px}
.lesson-strip{display:flex;align-items:center;gap:8px;margin:0 0 8px;min-height:58px;padding:4px 8px;border:1px solid #a89ac0;border-radius:12px;background:#faf8fd}
.lesson-strip canvas{display:block;width:74px;height:50px;object-fit:contain;border:1px solid #c3b8d1;border-radius:6px;background:#fff}
.lesson-position{margin-right:auto;color:var(--purple-dark);font-size:13px;white-space:nowrap}
.lesson-step-dots{display:flex;gap:4px;margin-top:7px}
.lesson-step-dot{display:block;width:6px;height:6px;border:1px solid #786c8a;border-radius:50%}
.lesson-step-dot.is-current{background:var(--purple-dark);border-color:var(--purple-dark)}
.lesson-strip .icon-button{flex:none;width:48px;height:48px;min-width:48px;min-height:48px}
@media(max-width:700px){.drawing-starts{width:100%}.drawing-starts .free-draw-card{width:100%}.lesson-start-button{width:100%}}
@media(max-width:359px){.lesson-strip{gap:5px;padding:4px}.lesson-strip canvas{width:60px;height:42px}.lesson-position{font-size:12px}.lesson-step-dots{gap:3px}}
@media(max-width:800px),(max-width:1100px) and (max-height:520px){
  .is-compact-editor{--lesson-extra-height:0px}
  .is-compact-editor:has(.lesson-strip:not([hidden])){--lesson-extra-height:68px}
  .is-compact-editor .paper-surface{width:min(100%,calc((100svh - 254px - var(--compact-extra-height) - var(--lesson-extra-height))*1.48148))}
}
@media(max-width:1100px) and (max-height:520px) and (orientation:landscape){
  .is-compact-editor .paper-surface{width:min(100%,calc((100svh - 146px - var(--compact-extra-height) - var(--lesson-extra-height))*1.48148))}
  .lesson-strip{min-height:54px;margin-bottom:5px;padding:2px 5px}
  .lesson-strip canvas{width:64px;height:44px}
}
