.study-intro{max-width:720px;font-size:1.08rem;line-height:1.7;margin-bottom:30px}
.study-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.study-card{border:1px solid #d8ccba;background:#fffdf7;padding:28px;display:flex;flex-direction:column;align-items:flex-start}
.study-card h2{font-size:1.8rem;margin:20px 0 12px}.study-card .section-caption{width:100%}
.study-card p{line-height:1.65}.study-card .button{margin-top:auto}.study-card progress{width:100%;height:8px;accent-color:#647452;margin:14px 0 0}
.study-foot{font-size:.85rem;line-height:1.6;max-width:760px;margin:28px 0;color:#665d51}
.study-lessons{list-style:none;padding:0;margin:28px 0}.study-lessons li{display:flex;align-items:center;gap:22px;padding:24px 0;border-bottom:1px solid #d8ccba}.study-lessons li>div{flex:1}.study-lessons h2{margin:0;font-size:1.4rem}.study-lessons p{margin:8px 0 0}.study-number{font-size:1.6rem;color:#807462}
.study-notes p{line-height:1.7}.study-notes h3{margin-top:24px}.study-notes details{margin-top:26px}.study-hint{border-left:3px solid #7c8a60;padding-left:16px}.study-notes summary{cursor:pointer}
@media(max-width:700px){.study-grid{grid-template-columns:1fr}.study-card{padding:22px}.study-lessons li{flex-wrap:wrap;gap:12px}.study-lessons li>div{min-width:65%}.study-lessons .button{margin-left:40px}.study-card h2{font-size:1.6rem}}
/* Teaching text remains visible on small screens, unlike compact practice notes. */
.study-notes>h2+p{display:block}
.study-next{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 28px;background:#e7eadf;border:1px solid #c4cbb5;margin-bottom:20px}.study-next h2{font-size:1.7rem;margin:12px 0}.study-next p{line-height:1.65}.study-next .button{flex-shrink:0}.study-filters{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 20px}.study-filters [aria-pressed=true]{background:#4f513c;color:#fff}.study-rhythm{max-width:760px;line-height:1.7}.study-rhythm summary{cursor:pointer}.study-rhythm p{margin:12px 0}.study-method{border-left:3px solid #7c8a60;padding:14px 20px;margin-top:24px;max-width:760px;background:#eeeee3}.study-method h2{font-size:1.3rem;margin-bottom:12px}.study-method p{line-height:1.7}.study-reflection{padding:0 16px 12px;background:#e7eadf;border-left:3px solid #7c8a60;margin:18px 0}.study-reflection h3{padding-top:14px}
@media(max-width:700px){.study-next{display:block;padding:22px}.study-next .button{margin-top:18px}.study-next h2{font-size:1.5rem}}
.study-reading{padding:20px 24px;background:#f5f2e9;border:1px solid #d8ccba;margin:24px 0;max-width:850px}.study-reading p,.study-sources p{margin:12px 0;line-height:1.65}.study-reading summary,.study-setup summary{cursor:pointer}.study-entry{font-family:ui-monospace,Consolas,monospace;font-size:.85rem;line-height:1.8;overflow-wrap:anywhere}.study-setup{margin:18px 0}.study-caution{border-left:3px solid #b69b72;padding-left:15px;margin:18px 0}.study-notes .study-answer{margin-top:12px}.study-answer p{margin-top:12px}.study-answer summary{font-size:.82rem}

.study-level-picker{margin:20px 0;padding:18px;border:1px solid var(--line,#c9bda6);background:var(--paper,#f5f0e6)}
.study-level-picker label{display:block;font-weight:600;margin-bottom:10px}
.study-level-picker select{width:100%;max-width:420px;padding:10px;font:inherit;color:inherit;background:transparent;border:1px solid var(--line,#c9bda6)}
.study-level-picker p:last-child{margin-bottom:0}
.study-level-label{font-size:.85rem;font-weight:600;color:var(--ink,#423e30)}
.study-prerequisites{margin:12px 0}
.study-review-panel{margin:20px 0;padding:18px;background:#e9ecdf;border:1px solid #c8ceb8}
.study-review-panel h2{margin-top:0}
.study-review-item{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid #c8ceb8;padding:12px 0}
.study-review-item p{margin:6px 0}
.study-review-notice{padding:12px;background:#e9ecdf}
@media(max-width:600px){.study-review-item{align-items:flex-start;flex-direction:column}}

.study-reply-red .square.last{background:#e9a0a0!important;box-shadow:inset 0 0 0 3px #a82e3a}.study-reply-red .board{outline:3px solid #b84752;outline-offset:2px}
