@font-face{font-family:"Noto Sans Devanagari";src:url("fonts/noto-sans-devanagari.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
:root{--paper:#f7f6f3;--ink:#262925;--muted:#656a63;--line:#e5e6e0;--white:#fff;--green:#edf3ec;--green-ink:#346538;--red:#9f2f2d;--red-bg:#fdebec;--amber:#fbf3db;--radius:6px;color:var(--ink);background:var(--paper);font-family:"Helvetica Neue",Arial,"Noto Sans Devanagari",sans-serif;font-size:15px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,.button{border:1px solid #d4d7ce;background:var(--white);border-radius:var(--radius);padding:9px 14px;line-height:1.4;text-decoration:none}@media(hover:hover) and (pointer:fine){button:hover:not(:disabled){background:#f0f1ec;border-color:#b9bfb3}}button.primary{background:var(--ink);color:white;border-color:var(--ink)}@media(hover:hover) and (pointer:fine){button.primary:hover:not(:disabled){background:#444a40}}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-underline-offset:3px}@media(hover:hover) and (pointer:fine){a:hover{color:var(--green-ink)}}:focus-visible{outline:3px solid #517943;outline-offset:3px}input,select,textarea{display:block;width:100%;padding:10px 11px;background:var(--white);border:1px solid #c5cbbf;border-radius:var(--radius);min-height:44px}textarea{resize:vertical;min-height:92px}input:disabled,select:disabled{background:#f3f3ef;color:#666b61}label{display:block;font-size:12px;font-weight:600;letter-spacing:.015em}label input,label select,label textarea{margin-top:6px;font-size:15px;font-weight:400;letter-spacing:0}h1,h2,p{margin-top:0}h1{font-family:Georgia,"Noto Sans Devanagari",serif;font-size:42px;line-height:1.15;letter-spacing:-.035em;font-weight:400;margin-bottom:12px}h2{font-size:24px;font-weight:500;line-height:1.35;margin-bottom:0}p:last-child{margin-bottom:0}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:9px}.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}.skip-link{position:fixed;left:20px;top:-80px;z-index:10;background:white;padding:12px}.skip-link:focus{top:12px}
.site-header{display:flex;align-items:center;gap:36px;min-height:92px;padding:18px max(32px,calc((100vw - 1240px)/2));background:#fff;border-bottom:1px solid var(--line)}.brand{text-decoration:none;white-space:nowrap;font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.4}.brand-caption{display:block;font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin-top:4px}nav{display:flex;gap:5px}nav button{border-color:transparent;background:transparent;color:var(--muted);padding:9px 13px}nav button[aria-current="page"]{color:var(--ink);background:#f0f1ea}.identity{margin-left:auto;text-align:right;font-size:12px;color:var(--muted);max-width:230px;overflow-wrap:anywhere}main{max-width:1304px;padding:0 32px;margin:auto;outline:none}.page{padding-top:48px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}.page-heading p{margin-bottom:0}.page-heading .eyebrow{margin-bottom:10px}.actions{display:flex;gap:8px;flex-shrink:0}.export-actions{padding-bottom:6px}.announcement:not(:empty){border:1px solid #cddbc6;background:var(--green);color:var(--green-ink);padding:13px 16px;border-radius:var(--radius);margin-top:20px}.announcement.error{background:var(--red-bg);color:var(--red);border-color:#e9c4c1}.next-session{background:#edf0e7;border:1px solid #dfe4d8;padding:23px 26px;display:grid;grid-template-columns:300px 1fr auto;align-items:center;gap:28px;border-radius:8px;margin-bottom:34px}.next-session .eyebrow{color:#516744;margin-bottom:4px}.next-session h2{font-size:25px;margin-bottom:3px}.next-session .subject{font-size:17px}.next-session .detail{font-size:13px;color:var(--muted)}.next-session .muted{margin:0}.toolbar{display:flex;align-items:flex-end;gap:18px;margin-bottom:18px}.search-label{width:340px}.toolbar select{min-width:190px}.count{margin:0 0 10px auto;font-size:12px;white-space:nowrap}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}thead{background:#f9faf7}th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:14px 18px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:20px 18px;vertical-align:middle;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}.schedule-table td:nth-child(1){min-width:165px}.schedule-table td:nth-child(2){width:37%;min-width:230px}.schedule-table td:nth-child(3){min-width:155px}.schedule-table td:nth-child(4){min-width:120px}.session-date{display:block;font-weight:500;white-space:nowrap}.session-number{display:block;color:var(--muted);font-size:11px;letter-spacing:.02em;margin-top:3px}.row-off{background:#faf9f5}.tag{display:inline-block;padding:2px 7px;border-radius:3px;font-size:11px;line-height:1.5;font-weight:600;background:var(--green);color:var(--green-ink)}.tag.off{color:#796016;background:var(--amber)}.tag.inactive{background:#efefed;color:#62655e}.recording-link{font-size:12px;font-weight:500}.text-button{background:transparent;border-color:transparent;padding:7px 10px;font-size:12px;text-decoration:underline;text-underline-offset:3px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:20px 0}.pagination span{font-size:12px}.empty-state{padding:70px 20px;text-align:center;color:var(--muted)}.people-table td:nth-child(2){overflow-wrap:anywhere}.people-table td:first-child{min-width:155px;font-weight:500}footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:56px;padding:22px 0 30px;font-size:11px;color:var(--muted)}
.reading-page{max-width:860px}.notice{padding:16px 19px;border-left:3px solid #bd9d3c;background:var(--amber);font-size:14px;line-height:1.65;border-radius:0 5px 5px 0;margin-bottom:22px}.notice p{margin-top:5px}.help-steps{padding:0;list-style:none;counter-reset:steps}.help-steps>li{counter-increment:steps;padding:25px 0 25px 54px;border-bottom:1px solid var(--line);position:relative}.help-steps>li::before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:25px;font-family:Georgia,serif;font-size:24px;color:#787f70}.help-text{white-space:pre-wrap;overflow-wrap:anywhere}.help-links{display:flex;flex-direction:column;gap:8px;font-size:13px;margin-top:12px}.help-links a{width:fit-content}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.icon-button{border-color:transparent;font-size:27px;line-height:1;padding:4px 9px;background:transparent}.dialog-heading .eyebrow{margin-bottom:5px}dialog{width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:30px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink)}dialog::backdrop{background:rgba(22,27,19,.42)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}.form-grid .wide{grid-column:1/-1}.field-hint{font-size:12px;color:var(--muted);margin:5px 0 0;font-weight:400}.checkbox-field{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:400}.checkbox-field input{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--green-ink)}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:27px;padding-top:20px}.dialog-actions>span{margin-right:auto;font-size:12px}.form-error{color:var(--red);background:var(--red-bg);padding:12px 15px;margin-top:20px;border-radius:var(--radius);font-size:14px}#reload-latest{margin-top:10px}
@media(max-width:900px){.site-header{flex-wrap:wrap;gap:16px;padding:18px 24px}.identity{font-size:11px}main{padding:0 24px}.next-session{grid-template-columns:240px 1fr}.next-session>button{grid-column:2;justify-self:start}.page-heading{align-items:flex-start}h1{font-size:36px}.export-actions{flex-direction:column}.people-table th,.people-table td{padding:14px}.toolbar{flex-wrap:wrap}.count{margin-left:0}.search-label{flex:1;min-width:220px}}
@media(max-width:560px){.site-header{padding:17px 18px;gap:15px}.brand{font-size:18px}.identity{max-width:145px;margin-left:auto}nav{order:3;width:100%;border-top:1px solid var(--line);padding-top:12px;gap:8px}nav button{flex:1}main{padding:0 18px}.page{padding-top:30px}.page-heading{flex-direction:column;gap:17px;margin-bottom:24px}h1{font-size:34px}.export-actions{flex-direction:row}.next-session{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:20px;margin-bottom:24px}.next-session>div:first-child{padding-bottom:10px;border-bottom:1px solid #d4dccb;width:100%}.toolbar{gap:13px}.search-label{flex-basis:100%}.toolbar>label:nth-child(2){flex:1}.toolbar select{min-width:0}.count{font-size:11px}.schedule-table td:nth-child(2){min-width:200px}td{padding:17px 14px}.pagination{justify-content:space-between;gap:8px}.pagination button{font-size:12px}footer{flex-direction:column;gap:5px;margin-top:36px}dialog{padding:22px;max-height:calc(100dvh - 24px)}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.dialog-actions{flex-wrap:wrap}.dialog-actions>span{flex-basis:100%}.help-steps>li{padding-left:42px}.help-steps>li::before{font-size:22px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,border-color .12s}.page{animation:appear .2s ease-out}@keyframes appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}

.worker-status{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:0 0 24px;margin-top:-12px;font-size:12px}.worker-status p{margin:0}.worker-status button{font-size:12px;white-space:nowrap}.worker-status p:first-child{font-weight:500}.status-error{color:var(--red);margin-top:5px!important}.recording-cell{min-width:160px}.recording-cell .recording-link{display:block;margin-top:5px}.job-status{margin-bottom:4px}.tag.pending{background:#efefed;color:#62655e}.tag.failed{background:var(--red-bg);color:var(--red)}.job-error{font-size:12px;color:var(--red);max-width:260px;overflow-wrap:anywhere}.job-error summary{cursor:pointer}.job-error p{margin:6px 0}.recording-cell .text-button{padding:3px 0;display:block}@media(hover:hover) and (pointer:fine){.recording-cell .text-button:hover{background:transparent}}.worker-status .muted{font-size:11px}

.article-cell{min-width:140px}.article-cell .recording-link{display:block}.article-cell .tag{margin-top:6px}.article-cell .text-button{display:block;padding:4px 0}.article-source-choice{border:0;padding:0;margin:0 0 22px}.article-source-choice legend{font-size:12px;font-weight:600;margin-bottom:10px}.article-source-choice label{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:400;margin:8px 0}.article-source-choice input{width:16px;height:16px;min-height:16px;margin:0}#article-file{padding:10px}#reload-article-session{margin-top:10px}

.session-actions .text-button{display:block;white-space:nowrap}.session-actions .day-off-action{color:#6c6142}.day-off-email{margin-top:8px;font-size:11px;line-height:1.5;color:var(--muted)}.day-off-email.error{color:var(--red)}.day-off-email details{max-width:250px;overflow-wrap:anywhere}.day-off-email summary{cursor:pointer}.day-off-email p{margin:5px 0}#reload-day-off{margin-top:10px}

.test-session-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;background:#fbf3db;border:1px solid #e6d9b0;border-radius:6px;margin-bottom:22px;font-size:13px}.test-session-banner p{margin:0}.test-session-banner button{font-size:12px;white-space:nowrap}.test-tag{margin-top:5px;background:#fbf3db;color:#796016}.archive-action{color:var(--red)}.export-actions{flex-wrap:wrap;justify-content:flex-end;max-width:510px}#reload-archive{margin-top:10px}@media(max-width:560px){.test-session-banner{align-items:flex-start;flex-direction:column}.export-actions{justify-content:flex-start}.page-heading .actions{width:100%}}

.standalone-form{display:grid;gap:18px;padding:24px;background:var(--white);border:1px solid var(--line);border-radius:8px;margin-bottom:30px}.standalone-form .form-error{margin-top:0}.standalone-submit{display:flex;align-items:center;gap:15px}.standalone-submit span{font-size:12px}.standalone-worker{margin-top:0}.standalone-recordings{list-style:none;margin:0;padding:0}.standalone-recording{display:flex;justify-content:space-between;gap:24px;padding:22px 0;border-top:1px solid var(--line)}.standalone-detail{min-width:0;overflow-wrap:anywhere}.standalone-detail h2{font-size:18px;margin-bottom:6px}.recording-filename,.recording-metadata{font-size:12px;margin:7px 0 0}.standalone-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:130px}.standalone-actions .text-button{padding:4px 0}.standalone-actions .recording-link{white-space:nowrap}@media(max-width:560px){nav{gap:0}nav button{padding:9px 8px}.standalone-form{padding:18px}.standalone-recording{flex-direction:column;gap:12px}.standalone-worker{align-items:flex-start;flex-wrap:wrap}}

#recordings-page .standalone-form{max-width:860px}.recording-section-title{margin:30px 0 8px}.history-selection{display:flex;align-items:center;gap:18px;margin:18px 0;font-size:12px}.history-selection label{display:flex;align-items:center;gap:9px;font-size:13px}.history-selection input,.history-table input[type=checkbox]{display:inline-block;width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--green-ink)}.history-selection button{margin-left:auto}.history-table{margin-top:0}.history-table td{vertical-align:top;min-width:125px;font-size:12px}.history-table td:has(input[type=checkbox]){min-width:46px}.history-name{display:block;font-weight:600}.history-detail{display:block;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.history-table .recording-link{display:inline-block;margin-top:5px}.history-table .text-button{padding:0;white-space:nowrap}.history-table td:nth-child(2){max-width:280px;overflow-wrap:anywhere}.folder-scan{margin:0 0 9px;font-size:11px;color:var(--muted)}.folder-scan summary{cursor:pointer}.folder-scan p{margin:5px 0;max-width:230px;overflow-wrap:anywhere}#history-delete-list{max-height:30vh;overflow-y:auto;overflow-wrap:anywhere}@media(max-width:560px){.history-selection{flex-wrap:wrap;gap:12px}.history-selection button{margin-left:0}}

.page-permissions{border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}.page-permissions legend{font-weight:600;font-size:14px;padding:0 5px}.page-permissions .checkbox-field{margin:5px 0}.page-permissions .field-hint{margin-top:12px}
.public-login{margin-left:auto;white-space:nowrap}.public-assignments{margin:12px 0 0}.public-assignments dt{font-size:11px;color:var(--muted);margin-top:9px}.public-assignments dd{margin:0;font-size:13px}

/* Keep the same cells and actions when a schedule becomes a narrow-screen list. */
body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.site-header{border-top:env(safe-area-inset-top,0px) solid white}button,a,summary{touch-action:manipulation}button,.button{user-select:none;-webkit-user-select:none}dialog{overscroll-behavior:contain}.form-grid>*{min-width:0}
@media(pointer:coarse),(max-width:650px){button,.button{min-height:44px}label input,label select,label textarea,input,select,textarea{font-size:16px}.checkbox-field,.article-source-choice label{min-height:44px}.recording-link{display:inline-flex;align-items:center;min-height:44px}.schedule-table summary{min-height:44px;align-content:center}.icon-button{min-width:44px}.text-button{min-height:44px}}
@media(max-width:650px){
.schedule-wrap{overflow:visible;background:transparent;border:0;border-radius:0}.schedule-table,.schedule-table tbody,.schedule-table tr,.schedule-table td{display:block;width:100%}.schedule-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.schedule-table tr{background:var(--white);border:1px solid var(--line);border-radius:8px;margin-bottom:16px;overflow:hidden}.schedule-table tr.row-off{background:#faf9f5}.schedule-table td:nth-child(n){min-width:0;width:100%;padding:12px 16px;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}.schedule-table tbody tr td:last-child{border-bottom:0}.schedule-table td:first-child{background:#f0f2eb;padding:15px 16px}.schedule-table td:not(:first-child)::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;letter-spacing:.04em;font-weight:600;margin-bottom:5px}.schedule-table td:nth-child(2){font-size:16px}.session-date{white-space:normal}.schedule-table .recording-link{display:flex;align-items:center;margin-top:0;font-size:14px}.schedule-table .text-button{font-size:14px;text-align:left}.schedule-table .session-actions{display:flex;flex-wrap:wrap;gap:4px 14px}.schedule-table .session-actions::before{flex-basis:100%}.schedule-table .session-actions .text-button{white-space:normal}.worker-status{align-items:flex-start;flex-wrap:wrap}.toolbar>*{min-width:0}.search-label{min-width:0}.pagination button{flex-shrink:0}.pagination span{text-align:center}.site-header>*,.page-heading>*{min-width:0}nav{flex-wrap:wrap}.identity{overflow-wrap:anywhere}.actions{flex-wrap:wrap}dialog{width:calc(100% - 24px);padding:16px}.dialog-heading{gap:8px}.dialog-heading h2{overflow-wrap:anywhere}.dialog-actions button{flex-grow:1}
}

@media(max-width:650px){.pagination{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr) 44px;gap:8px}.pagination span{grid-column:1/-1;grid-row:1}.pagination button{padding:9px 6px;min-width:44px}.pagination button:nth-of-type(1){grid-column:1}.pagination button:nth-of-type(2){grid-column:2}.pagination button:nth-of-type(3){grid-column:3}.pagination button:nth-of-type(4){grid-column:4}}

.mobile-rail{display:none}
@media(max-width:650px){body.has-mobile-rail main{padding-right:calc(52px + env(safe-area-inset-right,0px))}.mobile-rail{display:block;position:fixed;right:env(safe-area-inset-right,0px);top:50%;transform:translateY(-50%);width:44px;height:min(46dvh,330px);z-index:5;touch-action:none;user-select:none;-webkit-user-select:none;cursor:ns-resize;border-radius:10px}.mobile-rail-track{position:absolute;inset:0 15px}.mobile-rail-track span{position:absolute;right:0;width:8px;height:1px;background:#b6bdaf}.mobile-rail-track span:nth-child(5n+1){width:13px}.mobile-rail-marker{position:absolute;right:12px;width:18px;height:4px;border-radius:4px;background:var(--green-ink);transform:translateY(-50%);pointer-events:none}.mobile-rail-preview{display:none;position:absolute;right:40px;top:50%;transform:translateY(-50%);width:max-content;max-width:min(230px,calc(100vw - 80px));padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);box-shadow:0 3px 12px #26292518;font-size:12px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}.mobile-rail.is-previewing .mobile-rail-preview{display:block}.mobile-rail.is-dragging{background:#edf3ecb3}}
@media(prefers-reduced-motion:no-preference){.mobile-rail:not(.is-dragging) .mobile-rail-marker{transition:top .12s ease-out}}
@media print{.mobile-rail{display:none!important}body.has-mobile-rail main{padding-right:0}}

.inline-article{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.inline-article .dialog-heading{margin-bottom:12px}.inline-article .dialog-heading h2{font-size:20px}.inline-article .dialog-actions{margin-top:18px;padding-top:14px}.inline-article>#inline-article-current:empty{display:none}.recording-exceptions{border:1px solid var(--line);border-radius:6px;margin-top:24px;padding:12px 16px}.recording-exceptions>summary{cursor:pointer;font-weight:600;min-height:44px;align-content:center}.recording-exceptions[open]>summary{margin-bottom:10px}.recording-exceptions .form-grid{margin-top:16px}#editor-article-slot .field-hint{overflow-wrap:anywhere}@media(max-width:650px){.inline-article{padding-top:18px;margin-top:20px}.recording-exceptions{padding:10px 12px}.inline-article .dialog-actions{flex-wrap:wrap}}

.session-time{display:block;max-width:42ch;margin-top:.4rem;font-size:.8rem;line-height:1.6;color:var(--muted);white-space:pre-line}

.start-preview{width:min(860px,calc(100vw - 24px));max-height:80dvh;padding:20px;overflow:hidden}.start-preview[open]{display:flex;flex-direction:column;gap:12px}.start-preview .dialog-heading,.start-preview p{margin:0}.start-preview .dialog-heading h2{font-size:20px}.start-preview-tools{display:flex;align-items:flex-end;gap:12px}.start-preview-tools label:first-child{flex:1;min-width:0}.start-preview-tools select{max-width:100%}.start-preview-tools input{width:80px}.start-preview-scroll{min-height:80px;overflow:auto;overscroll-behavior:contain;flex:1;border-block:1px solid var(--line);padding:12px 8px;scroll-padding:12px}.start-preview article{font-size:17px;line-height:1.9;overflow-wrap:anywhere}.start-preview article p,.start-preview article ul,.start-preview article ol{margin:0 0 1em}.start-preview article pre,.start-preview article table{max-width:100%;overflow:auto;display:block}.start-preview article pre{white-space:pre-wrap}.start-preview article h1,.start-preview article h2,.start-preview article h3{font-size:1.2em;line-height:1.5;margin:1em 0 .5em}.start-preview-selected{outline:2px solid var(--green-ink);outline-offset:3px;background:#edf3e7}.start-preview-footer{flex-shrink:0}.start-preview-footer .dialog-actions{margin-top:10px;padding-top:0;border:0}.start-preview [data-status]{font-size:13px}.start-preview [data-status].error{color:var(--red)}.start-preview [hidden]{display:none!important}
@media(max-width:650px){.start-preview{padding:14px;max-height:82dvh}.start-preview-tools{flex-wrap:wrap;gap:8px}.start-preview-tools label:first-child{flex-basis:calc(100% - 92px)}.start-preview-tools [data-full]{min-height:36px}.start-preview-footer .dialog-actions{display:flex;justify-content:flex-end}.start-preview [data-reference]{font-size:12px}.start-preview .dialog-heading h2{font-size:18px}}

.toolbar{flex-wrap:wrap}.toolbar>label{min-width:0}@media(max-width:650px){.toolbar>label:not(.search-label){flex:1 1 130px}.toolbar select{min-width:0;width:100%}}

.identity #logout{display:block;min-height:44px;align-content:center;font-size:12px;text-underline-offset:3px}

.public-pagination{flex-wrap:wrap}#public-page-numbers{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;order:1;width:100%}#public-page-numbers button{min-width:44px;min-height:44px}#public-page-numbers button[aria-current="page"]{background:var(--green-ink);color:white}@media(max-width:650px){#public-page-numbers{grid-column:1/-1;grid-row:3;order:initial}}

#recording-batch-files{max-height:35dvh;overflow:auto;padding-left:24px;overflow-wrap:anywhere}#recording-batch-files li{padding:6px 0}

/* Keep the schedule focused on reading. Editing controls belong with their article. */
.reading-link {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) .8rem;
  align-items: baseline;
  gap: .45rem;
  padding: .35rem 0;
  color: var(--green-ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.reading-link::after { content: "↗"; color: var(--muted); font-size: .8rem; }
.reading-link::before {
  content: attr(data-position);
  background: var(--green);
  border-radius: 4px;
  text-align: center;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5rem;
}
.reading-link:hover, .reading-link:focus-visible { text-decoration: underline; }
.reading-manage, .reading-action {
  padding: .3rem .6rem;
  font-size: .8rem;
  text-align: start;
}
.article-cell .reading-manage:not(:first-child) { margin-top: .35rem; }
.inline-article > h2 { margin-bottom: .65rem; font-size: 1.25rem; }
.reading-item { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.reading-controls { display: flex; flex-wrap: wrap; gap: .5rem; padding-left: 1.95rem; }
.reading-controls button { font-size: .8rem; }
.inline-article #article-form { padding: 1rem; margin-top: 1rem; background: #f7f8f5; border-radius: var(--radius); }
.inline-article #article-editor-title { font-size: 1.1rem; overflow-wrap: anywhere; }
@media (min-width: 651px) {
  .schedule-table td.article-cell { min-width: 185px; }
}
@media (max-width: 650px), (pointer: coarse) {
  .reading-link { min-height: 44px; align-items: center; }
  .reading-manage, .reading-controls button, .reading-action { min-height: 44px; }
}

.next-session .next-readings {
  max-width: 32rem;
  margin-top: 1rem;
  border-top: 1px solid #d4dccb;
  padding-top: .75rem;
}
.next-readings .reading-link::before { background: var(--white); }
.next-session > div { min-width: 0; }
@media (max-width: 560px) {
  .next-session > div { width: 100%; }
}

/* Markside Study Book defaults. Scope them to the article in either reader. */
@font-face {
  font-family: "Tiro Devanagari Marathi";
  src: local("Tiro Devanagari Marathi"), url("fonts/tiro-marathi.ttf") format("truetype");
  font-display: swap;
}

[data-study-book] { color-scheme: light dark; }
:is(#article-content, .start-preview article, .style-sample)[data-study-book] :is(h1,h2,h3,h4,h5,h6) { font-family: inherit; }
[data-study-book] [data-study-marker]::before { content: attr(data-study-marker); }
[data-study-book] .study-rule { height: 0; overflow: hidden; font-size: 0; border-top: 2px solid currentColor; }
[data-study-book] hr:has(+ h3) { display: none; }
[data-study-book] .footnotes::before { content: ""; display: block; width: 25%; margin-bottom: 1em; border-top: 1px solid currentColor; }
:is(#article-content,.start-preview article)[data-study-book] blockquote:is(.study-mantra,.study-ovi) { border: 0; padding-inline: 0; color: inherit; }
@media (prefers-color-scheme: dark) {
  :is(.article-layout,.start-preview-scroll):has([data-study-book]), .style-sample[data-study-book] {
    background: #252622; color: #f4f1e9;
  }
  #article-content[data-study-book] :is(code,pre,table) { background: #3b3d37; color: #f4f1e9; }
}
.style-settings { display:grid; grid-template-columns:minmax(0, 3fr) minmax(250px, 2fr); align-items:start; gap:clamp(16px,3vw,40px); }
.style-rule-list,.style-preview { background:var(--white); border:1px solid var(--line); border-radius:10px; }
.style-rule { padding:12px 16px; }
.style-rule + .style-rule { border-top:1px solid var(--line); }
.style-rule-line,.style-actions,.style-preview-head,.style-color { display:flex; align-items:center; gap:10px; }
.style-rule-line > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.style-rule-line small { display:block; color:var(--muted); }
.style-rule-line input[role=switch] { appearance:none; width:42px; min-height:26px; height:26px; border-radius:20px; padding:2px; cursor:pointer; background:#787d75; }
.style-rule-line input[role=switch]::before { content:""; display:block; width:20px; height:20px; border-radius:50%; background:white; }
.style-rule-line input[role=switch]:checked { background:var(--green-ink); }
.style-rule-line input[role=switch]:checked::before { transform:translateX(15px); }
.style-rule-form { background:var(--paper); padding:14px; margin-top:12px; border-radius:8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.style-rule-form .wide { grid-column:1/-1; }
.style-color { align-items:end; flex-wrap:wrap; }
.style-color input { width:62px; padding:3px; }
.style-actions { flex-wrap:wrap; padding:10px 0; }
.style-actions p { margin:0; }
.style-preview { position:sticky; top:12px; overflow:hidden; }
.style-preview-head { padding:14px; justify-content:space-between; border-bottom:1px solid var(--line); }
.style-preview-head h2 { font-size:18px; }
.style-preview-head select { width:auto; }
.style-sample { padding:20px; overflow-wrap:anywhere; }
.style-sample h1 { font-size:1.8em; }
.style-sample[data-theme=light] { color-scheme:light; color:#262925; background:white; }
.style-sample[data-theme=dark] { color-scheme:dark; color:#f4f1e9; background:#252622; }
@media (max-width:800px) { .style-settings { grid-template-columns:minmax(0,1fr); } .style-preview { position:static; } }
@media (max-width:520px) { .style-rule-form { grid-template-columns:1fr; } .style-rule { padding:10px; } }

.style-preview-jump { display:none; }
@media (max-width:800px) { .style-preview-jump { display:inline-block; } }
#library-create,#library-convert { max-width:720px; margin-bottom:1em; }
#library-create label,#library-convert label { margin-bottom:.7em; }
#library-convert summary { cursor:pointer; }
#library-list { margin-top:1em; }
.library-row { display:flex; justify-content:space-between; align-items:center; gap:1em; padding:.85em; border-bottom:1px solid var(--line); }
.library-row strong,.library-row small { display:block; }.library-row small {color:var(--muted);}

#library-details { width:min(38rem,94vw); max-height:85dvh; overflow:auto; }
#library-details header,.library-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
#library-details h2,.library-title,.library-reading a { overflow-wrap:anywhere; min-width:0; }
.library-row .library-title { text-align:start; font-weight:600; }
.library-row small { white-space:nowrap; }
#library-details-content,#library-details-content details[open],.library-session,.library-reading { display:grid; gap:.5rem; }
#library-details-content summary { cursor:pointer; padding:.6rem 0; font-weight:600; }
.library-session { border-top:1px solid var(--line); padding:.9rem 0; }
.library-session a { width:fit-content; }
.library-reading { grid-template-columns:minmax(0,1fr) auto; align-items:baseline; }
.library-reading small { grid-column:1/-1; color:var(--muted); }
@media(max-width:600px){.library-reading {grid-template-columns:minmax(0,1fr);} }
