/* Teaching library, personal notebooks and chapter reader. */
.tl-hub { scroll-margin-top: 94px; }
#page-teachings.tl-ready > :not(#learningHub) { display: none !important; }
.tl-hub { --tl-line: rgba(235,224,200,.12); --tl-muted: #a9abb3; --tl-paper: #e9d9b1; max-width: 1320px; margin: 0 auto; padding: 16px 8px 48px; color: #f3f2ef; }
.tl-hub *, .tl-reader-nav *, .tl-chapter-panel *, .tl-reader-footer *, .tl-reader-drawer *, .tl-dialog * { box-sizing: border-box; }
.tl-hub button, .tl-reader-nav button, .tl-chapter-panel button, .tl-reader-footer button, .tl-reader-drawer button, .tl-dialog button { cursor: pointer; font-family: "DM Sans", sans-serif; }
.tl-hub svg, .tl-reader-nav svg, .tl-chapter-panel svg, .tl-reader-footer svg, .tl-reader-drawer svg, .tl-dialog svg { width: 18px; height: 18px; flex-shrink: 0; }
.tl-hub button:focus-visible, .tl-reader-nav button:focus-visible, .tl-chapter-panel button:focus-visible, .tl-reader-footer button:focus-visible, .tl-reader-drawer button:focus-visible, .tl-dialog button:focus-visible { outline: 2px solid #e9d9b1; outline-offset: 3px; }
.tl-hub button:disabled, .tl-reader-footer button:disabled, .tl-dialog button:disabled { opacity: .38; cursor: default; }
.tl-eyebrow { display: block; color: #d5c49e; font: 700 10px/1.5 "DM Sans", sans-serif; letter-spacing: .16em; }
.tl-spaces { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-bottom: 24px; padding: 5px; border: 1px solid #2b313a; border-radius: 16px; background: rgba(255,255,255,.018); }
.tl-spaces button { width: 100%; min-width: 0; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border: 0; border-radius: 9px; color: #858d99; background: transparent; font-size: 11px; font-weight: 600; }
.tl-spaces button:hover, .tl-spaces button:focus-visible { color: #eceef0; background: rgba(255,255,255,.035); }
.tl-spaces button[aria-selected="true"] { color: #f0f1f2; background: #252b36; }
.tl-primary, .tl-secondary, .tl-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid rgba(233,217,177,.16); border-radius: 10px; font: 600 12px/1.4 "DM Sans", sans-serif; text-decoration: none; }
.tl-primary { background: #e9d9b1; color: #24211b; border-color: #e9d9b1; }
.tl-secondary, .tl-icon-button { background: #1b1e25; color: #e4e3df; }
.tl-primary:hover { background: #f4e6c7; transform: none; }
.tl-secondary:hover { background: #292d35; transform: none; }
.tl-icon-button { min-width: 34px; min-height: 34px; padding: 6px; background: transparent; }
.tl-text-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; background: transparent; color: #d0c2a3; border: 0; font-size: 12px; }
.tl-privacy { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; color: #a9abb3; font: 400 12px/1.6 "DM Sans", sans-serif; }
.tl-privacy svg { width: 14px; height: 14px; }
.tl-library { display: grid; gap: 52px; }
.tl-library-section { display: grid; gap: 20px; min-width: 0; }
.tl-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--tl-line); }
.tl-library-heading > span { min-width: 0; }
.tl-library-heading small { display: block; margin-bottom: 6px; color: #c9b78e; font: 700 9px/1.4 "DM Sans",sans-serif; letter-spacing: .14em; }
.tl-library-heading h2 { margin: 0; overflow-wrap: anywhere; color: #f1efe9; font: 650 23px/1.3 "Manrope",sans-serif; letter-spacing: -.025em; }
.tl-library-heading p { max-width: 390px; margin: 0; color: #8f929c; font: 400 11px/1.6 "DM Sans",sans-serif; text-align: right; }
.tl-featured-list { display: flex; flex-direction: column; gap: 12px; }
.tl-featured-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--tl-line); border-radius: 16px; background: #14161b; transition: border-color .15s; }
.tl-featured-card:hover { border-color: rgba(233,217,177,.35); }
.tl-featured-open { display: grid; grid-template-columns: minmax(180px,260px) minmax(0,1fr) 28px; align-items: stretch; width: 100%; min-height: 174px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.tl-featured-open:hover { transform: none; }
.tl-featured-visual { position: relative; isolation: isolate; display: flex; align-items: flex-start; min-height: 174px; padding: 15px; overflow: hidden; background-size: cover !important; background-position: center !important; }
.tl-featured-visual::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; right: -90px; top: -95px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.035),0 0 0 45px rgba(255,255,255,.025); }
.tl-featured-visual .tl-card-mark { top: 62px; }
.tl-featured-copy { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; padding: 22px 58px 22px 26px; }
.tl-featured-copy strong { overflow-wrap: anywhere; color: #f0eee8; font: 650 21px/1.35 "Manrope",sans-serif; letter-spacing: -.025em; }
.tl-featured-copy > span:not(.tl-progress) { max-width: 720px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #a8aab3; font-size: 12px; line-height: 1.6; }
.tl-featured-copy em { color: #d2d2d5; font-size: 11px; font-style: normal; }
.tl-featured-copy b { color: #b7a77f; font-size: 10px; font-weight: 600; }
.tl-featured-copy .tl-progress { max-width: 480px; margin-top: 3px; }
.tl-featured-arrow { display: grid; place-items: center; color: #777b85; }
.tl-featured-card > .tl-card-favorite { top: 14px; right: 14px; }
.tl-published-book-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,176px)); justify-content: start; align-items: start; gap: 26px 22px; }
.tl-published-book { position: relative; min-width: 0; }
.tl-published-book-open { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.tl-published-book-open:hover { transform: none; }
.tl-published-book-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; aspect-ratio: .72; padding: 24px 18px 22px 27px; overflow: hidden; border: 1px solid rgba(235,224,200,.25); border-radius: 3px 13px 13px 3px; background-size: cover !important; background-position: center !important; box-shadow: inset 7px 0 0 rgba(0,0,0,.24),inset 9px 0 0 rgba(255,255,255,.07),0 10px 28px rgba(0,0,0,.16); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.tl-published-book-cover::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(3,5,7,.02) 30%,rgba(3,5,7,.76)); pointer-events: none; }
.tl-published-book-cover small { position: absolute; top: 22px; left: 27px; color: #f0dfb9; font: 700 8px/1.35 "DM Sans",sans-serif; letter-spacing: .09em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tl-published-book-sender { position: absolute; top: 37px; left: 27px; right: 45px; overflow: hidden; color: rgba(243,239,230,.82); font: 500 9px/1.4 "DM Sans",sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.35); white-space: nowrap; text-overflow: ellipsis; }
.tl-published-book-cover strong { overflow-wrap: anywhere; color: #f3efe6; font: 650 17px/1.35 "Manrope",sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.42); }
.tl-published-book:hover .tl-published-book-cover { transform: translateY(-2px); border-color: rgba(235,224,200,.42); box-shadow: inset 7px 0 0 rgba(0,0,0,.24),inset 9px 0 0 rgba(255,255,255,.07),0 15px 34px rgba(0,0,0,.24); }
.tl-published-book > .tl-card-favorite { z-index: 2; top: 11px; right: 11px; }
.tl-library-loading, .tl-library-error { padding: 24px; border: 1px solid var(--tl-line); border-radius: 14px; color: #aeb0b7; background: #14161b; font: 400 12px/1.6 "DM Sans",sans-serif; }
.tl-library-error { color: #e3aaa1; }
.tl-teaching-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,260px),1fr)); gap: 20px; }
.tl-teaching-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--tl-line); border-radius: 16px; background: #14161b; transition: border-color .15s; }
.tl-teaching-card:hover { border-color: rgba(233,217,177,.35); }
.tl-card-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.tl-teaching-card:has(footer) .tl-card-open { height: auto; }
.tl-card-open:hover { transform: none; }
.tl-card-visual { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; height: 150px; padding: 15px; overflow: hidden; isolation: isolate; background-size: cover !important; background-position: center !important; }
.tl-card-visual::after { content: ""; position: absolute; width: 280px; height: 280px; right: -85px; top: -90px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 45px rgba(255,255,255,.025); pointer-events: none; z-index: -1; }
.tl-type-badge { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: rgba(10,14,16,.45); color: #fff6de; font-size: 10px; backdrop-filter: blur(8px); }
.tl-card-mark { position: absolute; right: 32px; top: 53px; color: rgba(255,248,228,.27); transform: rotate(-10deg); }
.tl-card-mark svg { width: 68px; height: 68px; stroke-width: 1; }
.tl-card-duration { font-size: 10px; font-weight: 600; color: #fff4dc; text-shadow: 0 1px 3px #222; }
.tl-card-body { display: flex; flex-direction: column; gap: 10px; padding: 21px; }
.tl-card-body > small { color: #c8b68c; font-size: 9px; letter-spacing: .06em; }
.tl-card-body > strong { font: 650 18px/1.4 "Manrope", sans-serif; letter-spacing: -.025em; }
.tl-card-body > span:not(.tl-progress) { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #a8aab3; font-size: 12px; line-height: 1.65; }
.tl-card-body > em { margin-top: 6px; font-size: 11px; font-style: normal; color: #d7d7dc; }
.tl-card-favorite { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.25); background: #15191aad; color: #f1e4c2; border-radius: 50%; }
.tl-card-favorite.is-active svg { fill: #e9d9b1; }
.tl-teaching-card footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; border-top: 1px solid var(--tl-line); padding: 10px 16px; }
.tl-teaching-card footer button { display: flex; gap: 6px; align-items: center; padding: 8px 0; border: 0; background: transparent; color: #dbc9a1; font-size: 10px; }
.tl-teaching-card footer svg { width: 13px; height: 13px; }
.tl-progress { display: block; height: 3px; border-radius: 3px; background: #35363d; overflow: hidden; }
.tl-progress i { display: block; height: 100%; background: #d9c697; }
.tl-empty { grid-column: 1/-1; padding: 48px 24px; text-align: center; border: 1px dashed rgba(233,217,177,.18); border-radius: 15px; color: #b4b4ba; }
.tl-empty > span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(233,217,177,.06); color: #d6c296; }
.tl-empty > span > svg { width: 25px; height: 25px; }
.tl-empty h3 { color: #e8e7e4; font: 600 18px "Manrope", sans-serif; margin: 18px 0 9px; }
.tl-empty p { max-width: 430px; margin: 0 auto 20px; font-size: 13px; line-height: 1.7; }
.tl-notebook-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,176px)); justify-content: start; align-items: start; gap: 26px 22px; }
.tl-notebook { text-align: left; padding: 0; color: #edeae3; border: 0; background: transparent; min-width: 0; }
.tl-notebook-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: .72; padding: 24px 18px 22px 27px; overflow: hidden; border: 1px solid rgba(235,224,200,.2); border-radius: 3px 13px 13px 3px; background-color: var(--tl-book-color,#433b2d); background-image: var(--tl-book-theme,linear-gradient(145deg,rgba(255,255,255,.07),rgba(0,0,0,.16))); background-size: cover; background-position: center; box-shadow: inset 7px 0 0 rgba(0,0,0,.24),inset 9px 0 0 rgba(255,255,255,.07),0 10px 28px rgba(0,0,0,.16); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.tl-notebook-cover::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(3,5,7,.02) 30%,rgba(3,5,7,.76)); pointer-events: none; }
.tl-notebook-cover > span { overflow-wrap: anywhere; color: #f3efe6; font: 650 17px/1.35 "Manrope",sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.42); }
.tl-notebook:hover .tl-notebook-cover { transform: translateY(-2px); border-color: rgba(235,224,200,.38); box-shadow: inset 7px 0 0 rgba(0,0,0,.24),inset 9px 0 0 rgba(255,255,255,.07),0 15px 34px rgba(0,0,0,.24); }
body.tl-notebook-panel-open { overflow: hidden; }
.tl-notebook-page { position: fixed; z-index: 140; inset: 0 0 0 auto; width: min(640px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow-y: auto; border: 0; border-left: 1px solid rgba(235,224,200,.14); color: #f3f2ef; background: #101216; box-shadow: -30px 0 80px rgba(0,0,0,.4); scrollbar-color: rgba(240,223,187,.68) #0b0d11; animation: tlNotebookDrawerIn .32s cubic-bezier(.22,.8,.24,1) backwards; }
.tl-notebook-page::backdrop { background: rgba(3,4,7,.62); backdrop-filter: blur(5px); }
.tl-notebook-page.is-closing { pointer-events: none; animation: tlNotebookDrawerOut .32s cubic-bezier(.22,.8,.24,1) both; }
.tl-notebook-panel-shell { position: relative; display: flex; flex-direction: column; min-height: 100%; }
.tl-notebook-title { margin: 22px 78px 0 28px; overflow-wrap: anywhere; color: #f1efe9; font: 700 22px/1.35 "Manrope",sans-serif; letter-spacing: -.02em; }
.tl-notebook-close { position: sticky; z-index: 5; top: 18px; align-self: flex-end; flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; margin: -32px 18px -8px 0; padding: 0; border: 1px solid #30343c; border-radius: 50%; color: #dfd6c1; background: #181b21; }
.tl-notebook-close svg { width: 18px; height: 18px; }
.tl-notebook-page-main { flex: 1; width: 100%; margin: 0; padding: 28px 28px 110px; }
.tl-notebook-chapter-list { border-top: 1px solid rgba(235,224,200,.12); }
.tl-notebook-chapter-list > section { border-bottom: 1px solid rgba(235,224,200,.12); }
.tl-notebook-chapter-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 15px; width: 100%; min-height: 92px; padding: 17px 10px; border: 0; color: #e8e6e0; background: transparent; text-align: left; }
.tl-notebook-chapter-row:hover { color: #eadcb9; background: rgba(233,217,177,.035); transform: none; }
.tl-notebook-chapter-row > span:first-child { color: #777b85; font: 500 11px/1 "DM Sans",sans-serif; letter-spacing: .08em; }
.tl-notebook-chapter-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.tl-notebook-chapter-row strong { overflow-wrap: anywhere; font: 600 18px/1.45 "Manrope",sans-serif; }
.tl-notebook-chapter-row small { color: #888c96; font-size: 10px; }
.tl-notebook-chapter-row > svg { width: 15px; height: 15px; color: #666b76; }
.tl-slide-fab { position: fixed; z-index: 6; right: max(28px,env(safe-area-inset-right)); bottom: max(28px,env(safe-area-inset-bottom)); display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; color: #211f1a; background: #ead8aa; box-shadow: 0 14px 35px rgba(0,0,0,.42); }
.tl-slide-fab:hover { background: #f4e5c1; transform: translateY(-2px); }
.tl-slide-fab svg { width: 22px; height: 22px; }
@keyframes tlNotebookDrawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes tlNotebookDrawerOut { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes tlNotebookSheetIn { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes tlNotebookSheetOut { from { transform: translateY(0); } to { transform: translateY(105%); } }
.tl-note-body { display: flex; flex: 1; min-height: 0; }
.tl-note-body textarea { display: block; resize: vertical; width: 100%; min-height: 350px; padding: 18px 0; border: 0; outline: none; color: #e5e4df; background: transparent; font: 400 15px/1.9 "DM Sans",sans-serif; white-space: pre-wrap; }
.tl-note-body textarea::placeholder { color: #737782; }
.tl-save-status { margin: 14px 0 0; color: #a8a28e; font: 400 11px/1.6 "DM Sans",sans-serif; }
.tl-danger { color: #c6958e; }
.tl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tl-dialog { width: min(510px,calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 27px; border: 1px solid #414047; border-radius: 20px; color: #eeeae3; background: #191c22; box-shadow: 0 25px 100px #0009; }
.tl-dialog::backdrop { background: #030507b8; backdrop-filter: blur(7px); }
.tl-dialog form > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.tl-dialog h2 { margin: 0; font: 650 23px/1.35 "Manrope",sans-serif; }
.tl-dialog [data-dialog-close] { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: transparent; color: #b1b1b9; border: 0; }
.tl-dialog p { color: #aaadb5; font-size: 12px; line-height: 1.7; }
.tl-dialog label, .tl-comment-form label { display: flex; flex-direction: column; gap: 8px; margin: 17px 0; color: #d2d0ca; font: 500 12px/1.5 "DM Sans",sans-serif; }
.tl-dialog input:not([type=checkbox]), .tl-dialog select, .tl-dialog textarea, .tl-comment-form textarea { width: 100%; padding: 12px; border: 1px solid #3d4048; border-radius: 9px; color: #f1f0eb; background: #111419; font: 400 14px/1.6 "DM Sans",sans-serif; }
.tl-cover-field { margin: 20px 0 0; padding: 0; border: 0; }
.tl-cover-field legend { margin-bottom: 11px; color: #d2d0ca; font: 500 12px/1.5 "DM Sans",sans-serif; }
.tl-cover-picker { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.tl-dialog .tl-cover-picker > label { position: relative; display: block; min-width: 0; margin: 0; cursor: pointer; }
.tl-dialog .tl-cover-picker input { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0,0,0,0); border: 0 !important; opacity: 0; }
.tl-cover-tile { position: relative; display: block; min-width: 0; padding: 6px; border: 1px solid #3d4048; border-radius: 11px; color: #bfc1c8; background: #15181e; transition: border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.tl-cover-tile > i { display: block; height: 48px; border-radius: 7px; background: var(--tl-cover-swatch); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.tl-cover-tile > b { display: block; margin-top: 6px; overflow: hidden; font: 600 9px/1.35 "DM Sans",sans-serif; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.tl-cover-picker input[type=radio]:checked + .tl-cover-tile { border-color: #e9d9b1; color: #f0dfb6; background: rgba(233,217,177,.08); box-shadow: 0 0 0 1px rgba(233,217,177,.26); }
.tl-cover-picker input:focus-visible + .tl-cover-tile { outline: 2px solid #75a9ff; outline-offset: 2px; }
.tl-cover-image-tile { border-style: dashed; }
.tl-cover-image-tile > i { background: linear-gradient(145deg,#242933,#1b1e25); }
.tl-cover-image-tile > span { position: absolute; top: 29px; left: 50%; display: grid; place-items: center; color: #d8cba9; transform: translate(-50%,-50%); }
.tl-cover-image-tile > span svg { width: 18px; height: 18px; }
.tl-cover-image.has-image .tl-cover-image-tile { border-color: #e9d9b1; color: #f0dfb6; background: rgba(233,217,177,.08); }
.tl-cover-image.has-image .tl-cover-image-tile > i { background-image: linear-gradient(180deg,transparent,rgba(0,0,0,.18)),var(--tl-cover-image); background-position: center; background-size: cover; }
.tl-cover-image.has-image .tl-cover-image-tile > span { display: none; }
.tl-dialog .tl-checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.tl-checkbox input { width: 17px; height: 17px; margin: 0; accent-color: #e9d9b1; flex-shrink: 0; }
.tl-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.tl-dialog .tl-error, .tl-error { color: #eab0a5; white-space: pre-wrap; font-size: 12px; line-height: 1.6; }
.tl-publish { border-top: 1px solid #373940; margin-top: 24px; padding-top: 20px; }
.tl-publish strong { font-size: 14px; }
.tl-chapter-order { display: flex; gap: 10px; }
.tl-reader-nav { position: sticky; top: 0; z-index: 12; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 24px 7px; overflow: hidden; border-bottom: 1px solid #ffffff0d; background: #101318ed; backdrop-filter: blur(18px); }
.tl-reader-pages-cluster { min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.tl-reader-pages-scroll { flex: 0 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #e9d9b15c transparent; }
.tl-reader-pages { flex: 0 0 auto; display: flex; align-items: stretch; gap: 5px; width: max-content; min-width: 0; padding: 1px 2px 4px; }
.tl-reader-page-tab { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; flex: 0 0 auto; min-height: 38px; max-width: 240px; padding: 8px 13px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; color: #999ca5; background: transparent; text-align: left; }
.tl-reader-page-tab > span { color: #747985; font: 600 9px "DM Sans",sans-serif; letter-spacing: .08em; }
.tl-reader-page-tab > strong { overflow: hidden; color: inherit; font: 600 11px "DM Sans",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.tl-reader-page-tab:hover { color: #ece8df; background: #ffffff08; }
.tl-reader-page-tab[aria-selected="true"] { border-color: #e9d9b12e; color: #f1eadb; background: #e9d9b114; }
.tl-reader-page-tab[aria-selected="true"] > span { color: #dfcfa8; }
.tl-reader-page-edit { flex: 0 0 auto; display: grid; grid-template-columns: 32px minmax(86px,160px); align-items: center; min-height: 38px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; color: #999ca5; background: transparent; }
.tl-reader-page-edit.is-active { border-color: #e9d9b12e; color: #f1eadb; background: #e9d9b114; }
.tl-reader-page-edit:focus-within { outline: 2px solid #e9d9b1; outline-offset: 1px; }
.tl-reader-page-edit-select { align-self: stretch; min-width: 32px; padding: 0; border: 0; color: #747985; background: transparent; font: 600 9px "DM Sans",sans-serif; letter-spacing: .08em; }
.tl-reader-page-edit.is-active .tl-reader-page-edit-select { color: #dfcfa8; }
.tl-reader-page-edit input { min-width: 0; width: 100%; height: 36px; padding: 0 10px 0 2px; border: 0; outline: 0; color: inherit; background: transparent; font: 600 11px "DM Sans",sans-serif; }
.tl-reader-page-add { flex: 0 0 38px; align-self: start; display: grid; place-items: center; width: 38px; height: 38px; margin-top: 1px; padding: 0; border: 1px solid #e9d9b14a; border-radius: 10px; color: #eadbb7; background: #e9d9b10d; }
.tl-reader-page-add:hover { color: #17191e; background: #e9d9b1; }
.tl-reader-page-add:disabled { cursor: not-allowed; opacity: .4; }
.tl-reader-notes { align-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; margin-top: 1px; padding: 0 12px; border: 1px solid #e9d9b13d; border-radius: 10px; color: #e9e4d8; background: #e9d9b10a; font: 600 11px/1 "DM Sans",sans-serif; white-space: nowrap; }
.tl-reader-notes:hover { color: #fff8e8; border-color: #e9d9b173; background: #e9d9b114; }
.tl-reader-notes svg { width: 16px; height: 16px; }
.tl-reader-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; max-width: 1400px; margin: 0 auto; }
.tl-reader-layout.tl-has-chapters { grid-template-columns: 235px minmax(0,1fr); }
.tl-reader-layout .teaching-page-content { width: 100%; min-width: 0; }
.tl-chapter-panel { position: sticky; top: 80px; padding: 30px 16px 24px 24px; max-height: calc(100dvh - 100px); overflow: auto; }
.tl-chapter-panel[hidden] { display: none !important; }
.tl-chapter-panel h2 { font: 600 16px "Manrope",sans-serif; margin: 6px 0 22px; }
.tl-chapter-row { display: flex; align-items: center; margin-bottom: 5px; }
.tl-chapter-row > button:first-child { display: flex; flex: 1; align-items: center; text-align: left; gap: 11px; min-width: 0; padding: 13px 11px; background: transparent; border: 0; color: #a5a8b0; border-radius: 8px; }
.tl-chapter-row > button[aria-current=page] { color: #e4d3ab; background: #e9d9b112; }
.tl-chapter-row button > span { font-size: 10px; opacity: .65; }
.tl-chapter-row strong { font: 500 12px/1.5 "DM Sans",sans-serif; overflow-wrap: anywhere; }
.tl-chapter-row svg { width: 13px; height: 13px; }
.tl-chapter-row .tl-icon-button { min-width: 28px; width: 28px; border: 0; }
.tl-add-chapter { margin-top: 18px; width: 100%; font-size: 11px; }
.tl-editing-pill { color: #c7b68e; font-size: 11px; }
.tl-reader-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 30px 24px 100px; }
.tl-reader-footer > span { color: #a5a5ab; font-size: 11px; }
.tl-reader-footer[hidden] { display: none; }
.tl-empty-chapter { margin: 15px 0 50px; }
.tl-empty-chapter > svg { width: 28px; height: 28px; color: #ddcda6; }
.tl-reader-drawer { position: fixed; z-index: 130; right: 14px; top: 14px; bottom: 14px; display: flex; flex-direction: column; width: min(420px,calc(100vw - 28px)); padding: 25px; overflow: auto; border: 1px solid #45454b; border-radius: 18px; color: #ece9e2; background: #191c22; box-shadow: -20px 0 70px #0008; }
.tl-reader-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.tl-reader-drawer h2 { margin: 0; font: 600 22px "Manrope",sans-serif; }
.tl-drawer-reference { display: flex; flex-direction: column; gap: 7px; padding: 15px 0; border-top: 1px solid #393a3e; border-bottom: 1px solid #393a3e; }
.tl-drawer-reference small { color: #9fa0a9; font-size: 11px; }
.tl-drawer-reference strong { color: #deceaa; font-size: 13px; font-weight: 500; }
.tl-reader-drawer .tl-note-body textarea { min-height: 230px; resize: none; }
.tl-sharing-info { font-size: 12px; line-height: 1.7; color: #bfaf8c; margin: 0 0 20px; }
.tl-comments { flex: 1; overflow: auto; min-height: 90px; }
.tl-comments > article { margin: 0 0 16px; padding: 16px; border: 1px solid #353840; border-radius: 12px; background: #15171c; }
.tl-comments article header { display: flex; justify-content: space-between; gap: 10px; }
.tl-comments article strong { font-size: 12px; }
.tl-comments article small { color: #888d98; font-size: 10px; }
.tl-comments article p { white-space: pre-wrap; overflow-wrap: anywhere; color: #d4d4d4; font: 400 13px/1.7 "DM Sans",sans-serif; }
.tl-comments .tl-text-button { font-size: 10px; }
.tl-comments .tl-empty { padding: 24px 15px; }
.tl-comment-form { border-top: 1px solid #363840; margin-top: 15px; }
.tl-comment-form .tl-primary { width: 100%; }
.tl-resource-list a { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; padding: 16px; border: 1px solid #3a3e46; border-radius: 10px; text-decoration: none; color: #e5d5b2; font-size: 13px; }
.tl-resource-list a span { flex: 1; overflow-wrap: anywhere; }
.tl-resource-list small { display: block; color: #9ca0ab; font-size: 11px; margin-top: 5px; }
@media (max-width: 760px) {
  .tl-hub { padding: 8px 0 25px; }
  .tl-eyebrow { font-size: 8px; letter-spacing: .12em; }
  .tl-spaces { gap: 3px; margin-bottom: 20px; padding: 4px; }
  .tl-spaces button { padding-inline: 4px; font-size: 10px; }
  .tl-teaching-grid { gap: 17px; }
  .tl-library { gap: 40px; }
  .tl-library-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tl-library-heading p { text-align: left; }
  .tl-featured-open { grid-template-columns: minmax(0,1fr); }
  .tl-featured-visual { min-height: 150px; }
  .tl-featured-copy { padding: 20px 48px 22px 18px; }
  .tl-featured-copy strong { font-size: 18px; }
  .tl-featured-arrow { display: none; }
  .tl-published-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .tl-published-book-cover { padding: 18px 13px 17px 21px; }
  .tl-published-book-cover small { top: 18px; left: 21px; }
  .tl-published-book-sender { top: 33px; left: 21px; right: 41px; }
  .tl-published-book-cover strong { font-size: 16px; }
  .tl-card-visual { height: 155px; }
  .tl-notebook-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .tl-notebook-cover { aspect-ratio: .72; padding: 18px 13px 17px 21px; }
  .tl-notebook-cover > span { font-size: 16px; }
  .tl-notebook-page { inset: auto 0 0; width: 100%; height: auto; max-height: min(82dvh,720px); border: 1px solid rgba(235,224,200,.16); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -24px 80px rgba(0,0,0,.48); animation: tlNotebookSheetIn .34s cubic-bezier(.22,.8,.24,1) backwards; overscroll-behavior: contain; }
  .tl-notebook-page.is-closing { animation: tlNotebookSheetOut .3s cubic-bezier(.4,0,.8,.2) both; }
  .tl-notebook-panel-shell { min-height: 0; }
  .tl-notebook-panel-shell::before { content: ""; position: absolute; z-index: 6; top: 7px; left: 50%; width: 36px; height: 4px; border-radius: 4px; background: rgba(235,224,200,.2); transform: translateX(-50%); }
  .tl-notebook-title { margin: 24px 62px 0; font-size: 18px; text-align: center; }
  .tl-notebook-close { top: 14px; align-self: flex-start; width: 36px; height: 36px; margin: -29px 0 -7px 12px; }
  .tl-notebook-close svg { display: none; }
  .tl-notebook-close::before { content: ""; position: absolute; top: 13px; left: 9px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(135deg); }
  .tl-notebook-close::after { content: ""; position: absolute; top: 17px; left: 10px; width: 15px; height: 2px; border-radius: 999px; background: currentColor; }
  .tl-notebook-page-main { width: 100%; padding: 24px 18px calc(92px + env(safe-area-inset-bottom)); }
  .tl-notebook-chapter-row { grid-template-columns: 32px minmax(0,1fr) 16px; gap: 10px; min-height: 78px; padding: 13px 4px; }
  .tl-notebook-chapter-row strong { font-size: 16px; }
  .tl-slide-fab { right: max(18px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .tl-cover-picker { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tl-reader-nav { position: sticky; gap: 7px; padding: 8px 12px 5px; }
  .tl-reader-page-tab { max-width: min(190px,65vw); min-height: 36px; padding: 7px 10px; }
  .tl-reader-page-tab > strong { font-size: 10px; }
  .tl-reader-page-edit { grid-template-columns: 30px minmax(82px,150px); min-height: 36px; }
  .tl-reader-page-edit input { height: 34px; font-size: 10px; }
  .tl-reader-page-add { width: 36px; height: 36px; }
  .tl-reader-notes { height: 36px; padding-inline: 10px; }
  .tl-reader-layout.tl-has-chapters { grid-template-columns: minmax(0,1fr); }
  .tl-chapter-panel { position: static; max-height: 45dvh; padding: 18px; border-bottom: 1px solid #32343b; }
  .tl-reader-footer { padding: 20px 16px 105px; gap: 10px; }
  .tl-reader-footer button { font-size: 11px; padding: 9px 10px; }
  .tl-reader-footer > span { display: none; }
  .tl-reader-drawer { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); padding: 22px; }
  .tl-dialog { padding: 22px; }
  .tl-dialog input:not([type=checkbox]), .tl-dialog select, .tl-dialog textarea, .tl-note-body textarea { font-size: 16px; }
}
@media (max-width: 520px) {
  .tl-reader-nav { grid-template-columns: minmax(0,1fr) 36px; }
  .tl-reader-pages-scroll { flex: 1 1 auto; }
  .tl-reader-notes { width: 36px; padding: 0; gap: 0; }
  .tl-reader-notes > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-hub * { transition: none !important; }
  .tl-notebook-page { animation: none !important; }
}
