@import url("/css/fonts.css");
.urdu,[lang="ur"]{font-family:var(--urdu)}
:root{color-scheme:light;--paper:#f5f1e8;--surface:#fffdf8;--ink:#262b25;--muted:#657068;--line:#d8ddcf;--green:#254d3a;--green-soft:#e7eee6;--amber:#8b5d25;--urdu:Calibri,"Farhang Naskh","Calibri Light",Arial,sans-serif;font-family:Calibri,"Calibri Light",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #347756;outline-offset:2px}.shell{min-height:100vh;display:flex;flex-direction:column}.masthead{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.8rem}.brand-mark{width:2.8rem;height:2.8rem;border-radius:.7rem;background:var(--green);color:#fff;text-align:center;line-height:2.6rem;font:2rem var(--urdu)}.brand strong{display:block;font-family:var(--urdu);font-size:1.2rem;letter-spacing:.01em}.brand small{color:var(--muted)}.header-actions{display:flex;align-items:center;gap:1rem}.connection{font-size:.85rem;color:var(--muted)}.connection.error{color:#a23327}.primary-nav{display:flex;gap:.3rem;padding:0 1.5rem;background:var(--surface);border-bottom:1px solid var(--line)}.tab{background:none;border:0;border-bottom:3px solid transparent;padding:.85rem 1rem;color:var(--muted);font-weight:600}.tab.active{color:var(--green);border-bottom-color:var(--green)}.count{font-size:.76rem;background:var(--green-soft);padding:.12rem .44rem;border-radius:1rem;margin-left:.3rem}.workbench{display:grid;grid-template-columns:19rem minmax(0,1fr);min-height:0;flex:1}.sidebar{border-right:1px solid var(--line);background:#f9f7f1;min-height:0;display:flex;flex-direction:column}.sidebar-tools{padding:1.15rem;border-bottom:1px solid var(--line)}.field-label{display:block;color:#4c584e;font-weight:600;font-size:.85rem;margin:.7rem 0 .3rem}.sidebar-tools .field-label{margin-top:0}input[type=search],input[type=number],select,textarea,.text-input{width:100%;border:1px solid #bbc7b8;border-radius:.45rem;padding:.58rem .7rem;background:#fff;color:var(--ink)}input[type=search]::placeholder,textarea::placeholder{color:#89938b}.filter-row{display:flex;align-items:center;gap:.5rem;margin-top:.75rem}.filter-row label{font-size:.8rem;color:var(--muted);flex:0 0 5.5rem}.filter-row select{min-width:0}.list-caption{margin:.8rem 1rem .4rem;color:var(--muted);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}.item-list{overflow:auto;flex:1;padding:.2rem .6rem 1rem}.list-item{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:.55rem;background:transparent;padding:.75rem .85rem;margin:.25rem 0;color:var(--ink)}.list-item:hover{background:#eeeee5}.list-item.selected{background:#e3ebe1;border-color:#a5b9a4}.item-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}.item-word{font:1.42rem var(--urdu);direction:rtl;unicode-bidi:isolate;white-space:normal;overflow-wrap:normal}.item-page{color:var(--muted);font-size:.75rem;white-space:nowrap}.item-question{display:block;font-size:.83rem;color:var(--muted);line-height:1.4;margin-top:.2rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.list-empty{padding:1.25rem;color:var(--muted);font-size:.9rem;line-height:1.5}.main{min-width:0;padding:1.2rem 1.4rem 2rem}.empty-state{min-height:55vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted)}.empty-glyph{font:5rem var(--urdu);color:#a2b2a0}.empty-state h1{color:var(--ink);font-family:var(--urdu);font-weight:normal;margin:.2rem}.empty-state p{margin:.4rem}.entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.3rem;margin-bottom:1rem}.eyebrow{color:var(--green);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;margin:0 0 .3rem}.entry-heading h1{margin:.1rem 0;font:2.55rem var(--urdu);text-align:left;line-height:1.5}.entry-meta{margin:0;color:var(--muted);font-size:.82rem}.copy-actions{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.copy-actions button,.quiet-button,.zoom-controls button,.image-tabs button,.text-button,.icon-button{border:1px solid #bac8b7;background:#fffdf8;color:var(--green);border-radius:.4rem;padding:.48rem .7rem;font-size:.83rem}.text-button{border:0;background:none;text-decoration:underline;text-underline-offset:.2rem;padding:.25rem}.primary-button{border:1px solid var(--green);background:var(--green);color:white;border-radius:.4rem;padding:.68rem 1rem;font-weight:600}.question-card{background:#fbf4e7;border:1px solid #dec99e;border-left:4px solid #aa7937;border-radius:.5rem;padding:1rem 1.2rem;margin-bottom:1rem}.question-card h2{font-family:var(--urdu);font-size:1.1rem;font-weight:normal;line-height:1.5;margin:.2rem 0}.question-card p{color:#735b3e;font-size:.84rem;margin:.3rem 0}.alternatives{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}.alternative{border-radius:1rem;background:#fff9ed;border:1px solid #dec99e;padding:.25rem .6rem;font-size:.84rem}.comparison{display:grid;grid-template-columns:minmax(330px,1.03fr) minmax(340px,1fr);gap:1rem;align-items:start}.source-pane,.editor-pane{background:var(--surface);border:1px solid var(--line);border-radius:.65rem;min-width:0;overflow:hidden}.pane-header{padding:.9rem 1rem;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:.6rem}.pane-header h2{margin:0;font:1.2rem var(--urdu)}.pane-header p{margin:.2rem 0 0;color:var(--muted);font-size:.8rem}.zoom-controls{white-space:nowrap;display:flex;align-items:center;gap:.3rem}.zoom-controls button{font-size:1.1rem;padding:.1rem .5rem}.zoom-controls span{min-width:2.6rem;text-align:center;font-size:.75rem;color:var(--muted)}.image-tabs{display:flex;gap:.3rem;overflow:auto;padding:.65rem .8rem .2rem}.image-tabs button{white-space:nowrap}.image-tabs button.active{background:var(--green-soft);border-color:#8aab8b;font-weight:600}.image-note{padding:.35rem 1rem;color:var(--muted);font-size:.75rem}.source-images{overflow:auto;max-height:76vh;padding:.5rem 1rem 1rem;background:#e9e6dd;text-align:center}.source-images img,.source-images canvas{display:block;max-width:none;height:auto;margin:0 auto;box-shadow:0 2px 10px #0002;background:#fff}.source-images .image-caption{font-size:.75rem;color:#5f665b;background:#f6f4ed;display:inline-block;padding:.3rem .5rem;margin:.55rem 0}.source-image-block+.source-image-block{border-top:1px solid #bdc4b8;padding-top:.7rem}.editor-pane form{padding:1rem}.editor-section{border-bottom:1px solid var(--line);padding:0 0 1.1rem;margin-bottom:1.05rem}.editor-section h3,.palette-head h3,.history-section h3{font:1.08rem var(--urdu);margin:0 0 .7rem}.field-row{margin:.6rem 0}.field-row label{display:block;color:#516052;font-size:.8rem;font-weight:600;margin-bottom:.28rem}.field-row textarea{resize:vertical;min-height:3rem}.field-row textarea.urdu,.field-row input.urdu{font:1.38rem var(--urdu);line-height:1.8;direction:rtl;text-align:right;unicode-bidi:plaintext;word-break:normal;overflow-wrap:normal}.field-row textarea.source-lines{min-height:7.5rem}.field-hint{display:block;font-size:.76rem;color:var(--muted);margin:.25rem 0}.readonly-text{background:#f5f4ed;border:1px solid #e2e4d9;border-radius:.4rem;padding:.55rem .7rem;white-space:pre-wrap;font:1.2rem/1.7 var(--urdu);direction:rtl;text-align:right;word-break:normal;overflow-wrap:normal}.field-row code,.history-section code{font-size:.76rem;direction:ltr;unicode-bidi:isolate}.palette-section{border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1rem}.palette-head{display:flex;justify-content:space-between}.palette-label{font-size:.75rem;color:var(--muted);margin:.6rem 0 .3rem}.palette{display:flex;flex-wrap:wrap;gap:.35rem}.palette button{border:1px solid var(--line);background:#f7f8f2;border-radius:.4rem;min-width:2.25rem;padding:.2rem .45rem;font:1.25rem var(--urdu);line-height:1.6}.palette button:focus-visible{outline-offset:0}.palette button small{display:block;font: .62rem Segoe UI,Arial,sans-serif;color:var(--muted)}.codepoints{display:block;background:#edf2ea;padding:.55rem;margin-top:.6rem;font: .76rem Consolas,monospace;overflow-wrap:anywhere}.save-message{min-height:1.35rem;color:var(--green);font-size:.84rem}.save-message.error{color:#a23327}.save-actions,.history-actions{display:flex;flex-wrap:wrap;gap:.5rem}.save-actions button{flex:1 1 auto}.history-section{padding:1rem;border-top:1px solid var(--line)}.history-event{border-left:2px solid #9cb49c;padding:.2rem .6rem;margin:.65rem 0;font-size:.84rem}.history-event p{margin:.25rem 0}.history-event pre{white-space:pre-wrap;word-break:normal;overflow-wrap:normal;background:#f5f4ed;border-radius:.3rem;padding:.45rem;font:1rem/1.5 var(--urdu)}.history-event small{color:var(--muted)}details.advanced{margin:.6rem 0}details.advanced summary{cursor:pointer;color:var(--green);font-size:.84rem}details.advanced textarea{min-height:8rem;font: .82rem/1.5 Consolas,monospace;direction:ltr}.footer{border-top:1px solid var(--line);background:var(--surface);padding:.55rem 1.4rem;display:flex;align-items:center;gap:1rem;color:var(--muted);font-size:.76rem}.footer span:first-child{flex:1}.footer .text-button{white-space:nowrap}dialog{border:1px solid var(--line);border-radius:.65rem;box-shadow:0 12px 40px #0003;background:var(--surface);color:var(--ink);width:min(27rem,calc(100vw - 2rem))}dialog::backdrop{background:#17241bbb}dialog label{display:block;margin:.75rem 0 .3rem;font-size:.84rem}.dialog-head{display:flex;justify-content:space-between}.dialog-head h2{margin:0;font:1.3rem var(--urdu)}.icon-button{font-size:1.2rem}.dialog-actions{display:flex;gap:.5rem;margin-top:1rem}.checkbox{display:flex;align-items:center;gap:.5rem}
@media(max-width:1150px){.comparison{grid-template-columns:1fr}.source-images{max-height:55vh}.workbench{grid-template-columns:16rem minmax(0,1fr)}}
@media(max-width:760px){.masthead{padding:.7rem 1rem}.connection{display:none}.primary-nav{padding:0 .5rem}.workbench{display:block}.sidebar{max-height:30vh;border-right:0;border-bottom:1px solid var(--line)}.sidebar-tools{display:grid;grid-template-columns:1fr 1fr;gap:.25rem .55rem}.sidebar-tools .field-label,.sidebar-tools input[type=search]{grid-column:1/-1}.filter-row{margin-top:.2rem}.filter-row label{flex-basis:auto}.item-list{max-height:14vh}.main{padding:1rem}.entry-heading{display:block}.copy-actions{justify-content:flex-start;margin:.5rem 0}.comparison{grid-template-columns:1fr}.footer{flex-wrap:wrap}.footer span:first-child{flex-basis:100%}}
[hidden]{display:none!important}
#review-header,.header-toggle-row{flex-shrink:0}
.header-toggle-row{display:flex;justify-content:flex-end;height:24px;background:var(--surface);border-bottom:1px solid var(--line);padding-right:1rem}
.header-toggle{display:inline-flex;align-items:center;gap:.4rem;border:0;background:transparent;color:var(--green);padding:1px .55rem;font-size:.75rem;line-height:20px;border-radius:0 0 .3rem .3rem}
.header-toggle:hover{background:var(--green-soft)}
.legacy-review{max-width:50rem;background:var(--surface);border:1px solid var(--line);border-radius:.65rem;padding:1.4rem}.legacy-review h1{font:1.7rem var(--urdu);margin:.3rem 0}.legacy-review>p{line-height:1.55}.legacy-review #legacy-scope{font-size:.85rem;color:var(--muted)}

.save-message { white-space: pre-wrap; overflow-wrap: anywhere; }

.palette .glyph-button { width: 88px; padding: .4rem; }
.glyph-scan { display: block; width: 72px; height: 64px; object-fit: contain; background: white; border: 1px solid #e2e4d9; border-radius: .2rem; margin: 0 auto .25rem; }

/* Keep the queue and reading independently scrollable within the viewport. */
.shell{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.masthead,.primary-nav,.footer,.sidebar-tools,.list-caption{flex-shrink:0}
.workbench{overflow:hidden}
.sidebar{overflow:hidden}
.item-list{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:none}
.main{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:none}
@media(max-width:760px){.workbench{display:flex;flex-direction:column}.sidebar{height:42%;max-height:none;flex-shrink:0}.sidebar-tools{padding:.5rem .8rem}.item-list{max-height:none}.main{flex:1}.footer{padding:.3rem .8rem;gap:.25rem}.footer span:first-child{display:none}}

.question-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.question-heading .eyebrow{margin:0}.question-heading button{flex-shrink:0}#book-error[aria-pressed="true"]{background:#fff1ce;border-color:#9b710b;color:#634600}.book-error-badge{font-size:.7rem;color:#76530b;background:#fff1ce;border-radius:4px;padding:.1rem .3rem}.primary-nav{flex-wrap:wrap}#book-error-message:empty{display:none}
.scope-choice{width:100%;min-width:0;border:1px solid var(--line);border-radius:.4rem;padding:.75rem;margin:.5rem 0 0}.scope-choice legend{font-weight:600;font-size:.9rem}.scope-choice>p.urdu{margin:.25rem 0}.scope-option{display:inline-flex;align-items:center;gap:.5rem;margin:.25rem 1.25rem .75rem 0;cursor:pointer}.scope-option input{width:1.1rem;height:1.1rem;accent-color:var(--green)}.scope-option .urdu{font-size:1.5rem}.scope-choice button{display:block}.scope-choice p:empty{display:none}
:is(#question-text,#legacy-question,.item-question).review-question-urdu{direction:rtl;unicode-bidi:isolate;text-align:right;font-family:var(--urdu);white-space:pre-line;line-height:1.8;letter-spacing:normal}
.review-question-urdu bdi{direction:ltr;unicode-bidi:isolate}
/* Web account controls and bounded question queue. */
a{color:var(--green)}.account-links{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem;font-size:.88rem}.account-links form{margin:0}.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:.65rem}.queue-pagination{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.65rem;background:var(--surface);border-top:1px solid var(--line);flex-shrink:0}.queue-pagination span{font-size:.78rem;color:var(--muted);text-align:center}.mobile-back,.mobile-return{display:none}.field-row input.urdu{width:100%;border:1px solid #bbc7b8;border-radius:.45rem;padding:.35rem .7rem;background:#fff;color:var(--ink)}.source-images{touch-action:pan-x pan-y;overscroll-behavior:contain}.image-caption{max-width:100%;overflow-wrap:anywhere}.item-word{overflow-wrap:anywhere}.account-page{min-height:100dvh;padding:3rem 1rem;display:grid;place-items:center}.account-card{width:min(100%,29rem);background:var(--surface);padding:2rem;border:1px solid var(--line);border-radius:.8rem;box-shadow:0 8px 35px #263a2410}.account-card h1{font-size:1.6rem;margin:1.5rem 0 .5rem}.account-card>p,.admin-card>p{color:var(--muted);line-height:1.5}.account-card>.account-links{margin-top:1rem}.account-form{display:flex;flex-direction:column;gap:.5rem}.account-form>label,.account-form .form-columns label{font-weight:600;font-size:.88rem}.account-form input:not([type=hidden]):not([type=checkbox]){display:block;width:100%;min-height:44px;border:1px solid #bbc7b8;background:white;color:var(--ink);padding:.6rem .75rem;border-radius:.4rem;margin:.2rem 0 .4rem}.account-form>button{margin-top:.4rem;align-self:flex-start;min-height:44px}.account-form .checkbox{display:flex;align-items:center;gap:.6rem;font-weight:400}.account-form input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:var(--green)}.form-message{color:var(--green);white-space:pre-wrap;overflow-wrap:anywhere;margin:.4rem 0;font-size:.9rem}.form-message:empty{display:none}.form-message.error{color:#a23327}.role-choices{display:flex;gap:1rem;flex-wrap:wrap;border:1px solid var(--line);border-radius:.4rem;margin:.5rem 0;padding:.6rem .8rem}.role-choices legend{font-size:.85rem}.admin-main{max-width:1400px;margin:auto;padding:1.5rem}.admin-main>h1{font-size:1.8rem;margin:.2rem 0 1rem}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}.admin-card{background:var(--surface);border:1px solid var(--line);border-radius:.7rem;padding:1.25rem;min-width:0}.admin-card h2{margin:.15rem 0 .7rem;font-size:1.2rem}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.6rem}.section-heading h2{margin:0}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.users-section{margin-top:1rem}.users-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.user-card{padding:1rem;border:1px solid var(--line);border-radius:.4rem;min-width:0}.user-card h3{margin:0;overflow-wrap:anywhere}.user-card .account-form+.account-form{border-top:1px solid var(--line);padding-top:.5rem;margin-top:.5rem}.user-card .role-choices{margin-top:.5rem}.receipt{border-top:1px solid var(--line);padding:.7rem 0;font-size:.9rem;overflow-wrap:anywhere}.receipt p{margin:.3rem 0}#import-receipts{max-height:34rem;overflow:auto}.account-form input[type=file]{white-space:normal;font-size:.88rem}
@media(max-width:760px){
 .masthead{align-items:flex-start;gap:.4rem;flex-wrap:wrap;padding:.65rem .8rem}.brand strong{font-size:1.05rem}.brand small{font-size:.76rem}.brand-mark{width:2.3rem;height:2.3rem;font-size:1.7rem;line-height:2.1rem}.header-actions{width:100%;justify-content:space-between}.account-links{font-size:.8rem;gap:.75rem}.connection{display:block;flex:1 1 60%;font-size:.75rem}.primary-nav{flex-wrap:nowrap;overflow-x:auto;gap:0;padding:0 .3rem}.tab{font-size:.8rem;padding:.7rem .6rem;white-space:nowrap}.count{margin-left:.1rem}.sidebar{flex:1;height:auto;min-height:0}.sidebar-tools{display:block;padding:.65rem .8rem}.filter-row{margin-top:.4rem}.filter-row label{flex:0 0 6rem}.main{display:none;padding:.7rem}.mobile-detail .sidebar{display:none}.mobile-detail .main{display:block;flex:1}.mobile-back{display:inline-block;margin:0 0 .8rem;min-height:44px}.mobile-return:not([hidden]){display:block;margin:.5rem .8rem}.entry-heading h1{font-size:2rem}.entry-heading .entry-meta{overflow-wrap:anywhere}.question-heading{align-items:flex-start;gap:.5rem;flex-wrap:wrap}.question-card{padding:.8rem}.question-card h2{font-size:1.25rem}.pane-header{padding:.7rem}.source-images{max-height:50dvh;padding:.5rem}.source-images img,.source-images canvas{margin:0 auto}.editor-pane form{padding:.75rem}.copy-actions button,.quiet-button,.palette button,.image-tabs button,.zoom-controls button{min-height:44px}.zoom-controls button{min-width:40px}.field-row textarea.urdu,.field-row input.urdu{font-size:1.4rem}.save-actions button{min-height:48px}.footer{font-size:.7rem}.footer .text-button{font-size:.76rem}.queue-pagination{padding:.5rem .8rem}.account-page{padding:1rem}.account-card{padding:1.3rem}.admin-main{padding:1rem}.admin-grid{grid-template-columns:1fr}.admin-card{padding:1rem}.admin-page .masthead{gap:.8rem}.admin-main>h1{font-size:1.5rem}.form-columns{gap:.7rem}.form-columns input{min-width:0}.users-grid{grid-template-columns:1fr}.section-heading{gap:.5rem}.form-message{line-height:1.5}
}
.admin-card code{overflow-wrap:anywhere}
.account-links a{display:inline-flex;align-items:center;min-height:44px}
.decision-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}.decision-actions .field-hint{flex-basis:100%}
.headword-marks{border:1px solid var(--line);border-radius:.4rem;background:var(--green-soft);padding:.5rem;margin:.6rem 0}
.compact-palette .glyph-button{min-width:2.8rem;min-height:44px;padding:.2rem .3rem}.compact-palette .glyph-scan{height:26px;max-width:46px;object-fit:contain}
.scope-option:has(input:checked){background:var(--green-soft);border-color:var(--green)}

/* Help opens beside the review, retaining the selected question and draft. */
.context-help{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:32px;padding:.2rem .5rem;border:1px solid #bac8b7;border-radius:.35rem;background:var(--surface);color:var(--green);font: .78rem/1.2 "Segoe UI",Arial,sans-serif;text-decoration:none;white-space:nowrap}
.context-help:hover{background:var(--green-soft)}
.context-help:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.help-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;min-width:0}
.help-heading :is(h2,h3,p,label){margin-bottom:0}
.editor-section>.help-heading,.history-section>.help-heading{margin-bottom:.7rem}
.sidebar-tools>.help-heading{margin-bottom:.3rem}
.question-tools{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.pane-header>div:first-child{min-width:0;flex:1}
.palette-head{gap:.5rem;align-items:center;flex-wrap:wrap}
.headword-marks>.help-heading{margin-bottom:.4rem}
.scope-choice>.context-help{margin:.15rem 0 .4rem}
.save-actions>.context-help{align-self:center}
.header-toggle-row>.context-help{display:none}
@media(max-width:760px){
 .context-help{min-height:44px}
 .header-toggle-row{height:auto;min-height:44px;align-items:center;justify-content:space-between;padding:0 .8rem}
 .header-toggle-row>.context-help{display:inline-flex;border:0;background:transparent}
 .header-toggle{min-height:44px;line-height:1.3}
 .question-heading>.help-heading{flex:1 1 100%}
 .question-tools{justify-content:flex-end;width:100%}
 .pane-header{flex-wrap:wrap}
 .pane-header>div:first-child{flex-basis:100%}
}

/* Phones scroll the document: browser chrome, text size and the keyboard must
   never squeeze the question queue into the remainder of a fixed-height shell. */
@media(max-width:760px){
 .shell{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}
 .workbench{display:block;flex:none;overflow:visible}
 .sidebar{height:auto;max-height:none;overflow:visible}
 .item-list{flex:none;max-height:none;overflow:visible;overscroll-behavior:auto}
 .main{overflow:visible;overscroll-behavior:auto}
 .mobile-detail .main{flex:none}
}
