/* The upload is the starting point; the guide stays beside it on wide screens. */
.workspace{max-width:1440px;padding-top:32px}
.page-intro{gap:24px;margin-bottom:26px}
.page-intro h1{font-family:inherit;font-size:31px;font-weight:650;letter-spacing:.2px;line-height:1.5}
.page-intro p:last-child{font-size:14px;color:#69666c}
.start-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px;align-items:stretch}
.search-panel{padding:24px;border-radius:12px;box-shadow:0 6px 24px #302d2b03}
.panel-heading h2{font-size:16px}
.upload-surface{position:relative;margin-top:18px;border-radius:9px;transition:box-shadow .15s}
.upload-surface.is-dragging{box-shadow:0 0 0 4px #b894a899}
.upload-surface.is-dragging .dropzone{background:#eee3ea;border-color:var(--accent)}
.dropzone{margin:0;min-height:250px;padding:24px 16px;border:2px dashed #bea5b4;border-radius:9px;background:#fcf9fb;gap:0}
.dropzone:hover{background:#f6eef3;border-color:var(--accent)}
.upload-icon{width:51px;height:51px;color:var(--accent);margin-bottom:15px}
.dropzone strong{font-size:17px;font-weight:600;line-height:1.7}
.dropzone>span.drop-or{font-size:12px;color:#78717a;margin:6px 0}
.dropzone>span.choose-file{display:inline-flex;gap:25px;align-items:center;font-size:14px;font-weight:600;margin:0;padding:9px 22px;color:white;background:var(--accent);border-radius:6px}
.dropzone>span.drop-hint{font-size:11px;color:#716871;margin-top:13px}
.upload-requirements{margin:13px 0 0;font-size:11px;line-height:1.8;color:#706a73}
.upload-requirements p{margin:3px 0}
.upload-requirements p:first-child{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
.upload-requirements strong{color:#4c414a;font-size:12px;font-weight:600;letter-spacing:.4px}
.upload-requirements p:last-child{font-size:10px}
.search-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:end;margin:18px 0}
.search-options .field-label{margin:0 0 7px;font-size:12px}
.search-options select{font-size:12px;min-height:43px}
.search-options .checkbox-label{margin:0 0 2px;gap:7px}
.checkbox-label strong{font-size:11px}
.checkbox-label small{font-size:10px;line-height:1.5;display:block;margin-top:4px}
.search-button{font-size:15px;padding:14px 19px;border-radius:6px}
.privacy-note{font-size:11px;margin:11px 0 0;color:#79717a}
.preview-area{margin:0;border:2px solid #bea5b4;border-radius:9px}
.preview-area img{height:222px;padding:10px;background:white}
.preview-area>div{font-size:12px;padding:6px 13px;background:white;gap:16px}
.preview-area .text-button{font-size:12px;white-space:nowrap;color:var(--accent)}
.replace-hint{text-align:center;font-size:10px;margin:0;padding:4px;color:#7d717b;background:#fcf9fb}
.error-notice{font-size:12px;line-height:1.8;margin:14px 0;scroll-margin:20px}
.usage-guide{padding:25px 26px;background:#efede9;border:1px solid #e4e0da;border-radius:12px;min-width:0;display:flex;flex-direction:column;justify-content:center}
.guide-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}
.guide-heading .eyebrow{font-size:9px;margin-bottom:7px;letter-spacing:1.8px}
.guide-heading h2{font-size:19px;font-weight:600;margin:0;line-height:1.6}
.guide-replay{font-size:10px;color:#6d3b57;white-space:nowrap;min-height:40px}
.guide-replay>span{font-size:19px;vertical-align:middle;margin-right:2px}
.guide-figure{margin:16px 0 22px}
.guide-scene{width:100%;height:auto;display:block;overflow:visible;max-height:220px}
.guide-figure figcaption{text-align:center;color:#81777f;font-size:9px;margin-top:5px}
.guide-steps{list-style:none;margin:0;padding:0;display:grid;gap:15px}
.guide-steps li{display:flex;gap:12px;align-items:start}
.guide-step-number{flex:none;display:grid;place-items:center;background:white;border:1px solid #dbd3d8;width:27px;height:27px;border-radius:50%;font-size:11px;color:var(--accent);margin-top:1px}
.guide-steps strong{font-size:13px;font-weight:600}
.guide-steps p{font-size:11px;color:#766c74;margin:2px 0 0;line-height:1.7}
.is-playing .guide-sheet{animation:guide-drop 3.8s ease-out both}
.is-playing .guide-search{animation:guide-search 3.8s ease-out both;transform-origin:200px 105px}
.is-playing .guide-result-one{animation:guide-result-one 3.8s ease-out both}
.is-playing .guide-result-two{animation:guide-result-two 3.8s ease-out both}
.is-playing .guide-result-three{animation:guide-result-three 3.8s ease-out both}
@keyframes guide-drop{0%,8%{transform:translate(-18px,-18px) rotate(-5deg);opacity:0}30%,100%{transform:translate(0,0) rotate(0);opacity:1}}
@keyframes guide-search{0%,28%{opacity:.35;transform:scale(.85)}44%{opacity:1;transform:scale(1.15)}60%,100%{opacity:1;transform:scale(1)}}
@keyframes guide-result-one{0%,48%{opacity:0;transform:translateY(10px)}68%,100%{opacity:1;transform:translateY(0)}}
@keyframes guide-result-two{0%,55%{opacity:0;transform:translateY(10px)}76%,100%{opacity:1;transform:translateY(0)}}
@keyframes guide-result-three{0%,63%{opacity:0;transform:translateY(10px)}85%,100%{opacity:1;transform:translateY(0)}}
.results-panel{margin-top:34px;scroll-margin-top:24px}
.results-panel:focus{outline:none}
.results-heading{padding-bottom:16px}
.result-meta{font-size:12px}
.empty-state{min-height:125px;flex-direction:row;justify-content:flex-start;gap:20px;text-align:left;padding:22px 0}
.empty-state h3{font-family:inherit;font-weight:500;font-size:16px;letter-spacing:0;margin:0 0 5px}
.empty-state p{font-size:12px;margin:0;line-height:1.8}
.empty-spark{display:grid;place-items:center;width:48px;height:55px;flex:none;border:1px dashed #ccc0c7;border-radius:7px;color:#9b8091;font-size:25px}
.empty-state .category-pills{margin:0 0 0 auto;flex-wrap:wrap;justify-content:end}
.category-pills span{font-size:10px;color:#796b74;white-space:nowrap}
.results-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.results-grid:empty{margin:0}
.result-image img{height:265px}
.result-name{font-size:14px}
.result-category{font-size:11px}
.result-score small,.mirror-label{font-size:10px}
.score-note{font-size:11px;color:#77707a}
.scope-note{display:flex;align-items:baseline;gap:20px;font-size:11px;padding-top:18px;margin-top:24px}
.scope-note strong{font-size:12px;white-space:nowrap}
.scope-note p{margin:0}
.login-layout{padding-top:40px;padding-bottom:40px;gap:55px}
.login-intro h1{font-family:inherit;font-size:35px;line-height:1.55;letter-spacing:.2px;font-weight:600;margin-bottom:12px}
.login-intro .intro-copy{font-size:13px;line-height:1.9}
.login-intro>.eyebrow{margin-bottom:12px}
.login-intro .usage-guide{margin-top:23px;padding:20px 24px}
.login-intro .guide-heading h2{font-size:17px}
.login-intro .guide-figure{margin:8px 0 14px}
.login-intro .guide-scene{max-height:145px}
.login-intro .guide-steps{gap:10px}
.login-intro .guide-steps p{font-size:10px}
@media(max-width:1100px){.start-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}.search-panel,.usage-guide{padding:22px}.guide-heading{align-items:start}.guide-heading h2{font-size:17px}.guide-replay{font-size:9px}.dropzone strong{font-size:15px}.search-options{grid-template-columns:1fr;gap:13px;margin:16px 0}.checkbox-label strong{font-size:12px}.checkbox-label small{font-size:10px}.guide-steps p{font-size:11px}.results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.result-image img{height:245px}.empty-state .category-pills{display:none}}
@media(max-width:760px){.workspace{padding:24px 5% 10px}.header{height:auto;min-height:88px}.page-intro{gap:15px;align-items:start;margin-bottom:21px}.page-intro h1{font-size:24px;line-height:1.6}.page-intro p:last-child{font-size:12px}.archive-count{padding-left:13px;margin-top:7px}.archive-count strong{font-size:28px}.archive-count span{font-size:9px}.start-grid{grid-template-columns:1fr;gap:20px}.search-panel{padding:20px}.panel-heading h2{font-size:15px}.dropzone{min-height:240px;padding:21px 10px}.dropzone strong{font-size:15px}.dropzone .drop-hint{font-size:10px}.upload-requirements{font-size:10px}.upload-requirements strong{font-size:12px}.search-options{gap:14px}.checkbox-label strong{font-size:12px}.privacy-note{font-size:10px}.usage-guide{padding:22px}.guide-heading h2{font-size:18px}.guide-replay{font-size:10px}.guide-figure{margin:10px 0 16px}.guide-scene{max-height:185px}.guide-steps{gap:13px}.guide-steps strong{font-size:13px}.guide-steps p{font-size:11px}.results-panel{margin-top:28px}.results-heading{gap:10px}.result-meta{font-size:10px}.empty-state{gap:14px;min-height:130px}.empty-state h3{font-size:14px}.empty-state p{font-size:11px}.empty-spark{width:36px;height:46px;font-size:21px}.results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-image img{height:210px;padding:8px}.result-details{padding:11px}.result-name{font-size:12px}.result-category{font-size:9px}.result-score{font-size:19px}.result-score small{font-size:8px}.mirror-label{font-size:9px}.score-note{font-size:10px}.scope-note{display:block;font-size:10px;margin-top:18px}.scope-note p{margin-top:7px}.login-layout{padding:28px 5%;gap:25px}.login-intro h1{font-size:28px}.login-intro .usage-guide{display:block}.login-intro .guide-scene{max-height:160px}}
@media(prefers-reduced-motion:reduce){.is-playing .guide-sheet,.is-playing .guide-search,.is-playing .guide-result{animation:none!important;transform:none;opacity:1}.guide-replay{display:none}}
@media(max-width:760px){.login-layout>.login-card{order:-1}}
