/* PixCut 1.0.0 — dark graphite + ember. One stylesheet for sign-in, home, DrivCut (video) and PixCut Studio (image). */
:root {
  --bg: #090b0f; --bg2: #101319; --bg3: #161a22; --bg4: #1e232d; --bg5: #272d3a; --line: #252b37; --line2: #323a4a;
  --text: #eaeef5; --muted: #8b95a8; --dim: #5d6679;
  --accent: #ff6a1f; --accent2: #ffb347; --accent-soft: rgba(255, 106, 31, .16); --danger: #ff5a5f; --ok: #38d996; --warn: #ffc247;
  --cc-video: #4aa3ff; --cc-image: #46c28e; --cc-audio: #a96bff; --cc-text: #ffb020; --cc-sticker: #ff5c8a; --cc-hud: #ff5c8a; --cc-adjust: #2dd4bf;
  --r: 10px; --r2: 14px; --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: Orbitron, Inter, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
#app, .view-host { height: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 11px; } .sp { flex: 1; } .err { color: var(--danger); }
.only-mobile { display: none !important; }
.grad { background: linear-gradient(100deg, var(--accent2), var(--accent) 45%, #ff3b5c); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 10px; border: 2px solid var(--bg2); } ::-webkit-scrollbar-thumb:hover { background: #3a4356; } ::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--bg5) transparent; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg4); font-weight: 600; font-size: 12.5px; white-space: nowrap; transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .2s; }
.btn:hover:not(:disabled) { background: var(--bg5); border-color: #43506a; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn i, .icon-btn i { display: inline-flex; } .btn svg { display: block; }
.btn.primary { background: linear-gradient(135deg, var(--accent2), var(--accent) 55%, #f0361d); border-color: transparent; color: #190b04; box-shadow: 0 4px 18px rgba(255, 106, 31, .28); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 6px 24px rgba(255, 106, 31, .42); background: linear-gradient(135deg, var(--accent2), var(--accent) 55%, #f0361d); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); } .btn.ghost:hover:not(:disabled) { background: var(--bg4); } .btn.ghost.on { color: var(--accent2); background: var(--accent-soft); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn.danger { color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); transition: background .15s, transform .12s var(--ease); flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--bg4); } .icon-btn:active:not(:disabled) { transform: scale(.9); } .icon-btn.on { color: var(--accent2); background: var(--accent-soft); }
.icon-btn.busy { animation: pulse 1s infinite; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .btnrow.center { justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line2); background: var(--bg3); font-weight: 600; font-size: 12px; }
.pill:hover { border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; padding: 0 5px; border-radius: 5px; background: rgba(0, 0, 0, .55); font-size: 9.5px; font-weight: 700; line-height: 15px; }
.txt, .sel, .num, input[type=search], input[type=text], input[type=number], textarea, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 0 9px; height: 30px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea.txt { height: auto; padding: 7px 9px; resize: vertical; width: 100%; }
.txt:focus, .sel:focus, .num:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel { padding-right: 4px; } .sel.sm { height: 26px; font-size: 11.5px; } .num { width: 56px; padding: 0 5px; text-align: right; font-variant-numeric: tabular-nums; }
.num::-webkit-inner-spin-button { display: none; }
input[type=color] { width: 44px; height: 28px; padding: 2px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg); cursor: pointer; }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 20px; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--bg5) var(--fill, 0%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--bg5); } input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 5px rgba(0, 0, 0, .6); transition: transform .12s; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.2); }
.row { display: flex; align-items: center; gap: 8px; margin: 7px 0; min-width: 0; } .row .lbl { flex: 0 0 92px; color: var(--muted); font-size: 12px; } .row .sel, .row .txt { flex: 1; } .row.col { flex-direction: column; align-items: stretch; } .row.col .lbl { flex: none; }
.row.slider { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px 22px; gap: 6px; } .row.slider .lbl { flex: none; display: flex; align-items: center; gap: 2px; cursor: default; white-space: nowrap; font-size: 11.5px; } .lbl em { font-style: normal; color: var(--dim); font-size: 10.5px; }
.row.toggle { justify-content: space-between; cursor: pointer; } .row.toggle .lbl { flex: 1; color: var(--text); }
.row.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 34px; height: 20px; border-radius: 99px; background: var(--bg5); position: relative; flex: none; transition: background .2s; } .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
input:checked ~ .sw { background: var(--accent); } input:checked ~ .sw::after { transform: translateX(14px); } input:focus-visible ~ .sw { outline: 2px solid var(--accent2); outline-offset: 2px; }
.kf { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: transparent; color: var(--dim); border-radius: 6px; padding: 0; } .kf:hover { color: var(--accent2); } .kf.has { color: var(--accent); } .kf.on { color: #190b04; background: var(--accent2); }
.gbtn { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; background: transparent; color: var(--dim); border-radius: 5px; padding: 0; margin-left: 2px; } .gbtn:hover { color: var(--accent2); background: var(--bg4); }
.hint { color: var(--muted); font-size: 11.5px; margin: 8px 0; line-height: 1.5; } .hint.warn { color: var(--warn); } .hint.err { color: var(--danger); }
.sec { border-top: 1px solid var(--line); } .sec:first-child { border-top: 0; } .sec > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 10px 2px; font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #c3cada; user-select: none; } .sec > summary::-webkit-details-marker { display: none; } .sec > summary i { transition: transform .2s; color: var(--muted); } .sec[open] > summary i { transform: rotate(90deg); } .sec-body { padding: 0 2px 10px; animation: fadeUp .2s var(--ease); }
.seg { display: inline-flex; padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; gap: 2px; flex-wrap: wrap; max-width: 100%; } .seg button { border: 0; background: transparent; color: var(--muted); padding: 0 10px; height: 26px; border-radius: 7px; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; transition: background .15s, color .15s; } .seg button:hover { color: var(--text); } .seg button.on { background: var(--bg5); color: var(--accent2); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; } .seg.sm button { height: 22px; padding: 0 8px; font-size: 11px; }
.tabs { display: flex; gap: 0; padding: 0 2px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tabs button { flex: 1 1 0; min-width: 38px; display: grid; justify-items: center; gap: 2px; border: 0; background: transparent; color: var(--muted); padding: 8px 1px 7px; font-size: 9.5px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s; } .tabs button:hover { color: var(--text); } .tabs button.on { color: var(--accent2); border-bottom-color: var(--accent); }
.chips { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 6px; margin: 8px 0; } .chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 6px 4px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--line); font-size: 11px; font-weight: 600; text-align: center; transition: transform .12s var(--ease), border-color .15s, background .15s; } .chip:hover { border-color: var(--accent); background: var(--bg4); transform: translateY(-1px); } .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent2); }
.chip .sw2 { width: 100%; height: 22px; border-radius: 6px; } .chip-art { display: grid; place-items: center; height: 28px; } .chip-art svg { max-height: 28px; max-width: 100%; }
.sub { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bar { height: 8px; border-radius: 8px; background: var(--bg5); overflow: hidden; margin: 10px 0; } .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 8px; transition: width .2s linear; position: relative; overflow: hidden; } .bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sweep 1.2s linear infinite; } @keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line2); background: var(--bg4); padding: 0; overflow: hidden; display: grid; place-items: center; font-weight: 800; flex: none; transition: border-color .15s; } .avatar:hover { border-color: var(--accent); } .avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 38px; height: 38px; }
.form { display: grid; gap: 8px; } .form .lbl { color: var(--muted); font-size: 12px; margin-top: 4px; } .form .row .lbl { margin-top: 0; }

