.tutor-records{max-width:1100px}.tutor-records .ui-field{max-width:420px;margin-bottom:var(--section-gap)}.tutor-records .ui-section{margin-top:var(--section-gap)}.tutor-records h2,.tutor-records h3{overflow-wrap:anywhere}.tutor-records h4{margin:20px 0 8px}.tutor-records .ui-card{min-width:0}.tutor-records .button{word-break:keep-all;white-space:nowrap}.tutor-status{min-height:24px}.tutor-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.tutor-source{font-size:12px;color:var(--muted,#777);overflow-wrap:anywhere}.tutor-bar{display:flex;gap:3px;min-height:26px;margin:16px 0;flex-wrap:wrap}.tutor-bar span{min-width:42px;text-align:center;padding:3px 6px;border-radius:4px;font-size:12px}.tutor-correct{background:#d9ecdf;color:#245e36}.tutor-partial{background:#fff0c7;color:#765c15}.tutor-wrong{background:#f6dcdc;color:#8b3030}.tutor-pass{background:#ececec;color:#555}.tutor-table-wrap{overflow-x:auto}.tutor-records table{width:100%;border-collapse:collapse;font-size:13px}.tutor-records th,.tutor-records td{text-align:left;padding:12px 8px;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.tutor-report{line-height:1.8;overflow-wrap:anywhere}.tutor-report table{display:block;overflow-x:auto}.tutor-bar span{white-space:nowrap}.tutor-records th,.tutor-records td{border-bottom-color:var(--line,#ddd)}
/* Claude Tutor tabs: 과외 점검 and Memory Drill are separate functions. */
.tutor-tabs{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-5);margin:var(--space-3) 0 0;border-bottom:1px solid var(--line,#ddd)}
.tutor-tabs a{display:inline-flex;align-items:center;min-height:var(--control-height-md,44px);margin-bottom:-1px;padding:0 var(--space-1);border-bottom:2px solid transparent;color:var(--muted,#777);font-size:14px;font-weight:600;text-decoration:none;word-break:keep-all;white-space:nowrap}
.tutor-tabs a[aria-current=page]{color:var(--control-accent,#79283d);border-bottom-color:var(--control-accent,#79283d)}
.tutor-tab-purpose{margin:var(--space-3) 0 var(--section-gap);font-size:13px;line-height:1.6;color:var(--muted,#777);overflow-wrap:anywhere}
.tutor-empty{color:var(--muted,#777)}
/* 다시 볼 목록: priority → subtopic → question; check box in the same column. */
.tutor-review-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line,#ddd)}
.tutor-review-row{border-bottom:1px solid var(--line,#ddd)}
.tutor-review-row>label{display:grid;grid-template-columns:24px minmax(0,1fr);gap:var(--space-3);align-items:start;padding:var(--space-3) 0;cursor:pointer}
.tutor-review-row input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--control-accent,#79283d)}
.tutor-review-body{display:grid;gap:var(--space-1);min-width:0}
.tutor-review-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-2);min-width:0}
.tutor-review-priority{flex:none;padding:0 6px;border:1px solid var(--line,#ddd);border-radius:999px;font-size:11px;font-weight:600;line-height:18px;color:var(--muted,#777);word-break:keep-all;white-space:nowrap}
.tutor-review-row[data-priority="1"] .tutor-review-priority{border-color:var(--control-accent,#79283d);color:var(--control-accent,#79283d)}
.tutor-review-topic{font-size:14px;min-width:0;overflow-wrap:anywhere}
.tutor-review-question{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.tutor-review-source{font-size:12px;color:var(--muted,#777);overflow-wrap:anywhere}
.tutor-review-row input:checked~.tutor-review-body{color:var(--muted,#777)}
/* 한 줄로 저장된 항목을 표시용으로 나눔: 헤드라인 → 풀이 보기(접힘) → 근거. */
.tutor-review-row>label+.tutor-review-more{margin-top:calc(-1 * var(--space-2))}
.tutor-review-question{font-weight:550;max-width:80ch}
.tutor-review-more{display:grid;gap:var(--space-2);min-width:0;padding:0 0 var(--space-3) calc(24px + var(--space-3))}
.tutor-review-detail>summary{width:fit-content;cursor:pointer;font-size:13px;font-weight:600;color:var(--control-accent,#79283d)}
.tutor-review-detail dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--space-2) var(--space-4);max-width:88ch;margin:var(--space-2) 0 0;font-size:14px;line-height:1.7}
.tutor-review-detail dt{font-size:13px;font-weight:600;color:var(--muted,#777);word-break:keep-all;white-space:nowrap}
.tutor-review-detail dd{margin:0;overflow-wrap:anywhere}
.tutor-review-steps{display:grid;gap:var(--space-2);max-width:80ch;margin-top:var(--space-2);padding-left:var(--space-3);border-left:2px solid var(--line,#ddd);font-size:14px;line-height:1.7}
.tutor-review-steps p{margin:0;overflow-wrap:anywhere}
.tutor-review-row:has(input:checked) .tutor-review-more{color:var(--muted,#777)}
@media(max-width:640px){.tutor-review-detail dl{grid-template-columns:minmax(0,1fr);gap:var(--space-1)}.tutor-review-detail dd+dt{margin-top:var(--space-2)}}
.tutor-review-resolved{margin-top:var(--space-4)}
.tutor-review-resolved>summary{cursor:pointer;font-size:13px;color:var(--muted,#777)}
/* One-column history and items instead of cards inside sections. */
.tutor-history{margin:0;padding:0;list-style:none;border-top:1px solid var(--line,#ddd)}
.tutor-history li{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);padding:var(--space-3) 0;border-bottom:1px solid var(--line,#ddd)}
.tutor-history a{min-width:0;overflow-wrap:anywhere}
.tutor-history-state{font-size:12px;color:var(--muted,#777)}
.tutor-history .button{margin-left:auto}
.tutor-items{border-top:1px solid var(--line,#ddd)}
.tutor-item{padding:var(--space-5) 0;border-bottom:1px solid var(--line,#ddd);min-width:0}
.tutor-item>h3{margin:0}
.tutor-verdict{margin:var(--space-2) 0 0;font-size:13px;font-weight:600}
.tutor-verdict-correct{color:#245e36}.tutor-verdict-partial{color:#765c15}.tutor-verdict-wrong,.tutor-verdict-unknown{color:#8b3030}.tutor-verdict-pass{color:#555}
/* Memory Drill tab (read-only list). */
.tutor-drill-guide p{max-width:72ch;line-height:1.7;overflow-wrap:anywhere}
.tutor-drill-note{font-size:13px;color:var(--muted,#777)}
.tutor-drill-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line,#ddd)}
.tutor-drill-row{display:grid;gap:var(--space-1);padding:var(--space-4) 0;border-bottom:1px solid var(--line,#ddd);min-width:0}
.tutor-drill-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-1) var(--space-3)}
.tutor-drill-topic{font-size:15px;min-width:0;overflow-wrap:anywhere}
.tutor-drill-state{font-size:12px;color:var(--muted,#777);word-break:keep-all}
.tutor-drill-state[data-state=complete]{color:var(--control-success,#35654f)}
.tutor-drill-meta{font-size:12px;color:var(--muted,#777);overflow-wrap:anywhere}
.tutor-drill-part{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.tutor-drill-part>span{font-weight:600;margin-right:var(--space-2);word-break:keep-all}
.tutor-drill-part.is-done>span{color:var(--control-success,#35654f)}
.tutor-drill-open{justify-self:start;font-size:13px}
.tutor-drill-part.is-next>span{color:var(--control-accent,#79283d)}
.tutor-drill-weakness{font-size:12px;color:var(--muted,#777)}
.tutor-conversations>.tutor-drill-note{margin:var(--space-2) 0 var(--section-heading-gap);line-height:1.7}
.tutor-conversation-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.tutor-conversation{padding:var(--space-5) 0;border-bottom:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.tutor-conversation>h3{margin:0;font-size:16px;line-height:1.5;font-weight:650;word-break:keep-all;overflow-wrap:anywhere}
.tutor-conversation>time{display:block;margin-top:var(--space-1);font-size:12px;color:var(--muted)}
.tutor-conversation-sources{list-style:none;padding:0;margin:var(--space-2) 0 var(--space-4);font-size:12px;line-height:1.7;color:var(--muted)}
.tutor-conversation-sources a{text-decoration:underline;text-underline-offset:3px}
.tutor-records .tutor-conversation-part h4{margin:var(--space-3) 0 var(--space-1);font-size:13px;font-weight:600}
.tutor-conversation-part ul{margin:0;padding-left:20px;font-size:14px;line-height:1.7}
.tutor-conversation>.tutor-drill-part{margin-top:var(--space-3)}
.tutor-conversations>[data-tutor-conversations-more]{margin-top:var(--section-heading-gap)}
/* Shared page title (.heading) followed directly by the two function tabs. */
.tutor-records>.heading{margin-bottom:0}
.tutor-records>.heading+.tutor-tabs{margin-top:var(--space-4)}
/* 계획 · 이해 · 확인: one small outlined label per mode, coloured only by tab group. */
.tutor-mode{display:inline-flex;align-items:center;flex:none;padding:0 7px;border:1px solid currentColor;border-radius:999px;font-size:11px;font-weight:600;line-height:18px;word-break:keep-all;white-space:nowrap}
.tutor-mode[data-group=plan]{color:#4a5d80}
.tutor-mode[data-group=understand]{color:#79601d}
.tutor-mode[data-group=check]{color:var(--control-accent,#79283d)}
.tutor-mode-chips{display:flex;flex-wrap:wrap;gap:var(--space-1);margin:var(--space-3) 0 0}
.tutor-history li>a{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);text-decoration:none;color:inherit}
.tutor-history li>a>time{font-size:14px;font-variant-numeric:tabular-nums;text-decoration:underline;text-underline-offset:3px}
.tutor-history-metric{font-size:13px;color:var(--muted,#777);word-break:keep-all}
.tutor-plan-meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);margin:0 0 var(--space-3);font-size:13px;color:var(--muted,#777)}
.tutor-cross-link{margin:0;font-size:13px;line-height:1.7;color:var(--muted,#777);overflow-wrap:anywhere}
.tutor-cross-link a{text-decoration:underline;text-underline-offset:3px}
/* Saved reports (계획표 · 우선순위·예습 지도 · 설명 요지 · 최종 리포트): the same
   Markdown reads as a short document. ## = 큰 구획, > = 여기까지 정리, 표는 가로 스크롤. */
.tutor-report{padding:var(--space-5) 28px}
.tutor-report .study-rich-text>*+*{margin-top:var(--space-3)}
.tutor-report .study-rich-text>h2{margin-top:28px;padding-top:var(--space-4);border-top:1px solid var(--line);font-size:17px;font-weight:650;line-height:1.5;letter-spacing:-.3px;word-break:keep-all;overflow-wrap:anywhere}
.tutor-report .study-rich-text>h2:first-child{margin-top:0;padding-top:0;border-top:0}
.tutor-report .study-rich-text>h3{margin-top:var(--space-5);font-size:15px;font-weight:650;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.tutor-report .study-rich-text>h4{margin-top:var(--space-4);font-size:14px;font-weight:600}
.tutor-report p,.tutor-report li,.tutor-report blockquote{max-width:72ch}
.tutor-report ul,.tutor-report ol{margin-bottom:0;padding-left:22px}
.tutor-report li+li{margin-top:var(--space-1)}
.tutor-report blockquote{margin-left:0;margin-right:0;padding:var(--space-3) var(--space-4);border-left:3px solid var(--accent,#79283d);border-radius:0 6px 6px 0;background:var(--tint,#f8edf0)}
.tutor-report blockquote>.study-rich-text>*+*,.tutor-report blockquote>*+*{margin-top:var(--space-1)}
.tutor-report .study-table{overflow-x:auto}
.tutor-report table{display:table;width:100%;min-width:480px;font-size:13px;line-height:1.6}
.tutor-report th,.tutor-report td{padding:10px 12px;vertical-align:top}
.tutor-report th{background:#f7f8f9;font-weight:600;word-break:keep-all}
.tutor-report hr{margin:var(--space-5) 0;border:0;border-top:1px solid var(--line)}
.tutor-report code{padding:1px 5px;border-radius:4px;background:#f1f2f4;font-size:.92em}
@media(max-width:640px){.tutor-report{padding:var(--space-4) var(--space-3)}.tutor-report .study-rich-text>h2{font-size:16px}}
@media(max-width:640px){.tutor-records .ui-card-grid{grid-template-columns:minmax(0,1fr)}.tutor-records td,.tutor-records th{padding:10px 5px}.tutor-records select{max-width:100%;min-width:0}.tutor-records .ui-section-heading{flex-wrap:wrap}.tutor-history .button{margin-left:0}}
