/* Scoped sizes: keep touch targets comfortable while reducing oversized controls. */
.log-dialog:has(.compact-lesson-search){width:min(820px,94vw);padding:22px}
.log-dialog:has(.compact-lesson-search)>h2{font-size:25px;margin:6px 0 10px}
.log-dialog:has(.compact-lesson-search)>p{font-size:14px;margin:0 0 18px}
.log-dialog .compact-lesson-search{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:12px;align-items:end;margin:12px 0 16px}
.log-dialog .compact-lesson-search label{font-size:13px;display:block}
.log-dialog .compact-lesson-search .input{font-size:14px;height:39px;min-height:39px;padding:8px 11px;margin-top:5px;border-radius:7px;width:100%;box-sizing:border-box}
.log-dialog .compact-lesson-search>.btn{align-self:end;height:39px;min-height:39px;padding:8px 18px;font-size:13px;background:#234d3a;color:#fff;border-radius:7px}
.log-dialog:has(.compact-lesson-search) .week-picker-row{padding:13px 0;gap:16px}
.log-dialog:has(.compact-lesson-search) .week-picker-row h3{font-family:var(--body-font)!important;font-size:16px;line-height:1.4;font-weight:600;margin:6px 0}
.log-dialog:has(.compact-lesson-search) .week-picker-row p{font-size:12px;margin:5px 0}
.log-dialog:has(.compact-lesson-search) .btn,.log-dialog:has(.compact-lesson-search) .chip-btn{font-size:12px;min-height:36px;padding:8px 12px;border-radius:7px}
.log-dialog:has(.compact-lesson-search) .ytm-status{font-size:11px;padding:4px 8px}
.reference-week .rw-editor .ws-fields{gap:12px;margin-bottom:14px}
.reference-week .rw-editor label{font-size:12px}
.reference-week .rw-editor input.input,.reference-week .rw-editor select.input{font-size:13px;min-height:36px;height:36px;padding:6px 10px;border-radius:7px}
.reference-week .rw-editor textarea.input{font-size:13px;line-height:1.45;min-height:62px;height:62px;padding:8px 10px;border-radius:7px;resize:vertical}
.reference-week .rw-editor .week-linked{padding:12px;margin:10px 0;gap:12px;border-radius:8px}
.reference-week .rw-editor .week-linked strong{font-size:14px;line-height:1.4}
.reference-week .rw-editor .week-linked .small{font-size:12px}
.reference-week .rw-editor .btn{font-size:12px;min-height:35px;padding:8px 12px}
.reference-week .rw-editor .ytm-subnav{margin:10px 0 14px}
.compact-note{padding:12px 0!important;display:flex;gap:16px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #d9dfd0}
.compact-note-text{font-size:14px;line-height:1.55;overflow-wrap:anywhere;flex:1;min-width:0}
.compact-note.v11-note-done .compact-note-text{color:#778171;text-decoration:line-through}
.compact-note-actions{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}
.compact-note-actions .btn{font-size:12px!important;min-height:33px!important;padding:7px 10px!important}
.v11-planning>.btn{margin:14px 0}.v11-planning>details{margin-top:12px}
.log-dialog:has(.compact-note-form){width:min(570px,94vw)}
.compact-note-form textarea{box-sizing:border-box;width:100%;margin-top:8px;font-size:15px;line-height:1.5;min-height:140px;padding:12px;resize:vertical}
.compact-filter-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 16px;background:#fff1c9;border:1px solid #e1cc8b;border-radius:7px;margin:0 0 14px;font-size:13px}
.rw-review:has(input:checked){background:#f9e7b3;border-color:#c9a650}
@media(max-width:650px){.log-dialog .compact-lesson-search{grid-template-columns:90px minmax(0,1fr)}.log-dialog .compact-lesson-search>.btn{grid-column:2;justify-self:end}.compact-note{flex-direction:column;gap:8px}.compact-note-actions{flex-wrap:wrap}.compact-filter-notice{align-items:flex-start;flex-direction:column}.reference-week .rw-editor input.input,.reference-week .rw-editor select.input{height:42px;min-height:42px;font-size:16px}.reference-week .rw-editor textarea.input{font-size:16px;min-height:72px}.compact-note-form textarea{font-size:16px}}
.log-dialog .compact-lesson-search label{margin:0}.log-dialog .compact-lesson-search .input{margin:5px 0 0}.log-dialog .compact-lesson-search>.btn{margin:0;height:39px;min-height:39px}