/* ---------------------------------------------------------------- overlays */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(4, 6, 9, .68); backdrop-filter: blur(5px); animation: fadeUp .18s; padding: 12px; }
.modal { width: min(480px, 100%); max-height: min(88dvh, 760px); display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); animation: pop .25s var(--ease); } .modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; } .modal-head h3 { margin: 0; font-size: 15px; font-family: var(--display); letter-spacing: .02em; font-weight: 800; }
.modal-body { padding: 4px 16px 12px; overflow: auto; min-height: 0; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
#toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 300; pointer-events: none; width: min(92vw, 460px); }
.toast { pointer-events: auto; padding: 10px 14px; border-radius: 11px; background: var(--bg5); border: 1px solid var(--line2); border-left: 3px solid var(--accent2); box-shadow: var(--shadow); font-size: 12.5px; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .25s, transform .3s var(--ease); max-width: 100%; } .toast.in { opacity: 1; transform: none; }
.toast.success { border-left-color: var(--ok); } .toast.error { border-left-color: var(--danger); } .toast.warn { border-left-color: var(--warn); }
.ctxmenu { position: fixed; z-index: 150; min-width: 190px; padding: 5px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); animation: pop .15s var(--ease); display: flex; flex-direction: column; }
.ctxmenu button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; } .ctxmenu button:hover:not(:disabled) { background: var(--bg5); } .ctxmenu button.danger { color: var(--danger); } .ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; } .ctxmenu kbd { margin-left: auto; color: var(--dim); font: 11px var(--font); }

