/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(900px 500px at 70% -10%, rgba(255, 153, 28, .25), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(255, 94, 58, .15), transparent 60%), var(--bg); }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); text-align: left; }
.auth-card h1 { font-size: 26px; margin: 22px 0 6px; }
.auth-card p { margin: 0 0 20px; }
.auth-card .btn.lg { width: 100%; margin-top: 4px; }
.auth-card .tiny { margin: 16px 0 0; text-align: center; }

/* Kalakar-style sign in / create account / forgot password */
.auth-k { width: min(460px, 100%); padding: 36px 36px 30px; text-align: center; animation: authIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.auth-k .auth-logo { justify-content: center; }
.auth-k h1 { font-size: 26px; margin: 22px 0 6px; letter-spacing: -.02em; }
.auth-k .auth-sub { margin: 0 0 24px; font-size: 14.5px; }
.auth-google { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font: 600 15px var(--font); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.auth-google:hover { background: rgba(255, 255, 255, .07); border-color: #4a4a62; }
.auth-google:active { transform: scale(.99); }
.auth-google:disabled { opacity: .7; cursor: progress; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 14px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.auth-form .field > span { color: var(--text); font-size: 14px; }
.auth-form .field > span b { color: var(--text); font-weight: 600; }
.auth-form .input { height: 50px; border-radius: 12px; font-size: 15px; padding: 0 16px; }
.auth-forgot { align-self: flex-end; margin-top: -6px; font-size: 14px; color: var(--muted); transition: color .2s; }
.auth-forgot:hover { color: var(--text); }
.auth-k .auth-submit { width: 100%; height: 50px; border-radius: 12px; margin-top: 4px; font-size: 15.5px; }
.auth-msg { min-height: 20px; margin: 14px 0 0 !important; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.auth-msg.err { color: #ff8da1; }
.auth-msg.ok { color: #8ff0b8; }
.auth-switch { margin: 10px 0 0 !important; color: var(--muted); font-size: 14.5px; }
.auth-switch a { color: var(--text); font-weight: 700; }
.auth-switch a:hover { color: var(--accent-2); }
@media (max-width: 480px) { .auth-k { padding: 28px 20px 24px; } }
.auth-via { display: flex; width: 100%; margin-bottom: 2px; }
.auth-via button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px !important; padding: 9px 10px !important; }
.auth-swap { display: grid; }
.auth-swap > [data-f] { grid-area: 1 / 1; animation: tin .25s ease; }
.auth-swap > [data-f][hidden] { display: none !important; }
.auth-hint { margin: -4px 0 0 !important; font-size: 12.5px; color: var(--muted); }

/* ---- phone number input with country picker ---- */
.ph { position: relative; display: flex; align-items: stretch; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .15s, box-shadow .15s; }
.ph:focus-within, .ph.open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 153, 28, .2); }
.ph-cc { display: flex; align-items: center; gap: 7px; padding: 0 10px 0 14px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 12px 0 0 12px; font: 600 14.5px var(--font); }
.ph-cc:hover { background: rgba(255, 255, 255, .04); }
.ph-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: none; background: var(--surface-3); }
.ph-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); transition: transform .2s; }
.ph.open .ph-caret { transform: rotate(180deg); }
.ph-num { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: 15px; padding: 0 14px 0 4px; }
.ph-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: min(320px, 100%); max-height: 300px; display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; transform-origin: top left; animation: ddIn .18s cubic-bezier(.2, .8, .2, 1) both; }
.ph-search { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 12px; outline: none; margin-bottom: 6px; font-size: 13.5px; }
.ph-search:focus { border-color: var(--accent); }
.ph-list { overflow: auto; display: flex; flex-direction: column; gap: 1px; scrollbar-width: thin; }
.ph-list button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; color: var(--text); cursor: pointer; font-size: 13.5px; text-align: left; }
.ph-list button span { flex: 1; }
.ph-list button b { color: var(--muted); font-weight: 600; }
.ph-list button:hover { background: var(--surface-3); }
.ph-list button.on { background: rgba(255, 153, 28, .16); }
.ph-list button.on b { color: var(--accent-2); }

