:root{color-scheme:light;--bg:#eeeeec;--text:#181818;--muted:#696969;--line:#d7d7d4;--panel:#f7f7f5;--sub:#e6e6e3;--action:#171717;--actiontext:#fff;--ok:#36734a;--error:#b53535;--focus:#777}
body.dark{color-scheme:dark;--bg:#080808;--text:#eeeeed;--muted:#8c8c8c;--line:#292929;--panel:#101010;--sub:#191919;--action:#ededeb;--actiontext:#080808;--ok:#a5d8b4;--error:#f69d9d;--focus:#c5c5c5}
*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100svh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,#drop:focus-visible{outline:2px solid var(--focus);outline-offset:5px}[hidden]{display:none!important}svg{display:block;flex-shrink:0}a{color:inherit}
.top{height:112px;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;padding:0 28px}.brand{font-size:15px;letter-spacing:.39em;font-weight:500;text-decoration:none;white-space:nowrap;padding-left:.39em}.brand span{font-weight:300;letter-spacing:.23em;color:var(--muted)}.topright{position:absolute;right:max(26px,calc((100% - 1040px)/2));top:50%;transform:translateY(-50%)}.iconbtn{border:0;background:transparent;color:var(--muted);width:44px;height:44px;display:grid;place-items:center;border-radius:50%;font-size:23px}.iconbtn:hover{background:var(--sub);color:var(--text)}.iconbtn svg{width:19px;height:19px}.sun,.dark .moon{display:none}.dark .sun{display:block}
.shell{display:flex;flex:1;flex-direction:column;width:min(100% - 48px,740px);margin:0 auto}.sidebar{order:2;margin:0 auto 34px;width:min(100%,340px)}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tab{color:var(--muted);border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 4px 7px;font-size:11px;letter-spacing:.07em;position:relative}.tab svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.tab.active,.tab:hover{color:var(--text)}.tab.active:after{content:"";width:3px;height:3px;border-radius:50%;background:currentColor;position:absolute;bottom:0}
main{order:1;flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:0 0 28px}.workspace{min-width:0}.pagehead{display:none;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}.pagehead h1{font-size:21px;font-weight:500;letter-spacing:-.4px;margin:0}.count{font:10px/1.5 ui-monospace,monospace;color:var(--muted);letter-spacing:.07em}.drop{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;cursor:pointer;text-align:center;border-radius:24px;gap:8px;padding:24px 8px 40px}.orb{position:relative;isolation:isolate;display:grid;place-items:center;width:280px;height:280px;border-radius:50%;border:1px solid #565656;background:radial-gradient(ellipse at 33% 22%,#303030 0%,#171717 30%,#090909 62%,#040404 100%);color:#e9e9e9;box-shadow:inset 0 0 2px 1px #9993,inset 0 0 30px #000b,0 18px 55px #0007,0 0 0 9px #8a8a8a08,0 0 0 22px #8a8a8a05;transition:transform .35s ease,box-shadow .35s ease;margin:0 0 50px;padding:0}.orb:before{content:"";position:absolute;inset:-7px;border-radius:50%;border:1px solid #8883;pointer-events:none}.orb:after{content:"";position:absolute;inset:3px;border:1px solid #b5b5b51e;border-radius:50%;pointer-events:none}.orbmesh{position:absolute;inset:0;width:100%;height:100%;opacity:.78;transition:transform .9s cubic-bezier(.2,.7,.2,1);pointer-events:none}.orbcore{width:58px;height:58px;display:grid;place-items:center;background:#111;border:1px solid #494949;border-radius:50%;box-shadow:0 0 30px 8px #030303c9;z-index:1}.orbcore svg{width:25px;height:25px}.orbtext{position:absolute;top:calc(100% + 26px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:17px;font-weight:450;letter-spacing:.015em;color:var(--text)}.drop:hover .orb:not(:disabled),.drop.drag .orb{transform:scale(1.025);box-shadow:inset 0 0 2px 1px #aaa6,inset 0 0 30px #000b,0 14px 70px #8882,0 0 0 9px #8a8a8a10,0 0 0 22px #8a8a8a08}.drop:hover .orbmesh,.drop.drag .orbmesh{transform:rotate(22deg)}.drop strong{font-size:12px;font-weight:400;color:var(--muted)}.drop small{display:none}.limits{display:flex;justify-content:center;gap:15px;color:var(--muted);font-size:10px;letter-spacing:.015em}.limits span+span:before{content:"·";margin-right:15px}
/* The selected files reveal the working area instead of the home screen. */
body:has(.queue:not(:empty)) main{justify-content:flex-start;padding-top:12px}body:has(.queue:not(:empty)) .pagehead{display:flex}body:has(.queue:not(:empty)) .drop{min-height:0;padding:15px 0;flex-direction:row;justify-content:flex-start;border-radius:0;border-bottom:1px solid var(--line);gap:14px}body:has(.queue:not(:empty)) .orb{width:44px;height:44px;margin:0 94px 0 1px;box-shadow:none}body:has(.queue:not(:empty)) .orb:before,body:has(.queue:not(:empty)) .orb:after{display:none}body:has(.queue:not(:empty)) .orbcore{width:22px;height:22px;border:0;background:transparent;box-shadow:none}body:has(.queue:not(:empty)) .orbcore svg{width:20px;height:20px}body:has(.queue:not(:empty)) .orbtext{top:50%;left:calc(100% + 12px);transform:translateY(-50%);font-size:13px}body:has(.queue:not(:empty)) .drop strong{font-size:11px}body:has(.queue:not(:empty)) .sidebar{order:0;margin:0 auto 22px}body:has(.queue:not(:empty)) .limits{margin-top:20px}
.queue:not(:empty){margin-top:12px}.file{display:grid;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.filetop{display:flex;gap:13px;align-items:center}.fileicon{width:45px;height:45px;flex-shrink:0;display:grid;place-items:center;background:var(--sub);color:var(--muted);border:1px solid var(--line);border-radius:10px;font:500 11px/1 ui-monospace,monospace}.filetitle{flex:1;min-width:0}.filename{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.filemeta{font-size:12px;color:var(--muted)}.fileformat{display:flex;gap:9px;align-items:center}.fileformat label{color:var(--muted);font-size:11px}select,input[type=number]{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:9px 11px;min-width:0;max-width:100%}.fileformat select{font-size:13px;font-weight:500;min-width:88px}.settings summary{font-size:12px;color:var(--muted);cursor:pointer;width:max-content;max-width:100%}.settinggrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;background:var(--panel);padding:15px;border-radius:10px;margin-top:10px}.settinggrid label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.settinggrid input[type=checkbox]{justify-self:start;accent-color:var(--focus)}.statusline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}.statusline .status{flex:1;min-width:100px;overflow-wrap:anywhere}.statusline .error{color:var(--error)}.statusline .done{color:var(--ok)}progress{width:100%;height:4px;accent-color:var(--text)}.detail{font-size:11px;color:var(--muted)}.detail:empty{display:none}.actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 0 0}.actionright{display:flex;gap:8px}.actions .primary,.secondary,.download,.mini{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:30px;border:1px solid var(--line);background:transparent;color:var(--text);font-weight:500;white-space:nowrap}.actions .primary,.download{background:var(--action);color:var(--actiontext);border-color:transparent}.actions .primary:hover,.download:hover{opacity:.8}.actions .primary svg{width:17px;height:17px}.secondary,.mini{color:var(--muted);font-size:12px}.mini,.download{font-size:12px;padding:8px 14px}.download{text-decoration:none}.mini.remove{border:0;padding:5px 10px;font-size:22px;line-height:1}.secondary:hover,.mini:hover{background:var(--sub);color:var(--text)}#notice{margin:10px 0;padding:12px 14px;background:var(--sub);border-radius:8px;overflow-wrap:anywhere;font-size:12px}dialog{width:min(720px,92vw);border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);padding:20px}dialog::backdrop{background:#000b}.dialoghead{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}#previewBody>*{max-width:100%;max-height:65vh}#previewBody audio,#previewBody video{width:100%}
@media(max-width:600px){.top{height:95px}.topright{right:15px}.brand{font-size:14px}.shell{width:calc(100% - 36px)}.drop{min-height:350px;padding:12px 0 35px}.orb{width:230px;height:230px}.sidebar{margin-bottom:24px}.filetop{flex-wrap:wrap;gap:9px}.filetitle{flex:1 1 calc(100% - 100px)}.fileformat{order:1;flex:1 1 100%;padding-left:54px}.fileformat select{flex:1}.actions{flex-wrap:wrap}.actions .primary,.actions .secondary{padding:10px 14px;font-size:12px}.limits{gap:9px}.limits span+span:before{margin-right:9px}}
@media(max-height:650px){.top{height:76px}.drop{min-height:330px}.orb{width:210px;height:210px}.sidebar{margin-bottom:14px}main{padding-bottom:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* V1.5: quiet, short accretion effect. All animation is local and decorative. */
.vortex-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}
.orb-progress{display:none;position:absolute;inset:-4px;border-radius:50%;pointer-events:none;background:conic-gradient(from -90deg,var(--text) var(--completion,0%),transparent 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 0);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 0)}
.orb.processing{opacity:1!important}.orb.processing .orb-progress{display:block}.orb.processing.indeterminate .orb-progress{background:conic-gradient(from -90deg,transparent 62%,var(--text));animation:orbit-turn 1.3s linear infinite}.orb.processing .orbmesh{animation:orbit-turn 4s linear infinite}.orb.processing .orbcore svg{opacity:.3}
.drop.swallowing{cursor:default}.drop.swallowing .orb{animation:orb-sink 1.47s cubic-bezier(.23,.65,.35,1) both}.drop.swallowing .orbmesh{animation:mesh-sink 1.47s cubic-bezier(.4,.04,.15,1) both}.drop.swallowing .orbcore{animation:core-sink 1.47s ease both}.drop.swallowing .orbtext,.drop.swallowing strong{opacity:0;transition:opacity .18s}.queue.arriving{animation:queue-arrive .36s cubic-bezier(.2,.7,.2,1) both}
@keyframes orbit-turn{to{transform:rotate(360deg)}}
@keyframes orb-sink{0%{transform:scale(1)}28%{transform:scale(1.045);box-shadow:inset 0 0 40px #000,0 0 50px #9992}64%{transform:scale(.94);box-shadow:inset 0 0 50px #000,0 0 20px #9991}88%{transform:scale(1.015)}100%{transform:scale(1)}}
@keyframes mesh-sink{0%{transform:rotate(0) scale(1);opacity:.78}40%{transform:rotate(60deg) scale(.98);opacity:1}76%{transform:rotate(146deg) scale(.79);opacity:.62}100%{transform:rotate(180deg) scale(1);opacity:.78}}
@keyframes core-sink{0%,100%{transform:scale(1);opacity:1}32%{transform:scale(.65);opacity:.1}65%{transform:scale(.35);opacity:.05}90%{transform:scale(1);opacity:.8}}
@keyframes queue-arrive{from{transform:translateY(9px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.orb.processing .orbmesh,.orb.processing.indeterminate .orb-progress,.drop.swallowing .orb,.drop.swallowing .orbmesh,.drop.swallowing .orbcore,.queue.arriving{animation:none!important}}
