:root { color-scheme: dark; --bg:#09090a; --panel:#111113; --line:#29292d; --muted:#929298; --text:#f5f5f3; --acid:#c7ff32; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); font-family:Inter,"Noto Sans JP",system-ui,sans-serif; font-size:16px; }
button,input,textarea { font:inherit; }
.shell { max-width:1480px; margin:auto; padding:0 32px 64px; }
header { height:76px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { font-weight:850; letter-spacing:.08em; font-size:.92rem; display:flex; align-items:center; gap:12px; }
.mark { width:25px; height:25px; display:block; background:var(--acid); clip-path:polygon(0 0,100% 0,100% 32%,42% 32%,42% 100%,0 100%); }
.status { color:var(--muted); font:700 .75rem ui-monospace,monospace; letter-spacing:.08em; display:flex; align-items:center; gap:8px; }
.status span { width:7px; height:7px; border-radius:50%; background:var(--acid); box-shadow:0 0 12px var(--acid); }
.workspace { display:grid; grid-template-columns:minmax(340px,480px) 1fr; gap:48px; padding-top:48px; }
.ingest-card { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:32px; align-self:start; position:sticky; top:24px; }
.eyebrow { color:var(--acid); font:800 .74rem ui-monospace,monospace; letter-spacing:.13em; margin-bottom:10px; }
h1 { font-size:clamp(2rem,4vw,3.5rem); line-height:.98; letter-spacing:-.055em; margin:0 0 18px; max-width:420px; }
.lead { color:#b6b6ba; line-height:1.65; margin:0 0 28px; }
label:not(.dropzone):not(.switch-row) { display:block; font-size:.84rem; font-weight:750; margin:0 0 9px; }
textarea { width:100%; resize:vertical; min-height:128px; border:1px solid #343438; border-radius:11px; background:#0b0b0d; color:var(--text); padding:14px; line-height:1.55; outline:none; }
textarea:focus { border-color:var(--acid); box-shadow:0 0 0 3px #c7ff3216; }
.or { display:flex; align-items:center; gap:12px; color:#6f6f74; font-size:.72rem; margin:18px 0; }
.or:before,.or:after { content:""; height:1px; background:var(--line); flex:1; }
.dropzone { min-height:126px; border:1px dashed #45454a; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; transition:.2s; }
.dropzone:hover { border-color:var(--acid); background:#c7ff3208; }
.dropzone input { display:none; }
.drop-icon { font-size:1.45rem; line-height:1; color:var(--acid); margin-bottom:7px; }
.dropzone strong { font-size:.92rem; }
.dropzone small { color:var(--muted); margin-top:4px; }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:22px 0; cursor:pointer; }
.switch-row span { display:flex; flex-direction:column; gap:4px; }
.switch-row strong { font-size:.9rem; }
.switch-row small { color:var(--muted); font-size:.75rem; }
.switch-row input { position:absolute; opacity:0; }
.switch-row i { width:47px; height:27px; background:#333338; border-radius:20px; flex:0 0 auto; position:relative; transition:.2s; }
.switch-row i:after { content:""; position:absolute; width:21px; height:21px; background:white; border-radius:50%; left:3px; top:3px; transition:.2s; }
.switch-row input:checked+i { background:var(--acid); }
.switch-row input:checked+i:after { transform:translateX(20px); background:#111; }
.primary { width:100%; border:0; border-radius:10px; padding:15px 18px; display:flex; justify-content:space-between; background:var(--acid); color:#10110d; font-weight:850; cursor:pointer; }
.primary:disabled { opacity:.5; cursor:wait; }
.note { color:#6f6f75; font-size:.73rem; line-height:1.5; margin:13px 0 0; }
.results { min-width:0; }
.empty-state { min-height:620px; border:1px solid var(--line); border-radius:18px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; background:linear-gradient(145deg,#0d0d0f,#101012); }
.empty-visual { display:flex; gap:8px; transform:skewY(-8deg); margin-bottom:30px; }
.empty-visual span { display:block; width:58px; height:98px; border:1px solid #3b3b40; background:#17171a; }
.empty-visual span:nth-child(2) { background:var(--acid); border-color:var(--acid); }
.empty-state h2 { margin:0 0 8px; font-size:1.35rem; }
.empty-state p { margin:0; color:var(--muted); }
.hidden { display:none !important; }
.progress-panel { margin-top:32px; border:1px solid var(--line); border-radius:14px; padding:22px; }
.progress-meta { display:flex; justify-content:space-between; gap:20px; font-size:.9rem; }
.progress-meta span { color:var(--acid); font-family:ui-monospace,monospace; }
.progress-track { height:7px; background:#242428; border-radius:8px; margin-top:16px; overflow:hidden; }
.progress-track span { display:block; width:0; height:100%; background:var(--acid); transition:width .35s; }
.results-head { display:flex; justify-content:space-between; align-items:end; margin-bottom:34px; }
.results-head h2 { margin:0; font-size:2.35rem; letter-spacing:-.04em; }
.download-all { color:#111; background:var(--acid); text-decoration:none; padding:12px 15px; border-radius:9px; font-weight:800; font-size:.84rem; }
.category-head { display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:18px; }
.category-head h3 { margin:0; font-size:1rem; }
.category-head span { color:#111; background:var(--acid); min-width:24px; height:24px; border-radius:20px; display:grid; place-items:center; font:bold .75rem ui-monospace,monospace; }
.body-head { margin-top:44px; }
.clip-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.clip-card { min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.clip-card video { display:block; width:100%; aspect-ratio:9/16; object-fit:cover; background:#000; }
.clip-info { padding:12px; display:grid; grid-template-columns:1fr auto; gap:4px 10px; align-items:center; }
.clip-info strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:.79rem; }
.clip-info small { color:var(--muted); font:500 .7rem ui-monospace,monospace; }
.clip-info a { grid-row:1/3; grid-column:2; color:var(--text); text-decoration:none; border:1px solid #3a3a3e; width:34px; height:34px; border-radius:8px; display:grid; place-items:center; }
@media (max-width:900px) { .shell{padding:0 18px 44px}.workspace{grid-template-columns:1fr;padding-top:22px;gap:28px}.ingest-card{position:static}.empty-state{min-height:360px}.clip-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:520px) { header{height:64px}.status{display:none}.ingest-card{padding:22px 18px;border-radius:14px}h1{font-size:2.35rem}.clip-grid{gap:10px}.clip-info{padding:9px}.results-head{align-items:flex-start;gap:15px}.download-all{font-size:.75rem;padding:10px}.empty-state{padding:28px 18px}.empty-visual span{width:46px;height:78px} }

