@font-face{font-family:Manrope;src:url("fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
:root{--bg:#f7f9fb;--surface:#ffffff;--text:#1a304e;--muted:#526477;--border:#d2dfe6;--accent:#117c75;--teal:#1fb6aa;--navy:#163a70;--soft:#e2f5f1;--font:Manrope,"Avenir Next","Segoe UI Variable","Segoe UI","Helvetica Neue",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.55;min-height:100vh;display:flex;flex-direction:column}button,input{font:inherit}button,a,input{touch-action:manipulation}a{color:#117c75;text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}input:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #1fb6aa66;outline-offset:3px}::selection{background:#e2f5f1}input[type=checkbox]{accent-color:var(--accent);width:19px;height:19px;cursor:pointer;flex-shrink:0}[hidden]{display:none!important}.topbar{border-top:4px solid var(--teal);background:var(--surface);border-bottom:1px solid var(--border)}.header-inner{max-width:1240px;margin:auto;padding:22px 28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:13px;color:var(--navy);font-size:24px;font-weight:750;line-height:1.2}.brand:hover{text-decoration:none}.brand img{width:48px;height:48px;object-fit:contain}.brand-divider{height:38px;width:1px;background:var(--border)}.brand small{display:block;font-size:8.5px;letter-spacing:1.55px;font-weight:700;margin-top:6px;color:var(--muted)}.accent{color:var(--accent)}.account{display:flex;align-items:center;gap:22px;font-size:13px}.account form{margin:0}.account-name{font-weight:700;color:var(--muted)}.text-button{border:0;background:none;padding:0;color:var(--accent)}.text-button span{margin-left:6px}.private-badge{font-size:12px;background:#edf3f9;border:1px solid var(--border);border-radius:99px;padding:7px 12px;color:var(--navy)}.shell{width:100%;max-width:1240px;margin:0 auto;padding:48px 28px 64px;flex:1}.eyebrow,.card-kicker{font-size:10px;letter-spacing:1.9px;font-weight:800;color:var(--accent);margin:0 0 12px}.page-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3.4vw,43px);letter-spacing:-1.7px;line-height:1.13;margin-bottom:15px;font-weight:760}h2{font-size:23px;line-height:1.25;letter-spacing:-.5px}.page-intro p:last-child{color:var(--muted);font-size:15px;margin-bottom:0}.intro-stamp{display:flex;align-items:center;gap:13px;color:var(--navy);padding:10px 0 10px 24px;border-left:1px solid var(--border)}.intro-stamp>span{font-size:42px;line-height:1;color:var(--accent)}.intro-stamp small{line-height:1.4;font-size:11px}.search-panel{background:var(--surface);border:1px solid var(--border);padding:24px;border-radius:14px;box-shadow:0 8px 30px #163a7005}.search-panel label{font-size:13px;font-weight:750;display:block;margin-bottom:10px}.search-row{display:flex;align-items:center;position:relative;gap:12px}.search-row input{border:1px solid var(--border);background:#fff;min-width:0;flex:1;border-radius:8px;height:52px;padding:0 15px 0 43px;color:var(--text)}.search-row input:focus{border-color:var(--accent)}.link-icon{position:absolute;left:16px;font-size:22px;color:var(--muted)}.button{border:1px solid var(--border);border-radius:8px;padding:12px 18px;font-size:13px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:17px;min-height:44px;white-space:nowrap;text-decoration:none}.button:hover{text-decoration:none}.button.primary{background:var(--teal);border-color:var(--teal);color:#092e42;box-shadow:0 3px 7px #117c7514}.button.primary:hover:not(:disabled){background:#28c9bb;border-color:#28c9bb}.search-row .button{height:52px}.button.subtle{color:var(--muted);background:var(--surface);border-color:transparent}.button.subtle:hover{border-color:var(--border)}.field-note{color:var(--muted);font-size:11px;margin:12px 0 0}.welcome-panel{text-align:center;border:1px dashed var(--border);border-radius:14px;padding:50px 24px 38px;margin:25px 0 38px;background:linear-gradient(140deg,#ffffff,#edf5fd55)}.welcome-panel h2{font-size:21px;margin-bottom:9px}.welcome-panel p{font-size:13px;max-width:440px;margin:0 auto;color:var(--muted)}.empty-art{position:relative;width:95px;height:83px;margin:0 auto 23px}.art-back,.art-front{position:absolute;display:block;width:65px;height:67px;border:1px solid var(--border);border-radius:9px;top:0;left:5px;background:#e3eef9;transform:rotate(-13deg)}.art-front{transform:rotate(9deg);top:10px;left:25px;display:grid;place-items:center;font-size:39px;color:var(--accent);background:#fff}.art-front i{font-style:normal;font-size:14px;position:absolute;bottom:-6px;right:-5px;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;background:var(--accent);color:#fff;border:3px solid var(--bg)}.welcome-tags{display:flex;gap:9px;justify-content:center;margin-top:23px}.welcome-tags span{font-size:10px;border:1px solid var(--border);padding:4px 10px;border-radius:20px;color:var(--muted)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-heading h2{font-size:17px;margin:0}.section-heading>span{font-size:11px;color:var(--muted)}.history-empty{font-size:13px;color:var(--muted);padding:20px 0;border-top:1px solid var(--border);margin:0}.history-row{display:flex;border-bottom:1px solid var(--border)}.history-open{display:flex;align-items:center;gap:16px;background:none;border:0;text-align:left;padding:16px 0;flex:1;min-width:0;color:var(--text)}.history-open>span:nth-child(2){min-width:0;flex:1}.history-open strong,.history-open small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-open strong{font-size:13px}.history-open small{color:var(--muted);font-size:11px;margin-top:3px}.history-icon{border:1px solid var(--border);border-radius:8px;width:37px;height:37px;display:grid;place-items:center;color:var(--accent);font-size:20px;flex-shrink:0}.history-arrow{margin:0 16px;font-size:22px}.history-delete{border:0;background:none;color:var(--muted);font-size:11px}.footer{display:flex;justify-content:space-between;gap:20px;max-width:1240px;width:100%;margin:auto;border-top:1px solid var(--border);padding:22px 28px;color:var(--muted);font-size:11px}.footer-dot{margin:0 8px;color:var(--accent)}.progress-panel{display:flex;align-items:center;gap:16px;padding:22px 24px;background:#fff;border:1px solid var(--border);border-radius:12px;margin:24px 0}.progress-panel strong{font-size:14px}.progress-panel p{font-size:12px;color:var(--muted);margin:3px 0 0}.progress-panel>span{margin-left:auto;font-size:12px;color:var(--muted)}.spinner{width:26px;height:26px;border:3px solid var(--soft);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.result-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:34px 0 20px}.result-heading>div{min-width:0}.result-heading .eyebrow{margin-bottom:7px}.result-heading h2{font-size:20px;margin:0 0 6px;overflow-wrap:anywhere}.result-heading a{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:800px}.count-pill{background:var(--soft);color:#117c75;padding:6px 12px;border-radius:30px;font-size:11px;white-space:nowrap;font-weight:700}.selection-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:18px;padding:13px 0;background:var(--bg);border-bottom:1px solid var(--border);margin-bottom:20px}.select-all{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;white-space:nowrap}#selected-count{color:var(--muted);font-size:11px;white-space:nowrap}.toolbar-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.image-card{border:1px solid var(--border);border-radius:11px;background:#fff;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s}.image-card:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.image-label{display:block;cursor:pointer}.image-check{position:absolute;left:12px;top:12px;z-index:1;box-shadow:0 0 0 4px white;border-radius:2px}.image-preview{height:180px;display:flex;align-items:center;justify-content:center;background:#fff;padding:23px}.image-preview img{max-width:100%;max-height:100%;object-fit:contain}.image-info{display:block;border-top:1px solid #eef3f8;padding:12px 13px}.image-name{display:block;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-meta{display:block;font-size:10px;color:var(--muted);margin-top:4px}.image-links{display:flex;justify-content:space-between;padding:0 13px 12px;font-size:10px}.image-links a{padding:3px 0}.results-note{font-size:11px;color:var(--muted);margin:20px 0 35px}.scan-notes{margin-top:20px;font-size:12px;color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:12px 15px}.scan-notes summary{cursor:pointer;font-weight:700}.scan-notes ul{padding-left:20px}.empty-results{text-align:center;padding:45px 20px;background:var(--surface);border:1px dashed var(--border);border-radius:12px}.empty-results>span{font-size:42px;color:var(--accent)}.empty-results h3{font-size:18px;margin:10px 0}.empty-results p{font-size:13px;color:var(--muted);max-width:560px;margin:auto}.notice{border-radius:8px;padding:12px 15px;margin:15px 0;font-size:13px;overflow-wrap:anywhere}.notice.error,.errorlist{background:#fff0f3;color:#970c36;border:1px solid #ffc3d1}.notice.success{background:#effcf4;color:#155b35;border:1px solid #b5e2c7}.errorlist{padding:10px 15px 10px 28px;border-radius:8px;font-size:12px}.auth-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:80px;align-items:center;max-width:1070px;margin:44px auto 70px}.auth-intro h1{font-size:clamp(34px,4.3vw,53px);line-height:1.12;letter-spacing:-2px}.intro-copy{color:var(--muted);max-width:410px;margin:24px 0 33px;line-height:1.8;font-size:14px}.steps{display:flex;flex-direction:column;gap:14px;font-size:13px}.steps b{font-size:10px;margin-right:12px;color:var(--accent);background:var(--soft);border-radius:5px;padding:5px 7px}.auth-card{padding:34px;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:0 16px 40px #163a7008}.auth-card h2{font-size:25px;margin:12px 0 9px}.auth-card>p{font-size:13px;color:var(--muted);margin-bottom:25px}.auth-card label{display:block;font-size:12px;font-weight:750;margin:17px 0 8px}.auth-card input{width:100%;border:1px solid var(--border);border-radius:7px;background:#fff;height:46px;padding:9px 12px}.auth-card form .button{margin-top:22px}.full{width:100%}.auth-card .fine-print{font-size:10px;text-align:center;margin:18px 0 0}.auth-card .helptext,.auth-card ul{font-size:11px;color:var(--muted)}.auth-card .helptext ul{padding-left:20px}.standalone{max-width:530px;margin:30px auto}.standalone h1{font-size:29px;letter-spacing:-1px}.back-link{display:inline-block;font-size:12px;margin-top:20px}@media(max-width:1000px){.image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-layout{gap:35px}.intro-stamp{display:none}.account{gap:12px}}@media(max-width:720px){.header-inner{padding:17px 18px;flex-wrap:wrap;gap:15px}.brand{font-size:21px;gap:14px}.brand img{width:102px;height:37px}.brand-divider{height:31px}.brand small{font-size:7px;letter-spacing:1px}.account{margin-left:auto;font-size:11px}.account-name{display:none}.shell{padding:32px 18px 40px}h1{letter-spacing:-1px}.page-intro p:last-child{font-size:13px}.search-panel{padding:18px}.search-row{flex-wrap:wrap;gap:10px}.search-row input{flex-basis:100%}.search-row .button{width:100%;height:46px}.link-icon{top:9px}.welcome-panel{padding:35px 18px 30px}.welcome-tags{gap:5px;flex-wrap:wrap}.welcome-tags span{font-size:9px}.selection-toolbar{flex-wrap:wrap;gap:10px;position:relative}.toolbar-actions{width:100%;margin:0;justify-content:space-between}.toolbar-actions .button{font-size:11px;padding:10px}.image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.image-preview{height:140px;padding:18px}.image-name{font-size:11px}.image-meta{font-size:9px}.image-links{font-size:9px}.result-heading{align-items:flex-start}.result-heading h2{font-size:17px}.count-pill{font-size:10px;padding:5px 8px}.footer{padding:20px 18px;font-size:10px}.footer>span:last-child{display:none}.auth-layout{grid-template-columns:1fr;margin:5px auto 30px;gap:30px;max-width:460px}.auth-intro h1{font-size:35px}.intro-copy{margin:15px 0}.steps{display:none}.auth-card{padding:26px}.private-badge{display:none}.progress-panel{padding:17px;gap:12px}.history-arrow{margin:0 8px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Video controls stay outside the checkbox label: playing must not select. */
.video-card .image-preview{display:flex;align-items:center;justify-content:center;background:#102237;height:230px;padding:0}
.video-card video{display:block;width:100%;height:230px;object-fit:contain;background:#102237}
.video-card .image-label{position:relative;padding-left:38px;min-height:76px}
.video-card .image-check{top:18px;left:13px}

/* Media filter belongs to the gallery; toolbar selection uses its visible set. */
.media-filters{display:flex;gap:8px;flex-wrap:wrap}.media-filters button{display:inline-flex;gap:9px;align-items:center;border:1px solid var(--border);background:var(--surface);color:var(--navy);border-radius:8px;padding:9px 14px;font-size:13px;font-weight:700;min-height:42px}.media-filters button[aria-pressed=true]{color:#fff;background:var(--accent);border-color:var(--accent)}.media-filters button span{border-radius:20px;background:#163a7010;min-width:24px;padding:1px 6px;font-size:11px}.media-filters button[aria-pressed=true] span{background:#ffffff25}.filter-note{margin-top:8px}.filter-empty{padding:24px;border:1px dashed var(--border);border-radius:10px;color:var(--muted);text-align:center}

/* Derived downloads are private per-video actions, outside the checkbox label. */
.video-export-panel{border-top:1px solid var(--border);padding:10px 12px;display:grid;gap:10px}.export-button,.export-download{display:block;width:100%;border:1px solid var(--border);border-radius:7px;padding:8px 10px;background:var(--surface);color:var(--accent);font-size:12px;font-weight:700;text-align:center;min-height:36px}.export-download:hover{text-decoration:none;background:var(--soft)}.export-status{font-size:10px;line-height:1.4;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.export-status:empty{display:none}.caption-downloads{font-size:12px;color:var(--navy)}.caption-downloads summary{cursor:pointer;font-weight:700;padding:7px 0}.caption-language{border-top:1px solid var(--border);padding:8px 0}.caption-language strong{font-size:11px;overflow-wrap:anywhere}.caption-language>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px}.caption-language a{font-size:11px;font-weight:700}

/* Recent-scan selection is separate from media selection. */
.history-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border)}
.history-toolbar>span{font-size:12px;color:var(--muted)}
.history-toolbar .history-bulk-delete{margin-left:auto;background:#fff1f3;color:#a91438;border:1px solid #f0b6c3;font-size:12px;padding:10px 14px}
.history-toolbar .history-bulk-delete:disabled{opacity:.5;cursor:not-allowed}
.history-select{display:flex;align-items:center;padding:0 14px 0 0;flex-shrink:0}
.history-select input,.history-toolbar input{width:17px;height:17px;accent-color:var(--accent);cursor:pointer}
.history-row:has(.history-check:checked){background:#e2f5f1}
.history-delete:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){.history-toolbar{gap:10px}.history-toolbar .history-bulk-delete{margin-left:0}.history-select{padding-right:9px}.history-icon{display:none}.history-open{gap:7px}.history-open strong{font-size:12px}.history-open small{font-size:10px}}
