:root {
  --bg: #0a0b10;
  --bg-2: #0f1018;
  --panel: #14151f;
  --panel-2: #1a1b27;
  --line: #262838;
  --line-2: #33364a;
  --text: #f2f3f8;
  --muted: #9a9db3;
  --dim: #6c6f86;
  --amber: #ffb547;
  --pink: #ff4f8b;
  --violet: #8b5cff;
  --green: #3ddc97;
  --red: #ff5c6c;
  --grad: linear-gradient(100deg, var(--amber) 0%, var(--pink) 50%, var(--violet) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --font-h: 'Sora', system-ui, sans-serif;
  --font: 'Manrope', system-ui, sans-serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background:
  radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 255, .14), transparent 60%),
  radial-gradient(700px 420px at 10% 110%, rgba(255, 79, 139, .08), transparent 60%),
  var(--bg); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-h); margin: 0; letter-spacing: -.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(12, 13, 20, .7); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 6px 14px rgba(139, 92, 255, .35)); }
.brand b { font-family: var(--font-h); font-size: 17px; line-height: 1.05; display: block; }
.brand span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: .15s; position: relative; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a.active::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav .badge { margin-left: auto; background: var(--grad); color: #111; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.storage-mini { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .4s; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #4a4e68; background: #20222f; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { border: 0; background: var(--grad); color: #160b14; box-shadow: 0 10px 30px -10px rgba(255, 79, 139, .6); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 20px; }
.section { margin-top: 30px; }
.section > h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); outline: none; transition: .15s; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 255, .2); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12.5px; color: var(--dim); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: .15s; }
.chip:hover { color: var(--text); border-color: #4a4e68; }
.chip.on { color: var(--text); border-color: transparent; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 13.5px; }
.seg button svg, .label svg, .chip svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line-2); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch i { width: 42px; height: 24px; border-radius: 24px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--pink); }
.switch input:checked + i::after { left: 21px; }
.switch b { font-weight: 600; font-size: 14px; }
.switch small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 500; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--line-2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--pink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--pink); cursor: pointer; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }
.pill.ok { color: var(--green); border-color: rgba(61, 220, 151, .3); background: rgba(61, 220, 151, .08); }
.pill.err { color: var(--red); border-color: rgba(255, 92, 108, .35); background: rgba(255, 92, 108, .08); }
.pill.run { color: var(--amber); border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); }
.pill.grad { color: #170a14; background: var(--grad); border: 0; }

/* ---------- estúdio ---------- */
.hero { position: relative; overflow: hidden; padding: 30px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.hero p { color: var(--muted); max-width: 560px; margin: 12px 0 20px; line-height: 1.55; }
.hero img { width: 190px; filter: drop-shadow(0 30px 40px rgba(139, 92, 255, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tool { padding: 20px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.tool:hover { transform: translateY(-3px); border-color: #3e4157; box-shadow: var(--shadow); }
.tool::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 79, 139, .16), transparent); opacity: 0; transition: .3s; }
.tool:hover::after { opacity: 1; }
.tool .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); }
.tool .ico svg { width: 22px; height: 22px; stroke: url(#g); }
.tool h3 { font-size: 16.5px; }
.tool p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tool ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tool li { font-size: 11.5px; color: var(--dim); background: var(--bg-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 99px; }
.tool .tag { position: absolute; top: 18px; right: 18px; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty svg { width: 34px; height: 34px; margin-bottom: 8px; opacity: .6; }

/* ---------- criar ---------- */
.create { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { padding: 20px; }
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-h .n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-h); font-weight: 800; font-size: 13px; background: var(--grad); color: #160b14; flex: none; }
.step-h h3 { font-size: 16px; }
.step-h .muted { font-size: 13px; margin-left: auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.drop { position: relative; min-height: 170px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg-2); display: grid; place-items: center; text-align: center; cursor: pointer; transition: .15s; overflow: hidden; padding: 14px; }
.drop:hover, .drop.over { border-color: var(--pink); background: #151622; }
.drop svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--muted); }
.drop b { display: block; font-size: 14px; }
.drop small { color: var(--dim); font-size: 12px; }
.drop.has { border-style: solid; padding: 0; }
.drop.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0, 0, 0, .65); border: 0; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.drop .x svg { width: 15px; height: 15px; margin: 0; color: #fff; }
.drop .cap { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(0, 0, 0, .65); padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.drop .spin { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 11, 16, .7); z-index: 3; }
.audio-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }

.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fmt { padding: 14px 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; text-align: center; transition: .15s; }
.fmt:hover { border-color: #4a4e68; }
.fmt.on { background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.fmt .shape { margin: 0 auto 10px; height: 50px; display: grid; place-items: center; }
.fmt .shape i { display: block; border-radius: 5px; border: 2px solid var(--muted); }
.fmt.on .shape i { border-color: var(--pink); background: rgba(255, 79, 139, .12); }
.fmt b { display: block; font-family: var(--font-h); font-size: 15px; }
.fmt small { display: block; color: var(--dim); font-size: 11.5px; line-height: 1.3; margin-top: 3px; }

.qualities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; }
.q.on { background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.q b { font-family: var(--font-h); font-size: 18px; display: block; }
.q small { color: var(--dim); font-size: 12px; }

.dur { display: flex; align-items: center; gap: 16px; }
.dur output { font-family: var(--font-h); font-weight: 700; font-size: 20px; min-width: 70px; text-align: right; }
.dur-presets { margin-top: 10px; }

.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; padding-right: 4px; }
.voice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; }
.voice.on { border-color: var(--pink); background: rgba(255, 79, 139, .07); }
.voice b { font-size: 13.5px; display: block; }
.voice small { color: var(--dim); font-size: 11.5px; }
.voice .play { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.voice .play svg { width: 13px; height: 13px; }

.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.model { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; }
.model.on { background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.model b { display: block; font-size: 14.5px; }
.model small { color: var(--dim); font-size: 12px; line-height: 1.4; display: block; margin-top: 4px; }

.aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.preview { padding: 18px; }
.frame-wrap { display: grid; place-items: center; height: 380px; background: repeating-conic-gradient(#11121a 0 25%, #0d0e15 0 50%) 0 0 / 22px 22px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.frame { position: relative; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); transition: .3s; display: grid; place-items: center; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .ph { color: var(--dim); text-align: center; padding: 10px; font-size: 12px; }
.frame .ph svg { width: 30px; height: 30px; margin: 0 auto 6px; opacity: .6; }
.frame .capt { position: absolute; left: 8%; right: 8%; bottom: 20%; text-align: center; font-weight: 800; font-family: 'DejaVu Sans', var(--font); font-size: 13px; text-transform: uppercase; color: #fff; text-shadow: 0 0 3px #000, 0 2px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
.frame .capt.yellow { color: #ffe500; }
.frame .rec { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .1em; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 99px; display: flex; align-items: center; gap: 5px; }
.frame .rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.spec { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.spec small { display: block; color: var(--dim); font-size: 11.5px; }
.spec b { font-family: var(--font-h); font-size: 14px; }
.cost { padding: 16px 18px; }
.cost .total { display: flex; align-items: baseline; justify-content: space-between; }
.cost .total b { font-family: var(--font-h); font-size: 24px; }
.cost ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.cost li { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- fila ---------- */
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job { padding: 16px 18px; display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; }
.job .th { width: 74px; height: 74px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.job .th img { width: 100%; height: 100%; object-fit: cover; }
.job .th svg { width: 26px; height: 26px; color: var(--dim); }
.job h4 { font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.job .stage { color: var(--muted); font-size: 13px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .err { color: var(--red); font-size: 13px; margin-top: 5px; }
.job .bar { height: 8px; }
.job .bar > i.anim { background-size: 200% 100%; animation: shimmer 1.6s linear infinite; background-image: linear-gradient(90deg, var(--amber), var(--pink), var(--violet), var(--pink), var(--amber)); }
@keyframes shimmer { to { background-position: -200% 0; } }
.job .acts { display: flex; gap: 6px; }
.job details { grid-column: 2 / -1; font-size: 12.5px; color: var(--dim); }
.job details summary { cursor: pointer; color: var(--muted); }
.job details ol { margin: 8px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; }

/* ---------- biblioteca ---------- */
.lib-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.lib-tools .input { max-width: 320px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.vid { cursor: pointer; overflow: hidden; transition: .2s; }
.vid:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #3e4157; }
.vid .th { position: relative; aspect-ratio: 4 / 5; background: #07070b; overflow: hidden; }
.vid .th img, .vid .th video { width: 100%; height: 100%; object-fit: contain; }
.vid .th .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: .2s; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); }
.vid:hover .th .play { opacity: 1; }
.vid .th .play span { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.vid .th .play svg { width: 20px; height: 20px; color: #111; margin-left: 3px; }
.vid .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.vid .badges .pill { background: rgba(0, 0, 0, .6); border-color: transparent; color: #fff; backdrop-filter: blur(6px); }
.vid .fav { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; cursor: pointer; color: #fff; }
.vid .fav.on { color: var(--amber); }
.vid .fav svg { width: 16px; height: 16px; }
.vid .meta { padding: 12px 14px; }
.vid .meta b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid .meta small { color: var(--dim); font-size: 12px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(4, 4, 8, .78); backdrop-filter: blur(8px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(1060px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); }
.modal.narrow { width: min(520px, 100%); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-h h3 { font-size: 16px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-b { padding: 18px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 20px; }
.viewer video { width: 100%; max-height: 70vh; background: #000; border-radius: 14px; }
.exports { display: flex; flex-direction: column; gap: 8px; }
.exp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.exp b { font-size: 13.5px; display: block; }
.exp small { color: var(--dim); font-size: 12px; }
.exp .btn { margin-left: auto; }
.script-box { white-space: pre-wrap; font-size: 13.5px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 160px; overflow: auto; line-height: 1.5; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: min(420px, 100%); padding: 34px 30px; text-align: center; }
.auth img { width: 120px; margin: -10px auto 6px; filter: drop-shadow(0 20px 30px rgba(139, 92, 255, .4)); }
.auth h1 { font-size: 26px; }
.auth form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; text-align: left; }

/* ---------- configurações ---------- */
.keyrow { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyrow:last-child { border-bottom: 0; }
.keyrow b { display: block; }
.keyrow a { color: var(--violet); font-size: 12.5px; }

/* ---------- toasts / misc ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 360px; font-size: 14px; animation: slide .2s; }
.toast.err { border-color: rgba(255, 92, 108, .5); }
.toast.ok { border-color: rgba(61, 220, 151, .45); }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 181, 71, .07); border: 1px solid rgba(255, 181, 71, .3); color: #ffd99a; font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.mobile-bar { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) { .create { grid-template-columns: 1fr; } .aside { position: static; } .frame-wrap { height: 300px; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(12, 13, 20, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); padding: 6px 8px; border-radius: 10px; font-weight: 700; }
  .mobile-bar a.active { color: var(--text); }
  .mobile-bar svg { width: 21px; height: 21px; }
  .mobile-top { display: flex !important; align-items: center; gap: 10px; margin-bottom: 18px; }
  .main { padding-bottom: 100px; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero img { display: none; }
  .viewer { grid-template-columns: 1fr; }
  .keyrow { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .job { grid-template-columns: 56px 1fr; }
  .job .th { width: 56px; height: 56px; }
  .job .acts { grid-column: 1 / -1; }
  .qualities { grid-template-columns: 1fr; }
}
.mobile-top { display: none; }
.mobile-top img { width: 36px; }
.mobile-top b { font-family: var(--font-h); }