/* ---- profile ---- */
.pf { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-bottom: 30px; }
/* hero */
.pf-hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; }
.pf-cover { position: relative; height: 132px; overflow: hidden; background: linear-gradient(120deg, #5c2e0a 0%, #7a3a0c 45%, #6b1f1a 100%); }
.pf-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.pf-cover i { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .7; }
.pf-cover i:nth-child(1) { width: 260px; height: 260px; left: 8%; top: -120px; background: #ff991c; animation: pfBlob 12s ease-in-out infinite alternate; }
.pf-cover i:nth-child(2) { width: 220px; height: 220px; right: 10%; top: -90px; background: #ff5e3a; animation: pfBlob 15s ease-in-out infinite alternate-reverse; }
.pf-cover i:nth-child(3) { width: 180px; height: 180px; left: 48%; top: 10px; background: #ffd166; opacity: .35; animation: pfBlob 18s ease-in-out infinite alternate; }
@keyframes pfBlob { to { transform: translate(60px, 30px) scale(1.15); } }
.pf-hero-body { position: relative; display: flex; align-items: flex-end; gap: 20px; padding: 0 28px 24px; margin-top: -46px; flex-wrap: wrap; }
.pf-avatar { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 36px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff5e3a); border: 5px solid var(--surface); box-shadow: 0 14px 34px rgba(255, 153, 28, .35); animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.pf-who { flex: 1; min-width: 200px; padding-bottom: 4px; }
.pf-who h1 { font-size: 28px; letter-spacing: -.02em; }
.pf-who p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.pf-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.pf-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); }
.pf-chip b { color: var(--text); }
.pf-chip .ic { color: var(--accent-2); }
/* sections: label column + card column, the same everywhere */
.pf-sec { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.pf-label { display: flex; gap: 14px; align-items: flex-start; position: sticky; top: 20px; }
.pf-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent-2); background: rgba(255, 153, 28, .12); border: 1px solid rgba(255, 153, 28, .2); }
.pf-label h3 { font-size: 17px; margin: 2px 0 6px; }
.pf-label p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 26px; transition: border-color .25s; }
.pf-card:hover { border-color: var(--line-2); }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; }
.pf-row + .pf-row, .pf-store + .pf-row { border-top: 1px solid var(--line); }
.pf-row > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-row b { font-size: 15px; }
.pf-row span { color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pf-dots { font-style: normal; letter-spacing: .15em; }
.pf-row .btn { flex: none; height: 38px; padding: 0 16px; border-radius: 10px; }
/* personal details form */
.pf-form { padding: 24px 26px; display: flex; flex-direction: column; gap: 20px; }
.pf-form .field > span { color: var(--text); font-size: 14px; font-weight: 600; }
.pf-form .input { height: 50px; border-radius: 12px; font-size: 15px; padding: 0 16px; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pf-select { position: relative; display: flex; align-items: center; }
.pf-select select { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 40px 0 16px; font-size: 15px; appearance: none; cursor: pointer; outline: none; transition: border-color .15s, box-shadow .15s; }
.pf-select select:hover { border-color: #4a4a62; }
.pf-select select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 153, 28, .2); }
.pf-select .ic { position: absolute; right: 14px; pointer-events: none; color: var(--muted); }
/* fonts */
.pf-fonts-card { padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.pf-drop { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pf-drop:hover, .pf-drop.over { border-color: var(--accent); background: rgba(255, 153, 28, .07); }
.pf-drop.over { transform: scale(1.01); }
.pf-drop-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent-2); background: rgba(255, 153, 28, .14); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.pf-drop:hover .pf-drop-ic { transform: translateY(-3px); }
.pf-drop-txt { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.pf-drop b { color: var(--text); }
.pf-drop u { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.pf-drop small { font-size: 12px; }
.pf-font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pf-font { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); animation: rise .4s ease both; transition: border-color .2s; }
.pf-font:hover { border-color: var(--line-2); }
.pf-font-prev { width: 64px; height: 48px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 19px; background: var(--surface-2); overflow: hidden; white-space: nowrap; }
.pf-font-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-font-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-font-meta small { color: var(--muted); font-size: 12px; }
.pf-font .icon-btn:hover { color: var(--danger); }
.pf-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13.5px; }
/* storage */
.pf-store { padding: 22px 0 20px; display: flex; flex-direction: column; gap: 12px; }
.pf-store-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pf-store-top b { font-size: 26px; letter-spacing: -.02em; }
.pf-store-top span { color: var(--muted); font-size: 14px; }
.pf-meter { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pf-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffd166, var(--accent), #ff5e3a); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.pf-store-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.pf-store-stats div { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pf-store-stats b { display: block; font-size: 17px; }
.pf-store-stats small { color: var(--muted); font-size: 12px; }
/* danger zone */
.pf-danger { border-color: rgba(255, 77, 106, .28); background: linear-gradient(180deg, rgba(255, 77, 106, .05), var(--surface)); }
.pf-danger:hover { border-color: rgba(255, 77, 106, .45); }
#pfDanger .pf-ic { color: var(--danger); background: rgba(255, 77, 106, .1); border-color: rgba(255, 77, 106, .25); }
.me .avatar { font-size: 12.5px; letter-spacing: .02em; }
/* the app sidebar takes ~264px, so the two-column profile layout needs a wide window */
@media (max-width: 1180px) {
  .pf-sec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pf-label { position: static; }
}
@media (max-width: 920px) {
  .pf-sec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pf-label { position: static; }
  .pf-two { grid-template-columns: 1fr; }
  .pf-card { padding: 4px 18px; } .pf-form, .pf-fonts-card { padding: 18px; }
}
@media (max-width: 560px) {
  .pf-hero-body { flex-direction: column; align-items: flex-start; padding: 0 18px 20px; }
  .pf-row { flex-wrap: wrap; } .pf-row .btn { width: 100%; }
  .pf-store-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.on { background: rgba(255, 153, 28, .14); color: var(--text); }
.side nav a.on .ic { color: var(--accent-2); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.usage { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 6px; border-radius: 10px; }
.me:hover { background: var(--surface-2); }
.me span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.me small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), #ff5e3a); color: #fff; flex: none; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--muted); }
.search input { border: 0; background: none; outline: none; width: 180px; }

.drop-hero { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--surface); cursor: pointer; margin-bottom: 26px; transition: border-color .15s, background .15s; }
.drop-hero:hover, .drop-hero.over { border-color: var(--accent); background: rgba(255, 153, 28, .07); }
.drop-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 153, 28, .15); color: var(--accent-2); flex: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.empty { padding: 40px; text-align: center; grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: visible; cursor: pointer; transition: border-color .15s, transform .15s; position: relative; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 16 / 10; background: #000; border-radius: 14px 14px 0 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.portrait img { object-fit: contain; background: #050507; }
.audio-thumb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent-2); background: linear-gradient(135deg, #3a2610, #0e0d16); }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.status { position: absolute; inset: 0; background: rgba(8, 8, 14, .82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; }
.status .bar { width: 80%; }
.status.err { color: #ffb3c0; }
.card-body { padding: 10px 12px 12px; }
.card-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.menu { display: none; position: absolute; right: 8px; bottom: 44px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px; z-index: 5; box-shadow: var(--shadow); min-width: 170px; }
.menu.open { display: block; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: 7px; cursor: pointer; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--surface-3); }
.menu .danger { color: var(--danger); }

.files { display: flex; flex-direction: column; gap: 6px; max-height: 140px; overflow: auto; margin-bottom: 16px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--line); }
.file-row span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 10px; }
.engine-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 153, 28, .1); font-size: 13px; }

/* templates page */
.tpl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.tpl-big { border: 2px solid var(--line); background: var(--surface); border-radius: 16px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s, transform .15s; }
.tpl-big:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tpl-big.on { border-color: var(--accent); }
.tpl-big canvas { width: 100%; display: block; aspect-ratio: 9 / 16; }
.tpl-big > div { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }

/* profile */
.settings { display: grid; gap: 18px; max-width: 920px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.panel-card h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; margin-bottom: 16px; }
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stats { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.stats b { color: var(--text); }
.engine-pick { display: grid; gap: 10px; margin-bottom: 16px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--bg-2); }
.radio-card:has(input:checked) { border-color: var(--accent); background: rgba(255, 153, 28, .08); }
.radio-card input { margin-top: 3px; }
.radio-card div { display: flex; flex-direction: column; gap: 2px; }
.font-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.font-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-2); border-radius: 10px; font-size: 16px; }


