
/* Fixed-screen mobile workspace: no document/page scrolling. Paginated data sections. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
.shell{height:100dvh;max-height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:0}
.header{flex:0 0 auto}
#content{flex:1;min-height:0;overflow:hidden;position:relative}
.page{height:100%;min-height:0;overflow:hidden}
.page.active{display:flex;flex-direction:column}
.hero,.composer,.supported{flex:0 0 auto}
.composer{width:100%}
.section{width:100%}
.recent-section{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.recent-section>.list,.page>.list{flex:1;min-height:0;overflow:hidden}
.nav{position:relative;left:auto;bottom:auto;transform:none;flex:0 0 auto;width:100%;max-width:none;margin:5px auto max(6px,var(--safe));z-index:10}
.section-top,.download-tools{flex:0 0 auto;width:100%}
.item-thumb{width:44px;height:46px;min-width:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:#687382;font-size:21px;overflow:hidden}
.item-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.item-info .file-path{color:#8c929b}
.item-actions{flex:0 0 auto}
.pager{display:flex;align-items:center;justify-content:center;gap:14px;min-height:36px;flex:0 0 auto;margin:4px 0}
.pager-btn{border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--ink);width:32px;height:30px;font-size:20px;line-height:1}
.pager-btn:disabled{opacity:.3}
.pager-label{font-size:11px;color:#818a95;font-variant-numeric:tabular-nums}
.modal-backdrop{overflow:hidden;place-items:center;padding:max(12px,env(safe-area-inset-top,0px)) 12px max(12px,var(--safe))}
.modal{width:min(100%,520px);height:min(690px,calc(100dvh - 42px));max-height:calc(100dvh - 32px);display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:20px}
.modal-head,.modal-subtitle,.modal-actions,.modal .pager{flex:0 0 auto}
.modal-subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.candidate-list{flex:1;min-height:0;max-height:none;overflow:hidden;display:grid;align-content:start;gap:9px}
.candidate{align-items:center;min-height:0;padding:11px}
.candidate input{flex:0 0 auto}
.candidate-info{flex:1;min-width:0}
.candidate-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.candidate-quick{border:0;border-radius:10px;padding:9px 12px;background:#191d24;color:#fff;font-weight:700;font-size:17px}
.warning-note{color:#ad6262!important}
.details-modal #detailsContent{overflow:hidden;min-height:0;flex:1}
.details-modal #detailsContent>.item-thumb{margin:5px auto 11px;width:60px;height:60px}
.detail-row{display:grid;grid-template-columns:minmax(90px,34%) minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px;min-height:30px}
.detail-row span{color:#9499a1}
.detail-row strong{font-weight:600;overflow:hidden;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(max-width:900px){
 .shell{padding-left:14px;padding-right:14px}
 .header{height:clamp(49px,8dvh,68px)}
 .hero{padding:clamp(8px,2dvh,18px) 0 clamp(8px,2dvh,15px)}
 .hero h1{font-size:clamp(24px,5.5dvh,37px);margin:8px 0 4px;line-height:1.08}
 .hero p{font-size:11px;line-height:1.35}
 .kicker{font-size:8px;padding:5px 10px}
 .composer{padding:clamp(10px,2dvh,17px)}
 .panel-heading{margin-bottom:10px}
 .panel-heading h2{font-size:14px}
 .step-chip{padding:4px 8px;font-size:10px}
 .field-label{font-size:9px;margin:0 0 7px}
 .url-field{min-height:46px;padding:5px 8px}
 .url-field input{font-size:12px}
 .paste{padding:8px}
 .composer .primary{margin-top:9px;min-height:42px}
 .field-hint{font-size:10px;line-height:1.2;margin-top:9px}
 .analysis-live{margin-top:8px}
 .supported{margin:8px auto 0;gap:7px}
 .supported>div{gap:4px}
 .supported>span{font-size:9px}
 .supported b{font-size:9px;padding:5px 8px}
 .section{margin:clamp(10px,2dvh,17px) auto 0}
 .section-heading{margin-bottom:8px}
 .section-heading h2{font-size:15px;margin-top:3px}
 .eyebrow{font-size:8px}
 .quick-grid{gap:8px}
 .quick-card{min-height:58px;display:grid;grid-template-columns:30px 1fr;grid-template-rows:1fr 1fr;align-content:center;column-gap:7px;padding:9px 10px}
 .quick-icon{width:28px;height:31px;font-size:16px;margin:0;grid-row:1 / 3}
 .quick-card strong{font-size:12px;align-self:end}.quick-card small{font-size:10px;margin-top:0}
 .chevron{display:none}
 .recent-section{margin-top:clamp(9px,2dvh,16px)}
 .item{padding:8px;min-height:60px;gap:8px}
 .item-thumb{width:38px;min-width:38px;height:42px}
 .item-info strong{font-size:11px}
 .item-info small{font-size:10px;margin-top:2px}
 .small-btn{padding:7px;font-size:10px}
 .section-top{margin:clamp(14px,4dvh,28px) auto 10px}
 .section-top h1{font-size:26px;margin:5px 0 4px}
 .section-top p{font-size:11px;margin:4px 0;line-height:1.35}
 .download-tools{margin:5px auto 9px}
 .nav{margin-top:5px;padding:6px;margin-bottom:max(5px,var(--safe))}
 .nav button{padding:7px 2px;font-size:9px}
 .nav-icon{font-size:18px}
 .info-panel{padding:7px 16px}
 .info-row{padding:12px 0;font-size:11px}
 .legal-note{margin:10px 0;font-size:10px}
 .modal{height:min(620px,calc(100dvh - 24px));padding:14px}
 .modal-head h2{font-size:18px}
 .modal-subtitle{font-size:11px;margin:10px 0}
 .candidate{padding:9px;gap:7px}
 .candidate .item-thumb{width:44px;min-width:44px;height:44px}
 .candidate strong{font-size:12px}
 .candidate small{font-size:10px}
 .modal-actions{margin-top:10px}
 .modal-actions .primary,.modal-actions .secondary{min-height:42px}
}
@media(max-height:690px){
 .hero p{display:none}
 .supported{display:none}
 .quick-card{min-height:49px}
 .composer .field-hint{font-size:9px}
 .section-top{margin-top:11px}
 .modal{height:calc(100dvh - 18px)}
 .detail-row{padding:6px 0}
}
@media(max-height:530px){
 .kicker{display:none}
 .hero{padding:6px 0}
 .hero h1{font-size:22px;margin:3px 0}
 .composer .panel-heading{display:none}
 .recent-section .section-heading{display:none}
 .section{margin:8px auto 0}
}
@media(prefers-reduced-motion:reduce){.modal,.page{animation:none!important}}

/* Browser-only capabilities notice. Never displayed in the native Android WebView. */
.browser-capability{width:100%;max-width:700px;margin:10px auto 0;padding:12px 14px;border:1px solid #e6e8ea;border-radius:12px;background:#f8f9fa;display:flex;gap:12px;align-items:center;justify-content:space-between}
.browser-capability[hidden]{display:none!important}
.browser-capability strong{font-size:12px;letter-spacing:-.015em}
.browser-capability p{font-size:11px;color:#858a92;line-height:1.35;margin:4px 0 0}
.browser-app-link{white-space:nowrap;font-size:11px;text-decoration:none;color:#fff;background:#191d24;border-radius:9px;padding:10px 12px;font-weight:680}
@media(max-width:900px){.browser-capability{margin-top:7px;padding:9px 11px;gap:7px}.browser-capability p{font-size:10px;line-height:1.22}.browser-app-link{padding:8px;font-size:10px}}
@media(max-height:650px){.browser-capability p{display:none}}

/* v0.5.0 | Mobile-first native safe area and focused download workspace */
:root{--native-status-top:0px;--native-status-background:#e9edf1}
html.native-shell,html.native-shell body{background:#fff}
html.native-shell body::before{
 content:"";position:fixed;top:0;left:0;right:0;z-index:50;
 height:var(--native-status-top);background:var(--native-status-background);pointer-events:none
}
html.native-shell .shell{
 height:calc(100dvh - var(--native-status-top));max-height:calc(100dvh - var(--native-status-top));
 margin-top:var(--native-status-top);
}
html.native-shell .modal-backdrop{
 padding-top:calc(12px + var(--native-status-top));
}
html.native-shell .modal{max-height:calc(100dvh - var(--native-status-top) - 24px)}
html.native-shell .header{border-top:0}
#homePage{justify-content:center}
#homePage .hero{padding-top:0}
#homePage .composer{flex-shrink:0}
#homePage .browser-capability{flex-shrink:0}
.nav-icon-img{width:21px;height:21px;object-fit:contain;filter:grayscale(1) brightness(.42);opacity:.65}
.nav button.active .nav-icon-img{opacity:1;filter:grayscale(1) brightness(.10)}
.failure-action{text-align:center;margin:12px auto 0;max-width:700px}
.failure-action p{font-size:12px;color:#838b95;margin:0 0 6px}
.failure-action .outlined-button,.modal-feedback .text-action{font-size:12px;color:#414c5c;text-decoration:underline;text-underline-offset:3px}
.modal-feedback{text-align:center;margin-top:10px}
.report-modal{height:auto;max-height:calc(100dvh - var(--native-status-top) - 32px)}
.report-modal textarea{width:100%;min-height:88px;max-height:130px;resize:vertical;padding:12px;border:1px solid #dfe3e8;border-radius:11px;color:var(--ink);font:inherit;font-size:12px}
.report-url-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#798390;border-radius:9px;padding:10px;background:#f5f6f8;margin-top:10px}
.settings-feedback{margin:12px auto 0;display:block}
@media(max-width:900px){
 #homePage .hero h1{font-size:clamp(29px,7vw,42px);margin:12px 0 7px}
 #homePage .hero .kicker{display:none}
 #homePage .hero p{max-width:300px}
 #homePage .composer{padding:18px}
 .failure-action{margin-top:9px}
}
@media(max-height:600px){
 #homePage .hero p{display:none}
 #homePage .hero h1{font-size:24px;margin:6px 0}
 #homePage .composer{padding:10px}
 .report-modal .modal-subtitle{font-size:10px;line-height:1.4}
}

.search-more-row{text-align:right;min-height:22px}.search-more-row button{font-size:11px;color:#596678;text-decoration:underline;text-underline-offset:3px}.search-more-row button:disabled{opacity:.5}

/* Signed update bootstrap: only appears after a verified remote update is discovered. */
.ota-overlay{position:fixed;inset:0;z-index:100;background:rgba(255,255,255,.98);display:grid;place-items:center;padding:24px;text-align:center}
.ota-overlay[hidden]{display:none!important}
.ota-content{max-width:300px;width:100%;display:flex;flex-direction:column;align-items:center;gap:18px}
.ota-content img{object-fit:contain}
.ota-content strong{font-weight:740;font-size:17px;letter-spacing:-.04em}
.ota-content p{margin:0;font-size:12px;color:#85909b}
.ota-progress{width:100%;height:5px;border-radius:12px;overflow:hidden;background:#e9edf1}
.ota-progress span{display:block;width:0%;height:100%;background:#252d36;transition:width .2s}

/* Progressive MP4 + M4A native mux selection (only shown for actual pairs). */
.mux-pair-tools{padding:12px;margin-top:8px;border:1px solid #e5e9ed;border-radius:11px;display:flex;flex-direction:column;gap:7px;background:#f9fafb}
.mux-pair-tools[hidden]{display:none!important}
.mux-pair-tools select{height:35px;border:1px solid #dce0e4;border-radius:8px;background:white;max-width:100%;min-width:0;font-size:12px;padding:5px}
.mux-pair-tools button{min-height:38px;font-weight:650}

/* v0.7 | Keep the found-media selection re-openable and download rows compact. */
#foundNavBtn[hidden]{display:none!important}
.found-nav-icon{font-size:19px;line-height:21px;height:21px;color:inherit}
#downloadsPage>.list,#savedPage>.list{align-content:start;grid-auto-rows:max-content;gap:7px}
#downloadsPage>.list>.item,#savedPage>.list>.item{min-height:66px;flex-shrink:0}
#downloadsPage>.list .item-thumb{width:48px;min-width:48px;height:52px}
#downloadsPage>.list .item-info small{line-height:1.22}
#downloadsPage>.list .item-info strong{font-size:12px}
#downloadsPage .section-top{margin-top:clamp(7px,2dvh,16px);margin-bottom:8px}
#downloadsPage .section-top h1{font-size:clamp(22px,4dvh,30px)}
#downloadsPage .section-top p{display:none}
#downloadsPage .download-tools{margin:0 auto 7px}
#downloadsPage .small-btn{padding:6px 8px}
#candidateModal .candidate-list{align-content:start;grid-auto-rows:max-content}
#candidateModal .candidate-info small{white-space:normal}
#candidateModal .item-thumb{overflow:hidden}
.nav button{min-width:0}
@media(max-width:440px){
 .nav button{font-size:9px;gap:3px;padding:6px 1px}
 .nav-icon-img{width:19px;height:19px}
 #downloadsPage>.list .item{padding:7px}
 #downloadsPage>.list .item-actions{gap:3px}
 #downloadsPage>.list .small-btn{font-size:10px;padding:6px}
}

/* Saved media actions need only three compact rows on small phones. */
.details-modal .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.details-modal .modal-actions #openDetailsFile{grid-column:1 / -1}
.details-modal .modal-actions button{min-height:38px;font-size:11px;padding:8px 5px}
.details-modal .modal-actions .danger{color:#b13a47}

/* Clear and replace actions for one-tap mobile link entry. */
.input-clear{width:31px;min-width:31px;height:31px;border:1px solid #e4e7eb;border-radius:9px;background:white;color:#7a818b;font-size:24px;display:grid;place-items:center;line-height:1;padding:0}
.input-clear:focus-visible,.paste:focus-visible{outline:2px solid #16191c;outline-offset:1px}
.url-field .paste{font-size:11px;padding:9px 10px;white-space:nowrap}
@media(max-width:365px){.url-field{gap:4px}.url-field .paste{padding:8px 5px;font-size:10px}.input-clear{width:27px;min-width:27px;height:29px}}


/* V12 · Shadowless particle engine: a living constellation, not a rotating orb.
   Canvas paints the network; CSS handles compositing, layout and accessibility. */
#homePage{justify-content:center;gap:0}
#homePage .hero{padding:0 0 8px;text-align:center}
#homePage .hero h1{font-size:clamp(25px,4.1dvh,38px);line-height:1.06;margin:0 0 5px}
#homePage .hero p{font-size:10px;line-height:1.35;margin:0 auto;max-width:330px}
.neural-core{
 --field-tint:rgba(82,105,157,.26);--field-strong:#53678e;
 position:relative;width:100%;max-width:520px;height:clamp(150px,25dvh,216px);
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 flex:0 1 auto;min-height:128px;margin:0 auto 8px;padding:0;
 isolation:isolate;
}
.core-field{
 position:relative;width:100%;height:clamp(112px,18.5dvh,159px);
 overflow:hidden;border:1px solid rgba(61,101,172,.58);
 border-radius:18px;
 background:
  radial-gradient(ellipse 58% 100% at 51% 52%,rgba(53,101,182,.40),transparent 76%),
  radial-gradient(circle at 24% 45%,rgba(30,72,133,.24),transparent 46%),
  linear-gradient(119deg,#101a2c 1%,#172844 52%,#0c182d 100%);
 box-shadow:inset 0 0 0 1px rgba(180,216,255,.055),0 10px 30px rgba(34,57,98,.13);
}
.core-field::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 opacity:.42;
 background-image:radial-gradient(#b7d2ff40 .7px,transparent .8px);
 background-size:19px 19px;
 -webkit-mask-image:linear-gradient(90deg,transparent,black 18%,black 82%,transparent);
 mask-image:linear-gradient(90deg,transparent,black 18%,black 82%,transparent);
}
.core-field::after{
 content:"";position:absolute;inset:1px;z-index:2;pointer-events:none;border-radius:17px;
 background:linear-gradient(98deg,transparent 30%,rgba(167,205,255,.15) 48%,transparent 68%);
 opacity:.4;transform:translateX(-70%);
 animation:core-field-glimmer 13s linear infinite;
}
.core-canvas{position:relative;display:block;width:100%;height:100%;z-index:1}
.core-fallback{
 position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);
 font-size:42px;color:#accdff;font-weight:200;
}
.core-enhanced .core-fallback{display:none}
.core-field-label,.core-live-mark{
 position:absolute;bottom:12px;z-index:3;pointer-events:none;
 color:#a8bddb;font-size:8px;letter-spacing:.17em;font-weight:720;line-height:1;
}
.core-field-label{left:15px}
.core-live-mark{display:flex;align-items:center;gap:6px;right:15px;letter-spacing:.08em}
.core-live-mark span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#86b5fe;box-shadow:0 0 9px #86b5fe73}
.core-caption{
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px;
 text-align:center;max-width:100%;min-height:27px;margin-top:6px;padding:0 7px
}
.core-status-dot{width:6px;height:6px;border-radius:50%;flex:0 0 auto;background:#8ea0c4;box-shadow:0 0 0 3px #8295be13}
.core-caption strong{font-size:10px;color:#4e6077;font-weight:760;letter-spacing:.04em}
.core-caption span#coreSubtitle{
 display:inline-block;min-width:0;max-width:255px;overflow:hidden;white-space:nowrap;
 text-overflow:ellipsis;font-size:10px;color:#909aa9
}
.neural-core[data-phase="scanning"],.neural-core[data-phase="verifying"]{--field-strong:#337eb7;--field-tint:#4499d52d}
.neural-core[data-phase="found"],.neural-core[data-phase="completed"]{--field-strong:#168668;--field-tint:#22b58a29}
.neural-core[data-phase="downloading"]{--field-strong:#ac713e;--field-tint:#d5924729}
.neural-core[data-phase="failed"]{--field-strong:#af6570;--field-tint:#d6859129}
.neural-core:not([data-phase="idle"]) .core-field{border-color:var(--field-tint)}
.neural-core:not([data-phase="idle"]) .core-status-dot,
.neural-core:not([data-phase="idle"]) .core-live-mark span{background:var(--field-strong)}
.neural-core:not([data-phase="idle"]) .core-caption strong{color:var(--field-strong)}
.neural-core[data-phase="scanning"] .core-status-dot,
.neural-core[data-phase="verifying"] .core-status-dot,
.neural-core[data-phase="downloading"] .core-status-dot{animation:core-status-pulse 1.3s ease-in-out infinite}
@keyframes core-status-pulse{50%{opacity:.35;transform:scale(.65)}}
@keyframes core-field-glimmer{0%,70%,100%{transform:translateX(-70%)}85%{transform:translateX(80%)}}
#homePage .composer{max-width:700px;padding:clamp(11px,2.1dvh,19px)}
#homePage .composer .panel-heading{margin-bottom:12px}
#homePage .composer .url-field{min-height:47px}
#homePage .composer .primary{margin-top:10px;min-height:44px}
#homePage .failure-action{margin:8px auto 0}
@media(max-height:750px){
 #homePage .hero p{display:none}
 .neural-core{height:clamp(124px,22dvh,170px);margin-bottom:4px}
 .core-field{height:clamp(90px,16dvh,131px)}
}
@media(max-height:590px){
 #homePage .hero{display:none}
 .neural-core{height:106px;min-height:95px}
 .core-field{height:79px}
 .core-field-label,.core-live-mark{font-size:7px;bottom:8px}
 .core-caption{min-height:18px;margin-top:3px}
 #homePage .composer{padding:9px}
 #homePage .composer .panel-heading{margin-bottom:6px}
}
@media(prefers-reduced-motion:reduce){
 .core-field::after,.core-status-dot{animation:none!important}
}
.download-stage{padding:12px;background:#f8fafc;border:1px solid #e0e6ec;border-radius:12px;margin-top:10px}
.download-stage-heading,.download-stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.download-stage-heading strong{font-size:12px;color:#252f3d}
.download-stage-heading span{font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.download-stage-bottom{color:#7d8794;font-size:10px;margin-top:7px}
.download-stage-track{height:9px;background:#e8edf1;border-radius:15px;margin-top:9px;overflow:hidden;position:relative}
.download-stage-track>span{height:100%;display:block;width:0%;background:linear-gradient(90deg,#718ac1,#263958);border-radius:15px;transition:width .32s ease-out}
.download-stage[data-indeterminate="true"] .download-stage-track>span{width:32%;animation:download-wait 1.25s ease-in-out infinite}
.download-stage[data-phase="completed"] .download-stage-track>span{background:linear-gradient(90deg,#47bd9b,#178167);transition:width .6s ease-out}
.download-stage[data-phase="failed"] .download-stage-track>span{background:#c45a63}
@keyframes download-wait{0%{transform:translateX(-120%)}100%{transform:translateX(320%)}}
@media (max-height:750px){
 #homePage .hero p{display:none}
 .neural-core{height:clamp(108px,21dvh,152px)}
 .core-stage{width:clamp(85px,14dvh,119px);height:clamp(85px,14dvh,119px)}
 .core-caption{margin-top:0}
}
@media (max-height:590px){
 #homePage .hero{display:none}
 .neural-core{height:112px}
 .core-stage{height:78px;width:78px}
 .core-caption{min-height:20px}
 #homePage .composer{padding:9px}
 #homePage .composer .panel-heading{margin-bottom:6px}
}
@media (prefers-reduced-motion:reduce){
 .core-halo,.core-orbit,.core-sphere,.core-eye,.core-particle,.download-stage-track>span{animation:none!important;transition:none!important}
}

/* Give native transfer telemetry priority inside the non-scrolling modal. */
#candidateModal:has(#downloadStage:not([hidden])) .candidate-list{max-height:17dvh}
#candidateModal:has(#downloadStage:not([hidden])) .modal-feedback{display:none}
#candidateModal:has(#downloadStage:not([hidden])) .search-more-row{display:none}
#candidateModal:has(#downloadStage:not([hidden])) .modal{padding:clamp(11px,2.5dvh,23px)}
@media (max-height:680px){
 #candidateModal:has(#downloadStage:not([hidden])) .candidate-list{max-height:12dvh}
 #candidateModal:has(#downloadStage:not([hidden])) .modal-subtitle{margin:4px 0}
 .neural-core{max-height:160px}
}

/* UI 0.13: selected candidate live progress */
#candidateModal .candidate-entry{min-width:0;border-radius:12px}
#candidateModal .candidate-entry>.candidate{display:flex;width:100%}
#candidateModal .candidate-inline{border:1px solid #cbd8e5;background:#f4f7fa;border-radius:0 0 11px 11px;padding:8px 11px 10px;margin-top:-4px;font-size:11px;color:#26394a}
#candidateModal .inline-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:6px}
#candidateModal .inline-msg{flex:1;overflow-wrap:anywhere;line-height:1.4}
#candidateModal .inline-percent{font-size:12px;white-space:nowrap}
#candidateModal .inline-track{height:7px;border-radius:20px;overflow:hidden;background:#dbe4ed}
#candidateModal .inline-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#4c7797,#4ba3bf);transition:width .22s ease}
#candidateModal .candidate-inline[data-indeterminate="true"] .inline-fill{animation:download-wait 1.25s ease-in-out infinite}
#candidateModal .candidate-inline[data-phase="failed"] .inline-fill{background:#bd4558}
#candidateModal .candidate-inline[data-phase="completed"] .inline-fill{background:#23805a}
#candidateModal .inline-bytes{display:block;margin-top:5px;opacity:.75}
#candidateModal:has(.candidate-inline) .candidate-list{max-height:min(37dvh,290px)!important;overflow-y:auto}
@media(max-height:680px){#candidateModal:has(.candidate-inline) .candidate-list{max-height:31dvh!important}}
@media(prefers-reduced-motion:reduce){#candidateModal .inline-fill{animation:none!important;transition:none!important}}

/* Queue and optional AI neural illustration */
#downloadQueue[hidden]{display:none!important}
.queue-panel{max-width:700px;margin:0 auto 12px;padding:12px;border:1px solid #dfe5eb;border-radius:14px;background:#f8fafc;max-height:29dvh;overflow:auto}
.queue-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px}
.queue-entry{display:flex;align-items:center;gap:8px;border-top:1px solid #e8edf0;padding:8px 0}
.queue-entry-text{flex:1;min-width:0;font-size:12px}
.queue-entry-text strong,.queue-entry-text small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.queue-entry-text small{color:#697884;margin-top:3px}
.core-setting label{color:#252e38;font-weight:550}
#toggleCoreEffects{width:20px;height:20px;accent-color:#279985}
#neuralCore[data-enabled="false"] .core-field{display:none!important}
#neuralCore[data-enabled="false"]{min-height:0;height:auto;background:transparent!important;box-shadow:none!important;border:0!important}
#neuralCore[data-enabled="false"] .core-caption{padding:9px 3px}
#neuralCore[data-enabled="true"] .core-field{border-radius:8px!important;border:0!important;box-shadow:none!important}

/* UI 0.14: restrained, reference-inspired Shadowless AI Orbital Core. */
#neuralCore .core-field{
 border:0!important;
 border-radius:15px!important;
 background:
  radial-gradient(ellipse 42% 95% at 50% 46%,rgba(125,79,133,.28),transparent 85%),
  radial-gradient(ellipse 80% 105% at 50% 56%,rgba(42,56,81,.34),transparent 85%),
  linear-gradient(113deg,#131923 0%,#1a1d2a 51%,#101720 100%)!important;
 box-shadow:none!important;
}
#neuralCore .core-field::before{opacity:.13;background-size:24px 24px}
#neuralCore .core-field::after{display:none!important}
#neuralCore .core-field-label,#neuralCore .core-live-mark{color:#c4b5c9;opacity:.78;letter-spacing:.12em;font-size:8px;font-weight:650}
#neuralCore .core-field-label{left:13px}
#neuralCore .core-live-mark{right:13px}
#neuralCore .core-live-mark span{background:#d9b8ce;box-shadow:0 0 6px #d9b8ce49}
#neuralCore[data-phase="scanning"] .core-live-mark span,
#neuralCore[data-phase="verifying"] .core-live-mark span,
#neuralCore[data-phase="converting"] .core-live-mark span{background:#e6badb}
#neuralCore[data-phase="converting"] .core-caption strong{color:#996ea0}
#neuralCore[data-phase="converting"] .core-status-dot{background:#b28eb4}
#neuralCore[data-enabled="true"] .core-field{box-shadow:none!important}
@media(max-width:365px){#neuralCore .core-field-label,#neuralCore .core-live-mark{font-size:7px;letter-spacing:.06em}}
@media(prefers-reduced-motion:reduce){#neuralCore .core-field::before,#neuralCore .core-field::after{animation:none!important}}

/* UI 0.15 - Credit wallet replaces the animated marketing core on the home screen. */
#homePage .neural-core{display:none!important}
.credits-home{width:100%;max-width:520px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;margin:4px auto 12px;border:1px solid #e5e9ed;border-radius:17px;background:linear-gradient(114deg,#fafbfc,#f3f7f8)}
.credits-home-copy{min-width:0;display:grid;gap:3px}
.credits-eyebrow{font-size:9px;letter-spacing:.17em;font-weight:750;color:#8b939c}
.credits-primary{display:flex;align-items:baseline;gap:6px}
.credits-primary strong{font-size:31px;font-weight:800;letter-spacing:-.08em;line-height:1}
.credits-primary span{font-size:11px;color:#66707b}
.credits-home-copy small{color:#5f7379;font-size:10px}
.credits-home-action{border:0;background:#1b2229;color:white;border-radius:12px;padding:12px 13px;min-width:142px;display:flex;flex-direction:column;gap:5px;text-align:left}
.credits-home-action strong{font-size:12px}
.credits-home-action small{font-size:10px;color:#c9e5dc}
.credits-modal{max-height:min(93dvh,820px);display:flex;flex-direction:column}
.credit-modal-scroll{overflow-y:auto;overscroll-behavior:contain;padding:0 3px 4px;min-height:0}
.credit-help{font-size:11px;line-height:1.5;color:#69727b;margin:7px 0 13px}
.credits-control{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#f5f8f8;border-radius:9px;font-size:11px}
.credits-control strong{overflow-wrap:anywhere;font-size:10px}
.credit-reward{width:100%;display:flex;align-items:center;justify-content:space-between;background:#eff7f4;color:#195d49;border:1px solid #c6e1d7;border-radius:11px;margin-top:12px;padding:12px;font-size:12px}
.credit-section-title{font-size:12px;font-weight:750;margin:17px 0 8px}
.credits-products{display:grid;gap:6px}
.credit-product{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:15px;border:1px solid #e3e8eb;background:#fff;border-radius:10px;padding:10px}
.credit-product:disabled{opacity:.52}
.credit-product-info{display:grid;gap:3px}
.credit-product-info strong{font-size:12px}
.credit-product-info small{font-size:10px;color:#77818a}
.credit-price{font-size:12px;font-weight:750;white-space:nowrap}
.credit-secondary{background:#fff;border:1px solid #d9dfe4;border-radius:8px;padding:9px 11px;font-size:11px;margin-top:7px}
.credit-form-row{display:flex;gap:8px;margin:8px 0;align-items:stretch}
.credit-form-col{display:grid;gap:7px}
.credit-form-row input,.credit-form-row select,.credit-form-col input,#creditsGiftResult{min-width:0;flex:1;border:1px solid #dde4e8;background:white;border-radius:8px;padding:9px;font-size:12px;width:100%;color:#202831}
.credit-form-row button{flex:0 0 auto;border:1px solid #d8e0e4;border-radius:8px;background:#17232b;color:#fff;padding:9px 11px;font-size:11px}
.credit-message{font-size:11px;color:#52626e;line-height:1.5;min-height:18px;overflow-wrap:anywhere}
@media(max-height:690px){.credits-home{padding:10px 13px;margin-bottom:5px}.credits-primary strong{font-size:26px}}

/* UI 0.16 - native Google account and optional FCM opt-in */
.credit-google-login{width:100%;border:1px solid #d6dde2;border-radius:10px;background:#fff;color:#1e2934;font-weight:700;font-size:12px;padding:12px;margin:8px 0}
.credit-google-login:disabled{opacity:.52}
.credit-notifications-switch{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:12px}
.credit-notifications-switch input{width:18px;height:18px;accent-color:#20816c}

/* UI 0.17 compact accounts and credit-farm */
.credits-modal .credit-modal-scroll{padding-top:1px}
.credit-account-top{margin:0 0 12px;padding:12px;background:#f8fafb;border-radius:14px}
.credit-account-top .credit-section-title{margin:0 0 8px}
.credit-account-top .credit-help{margin:6px 0}
.credit-account-top .credit-google-login{margin:6px 0 10px}
.credit-account-top .credit-form-col input{padding:8px}
.credits-accordion{border:1px solid #e3e9ed;border-radius:12px;margin:10px 0;overflow:hidden}
.credits-accordion>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px;font-size:12px;font-weight:750}
.credits-accordion>summary::-webkit-details-marker{display:none}
.credits-accordion>summary:after{content:"⌄";font-size:18px;color:#86949d;font-weight:400}
.credits-accordion[open]>summary:after{content:"⌃"}
.credits-accordion>summary span{color:#82929a;font-size:10px;font-weight:450;margin-left:auto}
.credits-accordion .credits-products{padding:0 10px 10px}
.credits-accordion .credit-section-title,.credits-accordion .credit-form-row{margin:5px 10px 10px}
.credit-farm{border:1px solid #cfded8;border-radius:14px;background:linear-gradient(150deg,#f2f8f6,#fff);padding:12px;margin:10px 0}
.credit-farm-heading{display:flex;gap:6px;justify-content:space-between;align-items:center}
.credit-farm-heading strong{font-size:13px}
.credit-farm-heading small{font-size:10px;color:#658074}
.credit-farm-progress{display:flex;align-items:baseline;gap:5px;margin:7px 0}
.credit-farm-progress #farmReady{font-size:29px;font-weight:800;letter-spacing:-.05em}
.credit-farm-cap{font-size:11px;color:#6a8376}
.credit-farm-meter{height:6px;background:#dceae4;border-radius:99px;overflow:hidden}
.credit-farm-meter>span{height:100%;display:block;width:0;background:#269874;transition:width .2s}
.credit-farm-actions{display:flex;align-items:center;gap:10px;justify-content:space-between}
.credit-farm-actions button{border:0;background:#203b33;color:white;border-radius:9px;padding:10px;font-size:11px}
.credit-farm-actions button:disabled{opacity:.45}
.credit-farm-actions span{font-size:10px;color:#486d60}
.credit-farm-note{font-size:9px;line-height:1.4;color:#7b8b87;margin:8px 0 0}
.farm-pop{animation:farmGrow .48s ease-out}@keyframes farmGrow{from{transform:scale(.9);opacity:.4}to{transform:scale(1);opacity:1}}

.credit-email-details{margin:8px 0 0;background:white}
.credit-email-details .credit-form-col,.credit-email-details .credit-form-row,.credit-email-details .credit-help{margin:8px 11px}

/* UI 0.18 dedicated credit-farm tab and isolated banner placement */
.farm-nav-button svg{width:21px;height:21px;opacity:.67}
.nav button.active.farm-nav-button svg{opacity:1}
#farmPage{min-height:0;overflow:hidden}
.farm-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:6px 10px 18px;scrollbar-width:thin}
.farm-header{padding:8px 2px 12px}
.farm-header h1{font-size:27px;line-height:1.1;margin:4px 0 7px;letter-spacing:-.04em}
.farm-header p{font-size:12px;color:#687580;line-height:1.5;margin:0}
.farm-banner-placement{width:100%;height:74px;min-height:74px;background:#f5f7f9;border:1px solid #e8edf0;border-radius:12px;margin:2px auto 14px;display:flex;align-items:flex-start;justify-content:center;position:relative}
.farm-banner-placement small{position:absolute;top:3px;left:7px;font-size:8px;color:#778590}
.farm-ad-caption{font-size:10px;color:#88929d;margin:auto}
.farm-standalone-card{border:1px solid #d8e6e0;border-radius:15px;padding:16px;background:linear-gradient(140deg,#eef7f3,#fff);margin-bottom:12px}
.farm-standalone-title,.farm-status{display:flex;justify-content:space-between;gap:8px;align-items:center}
.farm-standalone-title strong{font-size:15px}
.farm-standalone-title span,.farm-status span{font-size:10px;color:#6d8177}
.farm-big-number{display:flex;align-items:baseline;gap:8px;margin:14px 0 8px}
.farm-big-number strong{font-size:40px;font-weight:800;letter-spacing:-.06em}
.farm-big-number span{color:#638273;font-size:11px}
.farm-page-progress{height:8px;border-radius:99px;background:#d5e5dd;overflow:hidden}
.farm-page-progress span{display:block;width:0;height:100%;background:#299c70;transition:width .25s}
#farmPageNext{font-size:12px;color:#59776a;margin:10px 0}
.farm-page-claim{width:100%;padding:11px;background:#192b24;color:white;border:0;border-radius:11px;font-size:12px;font-weight:650;margin:0 0 10px}
.farm-page-claim:disabled{opacity:.4}
.farm-reward-card{border:1px solid #e1e6e8;border-radius:13px;padding:14px;margin-bottom:12px;background:white}
.farm-reward-card strong{font-size:14px}
.farm-reward-card p{font-size:11px;line-height:1.5;color:#6e7b85;margin:6px 0 11px}
.farm-reward-cta{display:flex;width:100%;justify-content:space-between;border:0;border-radius:10px;background:#1b242b;color:#fff;padding:12px 14px;font-weight:650;font-size:12px}
.farm-reward-cta span{color:#b4e4ce}
.farm-reward-cta:disabled{opacity:.6}
#farmRewardFeedback{min-height:0;margin:6px 0 0}
.farm-instructions{padding:14px;border-radius:13px;background:#f7f9fa;margin-bottom:10px}
.farm-instructions strong{font-size:13px}
.farm-instructions p{font-size:11px;color:#677781;line-height:1.5;margin:9px 0}
.farm-instructions .outlined-button{font-size:12px;margin:3px 0 5px}
.farm-disclaimer{font-size:10px!important;color:#899199!important}

/* UI 0.19 – 2 banners stacked at top, 2 stacked at bottom, controls centered. */
/* Only the first slot requests a native AdMob banner in beta19. */
#farmPage .farm-scroll{max-width:540px;margin-inline:auto;padding:5px 12px 22px;box-sizing:border-box}
#farmPage .farm-header{padding:7px 2px 10px}
#farmPage .farm-header h1{font-size:25px;margin:3px 0 5px}
#farmPage .farm-header p{font-size:11px}
#farmPage .farm-ad-stack{display:flex;flex-direction:column;gap:8px;margin:0 0 14px;width:100%}
#farmPage .farm-ad-stack-bottom{margin-top:14px;margin-bottom:14px}
#farmPage .farm-banner-placement{box-sizing:border-box;flex:0 0 auto;height:68px;min-height:68px;margin:0;width:100%;position:relative;overflow:hidden;border-radius:11px}
#farmPage .farm-ad-stack .farm-banner-placement small{top:3px;left:8px;z-index:1}
#farmPage .farm-ad-stack-top #farmAdTop{background:#f4f7f7;border:1px solid #d7e4e0}
#farmPage .farm-ad-preview-slot{background:repeating-linear-gradient(130deg,#f9fafb,#f9fafb 8px,#f4f6f7 8px,#f4f6f7 16px);border:1px dashed #d6dee4}
#farmPage .farm-ad-preview-slot small{color:#8d99a1}
#farmPage .farm-ad-preview-slot .farm-ad-caption{font-size:10px;color:#99a3aa}
#farmPage .farm-center{border-radius:17px;background:linear-gradient(145deg,#f6faf8,#fdfefe);padding:11px;border:1px solid #e0ebe6}
#farmPage .farm-standalone-card{padding:13px;border-radius:12px;margin:0 0 10px}
#farmPage .farm-big-number{margin:9px 0 7px}
#farmPage .farm-big-number strong{font-size:37px}
#farmPage #farmPageNext{margin:8px 0;font-size:11px}
#farmPage .farm-page-claim{padding:10px;margin-bottom:8px}
#farmPage .farm-reward-card{margin:0;padding:12px;border-radius:12px}
#farmPage .farm-reward-card p{margin:5px 0 8px}
#farmPage .farm-reward-cta{padding:11px 12px}
#farmPage .farm-instructions{padding:12px;border:1px solid #e8ecef;background:#f8fafb;border-radius:12px}
#farmPage .farm-instructions summary{font-size:12px;font-weight:700;cursor:pointer}
#farmPage .farm-instructions p{margin:8px 0}
#farmPage .farm-instructions .outlined-button{margin:5px 0}
@media(max-width:355px){#farmPage .farm-scroll{padding-inline:7px}#farmPage .farm-center{padding:7px}#farmPage .farm-ad-stack{gap:7px}#farmPage .farm-banner-placement{height:64px;min-height:64px}}

/* UI 0.20: fixed one-screen Farm layout for portrait Android. */
#farmPage{height:100%;min-height:0;overflow:hidden}
#farmPage .farm-scroll{height:100%;width:100%;max-width:540px;margin:0 auto;padding:4px 8px 5px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:clamp(3px,.65dvh,8px);min-height:0;box-sizing:border-box}
#farmPage .farm-header{flex:0 0 auto;margin:0;padding:0 2px 2px}
#farmPage .farm-header h1{font-size:clamp(16px,2.3dvh,21px);line-height:1.05;margin:1px 0 2px}
#farmPage .farm-header .eyebrow{font-size:8px;line-height:1}
#farmPage .farm-header p{font-size:10px;line-height:1.15;margin:0}
#farmPage .farm-ad-stack{flex:0 0 auto;min-height:0;display:flex;flex-direction:column;gap:clamp(3px,.45dvh,7px);margin:0;width:100%}
#farmPage .farm-ad-stack-bottom{margin:0}
#farmPage .farm-banner-placement{height:clamp(50px,6.4dvh,58px);min-height:50px;flex:0 0 auto;border-radius:8px;margin:0}
#farmPage .farm-ad-caption{font-size:9px}
#farmPage .farm-center{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:clamp(3px,.5dvh,7px);padding:clamp(5px,.85dvh,9px);border-radius:12px}
#farmPage .farm-standalone-card{flex:0 0 auto;padding:clamp(6px,.8dvh,9px);border-radius:10px;margin:0}
#farmPage .farm-standalone-title strong{font-size:12px}
#farmPage .farm-standalone-title span{font-size:9px}
#farmPage .farm-big-number{margin:clamp(3px,.55dvh,6px) 0 3px}
#farmPage .farm-big-number strong{font-size:clamp(25px,4dvh,32px);line-height:1}
#farmPage .farm-big-number span{font-size:10px}
#farmPage .farm-page-progress{height:5px}
#farmPage #farmPageNext{font-size:10px;line-height:1.15;margin:clamp(4px,.6dvh,6px) 0}
#farmPage .farm-page-claim{font-size:11px;border-radius:8px;padding:clamp(7px,.95dvh,10px);margin:0 0 5px}
#farmPage .farm-status span{font-size:9px;line-height:1.15}
#farmPage .farm-reward-card{flex:0 0 auto;padding:clamp(6px,.8dvh,9px);border-radius:10px;margin:0}
#farmPage .farm-reward-card strong{font-size:12px}
#farmPage .farm-reward-card p{font-size:10px;line-height:1.15;margin:2px 0 5px}
#farmPage .farm-reward-cta{font-size:11px;padding:clamp(7px,.95dvh,10px);border-radius:8px}
#farmPage #farmRewardFeedback{font-size:9px;line-height:1.12;margin:2px 0 0}
#farmPage #farmRewardFeedback:empty{display:none}
#farmPage .farm-instructions{flex:0 0 auto;padding:5px 9px;border-radius:8px;margin:0}
#farmPage .farm-instructions summary{font-size:10px;line-height:1.2}
#farmPage .farm-instructions[open]{position:relative;z-index:2;max-height:35%;overflow:auto;background:#fff;box-shadow:0 4px 14px #1113}
@media (max-height:720px){
 #farmPage .farm-header p{display:none}
 #farmPage .farm-header h1{font-size:17px}
 #farmPage .farm-banner-placement{height:50px;min-height:50px}
 #farmPage .farm-center{padding:5px}
 #farmPage .farm-standalone-card,#farmPage .farm-reward-card{padding:6px}
 #farmPage .farm-reward-card p{display:none}
 #farmPage .farm-big-number{margin:2px 0}
 #farmPage #farmPageNext{margin:3px 0}
}
@media (max-height:560px){
 #farmPage .farm-scroll{overflow-y:auto;justify-content:flex-start}
 #farmPage .farm-center{flex:0 0 auto}
}

/* UI 0.21 – visible Account entry and wallet summary */
.account-header-button{border:1px solid #e2e6e9;border-radius:15px;background:#fff;color:#20252a;padding:8px 11px;display:flex;align-items:center;gap:7px;min-width:106px;min-height:46px;white-space:nowrap}
.account-header-button svg{width:23px;height:23px;flex:0 0 23px;color:#2e8975}
.account-header-copy{display:flex;flex-direction:column;align-items:start;gap:2px}
.account-header-copy strong{font-size:12px;font-weight:740;line-height:1.1}
.account-header-copy small{font-size:10px;line-height:1.1;color:#687d76;max-width:115px;overflow:hidden;text-overflow:ellipsis}
.account-header-button:focus-visible{outline:2px solid #248c72;outline-offset:2px}
.account-wallet-summary{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#edf7f2;border:1px solid #d6e7de;border-radius:12px;margin:8px 0 10px;padding:10px}
.account-wallet-summary div{display:grid;gap:4px}
.account-wallet-summary div span{font-size:10px;color:#5d7569}
.account-wallet-summary strong{font-size:18px;letter-spacing:-.04em}
.account-wallet-summary small{max-width:44%;text-align:right;font-size:10px;line-height:1.35;color:#658276}
#creditsPurchaseNotice{margin:4px 12px 10px}
@media(max-width:365px){.account-header-button{padding:6px 8px;min-width:100px}.account-header-copy small{max-width:85px}.brand-label strong{font-size:13px}}

/* App language control */
.language-setting{gap:12px;flex-wrap:wrap}
.language-setting select{max-width:60%;min-width:148px;background:white;color:#17212c;border:1px solid #d5dbe4;border-radius:10px;padding:10px;font:inherit}
.language-setting select:focus-visible{outline:2px solid #2d69ad;outline-offset:2px}

#creditsEmailDetails[hidden]{display:none!important}
