:root { --ink: #1f1630; --muted: #6b6280; --brand: #c2185b; --brand2: #7b1fa2; --bg: #faf7fb; --card: #fff; --line: #ece6f1; --good: #15803d; --bad: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Segoe UI', Roboto, 'Nirmala UI', 'Noto Sans Kannada', sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .err { color: var(--bad); min-height: 1.2em; margin: 0; font-size: 14px; }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand2)); flex: none; }
.logo svg { width: 20px; height: 20px; } .logo.big { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; } .logo.big svg { width: 34px; height: 34px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.01em; } .brand span, h1 span { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--brand); } .btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border: 0; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: #f3edf7; }
.btn.wa { background: #25d366; color: #fff; border: 0; } .btn.sm { min-height: 34px; padding: 5px 12px; font-size: 14px; } .btn.wide { width: 100%; }
.btn.danger { color: var(--bad); }
input, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #d9cfe3; border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 650; color: #4a4060; }

/* sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #fde4f0, transparent 45%), radial-gradient(circle at 90% 90%, #ede3fb, transparent 45%), var(--bg); }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 24px; padding: 32px 26px; display: grid; gap: 14px; text-align: center; box-shadow: 0 30px 70px -30px rgba(80,20,100,.35); }
.login-card h1 { margin: 4px 0 0; font-size: 26px; } .login-card p { margin: 0; } .login-card label { text-align: left; }

/* studio */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.spacer { flex: 1; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 30px; display: grid; gap: 14px; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 34px 16px; border: 2px dashed #d7c3e6; border-radius: 22px; background: #fff; cursor: pointer; text-align: center; transition: .15s; font-weight: 400; }
.drop b { font-size: 19px; color: var(--ink); } .drop:hover, .drop.over { border-color: var(--brand); background: #fff5fa; }
.drop-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); margin-bottom: 6px; }
.up { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.up-top { display: flex; gap: 10px; align-items: center; } .up-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { height: 10px; border-radius: 99px; background: #f1e9f6; overflow: hidden; } .prog > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .3s; }
.up.done .prog > div { background: var(--good); } .up.fail .prog > div { background: var(--bad); }
.up-link { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .bar-row h2 { margin: 0; font-size: 20px; flex: 1; } .search { width: 220px; }
.storage { height: 6px; border-radius: 99px; background: #eee6f3; overflow: hidden; } .storage-fill { height: 100%; width: 0; background: var(--brand2); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a1450, #7b1fa2); display: grid; place-items: center; color: #fff; font-size: 34px; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #12091a; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.off-badge { position: absolute; left: 8px; top: 8px; background: #fff; color: var(--bad); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.card-body { padding: 12px 14px; display: grid; gap: 8px; flex: 1; }
.card-body b.t { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; color: #4a4060; }
.switch input { display: none; } .switch i { width: 38px; height: 22px; border-radius: 99px; background: #d4cadb; position: relative; transition: .15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + i { background: var(--good); } .switch input:checked + i::after { left: 19px; }
.card-foot { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding: 8px 10px 8px 14px; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 50px 16px; text-align: center; font-size: 40px; } .empty b { font-size: 19px; } .empty span { font-size: 15px; }
dialog { border: 0; border-radius: 22px; padding: 0; width: min(480px, calc(100% - 24px)); box-shadow: 0 30px 80px -20px rgba(40,10,60,.45); }
dialog::backdrop { background: rgba(30,15,45,.45); }
.dlg { padding: 22px; display: grid; gap: 14px; } .dlg h3 { margin: 0; } .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 24px; }
@media (max-width: 560px) { .hide-sm { display: none; } .search { width: 130px; } .top { padding: 8px 12px; } }