/* panel: templates */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl { position: relative; border: 2px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 0 0 8px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; text-align: left; color: var(--text); transition: border-color .15s; }
.tpl:hover { border-color: var(--line-2); }
.tpl.on { border-color: var(--accent); }
.tpl canvas { width: 100%; aspect-ratio: 216 / 300; display: block; margin-bottom: 6px; }
.tpl b, .tpl span { padding: 0 9px; }
.tpl b { font-size: 12.5px; }
.tpl-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; padding: 0 !important; border-radius: 50%; background: rgba(0, 0, 0, .7); display: grid; place-items: center; }
h4.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; }

/* panel: controls */
.grp { border-bottom: 1px solid var(--line); padding: 4px 0 12px; margin-bottom: 4px; }
.grp summary { cursor: pointer; font-weight: 700; font-size: 13px; padding: 8px 0; list-style: none; display: flex; justify-content: space-between; }
.grp summary::after { content: '▾'; color: var(--muted); transition: transform .15s; }
.grp:not([open]) summary::after { transform: rotate(-90deg); }
.grp summary::-webkit-details-marker { display: none; }
.ctl { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.ctl > span { display: flex; justify-content: space-between; font-weight: 600; }
.ctl output { color: var(--text); font-variant-numeric: tabular-nums; }
.ctl.color { flex-direction: row; align-items: center; justify-content: space-between; margin: 4px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.fmt { display: flex; gap: 6px; }
.fmt button { width: 40px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-size: 15px; }
.fmt button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.segctl { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.segctl button { flex: 1; border: 0; background: none; border-radius: 6px; padding: 5px 4px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; }
.segctl button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.upl { margin: 2px 0 4px; }
.anim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0; }
.anim-grid button { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 8px; padding: 8px 2px; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.anim-grid button.on { border-color: var(--accent); color: var(--text); background: rgba(255, 153, 28, .14); }
.pos-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0; }
.pos-presets button { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 8px; padding: 7px 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.pos-presets button:hover { border-color: var(--accent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; gap: 2px; }
.switch { appearance: none; width: 40px !important; height: 22px !important; border-radius: 22px; background: var(--surface-3); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { left: 21px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.kv b { color: var(--text); }

/* export */
.exp { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.exp-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.exp-card h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.exp-card .form-grid { grid-template-columns: 1fr 1fr; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exp-vid { width: 100%; max-height: 300px; border-radius: 10px; background: #000; }

/* ================= dashboard (Projects) — refreshed ================= */
.side { background: linear-gradient(180deg, #17110b 0%, var(--bg-2) 40%); }
.side nav a { position: relative; transition: background .2s, color .2s, padding-left .25s cubic-bezier(.2, .8, .2, 1); }
.side nav:not(.side-nav) a:hover { padding-left: 16px; }
.side nav a.on { background: linear-gradient(90deg, rgba(255, 153, 28, .22), rgba(255, 153, 28, .06)); }
.side nav a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--accent), #ff5e3a); animation: barIn .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes barIn { from { transform: scaleY(0); } }
.usage .bar i { background: linear-gradient(90deg, #ffd166, var(--accent), #ff5e3a); }
.main { position: relative; isolation: isolate; animation: pageIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.main::before { content: ''; position: absolute; inset: 0 0 auto; height: 320px; pointer-events: none; z-index: -1;
  background: radial-gradient(600px 240px at 20% -40px, rgba(255, 153, 28, .18), transparent 70%), radial-gradient(500px 220px at 90% -60px, rgba(255, 94, 58, .1), transparent 70%); }

.dash-head { align-items: center; margin-bottom: 20px; }
.eyebrow-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.dash-head h1 { font-size: 30px; letter-spacing: -.03em; }
.grad-t { background: linear-gradient(100deg, #ffc24b, #ff991c 45%, #ff5e3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.dash-actions .search { height: 42px; border-radius: 12px; transition: border-color .2s, box-shadow .2s, width .3s; }
.dash-actions .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 153, 28, .16); }
.dash-actions .search input { width: 200px; }
.search kbd { font: 600 11px var(--font); color: var(--muted); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); }
.dash-actions .btn { height: 42px; border-radius: 12px; padding: 0 18px; }
.shine-btn { position: relative; overflow: hidden; box-shadow: 0 8px 26px rgba(255, 153, 28, .35); }
.shine-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-120%); animation: btnShine2 4s ease-in-out infinite; }
@keyframes btnShine2 { 0%, 60% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dstat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--line);
  animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); transition: border-color .2s, transform .25s; }
.dstat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dstat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dstat small { color: var(--muted); font-size: 12px; }
.dstat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent-2); background: rgba(255, 153, 28, .14); }
.dstat-ic.ok { color: var(--ok); background: rgba(47, 210, 122, .12); }
.dstat-ic.pink { color: #ff5e3a; background: rgba(255, 94, 58, .12); }
.dstat-ic.lime { color: var(--lime); background: rgba(212, 255, 58, .1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.drop-hero { position: relative; border: 0; padding: 22px 24px; border-radius: 20px; background: radial-gradient(500px 160px at 15% 0%, rgba(255, 153, 28, .14), transparent 70%), var(--surface); isolation: isolate; overflow: hidden;
  animation: rise .55s cubic-bezier(.2, .8, .2, 1) .3s both; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .2s; }
.drop-border { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 179, 82, .55) 0 10px, transparent 10px 18px), repeating-linear-gradient(90deg, rgba(255, 179, 82, .55) 0 10px, transparent 10px 18px), repeating-linear-gradient(0deg, rgba(255, 179, 82, .55) 0 10px, transparent 10px 18px), repeating-linear-gradient(0deg, rgba(255, 179, 82, .55) 0 10px, transparent 10px 18px);
  background-size: 100% 1.5px, 100% 1.5px, 1.5px 100%, 1.5px 100%; background-position: 0 0, 0 100%, 0 0, 100% 0; background-repeat: no-repeat; opacity: .55; animation: march 1.2s linear infinite paused; }
@keyframes march { to { background-position: 18px 0, -18px 100%, 0 -18px, 100% 18px; } }
.drop-hero:hover .drop-border, .drop-hero.over .drop-border { animation-play-state: running; opacity: 1; }
.drop-hero:hover { background: radial-gradient(500px 160px at 15% 0%, rgba(255, 153, 28, .22), transparent 70%), var(--surface); }
.drop-hero.over { transform: scale(1.012); box-shadow: 0 0 0 4px rgba(255, 153, 28, .18), 0 20px 60px rgba(255, 153, 28, .2); }
.drop-ic { position: relative; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 153, 28, .3), rgba(255, 94, 58, .15)); color: #fff; }
.drop-ic .ic { animation: upbob 2.4s ease-in-out infinite; }
.drop-ic i { position: absolute; inset: -6px; border-radius: 20px; border: 1.5px solid rgba(255, 179, 82, .45); animation: ringPulse 2.4s ease-out infinite; }
@keyframes upbob { 50% { transform: translateY(-4px); } }
@keyframes ringPulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.drop-hero.over .drop-ic .ic { animation-duration: .8s; }
.drop-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.drop-text b { font-size: 16px; }
.drop-fmts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.drop-fmts span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.drop-btn { pointer-events: none; height: 40px; border-radius: 12px; }

.dash-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; animation: rise .5s cubic-bezier(.2, .8, .2, 1) .38s both; }
.seg-tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-tabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: color .2s; }
.seg-tabs.sm button { font-size: 12px; padding: 6px 11px; }
.seg-tabs button.on { color: var(--text); }
.seg-tabs button:hover { color: var(--text); }
.seg-tabs > i { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line-2); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), width .35s cubic-bezier(.34, 1.56, .64, 1); }

.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { border-radius: 18px; background: linear-gradient(180deg, var(--surface), #13131b); animation: cardIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 420ms);
  transition: border-color .25s, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.card:hover { transform: translateY(-5px); border-color: rgba(255, 179, 82, .45); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 153, 28, .15), 0 10px 40px rgba(255, 153, 28, .12); }
.thumb { border-radius: 18px 18px 0 0; background: #07070b; }
.thumb-bg { position: absolute; inset: -20px; width: calc(100% + 40px) !important; height: calc(100% + 40px) !important; object-fit: cover; filter: blur(18px) brightness(.55) saturate(1.3); }
.thumb-img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.thumb.portrait .thumb-img { object-fit: contain; background: none; }
.card:hover .thumb-img { transform: scale(1.06); }
.thumb::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.dur { z-index: 2; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .1); font-variant-numeric: tabular-nums; }
.st-badge { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .5); }
.st-badge.ok { color: #8ff0b8; }
.st-badge.busy { color: #ffe2bf; }
.st-badge.busy i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: blinkDot 1s ease-in-out infinite; }
@keyframes blinkDot { 50% { opacity: .2; } }
.st-badge.err { color: #ffb3c0; }
.st-badge.needs-media { color: var(--lime); }
.empty-thumb { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent-2);
  background: repeating-linear-gradient(135deg, rgba(255, 153, 28, .06) 0 10px, transparent 10px 20px), radial-gradient(circle at 50% 40%, #3a2712, #0e0d16); }
.empty-thumb small { color: var(--muted); font-size: 11.5px; }

/* ================= Templates page ================= */
.tg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.tg-head h1 { font-size: 32px; letter-spacing: -.03em; margin: 4px 0 8px; }
.tg-head p { margin: 0; max-width: 620px; }
.tg-search { height: 44px; border-radius: 12px; min-width: 280px; transition: border-color .2s, box-shadow .2s; }
.tg-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 153, 28, .16); }
.tg-search input { width: 100%; }
.tg-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; margin-bottom: 8px;
  background: linear-gradient(var(--bg) 70%, transparent); }
.tg-chips { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tg-chips button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: color .2s; }
.tg-chips button span { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); transition: background .2s, color .2s; }
.tg-chips button:hover, .tg-chips button.on { color: var(--text); }
.tg-chips button.on span { background: rgba(255, 153, 28, .3); color: #fff; }
.tg-chips > i { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), width .4s cubic-bezier(.34, 1.56, .64, 1); }
.tg-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tg-card { position: relative; border-radius: 22px; background: linear-gradient(180deg, var(--surface), #121219); border: 1px solid var(--line); cursor: pointer; outline: none; isolation: isolate;
  animation: cardIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .4s; }
.tg-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 179, 82, .9), rgba(255, 94, 58, .4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tg-card:hover, .tg-card:focus-visible { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 10px 40px rgba(255, 153, 28, .18); }
.tg-card:hover::before, .tg-card:focus-visible::before { opacity: 1; }
.tg-card.is-default { border-color: rgba(212, 255, 58, .35); }
.tg-card.launching { animation: launch .3s ease forwards; }
@keyframes launch { to { transform: scale(.96); opacity: .6; } }
.tg-prev { position: relative; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; background: #0d0d14; }
.tg-prev canvas { display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.tg-card:hover .tg-prev canvas { transform: scale(1.06); filter: brightness(.7); }
.tg-tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.tg-star { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); color: #fff; cursor: pointer; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s; }
.tg-card:hover .tg-star, .tg-card.is-default .tg-star { opacity: 1; transform: none; }
.tg-star:hover { background: rgba(212, 255, 58, .2); color: var(--lime); }
.tg-card.is-default .tg-star { color: var(--lime); }
.tg-card.is-default .tg-star .ic { fill: currentColor; }
.tg-default { position: absolute; left: 10px; bottom: 10px; display: none; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #111; background: var(--lime); }
.tg-card.is-default .tg-default { display: inline-flex; }
.tg-hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at 50% 55%, rgba(255, 153, 28, .25), transparent 65%); }
.tg-use { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff6a3d 60%, #ff5e3a); box-shadow: 0 12px 30px rgba(255, 153, 28, .55); transform: translateY(14px) scale(.9); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.tg-use .ic { transition: transform .4s; }
.tg-card:hover .tg-use .ic { transform: rotate(90deg); }
.tg-hover small { color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 600; transform: translateY(10px); opacity: 0; transition: transform .4s .05s, opacity .3s .05s; }
.tg-card:hover .tg-hover, .tg-card:focus-visible .tg-hover { opacity: 1; }
.tg-card:hover .tg-use, .tg-card:focus-visible .tg-use { transform: none; }
.tg-card:hover .tg-hover small, .tg-card:focus-visible .tg-hover small { transform: none; opacity: 1; }
.tg-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.tg-info b { font-size: 15.5px; }
.tg-info small { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; color: var(--muted); }
.tg-empty b { color: var(--text); }
@media (max-width: 640px) { .tg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tg-search { min-width: 0; width: 100%; } .tg-head h1 { font-size: 26px; } .tg-hover small { display: none; } .tg-use { height: 38px; padding: 0 14px; font-size: 13px; } }

/* ================= project started from a template: add media ================= */
.ep { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(900px 500px at 80% -10%, rgba(255, 153, 28, .18), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(255, 94, 58, .1), transparent 60%), var(--bg); position: relative; }
.ep-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(11, 11, 16, .6); backdrop-filter: blur(10px); }
.ep-logo .brand { height: 22px; }
.ep-name { min-width: 0; width: min(360px, 40vw); height: 36px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text); font-weight: 700; font-size: 15px; padding: 0 10px; outline: none; transition: border-color .2s, background .2s; }
.ep-name:hover { border-color: var(--line-2); }
.ep-name:focus { border-color: var(--accent); background: var(--bg-2); }
.ep-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.ep-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: blinkDot 1.4s infinite; }
.ep-body { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 32px; max-width: 1200px; width: 100%; margin: 0 auto; align-items: center; }
.ep-drop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 32px; border-radius: 28px; outline: none;
  border: 2px dashed rgba(255, 179, 82, .35); background: radial-gradient(500px 240px at 50% 0%, rgba(255, 153, 28, .14), transparent 70%), rgba(255, 255, 255, .015); animation: rnIn .5s cubic-bezier(.2, .8, .2, 1) both; transition: border-color .25s, background .25s; }