/* ---------------------------------------------------------------- brand / splash / sign-in */
.splash { height: 100%; display: grid; place-content: center; justify-items: center; gap: 16px; } .splash-logo { width: 64px; height: 64px; animation: pulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(255, 106, 31, .5)); } .splash-logo svg, .logo svg, .hero-img svg, .hero-art svg { width: 100%; height: 100%; display: block; }
.brand-lg { display: flex; align-items: center; gap: 12px; } .brand-lg .logo { width: 42px; height: 42px; flex: none; } .brand-lg strong { font: 800 24px var(--display); letter-spacing: .03em; } .brand-lg em { font-style: normal; font-size: 11px; color: var(--accent2); border: 1px solid rgba(255, 179, 71, .4); padding: 1px 7px; border-radius: 99px; } .brand-lg.sm .logo { width: 30px; height: 30px; } .brand-lg.sm strong { font-size: 18px; }
.credit { display: flex; align-items: center; gap: 10px; color: var(--muted); } .credit .ks-mark { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; } .credit .ks-mark svg { width: 100%; height: 100%; } .credit strong { display: block; color: var(--text); font-size: 12.5px; } .credit small { font-size: 11px; } .credit .ver { margin-left: auto; font-size: 11px; color: var(--dim); }
.login { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: center; gap: 40px; padding: clamp(20px, 5vw, 72px); overflow: auto; isolation: isolate; }
.login-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 20% 0, #1a1420 0, var(--bg) 60%); } .login-bg .glow { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 14s ease-in-out infinite alternate; } .g1 { background: #ff6a1f; left: -12vw; top: -14vw; } .g2 { background: #5b3bff; right: -14vw; bottom: -18vw; animation-delay: -6s; opacity: .22 !important; } @keyframes drift { to { transform: translate(6vw, 4vw) scale(1.12); } }
.road { position: absolute; inset: 0; overflow: hidden; } .road b { position: absolute; left: -40%; top: var(--y); width: var(--w); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent2) 55%, #fff); opacity: var(--o); filter: drop-shadow(0 0 6px var(--accent)); animation: streak var(--d) linear infinite; animation-delay: var(--delay); } @keyframes streak { from { transform: translateX(0); } to { transform: translateX(230vw); } }
.login-hero h1, .login-hero .brand-lg { position: relative; }
.login-hero { max-width: 640px; animation: fadeUp .7s var(--ease) both; } .login-hero h1 { font: 800 clamp(34px, 5.4vw, 66px)/1.02 var(--display); letter-spacing: -.01em; margin: 22px 0 14px; } .lead { font-size: clamp(14px, 1.4vw, 16.5px); color: #b4bccc; max-width: 56ch; margin: 0 0 18px; line-height: 1.6; }
.feat { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; } .feat li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-weight: 600; font-size: 12px; backdrop-filter: blur(6px); } .feat li i { color: var(--ok); display: inline-flex; }
.login-card { position: relative; background: rgba(16, 19, 25, .78); backdrop-filter: blur(16px); border: 1px solid var(--line2); border-radius: 22px; padding: 28px; box-shadow: var(--shadow), 0 0 80px rgba(255, 106, 31, .08); display: grid; gap: 12px; animation: fadeUp .7s .12s var(--ease) both; }
.login-card h2 { margin: 0; font: 800 22px var(--display); } .login-card p { margin: 0; } .hero-img { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; box-shadow: 0 10px 34px rgba(255, 106, 31, .35); }
.g-btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; border-radius: 12px; border: 0; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 14.5px; margin-top: 6px; transition: transform .15s var(--ease), box-shadow .2s; box-shadow: 0 4px 20px rgba(255, 255, 255, .08); } .g-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255, 255, 255, .18); } .g-btn i { display: inline-flex; }
.login-err { color: #ffb3b5; background: rgba(255, 90, 95, .12); border: 1px solid rgba(255, 90, 95, .35); padding: 9px 12px; border-radius: 10px; font-size: 12.5px; } .fine { font-size: 11px; color: var(--dim); line-height: 1.5; } .login-card .credit { padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- home */
.home { height: 100%; display: flex; flex-direction: column; overflow: auto; background: radial-gradient(90% 60% at 80% -10%, rgba(255, 106, 31, .12), transparent 60%), var(--bg); }
.home-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 12px clamp(14px, 4vw, 40px); background: rgba(9, 11, 15, .8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.search { width: min(300px, 38vw); height: 34px; border-radius: 99px; padding: 0 14px; }
.home-main { width: min(1180px, 100%); margin: 0 auto; padding: 26px clamp(14px, 4vw, 40px) 40px; flex: 1; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; } .hero h1 { font: 800 clamp(24px, 3.4vw, 38px)/1.1 var(--display); margin: 0 0 8px; animation: fadeUp .5s var(--ease) both; } .hero .lead { margin: 0; } .hero-art { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; flex: none; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(255, 106, 31, .35)); } @keyframes float { 50% { transform: translateY(-7px) rotate(-2deg); } }
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.acard { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(160deg, var(--bg3), var(--bg2)); overflow: hidden; transition: transform .25s var(--ease), border-color .2s, box-shadow .3s; animation: fadeUp .5s var(--ease) both; }
.acard:nth-child(2) { animation-delay: .06s; } .acard:nth-child(3) { animation-delay: .12s; }
.acard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 100% at 0 0, var(--glow, rgba(255, 106, 31, .22)), transparent 60%); opacity: .7; transition: opacity .3s; } .acard:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent-soft); } .acard:hover::before { opacity: 1; } .acard.image { --glow: rgba(70, 194, 142, .22); } .acard.tpl { --glow: rgba(169, 107, 255, .22); }
.aic { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--bg5); flex: none; color: var(--accent2); } .acard.image .aic { color: #6fe3b3; } .acard.tpl .aic { color: #c9a2ff; }
.at { position: relative; display: grid; gap: 3px; min-width: 0; } .at strong { font-size: 16px; font-weight: 800; } .at small { color: var(--muted); font-size: 12px; line-height: 1.4; } .atag { position: absolute; top: 12px; right: 14px; font: 700 10px var(--display); color: var(--accent2); letter-spacing: .08em; } .arrow { position: absolute; right: 14px; bottom: 12px; color: var(--dim); transition: transform .2s, color .2s; display: inline-flex; } .acard:hover .arrow { transform: translateX(4px); color: var(--accent2); }
.plist-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } .plist-head h2 { margin: 0; font: 800 18px var(--display); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; cursor: pointer; transition: transform .22s var(--ease), border-color .2s, box-shadow .25s; animation: fadeUp .4s var(--ease) both; } .pcard:hover, .pcard:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.pthumb { position: relative; aspect-ratio: 16/10; background: #05070a; display: grid; place-items: center; overflow: hidden; } .pthumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); } .pcard:hover .pthumb img { transform: scale(1.04); } .pthumb.none { background: linear-gradient(135deg, var(--bg4), var(--bg2)); color: var(--dim); }
.kind { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); font: 700 9.5px var(--display); letter-spacing: .06em; color: var(--accent2); } .kind.image { color: #6fe3b3; } .cloudmark { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #8ccfff; }
.pmeta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 6px 10px 12px; } .pmeta > div { min-width: 0; } .pname { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; } .pmeta small { color: var(--muted); font-size: 11px; }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 46px 12px; color: var(--muted); border: 1px dashed var(--line2); border-radius: 16px; text-align: center; } .empty strong { color: var(--text); font-size: 15px; }
.home-foot { padding: 18px clamp(14px, 4vw, 40px); border-top: 1px solid var(--line); } .home-foot .credit { max-width: 1180px; margin: 0 auto; }
.ratios { display: flex; gap: 8px; flex-wrap: wrap; } .ratios.big { display: grid; grid-template-columns: repeat(3, 1fr); }
.ratio { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg3); transition: border-color .15s, background .15s, transform .12s; } .ratio:hover { border-color: var(--accent); transform: translateY(-1px); } .ratio.on { border-color: var(--accent); background: var(--accent-soft); } .ratio b { font-size: 13px; } .ratio small { color: var(--muted); font-size: 10.5px; text-align: center; } .rbox { display: block; border: 2px solid var(--accent2); border-radius: 4px; width: 18px; height: 18px; }

