/* Menu principal (Início, Modelos, Meus projetos) */
#home{position:fixed;inset:0;z-index:90;background:#04060c;color:var(--tx,#f2f2f2);display:grid;grid-template-columns:232px minmax(0,1fr);grid-template-rows:minmax(0,1fr);font-family:inherit}
#home[hidden]{display:none}
.hnav{display:flex;flex-direction:column;gap:4px;padding:18px 12px;background:#0d0e1d;border-right:1px solid #1c202f}
.hbrand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.6px;font-size:12px;padding:4px 8px 18px;color:#fff}
.hn,.hb{display:flex;align-items:center;gap:12px;background:transparent;border:0;color:#94a6bb;padding:11px 12px;border-radius:10px;font:600 14px inherit;text-align:left;cursor:pointer}
.hn svg,.hb svg{width:22px;height:22px;fill:currentColor;flex:0 0 auto}
.hn:hover,.hb:hover{background:#0d1424;color:#fff}
.hn.on,.hb.on{background:#08111e;color:#1f6bff}
.hn.set{margin-top:auto}
.hbot{display:none}
.hmain{overflow:auto;padding:26px clamp(16px,4vw,48px) 48px;min-width:0}
.hh1{margin:0 0 18px;font-size:26px;font-weight:800;letter-spacing:.2px}
.hhero{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;margin-bottom:18px}
.hcreate{display:flex;align-items:center;gap:20px;text-align:left;border:0;border-radius:20px;padding:28px 30px;min-height:170px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#5aa0ff 0%,#1f6bff 45%,#0066f5 100%);box-shadow:0 10px 36px rgba(31,107,255,.18);transition:transform .15s,box-shadow .15s}
.hcreate:hover{transform:translateY(-2px);box-shadow:0 14px 44px rgba(31,107,255,.3)}
.hcreate:active{transform:scale(.99)}
.hcreate .plus{width:72px;height:72px;border-radius:50%;background:#04060c;display:grid;place-items:center;flex:0 0 auto}
.hcreate .plus svg{width:40px;height:40px;fill:#1f6bff}
.hcreate .ct b{display:block;font-size:28px;font-weight:900;line-height:1.1}
.hcreate .ct small{display:block;margin-top:6px;font-size:14px;font-weight:600;opacity:.75}
.hside{display:grid;gap:14px}
.hmini{display:flex;align-items:center;gap:12px;background:#121524;border:1px solid #222636;border-radius:16px;color:#eee;font:700 15px inherit;padding:0 18px;cursor:pointer}
.hmini:hover{border-color:#1f6bff;color:#1f6bff}
.hmini svg{width:24px;height:24px;fill:currentColor}
.hdraft{display:flex;align-items:center;gap:14px;background:#0a0f17;border:1px solid #001f4a;border-radius:14px;padding:10px 14px;margin-bottom:8px}
.hdraft img{height:56px;width:auto;border-radius:6px;background:#000}
.hdraft .di{flex:1;min-width:0}.hdraft .di b{display:block}.hdraft .di small{color:#4a7fc9;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hsec{margin-top:26px}
.hsh{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.hsh h2{margin:0;font-size:18px;font-weight:800}
.lnk{background:none;border:0;color:#1f6bff;font:700 13px inherit;cursor:pointer;padding:4px 0}
.hrow{display:flex;gap:14px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity}
.hrow .hcard{flex:0 0 168px;scroll-snap-align:start}
.hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:16px}
.hcard{display:flex;flex-direction:column;gap:6px;text-align:left;background:transparent;border:0;color:inherit;padding:0;cursor:pointer;min-width:0;position:relative}
.hcard b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.hcard small{color:#717f91;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.thwrap{position:relative;aspect-ratio:3/4;border-radius:14px;background:#121423;border:1px solid #0d1424;overflow:hidden;display:grid;place-items:center;transition:border-color .15s,transform .15s}
.hcard:hover .thwrap,.hcard:focus-visible .thwrap{border-color:#1f6bff;transform:translateY(-2px)}
.thwrap canvas,.thwrap img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.tthumb{opacity:0;transition:opacity .3s}.tthumb.ready{opacity:1}
.thwrap .ph{width:100%;height:100%;background:repeating-linear-gradient(45deg,#121423,#121423 10px,#161828 10px,#161828 20px)}
.badge{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,.72);color:#fff;font:700 11px inherit;padding:3px 7px;border-radius:6px}
.more{position:absolute;right:6px;top:6px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;display:grid;place-items:center;cursor:pointer}
.more svg{width:18px;height:18px;fill:currentColor}
.pmenu{position:absolute;right:6px;top:40px;z-index:5;background:#161928;border:1px solid #2e3445;border-radius:10px;padding:4px;min-width:130px;box-shadow:0 10px 30px #000}
.pmenu[hidden]{display:none}
.pmenu button{display:block;width:100%;text-align:left;background:none;border:0;color:#eee;padding:9px 10px;border-radius:7px;font:600 13px inherit;cursor:pointer}
.pmenu button:hover{background:#222636}.pmenu button.danger{color:#ff6b6b}
.hempty{grid-column:1/-1;border:1px dashed #1f2a44;border-radius:14px;padding:26px;text-align:center;color:#7a8a9c}
.hempty b{display:block;color:#b1c7de;margin-bottom:4px}
.hbar{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.hbar .hsearch{flex:1;min-width:160px;margin:0}
.hsearch{width:100%;max-width:420px;background:#121423;border:1px solid #222636;border-radius:10px;padding:10px 12px;color:#fff;margin-bottom:12px}
.hchips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;align-items:center}.hchips .sp{width:10px}
.acards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:8px}
.acard{display:flex;flex-direction:column;align-items:center;gap:3px;background:var(--p2,#0d1424);border:2px solid var(--line,#222636);border-radius:12px;padding:14px 8px;color:#eee;cursor:pointer;min-height:132px;justify-content:flex-end}
.acard i{display:block;background:#1f2a44;border:2px solid #525c6b;border-radius:4px;margin-bottom:8px}
.acard.on{border-color:#1f6bff}.acard.on i{background:#1f6bff;border-color:#1f6bff}
.acard b{font-size:16px}.acard small{color:#7a8a9c;font-size:11px;text-align:center}
@media(max-width:860px){
  #home{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
  .hnav{display:none}
  .hbot{display:grid;grid-template-columns:repeat(5,1fr);background:#0d0e1d;border-top:1px solid #1c202f;padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
  .hb{flex-direction:column;gap:3px;font-size:11px;padding:8px 2px;text-align:center;align-items:center;justify-content:center}
  .hmain{padding:16px 14px 24px}
  .hh1{font-size:22px;margin-bottom:14px}
  .hhero{grid-template-columns:1fr}
  .hside{grid-template-columns:1fr 1fr}.hmini{min-height:56px}
  .hcreate{min-height:140px;padding:22px 20px;gap:16px}.hcreate .plus{width:60px;height:60px}.hcreate .ct b{font-size:24px}
  .hgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .hrow .hcard{flex-basis:132px}
  .hdraft{flex-wrap:wrap}
}
@media(max-height:480px) and (orientation:landscape){.hcreate{min-height:100px;padding:14px 18px}.hh1{display:none}}
@media(max-width:860px){.hchips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.hchips .chip{flex:0 0 auto;white-space:nowrap}.hchips .sp{flex:0 0 6px}}

.hcreate .plus.code{width:72px;height:72px}.hcreate .plus.code b{color:#1f6bff;font:800 26px ui-monospace,Consolas,monospace}
.exc{text-align:left}.exn{display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#0a1a3d,#0b0b0e);aspect-ratio:16/9}
.exn .big{font:900 64px/1 system-ui;color:#1f6bff}.exc small{display:block;color:#7b8b9d;margin:3px 0 6px}
.hside{grid-auto-rows:minmax(40px,1fr)}
@media(max-width:900px){.hside{grid-template-columns:1fr 1fr}}
/* modo celular forçado */
html[data-dev="phone"] #home{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
html[data-dev="phone"] .hnav{display:none}
html[data-dev="phone"] .hbot{display:grid;grid-template-columns:repeat(5,1fr);background:#0d0e1d;border-top:1px solid #1c202f;padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
html[data-dev="phone"] .hb{flex-direction:column;gap:3px;font-size:11px;padding:8px 2px;text-align:center;align-items:center;justify-content:center}
html[data-dev="phone"] .hmain{padding:16px 14px 24px}
html[data-dev="phone"] .hh1{font-size:22px;margin-bottom:14px}
html[data-dev="phone"] .hhero{grid-template-columns:1fr}
html[data-dev="phone"] .hside{grid-template-columns:1fr 1fr}
html[data-dev="phone"] .hmini{min-height:56px}
html[data-dev="phone"] .hcreate{min-height:140px;padding:22px 20px;gap:16px}
html[data-dev="phone"] .hcreate .plus{width:60px;height:60px}
html[data-dev="phone"] .hcreate .ct b{font-size:24px}
html[data-dev="phone"] .hgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-dev="phone"] .hrow .hcard{flex-basis:132px}
html[data-dev="phone"] .hdraft{flex-wrap:wrap}
html[data-dev="phone"] .hchips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
html[data-dev="phone"] .hchips .chip{flex:0 0 auto;white-space:nowrap}
html[data-dev="phone"] .hchips .sp{flex:0 0 6px}
html[data-dev="phone"] .hside{grid-template-columns:1fr 1fr}