.ep-drop:hover, .ep-drop:focus-visible { border-color: var(--accent); background: radial-gradient(500px 240px at 50% 0%, rgba(255, 153, 28, .22), transparent 70%), rgba(255, 255, 255, .02); }
.ep-drop h1 { font-size: 30px; letter-spacing: -.02em; margin-top: 8px; }
.ep-drop p { margin: 0; max-width: 460px; line-height: 1.6; }
.ep-drop p b { color: var(--text); }
.ep-orb { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.ep-orb span { position: relative; z-index: 1; width: 80px; height: 80px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #ff5e3a); box-shadow: 0 16px 40px rgba(255, 153, 28, .45); animation: upbob 2.6s ease-in-out infinite; }
.ep-orb i { position: absolute; inset: 0; border-radius: 30px; border: 1.5px solid rgba(255, 179, 82, .45); animation: ringPulse 2.6s ease-out infinite; }
.ep-orb i:nth-child(3) { animation-delay: .85s; } .ep-orb i:nth-child(4) { animation-delay: 1.7s; }
@keyframes rnIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ep-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ep-btns .btn { height: 50px; padding: 0 22px; border-radius: 14px; }
.ep-fmts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ep-fmts span { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.ep-side { display: flex; flex-direction: column; gap: 16px; animation: rnIn .5s cubic-bezier(.2, .8, .2, 1) .1s both; }
.ep-phone { width: 300px; max-width: 100%; margin: 0 auto; aspect-ratio: 1 / 1; padding: 8px; border-radius: 26px; background: linear-gradient(160deg, #2c2c3c, #121219); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 153, 28, .15); }
.ep-phone canvas { width: 100%; height: 100%; display: block; border-radius: 23px; }
.ep-tpl { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ep-tpl small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-tpl .pf-select select { height: 44px; font-size: 14px; }
.ep-tpl p { margin: 0; }
.ep-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; background: rgba(11, 11, 16, .75); backdrop-filter: blur(6px); }
.ep-overlay > div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 60px; border-radius: 28px; border: 2px dashed var(--accent); color: var(--accent-2); transform: scale(.94); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ep-overlay b { color: var(--text); font-size: 20px; }
.ep-overlay.on { opacity: 1; }
.ep-overlay.on > div { transform: none; }
@media (max-width: 900px) { .ep-body { grid-template-columns: 1fr; padding: 18px; } .ep-side { order: -1; } .ep-phone { width: 160px; } .ep-drop { padding: 36px 18px; } .ep-drop h1 { font-size: 24px; } .ep-status { display: none; } }
.thumb-hover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(10, 10, 16, .35); opacity: 0; transition: opacity .25s; }
.thumb-hover span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .95); color: #111; transform: translateY(8px) scale(.95); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.card:hover .thumb-hover { opacity: 1; }
.card:hover .thumb-hover span { transform: none; }
.status { z-index: 3; }
.audio-thumb { position: relative; flex-direction: column; gap: 10px; background: radial-gradient(circle at 50% 30%, #3f2a12, #0e0d16); }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.eq i { width: 5px; border-radius: 3px; background: linear-gradient(180deg, #ff5e3a, var(--accent)); animation: eq 1.1s ease-in-out infinite; height: 30%; }
.eq i:nth-child(2n) { animation-delay: -.3s; } .eq i:nth-child(3n) { animation-delay: -.6s; } .eq i:nth-child(4n) { animation-delay: -.15s; } .eq i:nth-child(5n) { animation-delay: -.8s; }
@keyframes eq { 50% { height: 100%; } }
.card:not(:hover) .eq i { animation-play-state: paused; }
.card-body { padding: 12px 14px 12px; }
.card-title { font-size: 14.5px; margin-bottom: 6px; }
.card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lang-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--accent-2); background: rgba(255, 153, 28, .12); border: 1px solid rgba(255, 153, 28, .2); white-space: nowrap; }
.card .menu { display: block; opacity: 0; transform: translateY(6px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1); border-radius: 12px; }
.card .menu.open { opacity: 1; transform: none; pointer-events: auto; }
.card .menu button { transition: background .15s, padding-left .2s; }
.card .menu button:hover { padding-left: 13px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--muted); animation: rise .5s ease both; }
.empty b { color: var(--text); font-size: 16px; }
.empty .btn { margin-top: 8px; }
.empty-art { position: relative; width: 84px; height: 84px; display: grid; place-items: center; color: var(--accent-2); margin-bottom: 6px; }
.empty-art i { position: absolute; inset: 0; border-radius: 24px; border: 1.5px solid rgba(255, 179, 82, .35); animation: ringPulse 2.6s ease-out infinite; }
.empty-art i:nth-child(2) { animation-delay: .85s; } .empty-art i:nth-child(3) { animation-delay: 1.7s; }

/* ---- sidebar: Kalakar-style icon tiles + plan card ---- */
.shell { grid-template-columns: 264px 1fr; }
/* logo (fixed) · options + plan card (scroll) · profile (pinned) */
.side { overflow: hidden; gap: 14px; padding-bottom: 12px; }
.side > .logo { flex: none; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 18px; margin: 0 -8px; padding: 2px 8px 8px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .3s; }
.side-scroll:hover { scrollbar-color: var(--line-2) transparent; }
.side-scroll::-webkit-scrollbar { width: 6px; }
.side-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.side-scroll:hover::-webkit-scrollbar-thumb { background: var(--line-2); }
/* soft fade at the bottom edge while more options are hidden below */
.side-scroll.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.side-scroll .side-foot { margin-top: auto; }
.side-me { flex: none; margin: 0 -2px; padding: 12px 8px 4px !important; border-top: 1px solid var(--line); border-radius: 0 !important; transition: background .2s; }
.side-me:hover { background: none !important; }
.side-me:hover b { color: var(--accent-2); }
.side-me.on b { color: var(--accent-2); }
.side-nav { gap: 4px !important; }
.side-nav a { gap: 12px !important; padding: 6px 10px 6px 6px !important; border-radius: 13px !important; font-size: 14px; animation: navItem .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes navItem { from { opacity: 0; transform: translateX(-10px); } }
.side-nav a:hover { padding-left: 9px !important; }
.nav-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); transition: background .25s, color .25s, border-color .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.side-nav a:hover .nav-ic { color: var(--text); transform: scale(1.06); }
.side-nav a.on .nav-ic { background: linear-gradient(135deg, rgba(255, 153, 28, .45), rgba(255, 94, 58, .25)); border-color: rgba(255, 179, 82, .5); color: #fff; box-shadow: 0 6px 18px rgba(255, 153, 28, .3); }
.side-nav a.on { color: var(--text) !important; }
.plan-card { padding: 14px !important; border-radius: 16px !important; background: linear-gradient(180deg, rgba(255, 153, 28, .1), rgba(255, 255, 255, .02)) !important; border-color: rgba(255, 179, 82, .2) !important; display: flex; flex-direction: column; gap: 10px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-head b { font-size: 14px; letter-spacing: .04em; }
.plan-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; padding: 4px 8px; border-radius: 7px; color: var(--lime); border: 1px solid rgba(212, 255, 58, .35); background: rgba(212, 255, 58, .08); }
.plan-badge.big { font-size: 11px; padding: 5px 10px; }
.plan-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.plan-apps span { height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.plan-apps span.on { color: #fff; background: linear-gradient(135deg, var(--accent), #ff5e3a); border-color: transparent; }
.prow { display: flex; flex-direction: column; gap: 6px; }
.prow + .prow { margin-top: 4px; }
.prow-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.prow-top em { font-style: normal; color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.prow-top em span { color: var(--muted); font-weight: 500; }
.prow.sm .prow-top { font-size: 11.5px; }
.prow.sm .prow-top em span { display: none; }
.pbar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff5e3a); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.plan-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 8px; border-radius: 10px; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); transition: background .2s, gap .2s; }
.plan-link:hover { background: rgba(255, 153, 28, .16); gap: 10px; }

/* ---- shared page bits ---- */
.pg-anim { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
.pg-head { margin-bottom: 22px; }
.panel-card h3 { display: flex; align-items: center; gap: 8px; }
kbd { font: 600 11.5px var(--font); padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2); color: var(--text); white-space: nowrap; }

/* tutorials */
.tut-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; padding: 26px 28px; border-radius: 22px; margin-bottom: 18px; color: var(--text); border: 1px solid rgba(255, 179, 82, .3);
  background: radial-gradient(500px 200px at 0% 0%, rgba(255, 153, 28, .28), transparent 70%), radial-gradient(400px 200px at 100% 100%, rgba(255, 94, 58, .15), transparent 70%), var(--surface); transition: transform .3s, box-shadow .3s; }
.tut-hero:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(255, 153, 28, .18); }
.tut-hero h2 { font-size: 24px; margin: 8px 0 6px; letter-spacing: -.02em; }
.tut-hero p { margin: 0; }
.tut-steps { display: flex; align-items: center; gap: 6px; }
.tut-steps span { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tut-steps span b { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--surface-3); border: 1px solid var(--line-2); animation: stepLit 4s infinite; }
.tut-steps span:nth-child(3) b { animation-delay: 1s; } .tut-steps span:nth-child(5) b { animation-delay: 2s; } .tut-steps span:nth-child(7) b { animation-delay: 3s; }
@keyframes stepLit { 0%, 20% { background: linear-gradient(135deg, var(--accent), #ff5e3a); border-color: transparent; transform: scale(1.1); box-shadow: 0 8px 22px rgba(255, 153, 28, .45); } 30%, 100% { background: var(--surface-3); transform: none; box-shadow: none; } }
.tut-steps i { flex: 1; height: 2px; min-width: 14px; margin-bottom: 20px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 50%, var(--line-2) 50%); background-size: 200% 100%; animation: lineRun 4s linear infinite; }
@keyframes lineRun { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.lvl { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--lime); background: rgba(212, 255, 58, .1); border: 1px solid rgba(212, 255, 58, .25); }
.lvl.intermediate { color: #ffd166; background: rgba(255, 209, 102, .1); border-color: rgba(255, 209, 102, .25); }
.lvl.advanced { color: #ff9ad2; background: rgba(255, 94, 58, .1); border-color: rgba(255, 94, 58, .25); }
.tut-filter { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tut-filter button { border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tut-filter button.on, .tut-filter button:hover { color: var(--text); border-color: var(--accent); background: rgba(255, 153, 28, .14); }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tut-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: 18px; text-align: left; cursor: pointer; color: var(--text); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #13131b); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .3s; }
.tut-card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 82, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.tut-card .lvl { position: absolute; top: 18px; right: 18px; }
.tut-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-2); background: rgba(255, 153, 28, .14); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.tut-card:hover .tut-ic { transform: rotate(-8deg) scale(1.1); }
.tut-card b { font-size: 15px; margin-top: 4px; }
.tut-card small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tut-meta { margin-top: auto; padding-top: 6px; font-size: 11.5px; color: var(--accent-2); font-weight: 600; }
.tut-ol { margin: 14px 0 18px; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.tut-ol li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); line-height: 1.5; font-size: 14px; animation: rise .4s ease both; }
.tut-ol li:nth-child(2) { animation-delay: .08s; } .tut-ol li:nth-child(3) { animation-delay: .16s; } .tut-ol li:nth-child(4) { animation-delay: .24s; }
.tut-ol li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--accent), #ff5e3a); }
.kbd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }
.kbd-grid div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }

/* subscription */
.sub-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; margin-bottom: 16px; }
.plan-hero { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; border: 1px solid rgba(255, 179, 82, .35); background: linear-gradient(160deg, rgba(255, 153, 28, .2), rgba(255, 94, 58, .07) 55%, var(--surface)); }
.plan-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 255, 58, .16), transparent 70%); animation: floatBlob 9s ease-in-out infinite alternate; }
@keyframes floatBlob { to { transform: translate(-40px, 30px) scale(1.15); } }
.plan-hero-top { display: flex; justify-content: space-between; align-items: center; }
.plan-cycle { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-hero h2 { font-size: 26px; margin: 16px 0 4px; letter-spacing: -.02em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.plan-price b { font-size: 46px; font-weight: 800; letter-spacing: -.04em; }
.plan-price small { color: var(--muted); }
.plan-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.plan-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.plan-list .ic { color: #111; background: var(--lime); border-radius: 50%; padding: 3px; width: 20px; height: 20px; flex: none; }
.usage-big { display: flex; flex-direction: column; gap: 12px; }
.usage-big .prow-top { font-size: 14px; }
.usage-big .pbar { height: 8px; }
.usage-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.usage-kpis div { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.usage-kpis b { display: block; font-size: 18px; }
.usage-kpis small { color: var(--muted); font-size: 12px; }
.usage-big .btn { align-self: flex-start; }
.use-table { display: flex; flex-direction: column; }
.use-table a { display: grid; grid-template-columns: 1fr 90px 110px 170px; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 10px; color: var(--text); font-size: 13.5px; border-bottom: 1px solid var(--line); transition: background .2s; }
.use-table a:hover { background: var(--surface-2); }
.ut-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-tags { display: flex; gap: 6px; justify-content: flex-end; }
.ut-tags em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--accent-2); background: rgba(255, 153, 28, .12); }

/* team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 16px; }
.member > div { flex: 1; display: flex; flex-direction: column; }
.role { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: var(--lime); background: rgba(212, 255, 58, .1); }
.invite .row { margin-top: 4px; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.tpl-chips span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }

/* plugins */
.plug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.plug { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #13131b); overflow: hidden; transition: border-color .25s, box-shadow .3s; }
.plug:hover, .plug.open { border-color: rgba(255, 179, 82, .4); }
.plug-top { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; }
.plug-top > div { flex: 1; display: flex; flex-direction: column; }
.plug-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; flex: none; }
.plug-logo.pr { background: #2a0a4a; color: #d7a8ff; border: 1px solid #5a2a8a; }
.plug-logo.dv { background: linear-gradient(135deg, #1f6feb, #f97316); }
.plug-logo.fc { background: linear-gradient(135deg, #3b3b4f, #111); border: 1px solid #555; }
.plug-logo.cc { background: #111; border: 1px solid #444; }
.plug-logo.yt { background: #c4161c; }
.ok-dot { display: inline-flex; align-items: center; gap: 6px; color: #8ff0b8; font-size: 12px; }
.ok-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.plug-more .ic { transition: transform .3s; }
.plug.open .plug-more .ic { transform: rotate(180deg); }
.plug-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.plug-body ol { overflow: hidden; margin: 0; padding: 0 18px 0 36px; color: #cfcfe0; font-size: 13.5px; line-height: 1.55; transition: padding .35s; }
.plug.open .plug-body { grid-template-rows: 1fr; }
.plug.open .plug-body ol { padding-bottom: 16px; }
.plug-body li + li { margin-top: 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.chk { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.chk > span { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.chk.ok > span { color: #111; background: var(--ok); }
.chk.no > span { color: #fff; background: var(--danger); }
.chk b { font-size: 13.5px; }

/* refer */
.refer-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 36px 24px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 179, 82, .3);
  background: radial-gradient(600px 260px at 50% -20%, rgba(255, 153, 28, .3), transparent 70%), var(--surface); margin-bottom: 16px; }
.refer-hero h2 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.refer-art { position: relative; width: 86px; height: 86px; display: grid; place-items: center; }
.refer-art span { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #ff5e3a); box-shadow: 0 12px 30px rgba(255, 153, 28, .45); animation: upbob 3s ease-in-out infinite; }
.refer-art i { position: absolute; inset: 0; border-radius: 26px; border: 1.5px solid rgba(255, 179, 82, .4); animation: ringPulse 2.6s ease-out infinite; }
.refer-art i:nth-child(2) { animation-delay: .85s; } .refer-art i:nth-child(3) { animation-delay: 1.7s; }
.refer-link { display: flex; gap: 8px; width: min(520px, 100%); }
.refer-link .input { flex: 1; }
.refer-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.refer-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rstep { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.rstep-n { position: absolute; top: 14px; right: 16px; font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, .06); }
.rstep-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-2); background: rgba(255, 153, 28, .14); margin-bottom: 6px; }

/* help */
.help-search { height: 42px; border-radius: 12px; min-width: 260px; }
.help-search input { width: 100%; }
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.hcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: transform .3s, border-color .25s; }
.hcard:hover { transform: translateY(-3px); border-color: rgba(255, 179, 82, .45); }
.hcard > span { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-2); background: rgba(255, 153, 28, .14); margin-bottom: 4px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.hqa { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); transition: border-color .2s; }
.hqa.open { border-color: rgba(255, 179, 82, .4); }
.hqa > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
.hqa > button i { position: relative; width: 14px; height: 14px; flex: none; }
.hqa > button i::before, .hqa > button i::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--accent-2); transition: transform .3s; }
.hqa > button i::after { transform: rotate(90deg); }
.hqa.open > button i::after { transform: rotate(0); }
.hans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.hans p { overflow: hidden; margin: 0; padding: 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; transition: padding .35s; }
.hqa.open .hans { grid-template-rows: 1fr; }
.hqa.open .hans p { padding-bottom: 14px; }

@media (max-width: 1100px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } .sub-grid, .team-grid, .tut-hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .help-cards, .refer-steps { grid-template-columns: 1fr; } .use-table a { grid-template-columns: 1fr 70px; } .use-table a > span:nth-child(n+3) { display: none; } .tut-steps span { font-size: 10.5px; } }
@media (max-width: 640px) {
  .dash-actions { width: 100%; }
  .dash-actions .search { flex: 1; } .dash-actions .search input { width: 100%; min-width: 0; }
  .search kbd { display: none; }
  .drop-hero { flex-wrap: wrap; } .drop-btn { display: none; }
  .dash-head h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .main, .dstat, .card, .drop-hero, .dash-bar, .empty { animation: none !important; } }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side nav { flex-direction: row; }
  .side-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .side-nav a { white-space: nowrap; flex: none; }
  .side nav a.on::before { display: none; }
  .side-foot { display: none; }
  .side-scroll { flex: 1 1 100%; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  .side-me { display: none !important; }
  .main { padding: 18px 16px 40px; }
  .exp { grid-template-columns: 1fr; }
}

/* ---------- Prepare Your Media popup ---------- */
.modal.prep { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.prep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 10px; }
.prep-head h3 { font-size: 19px; }
.prep-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.prep-body { padding: 6px 22px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.prep-media { position: relative; align-self: center; width: min(320px, 100%); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.prep-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.prep-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.prep-audio { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent-2); background: linear-gradient(135deg, #3a2610, #0e0d16); font-size: 12px; padding: 10px; text-align: center; }
.prep-audio span { color: var(--muted); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prep-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.prep-ready { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: -4px; }
.prep-ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.prep-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.prep-card-head, .prep-tg { display: flex; align-items: center; gap: 12px; }
.prep-card-head div, .prep-tg > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prep-card-head b, .prep-tg b { font-size: 14px; }
.prep-card-head small, .prep-tg small { color: var(--muted); font-size: 12px; }
.prep-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); flex: none; }
.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prep-grid.single { grid-template-columns: 1fr; }
.prep-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prep-field[hidden] { display: none !important; }
.prep-field > label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.prep-select { position: relative; display: flex; align-items: center; }
.prep-select select { width: 100%; height: 42px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); appearance: none; cursor: pointer; font-size: 13.5px; outline: none; }
.prep-select select:focus { border-color: var(--accent); }
.prep-select .ic { position: absolute; right: 11px; pointer-events: none; color: var(--muted); }
.lp { position: relative; }
.lp-btn { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 13.5px; }
.lp-btn.chosen { color: var(--text); }
.lp-btn:hover, .lp-btn:focus { border-color: var(--accent); outline: none; }
.lp-pop { position: absolute; left: 0; right: 0; top: 46px; z-index: 10; min-width: 240px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.lp-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 36px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 6px; }
.lp-search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font-size: 13px; }
.lp-list { max-height: 240px; overflow-y: auto; }
.lp-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 8px 8px 4px; }
.lp-list button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; background: none; border-radius: 7px; color: var(--text); cursor: pointer; text-align: left; font-size: 13px; }
.lp-list button small { color: var(--muted); font-size: 11.5px; flex: 1; }
.lp-list button span { flex: none; }
.lp-list button:hover, .lp-list button.on { background: var(--surface-3); }
.lp-list button .ic { color: var(--accent-2); margin-left: auto; }
.lp-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.prep-tg { flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg-2); transition: border-color .15s, background .15s; }
.prep-tg.on { border-color: rgba(255, 153, 28, .5); background: rgba(255, 153, 28, .07); }
.prep-sub { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding-left: 44px; }
.prep-sub[hidden] { display: none !important; }
.prep-more { border: 1px dashed var(--line-2); border-radius: 12px; padding: 4px 14px; }
.prep-more summary { cursor: pointer; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.prep-more summary::-webkit-details-marker { display: none; }
.prep-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-bottom: 8px; }
.prep-more-grid .check { margin: 2px 0; font-size: 12.5px; }
.prep-go { height: 46px; font-size: 15px; border-radius: 12px; margin-top: 4px; }
.prep-go:disabled { opacity: .45; }
#prepProg { align-items: center; text-align: center; gap: 10px; padding-top: 18px; }
.prep-illus { position: relative; width: 150px; height: 120px; display: grid; place-items: center; }
.prep-orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-2); background: radial-gradient(circle at 30% 30%, rgba(255, 153, 28, .35), rgba(255, 153, 28, .08)); border: 1px solid rgba(255, 153, 28, .5); animation: orb 2.4s ease-in-out infinite; }
.prep-illus i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); opacity: .7; animation: float 3s ease-in-out infinite; }
.prep-illus i:nth-child(2) { left: 10px; top: 20px; } .prep-illus i:nth-child(3) { right: 8px; top: 40px; animation-delay: .8s; } .prep-illus i:nth-child(4) { left: 30px; bottom: 6px; animation-delay: 1.6s; background: var(--accent-2); }
@keyframes orb { 50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(255, 153, 28, .35); } }
@keyframes float { 50% { transform: translateY(-10px); } }
.prep-bar { width: 100%; }
.prep-bar .row b { color: var(--accent-2); }
.bar i.indet { width: 35% !important; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
#prepProg h4 { font-size: 17px; margin-top: 4px; }
#prepProg p { margin: 0; }
.prep-tip { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 12px 14px; text-align: center; }
.prep-tip small { color: var(--ok); font-weight: 800; letter-spacing: .14em; font-size: 10.5px; }
.prep-tip p { margin: 6px 0 0 !important; font-size: 13px; color: var(--text); }
@media (max-width: 560px) { .prep-grid, .prep-more-grid { grid-template-columns: 1fr; } }

/* Caption AI card (profile) */
.ai-card { display: flex; flex-direction: column; gap: 12px; }
.ai-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(47, 210, 122, .14); color: var(--ok); font-weight: 700; font-size: 12.5px; }
.ai-chain { display: grid; gap: 8px; }
.ai-chain div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.ai-chain div:first-child { border-color: rgba(255, 153, 28, .55); background: rgba(255, 153, 28, .08); }
.ai-chain small { color: var(--muted); font-size: 12px; }