/* ---------------------------------------------------------------- editor shell */
.editor { --bottom-h: clamp(230px, 36vh, 360px); position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr) var(--bottom-h); background: var(--bg); overflow: hidden; }
.ed-top { display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--bg2); border-bottom: 1px solid var(--line); min-width: 0; z-index: 5; }
.brand-mini { display: flex; align-items: center; gap: 8px; padding: 0 6px; flex: none; } .brand-mini strong { display: block; font: 800 14px/1 var(--display); letter-spacing: .04em; } .brand-mini small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.proj-name { flex: 0 1 220px; min-width: 70px; background: transparent; border-color: transparent; font-weight: 700; } .proj-name:hover { border-color: var(--line2); }
.save-state { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .save-state.dirty { color: var(--warn); } .save-state.err { color: var(--danger); }
.ed-main { display: grid; grid-template-columns: auto minmax(0, 1fr) 328px; min-height: 0; border-bottom: 1px solid var(--line); }
.ed-left { display: flex; min-height: 0; background: var(--bg2); border-right: 1px solid var(--line); position: relative; }
.ed-rail { display: flex; flex-direction: column; width: 64px; overflow-y: auto; padding: 6px 4px; gap: 2px; border-right: 1px solid var(--line); background: var(--bg); flex: none; }
.rail-btn { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 5px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; position: relative; transition: background .15s, color .15s; } .rail-btn:hover { background: var(--bg3); color: var(--text); } .rail-btn.on { color: var(--accent2); background: var(--accent-soft); } .rail-btn.on::before { content: ''; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.ed-panel { width: 262px; min-height: 0; overflow-y: auto; overflow-x: hidden; } .panel-body { padding: 12px; animation: fadeUp .22s var(--ease); }
.ed-center { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-width: 0; min-height: 0; background: #06080b; }
.ed-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #12161d, #06080b 70%); }
.stage-frame { position: relative; display: block; box-shadow: 0 10px 60px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); } .stage-cv { display: block; background: #000; touch-action: none; } .stage-frame.picking { cursor: crosshair; } .stage-frame.picking .sel-box { display: none; }
.sel-box { position: absolute; border: 1.5px solid var(--accent2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); cursor: move; touch-action: none; } .sel-box .hd { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; touch-action: none; } .hd.nw { left: -7px; top: -7px; cursor: nwse-resize; } .hd.ne { right: -7px; top: -7px; cursor: nesw-resize; } .hd.sw { left: -7px; bottom: -7px; cursor: nesw-resize; } .hd.se { right: -7px; bottom: -7px; cursor: nwse-resize; } .hd.rot { left: 50%; top: -30px; margin-left: -6px; border-radius: 50%; cursor: grab; } .hd.rot::after { content: ''; position: absolute; left: 3px; top: 12px; width: 1.5px; height: 14px; background: var(--accent2); }
.stage-empty { position: absolute; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); max-width: 300px; padding: 20px; pointer-events: auto; } .stage-empty strong { color: var(--text); font-size: 16px; } .stage-empty i { color: var(--accent2); }
.scrub { margin: 0; width: 100%; height: 14px; } .scrub::-webkit-slider-runnable-track { height: 3px; border-radius: 0; } .scrub::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4.5px; }
.ed-transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 12px 8px; background: var(--bg2); border-top: 1px solid var(--line); } .tc-wrap { display: flex; gap: 6px; align-items: baseline; } .tc { font: 600 13px var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; } .tc.dim { color: var(--dim); font-size: 11px; } .tp-mid { display: flex; align-items: center; gap: 4px; } .tp-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #190b04; display: grid; place-items: center; box-shadow: 0 4px 20px rgba(255, 106, 31, .4); transition: transform .15s var(--ease), box-shadow .2s; } .play-btn:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(255, 106, 31, .6); } .play-btn:active { transform: scale(.94); }
.ed-right-wrap { min-height: 0; display: flex; flex-direction: column; background: var(--bg2); border-left: 1px solid var(--line); } .ed-right { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } .insp { display: flex; flex-direction: column; } .ed-right > .insp-body, .ed-right > .proj-panel { overflow-y: auto; }
.insp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex: none; } .insp-title { display: flex; align-items: center; gap: 8px; min-width: 0; } .insp-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .insp-title em { color: var(--muted); font-style: normal; font-size: 11px; } .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; } .insp-acts { display: flex; } .insp-acts .icon-btn { width: 28px; height: 28px; }
.insp-body { padding: 10px 12px 24px; overflow-y: auto; min-height: 0; flex: 1; animation: fadeUp .2s var(--ease); }
.sheet-close { display: none; }

