@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #30322f;
  background: #fcfcfa;
  font-size: 14px;
  --muted: #90958a;
  --line: #e7e9e1;
  --green: #2d705e;
  --sidebar: #f2f3ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; border-radius: 8px; padding: 9px 13px; transition: background .15s; }
button:hover { background: #edeee7; }
button:disabled { cursor: wait; opacity: .5; }
a { color: var(--green); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; letter-spacing: -1px; font-weight: 600; line-height: 1.4; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
h3 { font-size: 15px; font-weight: 600; }
p { line-height: 1.8; }
.muted, small { color: var(--muted); }
small { font-size: 12px; line-height: 1.7; }
.app-shell { display: flex; min-height: 100dvh; }
.sidebar { background: var(--sidebar); width: 258px; position: fixed; inset: 0 auto 0 0; padding: 27px 16px 16px; display: flex; flex-direction: column; border-right: 1px solid #e7e9df; z-index: 20; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 13px; margin-bottom: 30px; }
.brand { font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -1px; color: #313a30; display: flex; align-items: center; gap: 7px; }
.brand-dot { width: 6px; height: 6px; background: #39816d; border-radius: 50%; margin-top: 10px; }
.new-project { background: #fff; border: 1px solid #dfe2d7; text-align: left; display: flex; align-items: center; gap: 11px; padding: 11px 14px; }
.new-project span { font-size: 19px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 7px 11px; margin: 13px 0 26px; }
.search-box span { font-size: 22px; color: #858d7a; }
.search-box input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 5px 0; outline: 0; font-size: 12px; }
.sidebar-label { font-size: 11px; color: #909988; padding: 0 13px; margin-bottom: 12px; }
.project-list { flex: 1; overflow: auto; }
.project-heading { display: flex; align-items: center; gap: 3px; }
.project-title { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; padding-left: 7px; font-size: 13px; }
.project-heading .icon { width: 24px; flex: none; color: #8c947f; padding: 5px; }
.project-heading.selected { background: #e7eadd; border-radius: 8px; }
.project-children { margin: 6px 0 19px 18px; border-left: 1px solid #dce1d0; padding-left: 6px; }
.project-children button { display: block; width: 100%; text-align: left; padding: 8px 12px; font-size: 12px; color: #6b7661; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-children button.active { color: var(--green); background: #e1ebdd; }
.project-children .new-lesson-link { color: #89917f; }
.sidebar-empty { padding: 8px 14px; line-height: 1.9; color: #969d8b; font-size: 12px; }
.sidebar-footer { padding: 16px 6px 0; border-top: 1px solid #e0e4d7; margin-top: 18px; }
.connection { display: flex; align-items: center; gap: 9px; width: 100%; font-size: 12px; padding-left: 8px; }
.connection span:last-child { margin-left: auto; }
.connection-dot { width: 7px; height: 7px; background: #b4bba9; border-radius: 50%; }
.connection.connected .connection-dot { background: #39816d; }
.sidebar-footer small { display: block; font-size: 10px; margin: 7px 8px 0; color: #969f88; }
.main-shell { margin-left: 258px; min-width: 0; flex: 1; }
.topbar { height: 73px; padding: 0 35px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #efefe8; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; min-width: 0; }
.breadcrumb-project { font-size: 12px; color: #7c8672; padding: 5px 0; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#breadcrumbLesson { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
#breadcrumbDivider { color: #c4caba; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.quiet { font-size: 12px; color: #74816a; }
.icon { padding: 5px 8px; font-size: 17px; }
.save-state { color: #87977a; font-size: 11px; }
.save-state.error { color: #b24e43; }
#openSidebar, .mobile-only { display: none; }
.page { max-width: 1020px; margin: auto; padding: 51px 56px 80px; }
.eyebrow { display: block; color: #909d84; font-size: 11px; margin-bottom: 17px; letter-spacing: 1px; }
.intro { max-width: 650px; margin-bottom: 36px; }
.intro p { color: #858f7b; font-size: 13px; margin-bottom: 0; }
.welcome { max-width: 760px; margin: 12vh auto 0; padding: 0 48px; }
.welcome h1 { font-size: 34px; margin-bottom: 13px; }
.welcome p { color: #858f7b; max-width: 490px; font-size: 14px; }
.welcome .primary { margin-top: 21px; }
.welcome-bottom { margin-top: 90px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 12px; color: #9aa38e; }
.primary { background: #2c6d5c; color: #fff; padding: 11px 18px; border-radius: 9px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.primary:hover { background: #235b4d; }
.secondary { border: 1px solid #dfe3d5; background: #fff; padding: 10px 15px; font-size: 12px; }
.text-button { color: var(--green); font-size: 12px; padding: 5px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-heading h1 { margin-bottom: 7px; }
.page-heading p { margin: 0; color: #909b83; font-size: 12px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 25px; margin-bottom: 28px; }
.tabs button { border-radius: 0; padding: 10px 1px 15px; color: #959f88; font-size: 13px; position: relative; }
.tabs button.active { color: #3e594c; }
.tabs button.active:after { content: ''; height: 2px; background: var(--green); position: absolute; bottom: -1px; left: 0; right: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { font-size: 14px; margin: 0; }
.empty-box { border: 1px dashed #dce2d0; border-radius: 12px; padding: 31px 25px; color: #989f8c; text-align: center; font-size: 13px; line-height: 1.8; }
.lesson-card { width: 100%; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 19px 21px; display: flex; justify-content: space-between; text-align: left; margin-bottom: 10px; gap: 18px; }
.lesson-card:hover { background: #f6f8f0; }
.lesson-card h3 { margin-bottom: 7px; font-size: 14px; }
.lesson-card p { font-size: 11px; color: #919c85; margin-bottom: 0; }
.lesson-arrow { align-self: center; color: #939f86; }
.material-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid #ecefe5; }
.file-icon { background: #f0f3e9; border: 1px solid #e1e7d5; color: #7b8c6e; font-size: 9px; width: 38px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 5px; flex: none; }
.material-info { flex: 1; min-width: 0; }
.material-info strong { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-info small { font-size: 10px; display: block; margin-top: 4px; }
.upload-panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 11px; padding: 20px; background: #fff; }
.upload-panel .row { margin-bottom: 13px; }
.upload-panel h3 { margin: 0 0 15px; }
.upload-zone { border: 1px dashed #d4deca; background: #f9fbf5; border-radius: 9px; display: block; padding: 23px; text-align: center; cursor: pointer; color: #5e7454; line-height: 1.9; font-size: 13px; }
.upload-zone:hover { background: #f0f5e8; }
.upload-zone input { display: none; }
.upload-zone small { display: block; font-size: 11px; color: #929f85; }
.status { color: #7d8c71; font-size: 12px; line-height: 1.8; margin-top: 13px; white-space: pre-wrap; }
.status.error { color: #b15144; }
.field { display: flex; flex-direction: column; gap: 9px; font-size: 12px; font-weight: 500; margin-bottom: 24px; }
.field small { font-weight: 400; }
.field input, .field textarea, .field select, .control { border: 1px solid #dfe3d5; border-radius: 8px; padding: 12px 13px; width: 100%; background: #fff; color: #323e2d; outline: none; font-weight: 400; }
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus, .field select:focus, .control:focus { border-color: #8ca87f; box-shadow: 0 0 0 3px #eaf2e3; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 23px 0 29px; }
.scope-choice { display: block; border: 1px solid #dfe3d5; padding: 18px 17px; border-radius: 10px; cursor: pointer; background: #fff; }
.scope-choice:has(input:checked) { border-color: #7e9e7a; background: #f4f8ef; box-shadow: 0 0 0 1px #7e9e7a; }
.scope-choice .row { gap: 9px; margin-bottom: 8px; }
.scope-choice input { accent-color: var(--green); margin: 0; }
.scope-choice strong { font-size: 13px; font-weight: 500; }
.scope-choice small { display: block; font-size: 11px; padding-left: 22px; }
.form-card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 27px 28px; margin-bottom: 20px; }
.form-card h2 { font-size: 16px; margin-bottom: 23px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.inline-details { border-top: 1px solid var(--line); padding-top: 18px; margin: 22px 0; }
.inline-details summary { cursor: pointer; color: #809072; font-size: 12px; margin-bottom: 18px; }
.check-list { display: grid; gap: 9px; margin: 12px 0 23px; }
.check-list label { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #718167; }
.check-list input { accent-color: var(--green); }
.file-chip { display: flex; align-items: center; gap: 8px; background: #f3f6ec; border-radius: 7px; font-size: 11px; padding: 8px 10px; margin-top: 9px; }
.file-chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-result { border-left: 3px solid #79a17b; padding-left: 20px; margin: 23px 0; }
.scope-result h2 { font-size: 18px; }
.scope-result p { font-size: 13px; color: #6d7d65; }
.source-chip { display: inline-block; padding: 5px 9px; border: 1px solid #dde6d7; border-radius: 5px; color: #6f8065; font-size: 11px; margin: 0 5px 7px 0; }
.plan-meta { font-size: 12px; color: #919b87; margin: 11px 0 27px; }
.plan-section { display: flex; gap: 17px; border-top: 1px solid var(--line); padding: 19px 0; }
.step-number { width: 25px; height: 25px; border: 1px solid #dce2d4; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #7c8d6f; font-size: 11px; flex: none; }
.plan-section h3 { margin-bottom: 7px; font-size: 14px; }
.plan-section p { font-size: 12px; color: #87927c; margin: 0; }
.plan-section small { display: block; margin-top: 7px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 322px; min-height: calc(100dvh - 73px); }
.lesson-main { min-width: 0; padding: 35px 46px 85px; max-width: 960px; width: 100%; margin: 0 auto; }
.lesson-layout.panel-closed { grid-template-columns: 1fr; }
.lesson-layout.panel-closed .ask-panel { display: none; }
.lesson-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #929b89; margin-bottom: 20px; }
.progress-track { height: 3px; background: #ebeee5; border-radius: 2px; margin-bottom: 29px; overflow: hidden; }
.progress-track div { height: 100%; background: #7ca277; }
.segment-picker { border: 1px solid #e5e9dd; border-radius: 9px; padding: 11px 13px; width: 100%; background: white; font-size: 12px; color: #6d7b61; margin-bottom: 28px; }
.lesson-main h1 { font-size: 27px; margin-bottom: 10px; }
.lesson-source { font-size: 11px; color: #909d82; margin-bottom: 30px; }
.prose { font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.prose h2 { font-size: 19px; margin-top: 30px; line-height: 1.6; }
.prose h3 { font-size: 16px; margin-top: 25px; }
.prose p { line-height: 1.95; margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose blockquote { border-left: 3px solid #c5d4bd; padding: 6px 17px; margin: 18px 0; color: #697a5e; background: #f6f8f1; }
.prose pre { background: #f2f4ed; border: 1px solid #e8ebdf; padding: 17px; border-radius: 9px; overflow: auto; font-size: 12px; }
.prose code { font-family: ui-monospace, monospace; font-size: .9em; }
.prose p code { padding: 2px 4px; background: #f0f3e9; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 12px; }
.prose th, .prose td { padding: 10px; border: 1px solid #e0e6d6; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.lesson-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.ask-panel { border-left: 1px solid var(--line); background: #fafbf7; padding: 26px 20px; position: sticky; top: 0; height: calc(100dvh - 1px); align-self: start; display: flex; flex-direction: column; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-title h2 { font-size: 14px; margin: 0; }
.panel-hint { font-size: 11px; color: #939c87; margin-bottom: 21px; }
.conversation { flex: 1; overflow: auto; min-height: 80px; padding-right: 4px; }
.conversation .turn, .conversation .turn p { font-size: 12px; }
.conversation .turn { margin-bottom: 22px; }
.user-question { background: #edf1e6; border-radius: 9px; padding: 10px 12px; margin-bottom: 13px; line-height: 1.8; }
.quote-preview { font-size: 11px; border-left: 2px solid #9aac88; padding-left: 9px; color: #7a8b67; white-space: pre-wrap; margin-bottom: 9px; max-height: 110px; overflow: auto; }
.ask-composer { border: 1px solid #dfe5d6; background: #fff; border-radius: 12px; padding: 11px; margin-top: 14px; }
.ask-composer textarea { border: 0; resize: vertical; width: 100%; min-height: 66px; max-height: 180px; font-size: 12px; line-height: 1.8; outline: none; background: transparent; }
.ask-composer .primary { padding: 7px 13px; font-size: 11px; }
.ask-composer .row { justify-content: space-between; }
.quote-action { position: fixed; background: #304b39; color: #fff; padding: 9px 14px; font-size: 12px; box-shadow: 0 4px 20px #0002; z-index: 40; }
.quiz-box, .simulation { margin-top: 30px; padding: 23px; border: 1px solid #dfe7d5; border-radius: 12px; background: #f8faf4; }
.quiz-box h2, .simulation h2 { font-size: 15px; }
.quiz-item { border-top: 1px solid #e5eadc; padding-top: 18px; margin-top: 18px; }
.quiz-item .field { font-size: 13px; line-height: 1.9; margin-bottom: 13px; }
.quiz-feedback { border-left: 2px solid #92ad80; padding-left: 14px; font-size: 12px; margin-top: 17px; }
.simulation canvas { display: block; width: 100%; height: 210px; margin: 18px 0; }
.simulation input { accent-color: var(--green); width: 100%; }
.simulation .field { margin-bottom: 14px; }
.notes-panel { overflow: auto; }
.notes-panel .note { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.notes-panel .note h3 { font-size: 12px; }
.note-actions { padding: 16px 0; }
.source-dialog { width: min(900px, 95vw); }
.source-dialog iframe { border: 0; width: 100%; height: 65vh; }
.source-dialog pre { white-space: pre-wrap; font-size: 12px; line-height: 1.9; max-height: 65vh; overflow: auto; }
.wide { width: 100%; }
.subtle-link { font-size: 11px; display: block; text-align: center; margin-top: 17px; text-decoration: none; }
dialog { border: 1px solid #e0e3d8; border-radius: 15px; padding: 27px; width: min(450px, 92vw); box-shadow: 0 25px 100px #14250d21; color: inherit; background: #fcfdf9; }
dialog::backdrop { background: #1e291d55; backdrop-filter: blur(3px); }
.dialog-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dialog-title h2 { margin: 0; font-size: 19px; }
.dialog-title .icon { font-size: 24px; color: #8d9782; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 12px 21px; border-radius: 9px; background: #303d2c; color: #fff; font-size: 12px; z-index: 100; box-shadow: 0 4px 24px #0002; max-width: 90vw; }
.toast.error { background: #8c4537; }
.busy-dot:before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.footnote { font-size: 11px; color: #9aa18f; margin-top: 20px; line-height: 1.8; }
@media (min-width: 1500px) {
  .lesson-main { padding: 42px 70px 85px; }
  .ask-panel { padding: 29px 26px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 225px; }
  .main-shell { margin-left: 225px; }
  .page { padding: 38px 35px 65px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 285px; }
  .lesson-main { padding: 30px 27px 70px; }
  .topbar { padding: 0 26px; }
  .ask-panel { padding: 24px 15px; }
  .top-actions { gap: 2px; }
}
@media (max-width: 900px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .ask-panel { position: fixed; inset: 73px 0 0 auto; height: calc(100dvh - 73px); width: 340px; z-index: 15; box-shadow: -12px 0 40px #29391d0e; }
  .lesson-main { padding: 32px; max-width: 740px; }
  .topbar { padding: 0 20px; }
  #breadcrumbLesson { max-width: 180px; }
  .page { padding: 35px 27px; }
}
@media (max-width: 700px) {
  .sidebar { width: 268px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); box-shadow: 15px 0 50px #0002; }
  .main-shell { margin-left: 0; }
  .mobile-only, #openSidebar { display: block; }
  .topbar { height: 62px; padding: 0 17px; }
  .breadcrumb { gap: 9px; }
  .breadcrumb-project { max-width: 140px; }
  #breadcrumbLesson { max-width: 100px; }
  .save-state { display: none; }
  .quiet { font-size: 11px; padding: 8px; }
  .page { padding: 32px 23px 60px; }
  .page-heading { align-items: flex-start; margin-bottom: 28px; gap: 10px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .primary { white-space: nowrap; padding: 10px 12px; font-size: 11px; }
  .intro { margin-bottom: 23px; }
  .intro h1 { font-size: 26px; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 19px; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .welcome { padding: 0 28px; margin-top: 13vh; }
  .welcome h1 { font-size: 30px; }
  .welcome-bottom { margin-top: 65px; }
  .ask-panel { inset: 62px 0 0 auto; height: calc(100dvh - 62px); width: min(365px, 100vw); }
  .lesson-main { padding: 27px 23px 65px; }
  .lesson-main h1 { font-size: 25px; }
  .lesson-layout { min-height: calc(100dvh - 62px); }
  .lesson-nav .primary { font-size: 12px; }
  .quiz-box, .simulation { padding: 19px; }
}
.chatgpt-signin { background: #111; color: #fff; min-height: 44px; padding: 12px 20px; font-weight: 600; border-radius: 9px; }
.chatgpt-signin:hover { background: #303030; }
.connection-account { padding: 15px 17px; background: #f0f4ea; border: 1px solid #dde5d4; border-radius: 10px; margin: 20px 0; }
.connection-account strong, .connection-account small { display: block; overflow-wrap: anywhere; }
.connection-account small { margin-top: 6px; }
.connection-account p { margin: 12px 0 0; font-size: 12px; color: var(--green); }
.danger-text { color: #a65347; }
.danger-button { background: #a84b40; color: #fff; padding: 11px 18px; }
.danger-button:hover { background: #913d34; }
/* Continuous learning workspace */
.route-row{width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);cursor:pointer}.route-row:hover{background:#f3f5f0}.workbench-toolbar{display:flex;gap:10px;align-items:center;padding:10px 20px;border-bottom:1px solid var(--line);height:62px}.workbench-toolbar .segment-picker{margin:0;flex:1;min-width:90px}.workbench{--pdf-width:340px;--ask-width:330px;display:grid;grid-template-columns:minmax(420px,1fr) 6px var(--pdf-width) 6px var(--ask-width);height:calc(100dvh - 135px);overflow:hidden;min-width:0}.workbench.without-pdf{grid-template-columns:minmax(420px,1fr) 6px var(--ask-width)}.workbench.without-ask{grid-template-columns:minmax(420px,1fr) 6px var(--pdf-width)}.workbench.without-pdf.without-ask{grid-template-columns:1fr}.without-pdf #pdfPane,.without-pdf #pdfResizer,.without-ask #askPanel,.without-ask #askResizer{display:none}.workbench .lesson-main{overflow:auto;scrollbar-gutter:stable;padding:30px clamp(22px,3vw,60px) 70px;max-width:none;height:100%;min-width:0;scroll-behavior:auto}.workbench .lesson-main>h1,.workbench .lesson-main>article,.workbench .lesson-main>#quiz,.workbench .lesson-nav{max-width:850px;margin-left:auto;margin-right:auto}.workbench .ask-panel{position:relative;top:auto;height:100%;width:auto;padding:20px 16px;overflow:auto;box-shadow:none;z-index:1;min-width:0}.workbench .conversation{flex:1;min-height:120px;overflow:auto}.workbench .ask-composer{flex-shrink:0}.pane-resizer{cursor:col-resize;background:#e7e9e2;touch-action:none}.pane-resizer:hover,.pane-resizer:focus{background:#a8c2b6}.pdf-pane{display:flex;flex-direction:column;height:100%;overflow:hidden;background:#eff0ec;min-width:0}.pdf-pane .panel-title{padding:12px 8px;margin:0;gap:4px}.pdf-pane select{min-width:0;width:100%;font-size:12px}.pdf-controls{display:flex;gap:8px;align-items:center;padding:0 12px}.pdf-controls input{width:65px;padding:4px}.pdf-pages{flex:1;overflow:auto;position:relative;padding:10px 6px;scrollbar-gutter:stable}.pdf-page{position:relative;margin-bottom:14px;background:white;box-shadow:0 1px 5px #0002}.pdf-page-label{display:block;padding:3px 8px;background:#f5f5f1;color:#6b7269;font-size:10px}.pdf-surface{position:relative;margin:auto;overflow:hidden}.pdf-surface canvas{display:block}.pdf-text-hint{padding:12px;font-size:12px}.textLayer{position:absolute;inset:0;overflow:clip;line-height:1;text-size-adjust:none;transform-origin:0 0;caret-color:CanvasText;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor)*var(--min-font-size));--min-font-size-inv:calc(1/var(--min-font-size))}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){--font-height:0;font-size:calc(var(--text-scale-factor)*var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}.textLayer ::selection{background:#5b9fdb66}.textLayer .markedContent{display:contents}.knowledge-block{padding:20px 0 28px;border-bottom:1px solid #e8ebe3;scroll-margin-top:20px}.knowledge-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.knowledge-label{font-size:11px;font-weight:650;letter-spacing:.02em;border-radius:5px;padding:3px 8px;background:#e7efed;color:#386b60;white-space:nowrap}.type-Definition{background:#e7eefb;color:#4a6d9e}.type-Theorem,.type-Proposition,.type-Lemma{background:#eee8f6;color:#80649b}.type-Proof,.type-Derivation{background:#fcf0df;color:#a27638}.type-Example{background:#e8f2e4;color:#60834b}.type-ExtraInsight{background:#f8f2d7;color:#96833d}.knowledge-tools{display:flex;gap:8px}.knowledge-tools button{font-size:11px}.supplement-label{color:#83927b}.prose{line-height:1.85;overflow-wrap:anywhere}.prose h2{margin-top:1.1em}.prose p{margin:1em 0}.katex-display{overflow-x:auto;overflow-y:hidden;padding:8px 2px;max-width:100%}.katex{font-size:1.08em}.math-plot{width:100%;height:auto;display:block}.math-values{font:12px/1.65 ui-monospace,monospace;white-space:pre-wrap;max-height:210px;overflow:auto}.quiz-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.quiz-options .chosen{border-color:#48816d;background:#e7f0e9}.quiz-result{color:#9a713a}.quiz-result.correct{color:#3b7d63}.notebook-course>summary{font-size:21px;font-weight:650;padding:16px 0;cursor:pointer}.notebook-chapter{margin:0 0 18px 18px}.notebook-chapter>summary{font-size:16px;cursor:pointer}.saved-note{border:1px solid #e2e7da;border-radius:12px;padding:22px;margin-top:14px;background:#fff}.note-editor{width:min(760px,94vw);max-height:90vh}.note-editor textarea{font:14px/1.6 inherit}.note-editor #noteLivePreview:not(:empty){border:1px solid var(--line);padding:18px;margin-bottom:20px}.workbench-toolbar button[aria-pressed=true]{background:#e7eee7}
@media(min-width:1100px){body:has(.workbench:not(.without-pdf):not(.without-ask)) .sidebar{width:190px}body:has(.workbench:not(.without-pdf):not(.without-ask)) .main-shell{margin-left:190px}body:has(.workbench:not(.without-pdf):not(.without-ask)) .project-heading{font-size:12px}.workbench:not(.without-pdf):not(.without-ask){grid-template-columns:minmax(380px,1fr) 6px minmax(240px,var(--pdf-width)) 6px minmax(260px,var(--ask-width));overflow-x:auto}}
@media(max-width:1099px){.workbench,.workbench.without-pdf,.workbench.without-ask{grid-template-columns:1fr}.workbench .pane-resizer{display:none}.workbench .pdf-pane,.workbench .ask-panel{position:fixed;right:0;top:135px;bottom:0;height:calc(100dvh - 135px);width:min(420px,95vw);z-index:20;box-shadow:-10px 0 30px #0002}.workbench .ask-panel{z-index:21}.workbench .pdf-pane{width:min(540px,98vw)}.workbench .lesson-main{max-width:850px}.workbench .lesson-nav{gap:10px}}
@media(max-width:650px){.workbench-toolbar{padding:8px;height:62px;gap:5px}.workbench-toolbar button{font-size:11px;padding:7px}.workbench{height:calc(100dvh - 124px)}.workbench .pdf-pane,.workbench .ask-panel{top:124px;height:calc(100dvh - 124px)}.knowledge-heading{align-items:start}.knowledge-tools{gap:3px}.knowledge-tools button{font-size:10px}.workbench .lesson-main{padding:24px 20px 60px}}
html:has(.workbench){overflow:hidden}body:has(.workbench) .main-shell{height:100dvh;display:flex;flex-direction:column}body:has(.workbench) .topbar{flex:0 0 73px}body:has(.workbench) #main{flex:1;min-height:0;display:flex;flex-direction:column}.workbench-toolbar{flex:0 0 62px}.workbench{height:auto;flex:1;min-height:0}.pdf-controls{font-size:12px;gap:6px}.pdf-controls label,.pdf-controls button{white-space:nowrap;flex-shrink:0}.pdf-controls select{width:auto;max-width:115px;min-width:75px;flex:1}.pdf-controls button{padding:6px}.pdf-controls input{width:55px}@media(max-width:650px){body:has(.workbench) .topbar{flex-basis:62px}}
/* Reading scale, source disclosure and concept-centred visuals */
body{--reading-size:18px}.workbench .prose,.saved-note>.prose{font-size:var(--reading-size);line-height:1.95;color:#29322f}.workbench .ask-panel .prose{font-size:calc(var(--reading-size) - 1px);line-height:1.9}.workbench .prose p{margin:0 0 1.15em}.workbench .prose li{margin-bottom:.65em}.workbench .prose h2{font-size:1.32em;line-height:1.5;margin-top:.9em;margin-bottom:.9em}.workbench .prose h3{font-size:1.1em;margin-top:1.5em}.workbench .katex{font-size:1.1em}.workbench .katex-display{padding:18px 5px;margin:1.35em 0}.english-title{color:#73867c;font-size:.8em;font-weight:500;display:block;letter-spacing:0;line-height:1.5;margin-top:6px}.concept-takeaway{padding:16px 20px;margin:20px 0;border-left:3px solid #8cb3a3;background:#f1f6f1;border-radius:0 8px 8px 0;font-size:1em}.term-strip{display:flex;flex-wrap:wrap;gap:8px 14px;margin:14px 0 22px;font-size:12px;line-height:1.7;color:#62756c}.term-strip span{border-bottom:1px solid #dce6df;padding-bottom:3px}.term-strip strong{font-weight:600;color:#415d50}.source-disclosure{margin:16px 0 8px;font-size:12px;line-height:1.8;color:#687b70}.source-disclosure summary{cursor:pointer;width:fit-content}.source-disclosure a{display:block;padding:5px 0;overflow-wrap:anywhere}.source-disclosure small{display:block}.teaching-figure{margin:26px 0;padding:22px;border:1px solid #dfe8e1;border-radius:12px;background:#f8faf6;font-size:14px}.teaching-figure figcaption{margin-bottom:16px;font-size:16px}.teaching-figure p{color:#60766b;margin:16px 0 0!important;line-height:1.8}.diagram-scroll{overflow:auto}.diagram-scroll svg{display:block;min-width:400px;width:100%;max-height:360px}.visual-kicker{font-size:11px;color:#567e6b;text-transform:uppercase;letter-spacing:.08em}.simulation{padding:24px;margin:26px 0;border-radius:12px}.simulation h3{font-size:18px!important;margin:10px 0 14px!important}.simulation>p{font-size:14px}.simulation .sliders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}.simulation .field{font-size:13px;margin-bottom:0}.simulation input[type=range]{accent-color:#498771}.math-values{background:#f1f5ef;padding:14px;border-radius:8px;font-size:13px;line-height:1.8}.visual-limit{padding:12px 16px;background:#fbf3e4;color:#876b39;font-size:13px;line-height:1.8;border-radius:8px}.read-size{display:flex;gap:3px;align-items:center;flex-shrink:0}.read-size button{padding:6px 8px;font-size:12px}.chapter-index{border:1px solid #e1e7dd;border-radius:12px;padding:20px;margin:22px 0}.chapter-index summary{font-weight:600;cursor:pointer}.chapter-index .chapter-row{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #eef0e8;align-items:center}.chapter-index .chapter-row small{white-space:nowrap}.chapter-index .chapter-child{padding-left:20px;font-size:13px}.chapter-choice-hint{font-size:12px;color:#758478;margin:8px 0 16px}.visual-upgrade-status{font-size:12px;color:#748a7d}.notebook-pdf{margin-top:16px;height:65vh;min-height:360px;border:1px solid #d9e3da;display:flex;flex-direction:column;border-radius:10px;overflow:hidden}.notebook-page:has(.notebook-pdf){max-width:1150px}.notebook-study-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:25px}.notebook-pdf .pdf-pages{min-height:0}.notebook-pdf .panel-title{padding:10px;margin:0;font-size:12px}.notebook-pdf[hidden]{display:none}.reading-section-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.reading-section-tools button{font-size:12px}@media(max-width:800px){.simulation .sliders{grid-template-columns:1fr}.notebook-study-grid{grid-template-columns:1fr}.notebook-pdf{position:fixed;z-index:30;right:0;top:80px;bottom:0;width:min(480px,98vw);height:auto;margin:0}.workbench .prose{font-size:max(17px,calc(var(--reading-size) - 1px))}.read-size button{padding:5px}.diagram-scroll svg{min-width:350px}}
.notebook-pdf{position:fixed;right:12px;top:90px;bottom:15px;width:min(440px,90vw);height:auto;z-index:25;background:#f1f3ed;box-shadow:-8px 0 35px #273b2925}.notebook-pdf .pdf-pages{padding:12px}.workbench .simulation input[type=range]{width:100%}.workbench .simulation svg{max-height:360px;min-height:200px}.live-preview>small{font-size:12px}.live-preview{font-size:var(--reading-size);line-height:1.95}
.diagram-label{font:16px/1.3 inherit;text-align:center;color:#31443c;overflow:hidden}.diagram-label p,.diagram-edge p,.diagram-detail p{margin:0!important;line-height:1.35!important}.diagram-detail{font-size:12px;color:#617268;margin-top:5px}.diagram-edge{font-size:12px;text-align:center;line-height:1.3;color:#596e67;background:#f8faf6d9}.diagram-caption{font-size:14px;color:#60766b;line-height:1.8;margin-top:16px}.diagram-caption p{margin:0!important}.concept-takeaway p{margin:0!important}.simulation-explanation{font-size:14px;color:#60766b;line-height:1.8;margin:12px 0}.simulation-explanation .katex{font-size:1.04em}.workbench .simulation-explanation p{margin:.5em 0!important}.diagram-scroll .katex{font-size:1em}.term-strip .katex{font-size:1em}
#openSidebar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}#closeSidebar{display:inline-flex;flex-shrink:0}.sidebar-brand{padding-left:10px;padding-right:0}.sidebar-collapsed .sidebar{transform:translateX(-100%);visibility:hidden}.sidebar-collapsed .main-shell,body.sidebar-collapsed:has(.workbench:not(.without-pdf):not(.without-ask)) .main-shell{margin-left:0}.reference-origin{font-size:14px;color:#687b70;margin:20px 0 32px}.reference-origin a{color:#287664}.reference-prose h1{font-size:1.45em;line-height:1.55;margin:2em 0 1em}.reference-prose h2{margin-top:2em!important}.reference-prose p{margin-bottom:1.1em!important}.reference-prose table{width:100%;margin:24px 0}.reference-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0}.reference-comparison>div{min-width:0;padding:20px;border:1px solid #e0e7e2;border-radius:14px;background:#f8faf8}.reference-comparison h3{font-size:17px!important;margin:0 0 16px!important}.reference-figure{margin:28px auto;max-width:620px}.reference-figure img{display:block;width:100%;max-height:340px;object-fit:contain}.reference-figure figcaption,.reference-flow figcaption{font-size:15px;line-height:1.8;color:#53685d;margin-top:18px}.reference-comparison .reference-figure{margin:12px 0 0}.reference-comparison .reference-figure img{height:230px}.reference-flow{padding:22px;border-radius:14px;background:#f4f7f4;margin:28px 0}.reference-flow .reference-comparison{margin:0}.reference-chips{display:flex;flex-wrap:wrap;gap:10px}.reference-chips span{padding:8px 12px;background:#e2ede6;border-radius:8px;font-size:16px}.reference-flow ol{padding-left:24px}.reference-flow li{padding:7px 0;font-size:16px}.reference-flow small{display:block;font-size:14px;color:#687b70}.reference-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:14px;color:#51665a;margin-bottom:28px}.reference-legend span:before{content:'';display:inline-block;width:9px;height:9px;background:#327ac5;border-radius:50%;margin-right:7px}.reference-legend span:nth-child(2):before{background:#d97736}.reference-legend span:nth-child(3):before{background:#16966d}.reference-progress{padding:22px;border:1px solid #dfe7e1;border-radius:12px;margin:32px 0}.reference-progress>span{float:right}.reference-progress-track{height:5px;background:#e3eae4;border-radius:5px;margin:16px 0}.reference-progress-track i{display:block;width:20%;height:100%;background:#498771;border-radius:5px}.reference-progress ol{font-size:15px;padding-left:22px}.reference-block .source-disclosure{margin-top:32px}@media(max-width:550px){.reference-comparison{grid-template-columns:1fr}.reference-prose h1{font-size:1.3em}.reference-comparison .reference-figure img{height:210px}}
.quote-action{display:flex;gap:0;padding:4px;border-radius:10px}.quote-action[hidden]{display:none}.quote-action button{color:#fff;background:transparent;border:0;padding:9px 14px;font-size:14px;border-radius:7px}.quote-action button:hover{background:#ffffff1c}.quote-action button+button{border-left:1px solid #ffffff40;border-radius:0 7px 7px 0}.notebook-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:28px}.notebook-course-card{display:flex;flex-direction:column;gap:12px;align-items:flex-start;text-align:left;padding:26px;background:#fff;border:1px solid #dfe6df;border-radius:14px;min-width:0}.notebook-course-card:hover{border-color:#709e89;background:#f7faf7}.notebook-course-card strong{font-size:20px;line-height:1.5;overflow-wrap:anywhere}.notebook-course-card span{font-size:15px;color:#637669}.notebook-course-card small{font-size:14px;color:#327a62}.notebook-actions{flex-wrap:wrap;gap:12px;margin-bottom:26px}.notebook-chapter>summary{font-size:18px;font-weight:600;padding:18px 0;cursor:pointer}.saved-note{padding:24px;background:#fff;border:1px solid #e2e8e1;border-radius:12px;margin:16px 0 26px}.saved-note h3{font-size:20px;margin:18px 0}.note-no-tag{color:#778477}.note-editor{width:min(720px,94vw);max-height:90dvh;padding:26px;overflow:auto}.note-editor .field{font-size:15px}.note-editor textarea{font-size:16px;line-height:1.8}.note-preview-heading{font-size:14px;color:#64786c;margin:18px 0 10px}#noteLivePreview{font-size:17px;max-height:240px;overflow:auto;padding:18px;border:1px solid #e3e9e3;border-radius:9px;margin-bottom:20px}.note-editor details{margin:14px 0}.note-editor summary{cursor:pointer;color:#62766b;font-size:14px}.note-editor small{display:block;font-size:13px;margin:4px 0;color:#6c7d72}@media(max-width:650px){.notebook-course-grid{grid-template-columns:1fr}.note-editor{padding:20px}.quote-action button{padding:8px 10px}}
.knowledge-tags{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.knowledge-heading{gap:12px}.source-label{display:inline-block;border-radius:5px;padding:3px 8px;font-size:12px;line-height:1.7;font-weight:550;background:#eef1ef;color:#5d7066;white-space:nowrap}.source-LectureContent{background:#e6efe9;color:#316e50}.source-LectureNotes{background:#e9eef5;color:#4b6b8a}.source-AISupplement{background:#f4eedf;color:#8b7036}.source-Unverified{background:#eeeff0;color:#6d7278}.type-Intuition{background:#edf2e8;color:#647b44}.type-PriorKnowledge{background:#e9edf7;color:#626b91}.type-KeyTakeaway{background:#e8f2ee;color:#3f7d68}.exam-label{font-size:12px;color:#a06f44;background:#fcf0e3;border-radius:5px;padding:3px 8px;white-space:nowrap}.reference-block{border-bottom:0;padding-top:16px;padding-bottom:10px}.reference-block+.reference-block{margin-top:12px}.reference-block .knowledge-heading{margin-bottom:18px}.note-label-fieldset{border:1px solid #e0e8e1;border-radius:10px;padding:16px;margin:18px 0}.note-label-fieldset legend{font-size:15px;color:#425e4f;padding:0 7px}.note-source-options,.note-type-options{display:flex;flex-wrap:wrap;gap:10px}.note-source-options label,.note-type-options label{display:flex;gap:7px;align-items:center;font-size:14px;padding:8px 10px;border:1px solid #dfe6df;border-radius:8px;background:#fff;cursor:pointer}.note-type-options label:has(:checked),.note-source-options label:has(:checked){background:#e9f2ec;border-color:#7aab8e}.note-origin-entry{padding:12px 0;border-bottom:1px solid #e5ebe5}.note-origin-entry .knowledge-tags{margin-top:8px}.note-section-topic{display:block;color:#748278;font-size:14px;margin-bottom:18px}.notebook-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;padding:18px;background:#f4f7f4;border:1px solid #e1e8e2;border-radius:12px;margin:22px 0}.notebook-filters label{flex:1;min-width:150px;font-size:13px;color:#64766b}.notebook-filters select{display:block;width:100%;font-size:14px;margin-top:6px}.notebook-filters small{font-size:13px;color:#63766a;padding-bottom:10px}.reference-block .knowledge-tools{flex-shrink:0}.reference-block .knowledge-label{font-size:12px}
.knowledge-heading,.source-disclosure summary,.source-disclosure a{user-select:none}

/* Portable reference components keep the original illustrations and reading order. */
.copied-prose .copied-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:12px 0}
.copied-prose .copied-col{display:flex;flex-direction:column;gap:12px}
.copied-prose .copied-grid{display:grid;grid-template-columns:repeat(var(--copied-columns,2),minmax(0,1fr));gap:18px;margin:24px 0}
.copied-prose .copied-grid>*,.copied-prose .copied-row>*{min-width:0}
.copied-prose .copied-row>.copied-box,.copied-prose .copied-row>.copied-card{flex:1}
.copied-prose .copied-box,.copied-prose .copied-card{padding:18px;border:1px solid #e2e7e2;border-radius:14px;background:#fafbf9;margin:18px 0}
.copied-prose .copied-box .copied-box{border:0;padding:6px;background:none}
.copied-prose .copied-bold{font-weight:650}
.copied-prose .copied-caption{display:block;font-size:.83em;line-height:1.6;color:#718078;margin:10px 0}
.copied-prose .copied-divider{border-top:1px solid #e2e7e2;margin:28px 0}
.copied-prose .copied-figure{display:block;max-width:100%;width:100%;height:auto;margin:14px auto}
.copied-prose .copied-svg{min-width:0}
.copied-prose h1{font-size:1.45em;margin:1.3em 0 .8em}
.copied-prose .copied-grid h1{font-size:1.2em}
.copied-question{display:block;text-align:left;border-left:3px solid #9ebaae;background:#eef4f0;padding:16px;line-height:1.7;font-size:.85em;width:100%}
.copied-lab{padding:24px;border:1px solid #dce5e0;border-radius:18px;background:#f8faf8;margin:24px 0;overflow:hidden}
.copied-lab h3{margin:0 0 16px;font-size:1.15em}
.copied-plot{display:block;width:100%;height:auto;overflow:hidden;color:#53655e}
.copied-plot text{font-size:12px;fill:currentColor}
.copied-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px;margin:18px 0}
.copied-metrics>div{background:white;border-radius:12px;padding:14px;min-width:0}
.copied-metrics small{display:block;color:#6c7b73;font-size:13px;line-height:1.5}
.copied-metrics strong{display:block;font-size:24px;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.copy-controls .field{margin:18px 0;font-size:15px}
.copy-controls input[type=range]{width:100%;accent-color:#2f7665}
.copy-controls output{float:right;font-variant-numeric:tabular-nums}
.copy-controls button{margin:4px 7px 8px 0}
.copied-check{display:inline-flex;align-items:center;gap:8px;font-size:14px;margin:10px 16px 10px 0}
.copied-check input{width:18px;height:18px;accent-color:#2f7665}
.copy-feedback{font-size:.85em;line-height:1.7;margin-top:16px}
.copy-feedback small{font-size:12px;line-height:1.6;color:#718078}
.ask-panel .copied-lab{padding:12px}.ask-panel .copied-grid{grid-template-columns:1fr}.ask-panel .copied-metrics strong{font-size:20px}
@media(max-width:700px){.copied-prose .copied-grid{grid-template-columns:1fr}.copied-lab{padding:14px}}
.reference-intro{margin:24px 0 30px}.reference-intro .reference-prose>h1:first-child{margin-top:0}
.copied-prose table{display:table;width:100%;font-size:.85em}.copied-prose table p{margin:0}.copied-prose table th,.copied-prose table td{vertical-align:top}
.copied-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:#64746c;margin-bottom:10px}.copied-legend span{display:flex;align-items:center;gap:6px}.copied-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}
.copied-plot{max-height:310px}
[data-copy-lab=bias_variance] .copy-controls,[data-copy-lab=evidence] .copy-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:0 18px;align-items:start}
[data-copy-lab=bias_variance] .copy-controls>button,[data-copy-lab=evidence] .copy-controls>button{grid-column:1/-1;justify-self:start}
.copied-legend{font-size:13px}
/* Teaching visuals are supporting figures, never full-page posters. */
.copied-prose .copied-box{padding:0;border:0;border-radius:0;background:none;margin:0}
.copied-prose .copied-box:empty{display:none}
.copied-prose .copied-row{gap:12px;margin:8px 0}
.copied-prose .copied-row>p,.copied-prose .copied-row>.copied-box>p{margin:0!important}
.copied-prose .copied-caption{margin:6px 0;font-size:.82em}
.copied-prose .copied-divider{margin:12px 0}
.copied-prose .copied-grid{gap:14px;margin:16px 0}
.copied-prose .copied-image{display:block;flex:0 1 var(--figure-width);width:var(--figure-width);max-width:100%;padding:0;margin:10px auto;border:0;background:none;cursor:zoom-in}
.copied-prose .copied-image .copied-figure{width:100%;max-height:240px;object-fit:contain;margin:0}
.copied-prose .copied-row>.copied-image{margin:0}
.copied-prose :is(.copied-row,.copied-box,.copied-card) h1{font-size:1.3em;line-height:1.4;margin:4px 0}
.copied-prose .copied-card{padding:16px;margin:16px 0}
.copied-prose table p{margin:0!important}.copied-prose table td,.copied-prose table th{padding:7px 10px}
.compact-probabilities{max-width:600px;padding:14px 16px;border:1px solid #dfe7e1;border-radius:12px;margin:16px auto}
.compact-probabilities>figcaption{font-size:16px;font-weight:650;line-height:1.5;margin-bottom:10px}
.compact-probabilities>.copied-row{justify-content:flex-start}
.compact-probabilities>.copied-caption{margin-top:10px}
.compact-probability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px;margin-top:10px}
.compact-probability-row{display:grid;grid-template-columns:52px minmax(25px,1fr) 48px;align-items:center;gap:8px;font-size:14px;line-height:1.65}
.compact-probability-row strong{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.compact-probability-track{height:7px;background:#e6eee9;border-radius:5px;overflow:hidden}.compact-probability-track i{display:block;height:100%;min-width:2px;background:#599783;border-radius:5px}
.copied-image-viewer{width:min(1000px,94vw);max-height:92dvh;padding:18px}.copied-image-viewer>img{display:block;max-width:100%;width:auto;max-height:78dvh;margin:18px auto;object-fit:contain}.copied-image-viewer::backdrop{background:#16231dcc}
.copied-prose{container-type:inline-size}
.copied-lab{position:relative;max-width:720px;padding:16px;margin:18px auto}
.workbench .prose .copied-lab h3{font-size:17px;margin:0 90px 10px 0;line-height:1.5}
.copy-expand{position:absolute;top:14px;right:12px;font-size:12px}
.copied-lab .copied-plot{max-height:230px}.copied-lab.expanded .copied-plot{max-height:430px}
.copied-metrics{gap:6px;margin:10px 0}.copied-metrics>div{padding:8px 10px}.copied-metrics strong{font-size:20px;line-height:1.4}.copied-metrics small{font-size:12px}
.copy-controls .field{margin:8px 0;font-size:14px}.copy-controls button{padding:7px 10px;margin:3px 6px 3px 0}.copied-check{margin:5px 12px 5px 0}
.copy-feedback{margin-top:10px}.workbench .prose .copy-feedback p{margin:0 0 8px!important}.workbench .prose .copy-feedback .katex-display{margin:8px 0;padding:4px}
@container(min-width:620px){.copied-lab:not(.expanded){display:grid;grid-template-columns:minmax(0,1.5fr) minmax(190px,1fr);gap:0 14px}.copied-lab:not(.expanded)>h3,.copied-lab:not(.expanded)>.copied-legend,.copied-lab:not(.expanded)>.copy-controls,.copied-lab:not(.expanded)>.copy-feedback{grid-column:1/-1}.copied-lab:not(.expanded)>.copy-stats{align-self:center}.copied-lab:not(.expanded) .copied-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:400px){.compact-probability-grid{grid-template-columns:1fr}.compact-probabilities{padding:12px}}
.reference-figure img{max-height:260px}.math-plot{max-height:260px}.diagram-scroll svg{max-height:280px}
.copied-lab>.copy-purpose{font-size:14px;line-height:1.55;color:#53665c;margin:0 0 10px!important;grid-column:1/-1}
.copy-details{grid-column:1/-1;font-size:13px;line-height:1.6;margin-top:8px;color:#61756a}.copy-details>summary{cursor:pointer;width:fit-content;padding:3px 0}
.copied-lab .copied-plot{max-height:190px}.copied-lab .copied-plot text{font-size:16px}
.copied-lab .copy-controls .field{margin:5px 0;font-size:14px}.copied-lab .copy-controls .field>span{line-height:1.4}
.copied-lab .copy-controls input[type=range]{display:block;height:20px;min-height:0;border:0;padding:0;background:none;margin:5px 0}
.copied-lab .copy-controls button{min-height:0;padding:6px 9px;line-height:1.5}
.copied-lab .copy-controls .copied-check input{padding:0;min-height:0}
.copied-lab.expanded>.copy-chart .copied-plot{max-height:430px}
