/* Scoped to the two user-authored rich-text display fields. */
.study-markdown{white-space:normal!important;overflow-wrap:anywhere;line-height:1.75;min-width:0;max-width:100%}
.study-markdown>:first-child{margin-top:0}.study-markdown>:last-child{margin-bottom:0}
.study-markdown p{margin:.6em 0;color:inherit;font:inherit}
.study-markdown h1,.study-markdown h2,.study-markdown h3,.study-markdown h4,.study-markdown h5,.study-markdown h6{font-family:inherit;line-height:1.4;font-weight:700;color:inherit;margin:1em 0 .45em}
.study-markdown h1{font-size:1.65em}.study-markdown h2{font-size:1.4em}.study-markdown h3{font-size:1.2em}.study-markdown h4,.study-markdown h5,.study-markdown h6{font-size:1.05em}
.study-markdown strong{font-weight:750}.study-markdown em{font-style:italic}
.study-markdown ul,.study-markdown ol{padding-left:1.65em;margin:.6em 0}.study-markdown ul{list-style:disc}.study-markdown ol{list-style:decimal}.study-markdown li{margin:.25em 0}.study-markdown li>p{margin:.25em 0}
.study-markdown blockquote{border-left:3px solid currentColor;margin:.75em 0;padding:.1em .9em;opacity:.9}
.study-markdown code{font-family:Consolas,monospace;font-size:.9em;background:color-mix(in srgb,currentColor 8%,transparent);padding:.12em .3em;border-radius:4px;white-space:pre-wrap}
.study-markdown pre{white-space:pre;overflow-x:auto;max-width:100%;padding:12px;border-radius:8px;background:color-mix(in srgb,currentColor 7%,transparent);scrollbar-width:thin;scrollbar-color:color-mix(in srgb,currentColor 35%,transparent) color-mix(in srgb,currentColor 8%,transparent)}
.study-markdown pre::-webkit-scrollbar{height:6px}
.study-markdown pre::-webkit-scrollbar-track{background:color-mix(in srgb,currentColor 8%,transparent);border-radius:999px}
.study-markdown pre::-webkit-scrollbar-thumb{background:color-mix(in srgb,currentColor 35%,transparent);border-radius:999px}
.study-markdown hr{border:0;border-top:1px solid currentColor;opacity:.25;margin:1em 0}
.study-markdown a[href]{color:inherit;text-decoration:underline;text-underline-offset:3px}
.study-markdown-table{display:block;box-sizing:border-box;max-width:100%;overflow-x:auto;overflow-y:hidden;margin:.8em 0;padding-bottom:8px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,currentColor 35%,transparent) color-mix(in srgb,currentColor 8%,transparent)}
.study-markdown-table:focus-visible{outline:2px solid var(--accent,#c99a3b);outline-offset:2px;border-radius:6px}
.study-markdown-table::-webkit-scrollbar{height:7px}
.study-markdown-table::-webkit-scrollbar-track{background:color-mix(in srgb,currentColor 8%,transparent);border-radius:999px}
.study-markdown-table::-webkit-scrollbar-thumb{background:color-mix(in srgb,currentColor 35%,transparent);border-radius:999px}
.study-markdown-table::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,currentColor 55%,transparent)}
.study-markdown table{border-collapse:collapse;width:max-content;min-width:100%;max-width:none;font:inherit;margin:0}
.study-markdown th,.study-markdown td{border:1px solid color-mix(in srgb,currentColor 25%,transparent);padding:8px 12px;min-width:90px;max-width:320px;white-space:normal}
.study-markdown th{font-weight:700;background:color-mix(in srgb,currentColor 7%,transparent)}
/* Android overlay scrollbars may disappear and cannot serve as reliable touch controls. */
.memo-table-frame{min-width:0;max-width:100%;margin:.8em 0}
.memo-table-frame>.study-markdown-table{width:100%;margin:0;padding-bottom:4px}
.memo-table-scroll-controls{position:sticky;bottom:8px;z-index:71;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:6px;margin-top:4px;padding:2px 4px;border:1px solid var(--memo-detail-border);border-radius:10px;background:var(--memo-detail-bg);color:var(--memo-detail-text);user-select:none;-webkit-user-select:none}
.memo-table-scroll-controls[hidden]{display:none}
.memo-table-scroll-controls button{width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:24px/1 sans-serif;cursor:pointer;touch-action:manipulation}
.memo-table-scroll-controls button:disabled{opacity:.3;cursor:default}
.memo-table-scroll-controls input[type=range]{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;cursor:pointer;touch-action:pan-y}
.memo-table-scroll-controls input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:color-mix(in srgb,currentColor 22%,transparent)}
.memo-table-scroll-controls input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-top:-8px;border:2px solid var(--memo-detail-bg);border-radius:50%;background:var(--memo-accent);box-shadow:0 0 0 1px var(--memo-accent)}
.memo-table-scroll-controls input[type=range]::-moz-range-track{height:8px;border-radius:8px;background:color-mix(in srgb,currentColor 22%,transparent)}
.memo-table-scroll-controls input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid var(--memo-detail-bg);border-radius:50%;background:var(--memo-accent)}
.memo-table-scroll-controls :focus-visible{outline:2px solid var(--memo-accent);outline-offset:1px}
.study-markdown input[type=checkbox]{width:15px;height:15px;min-height:0;margin-right:6px;vertical-align:middle}
.memo-detail-text .memo-latex-block{display:block;box-sizing:border-box;max-width:100%;margin:.75em 0;padding:.35em .25em 6px;overflow-x:auto;overflow-y:hidden;color:inherit;font-family:'Cambria Math','Times New Roman',serif;font-size:1.02em;line-height:1.8;text-align:center;white-space:nowrap;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,currentColor 35%,transparent) color-mix(in srgb,currentColor 8%,transparent)}
.memo-detail-text .memo-latex-block::-webkit-scrollbar{height:6px}
.memo-detail-text .memo-latex-block::-webkit-scrollbar-track{background:color-mix(in srgb,currentColor 8%,transparent);border-radius:999px}
.memo-detail-text .memo-latex-block::-webkit-scrollbar-thumb{background:color-mix(in srgb,currentColor 35%,transparent);border-radius:999px}
.memo-detail-text .memo-latex-bold{font-weight:750}
.memo-detail-text .memo-latex-text{font-family:'Study Color Cross',var(--reading-font-family),'IBM Plex Sans KR',sans-serif;font-style:normal}
.memo-detail-text .memo-latex-underline{text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.18em}
.memo-detail-text .memo-latex-quad{display:inline-block;width:1.5em}
.memo-detail-text .memo-latex-arrow{display:inline-block;margin:0 .12em;font-family:'Cambria Math','Segoe UI Symbol',sans-serif;font-size:1.15em}