/* ---------------------------------------------------------------- panels */
.dropzone { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 10px; margin-bottom: 12px; border: 1.5px dashed var(--line2); border-radius: 14px; color: var(--muted); background: var(--bg); transition: border-color .2s, background .2s, transform .15s; } .dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); } .dropzone strong { color: var(--text); font-size: 13px; } .dropzone i { color: var(--accent2); }
.media-grid, .preset-grid, .tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mcard { position: relative; display: flex; flex-direction: column; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); overflow: hidden; cursor: grab; transition: border-color .15s, transform .15s var(--ease); } .mcard:hover { border-color: var(--accent); transform: translateY(-2px); } .mcard.dragging { opacity: .5; }
.mthumb { position: relative; aspect-ratio: 16/10; background: #05070a; display: grid; place-items: center; color: var(--dim); overflow: hidden; } .mthumb img { width: 100%; height: 100%; object-fit: cover; } .mdur { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, .7); font-size: 10px; font-weight: 700; } .mused { position: absolute; left: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.mname { padding: 5px 7px 2px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mact { display: flex; padding: 0 2px 2px; } .mact .icon-btn { width: 26px; height: 26px; }
.lib-list { display: grid; gap: 4px; } .lib-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 3px; border-radius: 9px; background: var(--bg3); border: 1px solid transparent; transition: border-color .15s, background .15s; } .lib-row:hover { border-color: var(--line2); background: var(--bg4); } .lib-row .icon-btn { width: 28px; height: 28px; } .lib-name { flex: 1; min-width: 0; font-weight: 600; font-size: 12px; } .lib-name > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lib-name small { color: var(--muted); font-weight: 400; font-size: 10.5px; }
.preset { min-height: 54px; padding: 8px 6px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); font-size: 17px; display: grid; place-items: center; transition: border-color .15s, background .15s, transform .12s; } .preset:hover { border-color: var(--accent); background: var(--bg4); transform: scale(1.03); }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; } .emoji-grid button { border: 0; background: transparent; font-size: 21px; border-radius: 8px; padding: 4px 0; } .emoji-grid button:hover { background: var(--bg4); transform: scale(1.15); }
.tcard { grid-column: 1 / -1; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); transition: border-color .15s; } .tcard:hover { border-color: var(--accent); } .tcover { display: grid; place-items: center; align-content: center; gap: 3px; aspect-ratio: 9/14; border-radius: 9px; background: linear-gradient(160deg, #3a2113, #151a22); color: var(--accent2); font-size: 10px; font-weight: 700; } .tcover.16x9 { aspect-ratio: 16/10; align-self: start; } .tinfo { display: grid; gap: 3px; min-width: 0; align-content: start; } .tinfo p { margin: 0; color: var(--muted); font-size: 11.5px; } .ttags { display: flex; flex-wrap: wrap; gap: 4px; } .ttags em { font-style: normal; font-size: 10px; color: var(--muted); background: var(--bg); padding: 1px 6px; border-radius: 99px; } .tact { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.tpl-slots .slot { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .tpl-slots .slot .muted { grid-column: 1; font-size: 11.5px; }
.hsl-dots { display: flex; gap: 6px; margin: 6px 0 10px; } .hsl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; padding: 0; } .hsl-dot.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.eqband { display: grid; gap: 2px; justify-items: center; font-size: 10px; color: var(--muted); } .kv { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; } .expr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.proj-panel { padding: 12px; }

/* ---------------------------------------------------------------- bottom: toolbar, timeline, graph */
.ed-bottom { display: flex; flex-direction: column; min-height: 0; background: var(--bg2); }
.tl-toolbar { display: flex; align-items: center; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; } .tl-toolbar::-webkit-scrollbar { display: none; }
.tl-tool { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; background: transparent; color: #c6cddb; border-radius: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; transition: background .15s, color .15s, transform .12s; } .tl-tool:hover { background: var(--bg4); color: #fff; } .tl-tool:active { transform: scale(.94); } .tl-tool.on { color: var(--accent2); } .tl-sep { width: 1px; height: 18px; background: var(--line2); margin: 0 5px; flex: none; }
.zoom { width: 110px; flex: none; }
.tl-stack { flex: 1; min-height: 0; position: relative; } .tl-host { position: absolute; inset: 0; }
.tl-scroll { position: absolute; inset: 0; overflow: auto; outline: none; user-select: none; -webkit-user-select: none; } .tl-inner { position: relative; min-height: 100%; }
.tl-ruler { position: sticky; top: 0; z-index: 8; height: 26px; background: var(--bg2); border-bottom: 1px solid var(--line); } .tl-corner { position: sticky; left: 0; z-index: 3; width: 138px; height: 100%; background: var(--bg2); border-right: 1px solid var(--line); display: flex; align-items: center; padding-left: 10px; color: var(--dim); font: 600 10.5px var(--display); } .tl-ticks { position: absolute; inset: 0; }
.tick { position: absolute; top: 0; height: 100%; padding: 6px 0 0 4px; border-left: 1px solid var(--line2); font-size: 9.5px; color: var(--muted); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; } .tick.s { top: auto; bottom: 0; height: 8px; padding: 0; border-color: var(--line); }
.mk { position: absolute; bottom: 0; transform: translateX(-50%); width: 0; height: 0; border: 0; padding: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--accent2); background: transparent; z-index: 2; } .mk.beat { border-bottom-color: #6fe3ff; border-left-width: 3px; border-right-width: 3px; opacity: .8; } .mk.drop { border-bottom-color: #ff5c8a; } .mk.section { width: auto; height: 17px; top: auto; bottom: 0; transform: none; border: 0; padding: 0 6px; background: rgba(169, 107, 255, .3); color: #e2d0ff; font-size: 9.5px; font-weight: 700; border-left: 2px solid #a96bff; border-radius: 0 4px 4px 0; line-height: 17px; }
.tl-track { display: flex; position: relative; } .tl-th { position: sticky; left: 0; z-index: 6; flex: none; width: 138px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 8px; background: var(--bg2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; } .tl-th.sel { background: var(--bg3); } .tl-th.add { height: 34px; justify-content: center; }
.tl-tn { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #c6cddb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl-tn i { color: var(--muted); display: inline-flex; } .tl-tb { display: flex; gap: 1px; } .tb { width: 22px; height: 20px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 5px; padding: 0; } .tb:hover { background: var(--bg5); color: #fff; } .tb.off { color: var(--danger); } .tb.on { color: var(--accent2); }
.tl-lane { position: relative; flex: none; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 89px, rgba(255, 255, 255, .02) 89px 90px), #0b0e13; } .tl-lane.locked { opacity: .55; } .tl-lane.hidden { opacity: .4; } .tl-lane.audio { background-color: #0d0d14; } .tl-lane.drop-over { background-color: var(--accent-soft); }
.clip { position: absolute; top: 3px; bottom: 3px; border-radius: 7px; overflow: hidden; background: color-mix(in srgb, var(--cc, #888) 30%, #10131a); border: 1px solid color-mix(in srgb, var(--cc, #888) 75%, #000); cursor: grab; transition: box-shadow .15s, filter .15s; } .clip:hover { filter: brightness(1.12); } .clip:active { cursor: grabbing; } .clip.sel { border-color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 4px 18px rgba(0, 0, 0, .6); z-index: 4; } .clip.frozen .clip-bg { filter: saturate(.4); }
.clip-bg { position: absolute; inset: 0; overflow: hidden; } .clip-bg img { position: absolute; top: 0; height: 100%; object-fit: cover; opacity: .9; pointer-events: none; } .wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.clip-label { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; text-shadow: 0 1px 3px #000, 0 0 6px #000; pointer-events: none; white-space: nowrap; overflow: hidden; } .clip-label > span { overflow: hidden; text-overflow: ellipsis; }
.trim { position: absolute; top: 0; bottom: 0; width: 9px; z-index: 3; cursor: ew-resize; opacity: 0; background: rgba(255, 255, 255, .65); transition: opacity .12s; } .trim.l { left: 0; border-radius: 6px 0 0 6px; } .trim.r { right: 0; border-radius: 0 6px 6px 0; } .clip:hover .trim, .clip.sel .trim { opacity: .55; } .trim:hover { opacity: 1 !important; }
.clip-kf { position: absolute; left: 0; right: 0; bottom: 3px; height: 8px; pointer-events: none; z-index: 2; } .clip-kf i { position: absolute; width: 6px; height: 6px; background: #ffd166; transform: translateX(-3px) rotate(45deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.clip-bake { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(0, 0, 0, .5); font-size: 10px; font-weight: 700; } .clip-bake i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); } .clip-err { position: absolute; right: 4px; top: 3px; z-index: 3; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.fade { position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; } .fade.in { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .6), transparent); } .fade.out { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .6), transparent); }
.tl-trans { position: absolute; top: 50%; z-index: 6; transform: translate(-50%, -50%); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg4); color: var(--muted); padding: 0; opacity: .6; transition: transform .15s var(--ease), opacity .15s; } .tl-trans:hover, .tl-trans.has { opacity: 1; transform: translate(-50%, -50%) scale(1.2); color: var(--accent2); border-color: var(--accent); }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); z-index: 9; pointer-events: none; box-shadow: 0 0 10px rgba(255, 106, 31, .6); } .tl-playhead i { position: absolute; top: 0; left: -6px; width: 14px; height: 13px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.tl-snap { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; z-index: 8; pointer-events: none; opacity: 0; transition: opacity .1s; } .tl-snap.on { opacity: .7; }
.tl-addrow { display: flex; } .tl-addrow .tl-th { cursor: default; border-bottom: 0; }
.graph-dock { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg2); animation: fadeUp .2s var(--ease); } .graph-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; white-space: nowrap; } .graph-head strong { font: 800 12px var(--display); }
.graph { display: flex; flex-direction: column; flex: 1; min-height: 0; } .graph.embed { height: 190px; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.graph-tools { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; flex: none; } .graph-wrap { position: relative; flex: 1; min-height: 0; background: #080a0e; } .graph-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: crosshair; } .graph-foot { display: flex; gap: 12px; padding: 3px 10px; font-size: 11px; border-top: 1px solid var(--line); flex: none; }
.graph-open .tl-host { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) { .ed-main { grid-template-columns: auto minmax(0, 1fr) 290px; } .ed-panel { width: 224px; } .brand-mini small { display: none; } }
@media (max-width: 900px) {
  .only-mobile { display: inline-flex !important; } .login { grid-template-columns: 1fr; gap: 24px; align-content: start; } .acards { grid-template-columns: 1fr; } .hero-art { display: none; }
  .editor { --bottom-h: clamp(210px, 34vh, 300px); grid-template-rows: 48px minmax(0, 1fr) var(--bottom-h); }
  .ed-main { grid-template-columns: minmax(0, 1fr); }
  .ed-left, .ed-right-wrap { position: fixed; left: 0; right: 0; bottom: 0; height: min(66dvh, 560px); z-index: 60; border: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .7); transform: translateY(105%); transition: transform .32s var(--ease); visibility: hidden; }
  .editor.show-left .ed-left, .editor.show-right .ed-right-wrap { transform: none; visibility: visible; }
  .ed-left { flex-direction: column; } .ed-rail { flex-direction: row; width: auto; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 6px; flex: none; } .rail-btn { min-width: 58px; padding: 6px 2px; } .rail-btn.on::before { display: none; } .ed-panel { width: 100%; flex: 1; }
  .sheet-close { display: grid; position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: var(--bg4); z-index: 3; } .ed-right-wrap .sheet-close { top: 8px; right: 8px; } .ed-left .sheet-close { top: 8px; }
  .ed-top { gap: 2px; padding: 0 6px; overflow: hidden; } .brand-mini, .save-state, .ed-top .pill, .ed-top .avatar, .ed-top .graph-btn, .ed-top .cloud-btn { display: none; } .proj-name { flex: 1 1 60px; min-width: 40px; } .ed-top .btn.ghost.only-mobile { padding: 0 8px; } .ed-top .btn.primary { padding: 0 10px; }
  .ed-left .ed-rail { padding-right: 48px; }
  .ed-transport { grid-template-columns: auto 1fr; } .tp-right { display: none; } .tp-mid { justify-content: flex-end; } .tl-tool span { display: none; } .tl-tool { padding: 0 8px; } .zoom { width: 70px; }
  .row.slider { grid-template-columns: 82px minmax(0, 1fr) 50px 22px; } .sel-box .hd { width: 18px; height: 18px; } .hd.nw { left: -10px; top: -10px; } .hd.ne { right: -10px; top: -10px; } .hd.sw { left: -10px; bottom: -10px; } .hd.se { right: -10px; bottom: -10px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .home-top .brand-lg strong { font-size: 16px; }
}
@media (max-width: 520px) { .ed-top .btn.only-mobile span { display: none; } .tc.dim { display: none; } .login-card { padding: 20px; } .ratios.big { grid-template-columns: repeat(2, 1fr); } .search { width: 130px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ---------------------------------------------------------------- PixCut Studio (image editor) */
.editor.studio { --bottom-h: 52px; }
.editor.studio.animating { --bottom-h: clamp(290px, 42vh, 420px); }
.editor.studio:not(.animating) .tl-toolbar, .editor.studio:not(.animating) .tl-stack { display: none; }
.editor.studio .ed-bottom { border-top: 1px solid var(--line); }
.layerbar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--bg2); border-bottom: 1px solid var(--line); flex: none; min-width: 0; }
.editor.studio:not(.animating) .layerbar { border-bottom: 0; height: 100%; }
.lb-title { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; flex: none; }
.layer-list { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding: 2px; scrollbar-width: none; } .layer-list::-webkit-scrollbar { display: none; }
.layer { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line2); background: var(--bg3); font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; max-width: 200px; transition: border-color .15s, background .15s, transform .12s var(--ease); } .layer span { overflow: hidden; text-overflow: ellipsis; } .layer:hover { border-color: var(--accent); transform: translateY(-1px); } .layer.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent2); }
.layerbar .btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent2); }
.num.wide { width: 74px; }
.editor.comparing .stage-frame::after { content: 'ORIGINAL'; position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .7); font: 800 11px var(--display); letter-spacing: .1em; color: var(--accent2); pointer-events: none; }
.editor.comparing .sel-box { display: none; }
@media (max-width: 900px) { .editor.studio { --bottom-h: 52px; } .editor.studio.animating { --bottom-h: clamp(250px, 44vh, 340px); } .layerbar .btn span, .lb-title span { display: none; } }
