@import url('/tokens.css');
*{box-sizing:border-box}
[hidden]{display:none!important}
:root{--accent:#285c45;--ink:#283d32;--muted:#7d8c80;--ease:cubic-bezier(.2,.7,.2,1)}
body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:#f5f7f2;color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased;isolation:isolate}
button,input{font:inherit}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}
a{color:inherit;text-decoration:none}
button:disabled{cursor:not-allowed}
button:focus-visible,a:focus-visible{outline:2px solid #4f8b69;outline-offset:5px}
h1{font-size:25px;font-weight:500;letter-spacing:-.7px;margin:0}
main{flex:1;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;width:100%;position:relative}
.submit-page{width:min(calc(100% - 40px),520px);margin:70px auto 46px;padding:30px;background:#ffffffb8;border:1px solid #ffffffed;border-radius:24px;box-shadow:0 24px 80px -36px #365e4030,0 2px 10px #38533b04;backdrop-filter:blur(14px);animation:page-enter .6s var(--ease) both}
.task-tabs{display:flex;justify-content:center;gap:36px;margin:0 0 27px}
.task-tabs button{position:relative;border:0;background:none;padding:8px 0 13px;font-size:13px;letter-spacing:.1px;color:#8a968b;transition:color .2s}
.task-tabs button::after{content:'';position:absolute;bottom:0;left:50%;width:18px;height:2px;border-radius:2px;background:var(--accent);transform:translateX(-50%) scaleX(0);transition:transform .25s var(--ease)}
.task-tabs button.active{color:var(--accent);font-weight:550}
.task-tabs button.active::after{transform:translateX(-50%) scaleX(1)}
.task-tabs button:hover{color:var(--accent)}
.dropzone{width:100%;min-height:238px;border:1px dashed #bccdbb;border-radius:15px;background:linear-gradient(155deg,#f9fbf7b3,#edf3e985);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:26px 16px;transition:border-color .25s,background .25s,transform .3s var(--ease),box-shadow .3s}
.dropzone:hover{border-color:#7c9f7e;background:#f0f6eb;box-shadow:inset 0 0 30px #dfead64d}
.dropzone.dragging{transform:scale(1.015);border-color:#3f8257;background:#e9f3e4;box-shadow:0 0 0 5px #75a36b15,inset 0 0 40px #cfe4c04d}
.upload-mark{width:60px;height:60px;border-radius:19px;display:grid;place-items:center;background:#fff9;border:1px solid #fff;box-shadow:0 5px 16px #456d3c08;transition:transform .3s var(--ease),box-shadow .3s}
.upload-mark svg{width:32px;height:32px;fill:none;stroke:#77966e;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.dropzone:hover .upload-mark,.dropzone.dragging .upload-mark{transform:translateY(-4px);box-shadow:0 8px 18px #456d3c0d}
.dropzone strong{font-size:14px;letter-spacing:.15px;font-weight:450;color:#657c5e}
.file-card{min-height:238px;border:1px solid #cbdac4;border-radius:15px;display:flex;align-items:center;gap:16px;padding:28px;background:linear-gradient(155deg,#f7faf4,#edf4e8);animation:page-enter .3s var(--ease) both}
.file-card>div{flex:1;min-width:0}
.file-card strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.file-card span{display:block;color:#809079;font-size:12px;margin-top:10px;line-height:1.6}
.primary-button{display:inline-flex;justify-content:center;align-items:center;background:linear-gradient(120deg,#32694d,#25563f);color:#fff;border:1px solid #285a42;border-radius:10px;min-height:46px;padding:0 24px;font-size:13px;letter-spacing:.2px;box-shadow:0 5px 13px #2a573c16;transition:transform .2s var(--ease),box-shadow .2s,filter .2s}
.primary-button:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 7px 19px #2a573c24}
.primary-button:active:not(:disabled){transform:translateY(1px);box-shadow:0 2px 5px #2a573c18}
.primary-button:disabled{background:#a1b8a7;border-color:#a1b8a7;box-shadow:none;color:#fffffff0}
.text-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;padding:8px 0;font-size:12px;color:#7c8b79;white-space:nowrap;transition:color .2s}
.example-button{display:flex;margin:6px 0 0 auto;font-size:11px}
.text-button:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.error{font-size:12px;line-height:1.7;color:#a14032;margin:16px 0 0}
.result-page{width:min(calc(100% - 48px),960px);margin:50px auto 38px;padding:30px 32px;background:#ffffffb8;border:1px solid #fff;border-radius:22px;box-shadow:0 24px 80px -36px #365e4028;backdrop-filter:blur(14px);animation:page-enter .5s var(--ease) both}
.result-header{display:flex;justify-content:space-between;align-items:center;gap:20px}
#resultDetail{font-size:12px;color:#84917f;margin:10px 0 0;overflow-wrap:anywhere}
.result-timing{font-size:12px;color:#c3d1ba;margin:8px 0 0;font-variant-numeric:tabular-nums}
#jobStatus{color:#7d8b77;font-size:13px;line-height:1.7;margin:25px 0}
#jobStatus.error{color:#a14032}
.result-actions{display:flex;justify-content:flex-end;align-items:center;gap:25px;margin:24px 0 18px}
.tree-canvas{position:relative;min-width:0;padding-bottom:38px;border:1px solid #e1e8dc;border-radius:13px;background:#fcfdf9;overflow:hidden;animation:tree-reveal .6s var(--ease) both}
.tree-scroll{overflow:auto;max-height:65vh;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9aaf92 #f6f9f0}
#treeSvg{display:block;width:100%;height:auto;touch-action:pan-x pan-y}
#treeSvg path{stroke-width:1.5;vector-effect:non-scaling-stroke}
#treeSvg text{font-family:var(--font);font-size:13px;fill:#5c6c57}
.canvas-empty{text-align:center;color:#7d867b;padding:70px 20px;line-height:1.8;margin:0}
.reset-view{position:absolute;bottom:12px;right:18px;font-size:11px;background:#fcfdf9}
.tree-scroll-hint{position:absolute;bottom:16px;left:18px;font-size:10px;color:#7d8b77}
.site-footer{position:relative;padding:18px 20px 26px}
.site-footer nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 26px}
.site-footer a{padding:7px 0;color:#879180;font-size:11px;line-height:1.5;transition:color .2s}
.site-footer a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
@keyframes page-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes tree-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.submit-page{width:calc(100% - 40px);padding:24px;margin:42px auto 30px;border-radius:20px}.dropzone,.file-card{min-height:215px}.result-page{width:calc(100% - 32px);padding:24px 20px;margin:32px auto}.result-header{align-items:flex-start}h1{font-size:23px}.result-actions{gap:20px}#treeSvg text{font-size:13px}.site-footer{padding-bottom:20px}.site-footer nav{gap:6px 22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Full-screen natural-history photography. Local images, no remote embeds. */
body{background:#10221c;color:#eef3e9}
:root{--accent:#d6e7c3;--ink:#f0f4ec;--muted:#bfccbd}
.cinema{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#10221c}
.scene{position:absolute;inset:-2%;opacity:0;transition:opacity 2.4s ease;overflow:hidden}
.scene.is-active{opacity:1}
.scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.02);transition:transform 18s linear;filter:none}
.scene.is-active img{transform:scale(1.14) translate3d(-1%,0,0)}



.cinema-shade{position:absolute;inset:0;background:linear-gradient(180deg,#061a1420 0,#04120e05 36%,#05100b35 75%,#020b08b3 100%),radial-gradient(ellipse at 50% 45%,transparent 20%,#02100a4d 100%)}
.light-rays{position:absolute;inset:-20%;opacity:.2;transform-origin:75% 0;background:conic-gradient(from 160deg at 72% -5%,transparent 0deg,#f3ecc880 4deg,transparent 9deg,transparent 14deg,#fff6c44d 17deg,transparent 22deg);mix-blend-mode:screen;animation:ray-drift 19s ease-in-out infinite alternate}
.motes{position:absolute;inset:0;overflow:hidden}
.motes i{position:absolute;bottom:-5%;width:3px;height:3px;border-radius:50%;background:#fff7d8;box-shadow:0 0 12px 3px #f9efb43d;opacity:0;animation:mote-rise 23s linear infinite}
.motes i:nth-child(1){left:8%;animation-delay:-4s}
.motes i:nth-child(2){left:21%;animation-delay:-15s;width:2px;height:2px}
.motes i:nth-child(3){left:34%;animation-delay:-9s}
.motes i:nth-child(4){left:46%;animation-delay:-21s;width:2px;height:2px}
.motes i:nth-child(5){left:61%;animation-delay:-2s}
.motes i:nth-child(6){left:75%;animation-delay:-18s;width:2px;height:2px}
.motes i:nth-child(7){left:87%;animation-delay:-11s}
.motes i:nth-child(8){left:96%;animation-delay:-6s;width:2px;height:2px}
.cinema-grain{position:absolute;inset:0;opacity:.012;background-image:url("/assets/grain.svg");pointer-events:none}
.submit-page,.result-page{background:#14271f;border:1px solid #e5f0d82e;box-shadow:0 30px 100px #0005,inset 0 1px 0 #ffffff0a;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.task-tabs button{color:#d9e4d6a6}
.task-tabs button.active,.task-tabs button:hover{color:#eff6e5}
.task-tabs button::after{background:#d4e7b6}
.dropzone{border-color:#cfdec54d;background:linear-gradient(145deg,#ffffff08,#c0d6ad09)}
.dropzone:hover{border-color:#e3efcda6;background:#d9e9c00d;box-shadow:inset 0 0 35px #e7f1d008}
.dropzone.dragging{border-color:#e2f1b7;background:#e5f2c41a;box-shadow:0 0 0 5px #d5e9b315}
.upload-mark{background:#eff5df0d;border-color:#e7f1d526;box-shadow:0 5px 20px #0000000d}
.upload-mark svg{stroke:#d0dfbe}
.dropzone strong{color:#e3edd9}
.file-card{border-color:#d9e6ca4d;background:linear-gradient(145deg,#e2ecc20d,#acc99412)}
.file-card span{color:#c3d1b9}
.primary-button{background:linear-gradient(110deg,#e0e9c7,#c2d4a4);color:#203322;border-color:#d7e5be;box-shadow:0 5px 20px #0002;font-weight:500}
.primary-button:disabled{background:#b8c4ac40;border-color:#d1dec326;color:#edf2e5a6}
.text-button{color:#d1dfc4b3}
.text-button:hover{color:#fff}
#resultDetail,#jobStatus{color:#c3d1ba}
.error,#jobStatus.error{color:#ffd2bd}
.tree-canvas{background:#f6f9f0;border-color:#e0e9d833;color:#263c2a}
.reset-view{background:#f6f9f0;color:#6c7d62}
.site-footer a{color:#eff4e1c7;text-shadow:0 1px 8px #0008}
.site-footer a:hover{color:#fff}
.background-toggle{position:fixed;bottom:25px;left:26px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #f1f5e12b;border-radius:50%;background:#08160c2e;color:#f3f5e1b3;backdrop-filter:blur(8px);z-index:2}
.background-toggle:hover{background:#08160c80;color:#fff}
.background-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.background-toggle .play-icon{display:none}
.background-paused .background-toggle .pause-icon{display:none}
.background-paused .background-toggle .play-icon{display:block}
.background-paused .cinema *{animation-play-state:paused!important}
.background-paused .scene img{transition:none}
@keyframes ray-drift{from{transform:rotate(-4deg);opacity:.12}to{transform:rotate(4deg);opacity:.25}}
@keyframes mote-rise{0%{transform:translate3d(0,0,0);opacity:0}12%{opacity:.42}75%{opacity:.22}100%{transform:translate3d(55px,-105vh,0);opacity:0}}
@media(max-width:600px){.background-toggle{left:13px;bottom:19px;width:25px;height:25px}.site-footer nav{gap:6px 19px}.scene img{object-position:60% center}.cinema-shade{background:linear-gradient(180deg,#04120c1a,#04120c14 60%,#020b08b3)}}
@media(prefers-reduced-motion:reduce){.scene img,.scene.is-active img{transform:none;transition:none}.light-rays,.motes{display:none}.background-toggle{display:none}}

.scene img,.scene.is-active img{transition:none;animation:camera-drift 24s ease-in-out infinite alternate}
.scene:nth-child(even) img{animation-direction:alternate-reverse}
.background-hidden .cinema *{animation-play-state:paused!important}
@keyframes camera-drift{from{transform:scale(1.025) translate3d(0,0,0)}to{transform:scale(1.13) translate3d(-1%,.5%,0)}}
@media(prefers-reduced-motion:reduce){.scene img,.scene.is-active img{animation:none!important;transform:none;transition:none}.scene{transition:none}}


/* Discreet manual theme picker. Only the selected full-resolution photo loads. */
.background-controls{position:fixed;left:25px;bottom:23px;display:flex;align-items:center;gap:8px;z-index:5}
.background-controls .background-toggle{position:static;width:32px;height:32px}
.theme-toggle{display:flex;align-items:center;gap:9px;height:34px;padding:0 12px;border:1px solid #f1f5e12b;border-radius:18px;background:#08160c80;backdrop-filter:blur(16px);color:#f0f4e5d9;font-size:12px}
.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.2}
.theme-chevron{font-size:15px;opacity:.6;margin-left:6px}
.theme-menu{position:absolute;left:0;bottom:46px;width:177px;padding:6px;border:1px solid #e7efdc33;border-radius:15px;background:#10231bed;backdrop-filter:blur(24px);box-shadow:0 12px 36px #0004}
.theme-menu button{width:100%;display:flex;gap:11px;align-items:center;border:0;border-radius:9px;padding:11px 10px;background:transparent;color:#d3dfce;font-size:12px;text-align:left}
.theme-menu button:hover,.theme-menu button[aria-pressed=true]{background:#d7e6c91a;color:#fff}
.theme-menu button[aria-pressed=true]::after{content:'✓';margin-left:auto;color:#daecc3}
.theme-dot{width:17px;height:17px;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff30}
.forest-dot{background:linear-gradient(135deg,#c2c77e,#355239 55%,#152e20)}
.reef-dot{background:linear-gradient(135deg,#39c5dc,#076a8a 55%,#e49b59)}
.fern-dot{background:linear-gradient(135deg,#cce777,#467d25 55%,#1c431b)}
.bird-dot{background:linear-gradient(135deg,#c0d3a3,#739470 55%,#313c29)}
.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}
body[data-theme=reef] .primary-button:not(:disabled){background:linear-gradient(110deg,#d4edf0,#a7d8dd);border-color:#c1e6e9;color:#193d43}
body[data-theme=reef] .task-tabs button::after{background:#b0e3e8}
body[data-theme=reef] .light-rays{opacity:.1}

@media(max-width:700px){.background-controls{left:14px;bottom:55px}.site-footer{padding-bottom:18px}.theme-toggle{height:32px}}
@media(prefers-reduced-motion:reduce){.background-controls #backgroundToggle{display:none}.background-controls #nextBackground{display:grid}}

/* Resolution-independent geometric evolution, with quiet space at the center. */
#evolutionCanvas{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity 1s ease}
body[data-theme=geometry] .cinema{background:radial-gradient(ellipse at 50% 42%,#1b3028 0,#101f19 55%,#0a1712 100%)}
body[data-theme=geometry] #evolutionCanvas{opacity:1}
body[data-theme=geometry] .scene{opacity:0!important}
body[data-theme=geometry] .scene img{animation-play-state:paused}
body[data-theme=geometry] .light-rays,body[data-theme=geometry] .motes,body[data-theme=geometry] .cinema-grain{display:none}
body[data-theme=geometry] .cinema-shade{background:radial-gradient(ellipse at 50% 46%,#15271f14 25%,transparent 65%)}
body[data-theme=geometry] .submit-page,body[data-theme=geometry] .result-page{background:#14271f;border-color:#d6e6ce26;box-shadow:0 28px 90px #00000026,inset 0 1px 0 #ffffff06}
.geometry-dot{background:linear-gradient(135deg,#283f31,#98b59e);position:relative}
.geometry-dot::after{content:'⑂';position:absolute;inset:0;color:#edf4dc;text-align:center;line-height:17px;font-size:15px}
@media(prefers-reduced-motion:reduce){#evolutionCanvas{transition:none}}

/* Close-ups keep their subject beside the form; all imagery is served locally. */
.photo-credit{position:fixed;right:25px;bottom:29px;z-index:3;display:flex;align-items:center;gap:5px;max-width:32vw;color:#edf2e3b8;font-size:10px;text-shadow:0 1px 6px #000;line-height:1.5}
.photo-credit a:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-credit a:last-child{flex-shrink:0}
.photo-credit a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.background-controls #nextBackground{background:#08160c80}
body[data-theme=nature] .light-rays,body[data-theme=nature] .motes{display:none}
body[data-theme=nature] .scene img{animation-name:portrait-drift}
@keyframes portrait-drift{from{transform:scale(1.015)}to{transform:scale(1.045) translate3d(-.4%,0,0)}}

@media(max-width:700px){.photo-credit{right:14px;bottom:58px;max-width:calc(100vw - 250px);font-size:9px;display:block;text-align:right}.photo-credit a:first-child{display:block;max-width:100%}.photo-credit span{display:none}body[data-theme=nature] .submit-page{margin-top:210px;margin-bottom:80px}}
@media(max-width:700px) and (max-height:740px){body[data-theme=nature] .submit-page{margin-top:clamp(78px,20svh,145px);margin-bottom:65px;padding:18px}body[data-theme=nature] .dropzone,body[data-theme=nature] .file-card{min-height:clamp(110px,24svh,177px)}}
.credits-page{display:block;max-width:1000px;width:calc(100% - 40px);margin:45px auto;color:#dce6d5}.credits-page>p{color:#aebda8;line-height:1.7}.credits-page>a{display:inline-block;margin-bottom:28px;font-size:13px}.credits-page h1{margin-bottom:12px}.credit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:25px;margin-top:35px}.credit-entry{padding:16px;border:1px solid #e5f0d826;border-radius:16px;scroll-margin-top:25px}.credit-entry img{width:100%;height:170px;object-fit:cover;object-position:center top;border-radius:8px}.credit-entry h2{font-size:17px;font-weight:500;margin:15px 0 9px}.credit-entry p{font-size:12px;line-height:1.7;color:#b9c9b0}.credit-entry a{text-decoration:underline;text-underline-offset:3px}.credit-entry .credit-type{color:#e3e9d6}

/* Keep the completion control in its own column even when support is hidden. */
.inference-options{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:4px 12px;margin:-7px 0 20px;min-height:35px;font-size:11px;color:#c3d1ba}
#completionOption{grid-column:2;grid-row:1}
.model-option{display:flex;align-items:center;gap:9px;min-width:0}
.model-option select{max-width:185px;min-height:34px;padding:5px 25px 5px 9px;border:1px solid #d6e6ce29;border-radius:7px;background:#14271f;color:#e8efdf;font:inherit;cursor:pointer}
.model-option select:focus-visible{outline:2px solid #c5daa1;outline-offset:3px}
.support-option{display:flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap;min-height:34px}
.support-option input{accent-color:#bad39e;width:14px;height:14px;margin:0;cursor:pointer}
.support-legend{font-size:10px;line-height:1.6;color:#bccdb1;margin:13px 0 0}
#treeSvg text.branch-support{font-size:9px;fill:#6c7b69;paint-order:stroke;stroke:#fcfdf9;stroke-width:3px;stroke-linejoin:round}
#treeSvg path.support-leader{stroke-width:.7;stroke-dasharray:2 2}
body.viewing-result{position:relative}
body.viewing-result .background-controls,body.viewing-result .photo-credit{position:absolute}
@media(max-width:380px){.inference-options{gap:8px;font-size:10px}.model-option{gap:6px}.model-option select{max-width:150px}.support-option{gap:5px}}

/* Personal workstation telemetry. */
.log-dot{width:5px;height:5px;display:inline-block;background:#bfda9e;border-radius:50%;box-shadow:0 0 9px #bcdd9a40}

/* A seed grows with observed stages; native output stays beside it. */
.result-page{width:min(calc(100% - 64px),1040px)}
.inference-progress{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;margin:27px 0 23px}
.growth-panel,.run-log{min-width:0;border:1px solid #d6e6ce24;border-radius:15px;background:linear-gradient(155deg,#c9e0a608,#07140e22);overflow:hidden}
.growth-panel{position:relative;display:grid;place-items:center;padding:14px;isolation:isolate;background:radial-gradient(ellipse at 50% 65%,#b6d78c0b,transparent 68%),#0c1e150d}
.growth-tree{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}
.growth-ground{fill:none;stroke:#d7e5bd18;stroke-width:.8}
.growth-branch,.growth-root{fill:none;stroke:url(#branchGradient);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.growth-root{stroke:#91aa7559;stroke-width:1.2}
.growth-leaf{fill:#c2dd95;transform-origin:0 0}
#growthSeed{fill:#c7d9a0;stroke:#e2e9c2;stroke-width:.7}
#growthCrown{transform-origin:200px 274px}
.growth-ripple{fill:none;stroke:#c3df9c;stroke-width:.5;opacity:0;transform-origin:200px 279px}
.growth-mote{fill:#dcf4ae;opacity:0}
.growth-sap{fill:#effac7;filter:drop-shadow(0 0 2px #d6eeaa);visibility:hidden}
.growth-active #growthCrown{animation:tree-breeze 9s ease-in-out infinite}
.growth-active .growth-leaf{animation:leaf-breeze 5.6s ease-in-out var(--leaf-delay) infinite}
.growth-active .growth-halo{animation:seed-breathe 5s ease-in-out infinite}
.growth-active .growth-ripple{animation:root-ripple 6s ease-out infinite}
.growth-active .growth-mote{animation:tree-mote 10s linear var(--mote-delay) infinite}
.inference-progress[data-mode=running] .growth-active .growth-sap{visibility:visible}
@keyframes tree-breeze{0%,100%{transform:rotate(-.7deg)}50%{transform:rotate(.9deg)}}
@keyframes leaf-breeze{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(7deg)}}
@keyframes seed-breathe{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes root-ripple{0%{transform:scale(.65);opacity:0}20%{opacity:.24}100%{transform:scale(3.8);opacity:0}}
@keyframes tree-mote{0%{transform:translate(0,12px);opacity:0}20%{opacity:.5}75%{opacity:.24}100%{transform:translate(var(--mote-drift),-90px);opacity:0}}
.run-log{display:flex;flex-direction:column;background:#09170f59}
#logTail{margin:0;padding:18px 20px;flex:1;min-height:315px;max-height:390px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b2c89a33 transparent;font:10px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;color:#b9cfa9;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}
#logTail:focus-visible{outline:1px solid #c2d59d;outline-offset:-4px}

/* Compact disclosure: key readings remain visible when details are tucked away. */

.result-page{width:min(calc(100% - 56px),980px);padding:28px 30px}.result-header h1{font-size:24px}
.inference-progress{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:14px;margin:22px 0 18px}
#logTail{padding:14px 17px;min-height:270px;max-height:322px;font-size:10px;line-height:1.85}
.result-actions{margin:18px 0 12px}

/* Center the workspace; blur is confined to a soft halo around its edges. */
.submit-page,.result-page{position:relative;isolation:isolate;margin:32px auto;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 10px 28px #0002,inset 0 1px 0 #ffffff08;animation:workspace-enter .6s var(--ease) both}
body[data-theme=geometry] .submit-page,body[data-theme=geometry] .result-page{box-shadow:0 10px 28px #0002,inset 0 1px 0 #ffffff08}
/* Opacity animations would isolate backdrop sampling, so enter by translation only. */
@keyframes workspace-enter{from{transform:translateY(8px)}to{transform:translateY(0)}}
/* The content-box mask is subtracted: glass exists only outside the card. */
.submit-page::before,.result-page::before{content:"";position:absolute;inset:-64px;padding:64px;z-index:-1;border-radius:88px;pointer-events:none;background:#e8f2db08;backdrop-filter:blur(26px) saturate(1.08);-webkit-backdrop-filter:blur(26px) saturate(1.08);mask-image:linear-gradient(#000 0 0),linear-gradient(to right,transparent,#000 52px,#000 calc(100% - 52px),transparent),linear-gradient(to bottom,transparent,#000 52px,#000 calc(100% - 52px),transparent);mask-clip:content-box,border-box,border-box;mask-composite:exclude,intersect}
.result-page::before{border-radius:86px}
.submit-page::after,.result-page::after{content:"";position:absolute;inset:-1px;border:1px solid #e5f0d82e;border-radius:inherit;pointer-events:none;z-index:1;box-shadow:inset 0 1px 0 #ffffff08}
.inference-progress{height:368px;grid-template-rows:minmax(0,1fr)}
#logTail{min-height:0;max-height:none}
.settings-button{position:fixed;right:25px;bottom:23px;z-index:5;width:34px;height:34px;display:grid;place-items:center;padding:7px;border:1px solid #f1f5e12b;border-radius:50%;background:#08160c80;color:#d8e6cc;transition:background .2s}
.settings-button:hover{background:#243a2c;color:#fff}
.settings-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round}
.photo-credit{right:76px}
.pipeline-progress{display:flex;flex:none;gap:4px;list-style:none;padding:12px;margin:0;border-bottom:1px solid #d6e6ce17}
.pipeline-progress li{flex:1;min-width:0;border:1px solid #d6e6ce16;border-radius:5px;overflow:hidden;background:#d4e8bc03;transition:background .2s,border-color .2s}
.pipeline-progress button{display:block;width:100%;padding:0 3px;border:0;background:none;color:#71846a;text-align:center;font:10px/34px var(--font);white-space:nowrap}
.pipeline-progress li[data-status=complete] button{color:#a9bc9d}.pipeline-progress li[data-status=complete]{background:#bbd69a08}
.pipeline-progress li[data-status=active]{background:#b9d49538;border-color:#d0e5ad99;box-shadow:inset 0 0 16px #d5edb00b}
.pipeline-progress li[data-status=active] button{color:#eff8e1;font-weight:550}
.pipeline-progress li[data-viewed=true]:not([data-status=active]){border-color:#b7cf9566}
.pipeline-progress button:focus-visible{outline:2px solid #d6e9bf;outline-offset:-3px}.pipeline-progress button:disabled{cursor:default}
.run-log #logTail{padding:0 12px 10px;white-space:normal;overflow-wrap:normal;font:10px/1.6 var(--mono);scrollbar-gutter:stable;position:relative}
.run-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.run-table th,.run-table td{padding:9px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-weight:400;border-bottom:1px solid #d6e6ce0d}
.run-table thead th{position:sticky;top:0;z-index:2;background:#192d21;color:#90a682;font:10px/1.5 var(--font);padding-top:12px;padding-bottom:11px}
.run-table th:first-child,.run-table td:first-child{text-align:left}.run-table tbody tr:last-child{color:#e0eccd}
.run-table tbody tr:hover{background:#d6e6ce06}.log-empty{padding:26px 0;text-align:center;color:#829878;font:11px var(--font);margin:0}
.settings-dialog{width:510px;max-width:calc(100vw - 80px);padding:24px;border:1px solid #d6e6ce36;border-radius:20px;background:#14271ff7;color:#e5eedd;box-shadow:0 20px 80px #0005}
.settings-dialog::backdrop{background:#06130b66}
.settings-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.settings-dialog h2{margin:0;font-size:19px;font-weight:500;letter-spacing:-.3px}
.settings-close{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#acc0a2;font-size:23px}
.settings-close:hover{background:#c5dba514;color:#f0f6e8}
.settings-tabs{display:flex;gap:22px;border-bottom:1px solid #d6e6ce24;margin-bottom:20px}
.settings-tabs button{border:0;border-bottom:2px solid transparent;padding:9px 0 11px;background:none;color:#9eb193;font:inherit;font-size:12px}
.settings-tabs button[aria-selected=true]{border-bottom-color:#c6dda5;color:#e8f1db}
.settings-fields{min-height:130px}
.settings-empty{margin:0;padding:38px 0;color:#91a487;font-size:12px;text-align:center}
@media(prefers-reduced-motion:reduce){.growth-sap,.growth-mote,.growth-ripple{display:none}}

/* Keep the card centered in the viewport; the footer occupies its bottom margin. */
body:has(#taskForm){position:relative}
body:has(#taskForm)>main{min-height:100svh}
body:has(#taskForm)>.site-footer{position:absolute;inset:auto 0 0;height:32px;padding:7px 20px 8px}
body:has(#taskForm)>.site-footer a{padding:0}
.upload-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.upload-panels.completion{grid-template-columns:repeat(2,minmax(0,1fr))}
.upload-panel{min-width:0}
.upload-label{display:flex;justify-content:space-between;align-items:center;margin:0 2px 10px;font-size:12px;color:#dce6d2}
.upload-label span+span{font-size:10px;opacity:.6}
.completion .file-card{flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px 12px;gap:12px}
.completion .file-card>div{flex:0;max-width:100%}
.completion .file-card strong{font-size:12px}
.completion #fileMeta{display:none}
@media(max-width:380px){.upload-panels{gap:10px}.completion .dropzone,.completion .file-card{min-height:180px}.completion .upload-mark{width:48px;height:48px;border-radius:15px}}

/* Additional controls in the hosted console. */
.online-service{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #d6e6ce26}
.online-service strong{color:#e8efdf;font-weight:600;letter-spacing:.01em}
.online-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:11px;color:#b7c9af}
#serviceHealth{display:inline-flex;align-items:center;gap:6px;color:#dce7ce}
#serviceHealth::before{content:'';width:6px;height:6px;border-radius:50%;background:#e5bd83}
#serviceHealth[data-state=online]::before{background:#b9d89b}
#serviceHealth:is([data-state=error],[data-state=offline])::before{background:#efa9a0}
.online-model{grid-column:1/-1;grid-row:2;justify-content:space-between}
.online-submit{display:flex;align-items:center;justify-content:flex-end;margin-top:18px}
.online-submit .primary-button{min-height:38px;padding-inline:14px}
.online-submit .primary-button:disabled{opacity:.55}
.online-upload-progress{width:100%;height:9px;margin:0 0 10px;accent-color:#bad39e}
.online-private{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:16px;color:#b7c9af;font-size:11px}
.online-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.result-secondary{padding:8px 12px;min-height:36px;border:1px solid #d6e6ce36;border-radius:8px;background:#d6e6ce0b;color:#e5eedd;font-size:12px}
.result-secondary:hover{background:#d6e6ce21}
.result-secondary:disabled{opacity:.55}
.danger-action{color:#f2b8aa;border-color:#d196894d}
.result-action-status,.feedback-note{color:#b7c9af;font-size:12px;line-height:1.5}
#onlineNotice:empty{display:none}
.online-feedback{position:fixed;top:18px;right:22px;z-index:5;display:grid;justify-items:end;gap:8px}
.feedback-card{--feedback-icon-width:34px;--feedback-gap:10px;--feedback-inset:8px;display:grid;padding-bottom:8px;border:1px solid #e6f2d8;border-radius:14px;background:#e3f4cf;color:#173624;box-shadow:0 6px 26px #07190d42;transition:background .18s,box-shadow .18s}
.feedback-card:is(:hover,:focus-within){background:#f0f9e6;box-shadow:0 7px 30px #07190d63}
.feedback-invite{display:flex;align-items:center;gap:var(--feedback-gap);min-height:47px;padding:6px 13px 3px var(--feedback-inset);border:0;border-radius:inherit;background:none;text-align:left}
.feedback-contact{justify-self:start;margin:0 12px 0 calc(var(--feedback-inset) + var(--feedback-icon-width) + var(--feedback-gap));font-size:12px;line-height:1.3;font-weight:600;text-decoration:underline;text-decoration-color:#46725080;text-underline-offset:3px}
.feedback-contact:hover{text-decoration-color:currentColor}
.feedback-invite-icon{display:grid;place-items:center;width:var(--feedback-icon-width);height:var(--feedback-icon-width);border-radius:10px;background:#244936;color:#edf9dd}
.feedback-invite svg,.feedback-attachment svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feedback-invite-copy{display:grid;gap:1px;line-height:1.3}
.feedback-invite-copy strong{font-size:13px;font-weight:750}
.feedback-invite-copy>span{font-size:11px;color:#40624c}
.online-feedback p{margin:0;padding:6px 10px;border-radius:8px;background:#14271ff7;color:#e5eedd;font-size:12px}
@media(max-width:600px){
  .online-feedback{position:absolute;top:9px;right:12px}
  .feedback-card{--feedback-icon-width:29px;--feedback-gap:7px;--feedback-inset:6px;border-radius:12px}
  .feedback-invite{min-height:40px;padding-right:10px}
  .feedback-invite-icon{border-radius:8px}
  .feedback-invite-copy>span{font-size:10px}
  body:has(.online-feedback)>main>:is(.submit-page,.result-page){margin-top:max(88px,env(safe-area-inset-top))}
}
.feedback-dialog form,.feedback-dialog label{display:grid;gap:6px}
.feedback-dialog form{gap:12px;min-width:0}
.feedback-dialog .delete-form{display:flex;justify-content:flex-end;margin-top:18px}
.feedback-dialog :is(input[type=email],textarea){width:100%;min-width:0;padding:9px 11px;border:1px solid #d6e6ce45;border-radius:8px;background:#102019;color:#e5eedd;font:inherit}
.feedback-writing{display:flex;flex-direction:column;flex:1 0 auto;gap:4px;min-width:0}
.feedback-writing-bar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.feedback-writing-bar button{flex:none;display:grid;place-items:center;width:34px;height:34px;border:1px solid #d6e6ce36;border-radius:8px;background:#d6e6ce0b;color:#e5eedd}
.feedback-writing-bar button:hover{background:#d6e6ce21}
.feedback-writing-bar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#resizeFeedback[aria-expanded=false] .shrink-writing,#resizeFeedback[aria-expanded=true] .expand-writing{display:none}
.feedback-dialog textarea{flex:1 0 auto;resize:none;min-height:6.5rem;line-height:1.5}
.feedback-dialog .primary-button{justify-self:start}
.feedback-note{margin:0}
.feedback-compose{width:490px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:24px 26px;background:#15291f}
.feedback-compose[open]{display:flex;flex-direction:column}
.feedback-compose>header{flex:none}
.feedback-compose form{display:flex;flex-direction:column;flex:1 0 auto}
.feedback-compose:has(#resizeFeedback[aria-expanded=true]){width:680px}
.feedback-compose:has(#resizeFeedback[aria-expanded=true]) textarea{height:clamp(10rem,40dvh,22rem)}
.feedback-compose header{gap:12px;margin-bottom:14px}
.feedback-compose h2{font-size:22px;font-weight:680}
.feedback-compose .settings-close{flex:none}
.feedback-topics{display:flex;flex-wrap:wrap;gap:7px;border:0;padding:0;margin:0;min-width:0}
.feedback-dialog .feedback-topics label{display:block;position:relative;cursor:pointer}
.feedback-topics input{position:absolute;inset:0 auto auto 0;width:1px;height:1px;opacity:0;margin:0;padding:0}
.feedback-topics span{display:block;padding:6px 10px;border:1px solid #d6e6ce42;border-radius:999px;background:#d6e6ce0c;font-size:12px}
.feedback-topics input:checked+span{background:#def0ca;color:#203a29;border-color:#def0ca;font-weight:650}
.feedback-topics input:focus-visible+span,.feedback-attachment:focus-visible{outline:2px solid #b6dc9f;outline-offset:2px}
.feedback-compose .feedback-attachment{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 12px;border:1px dashed #aec5a667;border-radius:10px;background:#1b3325;cursor:pointer}
.feedback-attachment:is(:hover,.dragging){background:#294534;border-color:#a9d096}
.feedback-attachment svg{flex:none;color:#c5e0b4}
.feedback-attachment>span{display:grid;gap:2px;min-width:0}
.feedback-compose .primary-button{justify-self:stretch}
.feedback-compose .error{margin:0}
@media(max-width:480px){.feedback-compose{padding:19px}.feedback-compose h2{font-size:20px}}
.inference-progress:has(.stage-label) .run-log{justify-content:center}
.pipeline-progress:has(.stage-label){flex-wrap:wrap;border:0}
.pipeline-progress .stage-label{display:grid;place-items:center;min-height:34px;padding:6px 5px;text-align:center;font-size:11px;line-height:1.4;color:#9bae92}
.pipeline-progress li:has(.stage-label){min-width:70px}
.pipeline-progress li[data-status=complete] .stage-label{color:#bfd2ad}
.pipeline-progress li[data-status=active] .stage-label{color:#eff8e1;font-weight:550}
@media(max-width:420px){.online-submit .primary-button{width:100%}.online-submit p{text-align:center}}


.feedback-card:has(.feedback-invite:not([data-seen])){animation:feedback-nudge 5.4s ease-in-out infinite}
.feedback-card:is(:hover,:focus-within){animation-play-state:paused}
@keyframes feedback-nudge{
  0%,37%,53%,100%{transform:translateY(0) scale(1)}
  42%{transform:translateY(-7px) scale(1.035)}
  46%{transform:translateY(0) scale(.99)}
  49%{transform:translateY(-3px) scale(1.015)}
}
.feedback-compose{overflow:auto}
@media(hover:hover) and (pointer:fine){
  .feedback-compose{resize:both;min-width:min(285px,calc(100vw - 28px));min-height:min(360px,calc(100dvh - 28px))}
  .feedback-compose::-webkit-resizer{
    background:linear-gradient(135deg,transparent 45%,#b6c8ae 46% 57%,transparent 58%) 3px 3px/9px 9px no-repeat,
               linear-gradient(135deg,transparent 41%,#b6c8ae 42% 62%,transparent 63%) 8px 8px/5px 5px no-repeat;
  }
}
.feedback-compose .feedback-attachment{text-align:left;font:inherit}
.feedback-attachment>span{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.feedback-attachment>span>span{color:#c3d2bd}
.feedback-files{display:grid;gap:3px;margin:0;padding:0;list-style:none;min-width:0}
.feedback-files li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:6px;padding:1px 4px 1px 8px;background:#ffffff0a}
.feedback-files li>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feedback-files button{border:0;background:transparent;flex:none;min-width:28px;min-height:27px;font-size:19px;line-height:1}
#uploadTrigger:has(.upload-limit:not(:empty)){gap:10px}
.upload-limit{font-size:12px;color:#dce6d2}
#onlineLimits:empty + .upload-limit-scope{display:none}
.upload-contact{max-width:24rem;color:#c3d1b9;font-size:11px;line-height:1.5;text-align:center;overflow-wrap:anywhere}

body:has(.online-feedback)>main{min-height:calc(100svh - 56px)}
body:has(.online-feedback)>.site-footer{position:relative;inset:auto;height:auto;min-height:56px;padding:8px 16px 12px}
.footer-guides{display:inline-flex;align-items:center;gap:9px;padding:6px 12px;border-radius:9px;background:#e3f4cf;border:1px solid #e6f2d8;color:#42614b;white-space:nowrap}
.site-footer .footer-guides a{color:#173624;font-size:14px;font-weight:700;text-shadow:none}
@media(max-width:380px){
  body:has(.online-feedback)>.site-footer nav{gap:6px 12px}
  .feedback-compose .feedback-topics span{padding-inline:8px}
}
.help-page{max-width:680px}
.help-page h1{font-size:32px}
.help-page ol{padding-left:24px;margin:22px 0 24px;line-height:1.7}
.help-page li+li{margin-top:13px}
.help-page nav{display:flex;gap:10px 20px;flex-wrap:wrap}
.help-page a{text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){
  /* The decorative blur extends beyond the card and creates overflow on small screens. */
  body:has(.online-feedback) :is(.submit-page,.result-page)::before{display:none}
}
