/* Printaí — componentes do modelo "ui_kits/printai". Valores idênticos aos estilos do PrintaiApp.jsx. */
.app { min-height: 100vh; background: var(--ink-950); color: var(--text-1); font-family: var(--font-body); display: flex; flex-direction: column; }
.app-body { flex: 1; min-height: 0; display: flex; }
.topbar { position: sticky; top: 0; z-index: 30; height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: var(--ink-900); border-bottom: 1px solid var(--ink-800); }
.topbar-brand { display: flex; align-items: center; }
.topbar-brand img { height: 30px; width: auto; display: block; }
.topbar-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--ink-500); }
.topbar-sp { flex: 1; }
.topbar-user { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { flex: 1; min-width: 0; display: flex; }
.stripes { background: repeating-linear-gradient(135deg, var(--ink-800), var(--ink-800) 9px, var(--ink-850) 9px, var(--ink-850) 18px); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* barra lateral */
.sb { width: 64px; flex-shrink: 0; background: var(--ink-900); border-right: 1px solid var(--ink-850); display: flex; flex-direction: column; padding: 18px 0; position: sticky; top: 56px; height: calc(100vh - 56px); transition: width .18s ease; overflow: hidden; }
.sb.open { width: 208px; }
.sb-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 0 10px; }
.sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; border: none; cursor: pointer; background: transparent; color: var(--ink-400); white-space: nowrap; text-decoration: none; }
.sb-item:hover { color: var(--ink-200); }
.sb-item.on { background: var(--tint-purple); color: var(--purple-300); }
.sb-item svg { flex-shrink: 0; }
.sb-item span { font-size: var(--text-sm); font-weight: 500; }
.sb-item.on span { font-weight: 600; }
.sb-foot { padding: 0 10px; display: flex; flex-direction: column; gap: 10px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.avatar { width: 26px; height: 26px; border-radius: 99px; background: var(--tint-purple); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--purple-300); flex-shrink: 0; }
.sb-user .who { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sb-toggle { width: 38px; height: 38px; border-radius: 9px; border: none; background: var(--ink-850); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sb:not(.open) .sb-item span, .sb:not(.open) .sb-user .who { display: none; }

/* painéis e gráficos */
.panel { background: var(--ink-900); border-radius: 16px; padding: 24px; }
.panel-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-1); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.panel-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 130px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); }
.bar { width: 100%; max-width: 26px; border-radius: 6px; background: var(--ink-800); }
.bar.today { background: var(--purple-400); }
.bar-d { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-600); }
.donut-row { display: flex; align-items: center; gap: 22px; flex: 1; }
.donut { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.donut > div { width: 60px; height: 60px; border-radius: 50%; background: var(--ink-900); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-1); }
.legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.legend i { width: 7px; height: 7px; border-radius: 99px; }
.legend em { font-style: normal; color: var(--ink-400); }
.legend b { font-family: var(--font-mono); font-weight: 400; color: var(--text-1); margin-left: auto; }

/* início */
.home { flex: 1; min-width: 0; padding: 48px 32px 80px; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--purple-300); margin-bottom: 12px; }
.home h1 { font-size: var(--text-4xl); line-height: 1.1; margin-bottom: 8px; }
.lead { color: var(--ink-400); font-size: var(--text-md); margin-bottom: 36px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 36px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.sec-head b { font-size: var(--text-lg); font-weight: 600; color: var(--text-1); }
.link-btn { background: none; border: none; color: var(--purple-300); font-size: var(--text-sm); cursor: pointer; }
.teasers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.teaser { background: var(--ink-900); border-radius: 14px; overflow: hidden; cursor: pointer; border: none; text-align: left; padding: 0; color: inherit; }
.teaser .th { aspect-ratio: 1.38 / 1; background-size: cover; background-position: center; } /* proporção do print da mesa: aparece inteira, sem cortar */
.teaser .bd { padding: 11px; }
.teaser .t { font-size: var(--text-sm); font-weight: 600; color: var(--text-1); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teaser .s { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; }
.pager button { background: var(--ink-900); border: none; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--text-1); display: flex; align-items: center; justify-content: center; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.queue { width: 280px; flex-shrink: 0; border-left: 1px solid var(--ink-850); padding: 48px 24px 32px; }
.queue > b { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ink-850); cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; color: inherit; }
.q-row i { width: 6px; height: 6px; border-radius: 99px; flex-shrink: 0; }
.q-row .m { flex: 1; min-width: 0; }
.q-row .m b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row .m span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); }
.q-row .tm { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); flex-shrink: 0; }

/* biblioteca */
.lib { flex: 1; min-width: 0; padding: 40px 32px 80px; }
.lib-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.lib-head h1 { font-size: var(--text-3xl); margin: 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--ink-900); border-radius: 10px; padding: 9px 14px; min-width: 260px; }
.search input { flex: 1; background: none; border: none; color: var(--text-1); font-size: var(--text-sm); min-width: 0; }
.spacer { flex: 1; }
.sel-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-600); white-space: nowrap; }
.sel-count.on { color: var(--purple-300); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.chip { font-size: 11.5px; font-family: var(--font-mono); padding: 6px 13px; border-radius: 99px; border: none; cursor: pointer; background: var(--ink-900); color: var(--ink-400); white-space: nowrap; }
.chip.on { background: var(--tint-purple); color: var(--purple-300); }
.chips select { background: var(--ink-900); color: var(--ink-300); border: none; border-radius: 99px; padding: 6px 12px; font-family: var(--font-mono); font-size: 11.5px; }
.feat { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.feat-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.spot { background: var(--ink-900); border-radius: 14px; overflow: hidden; border: 1px solid transparent; }
.spot.sel { border-color: var(--border-brand); }
.spot .im { position: relative; aspect-ratio: 1.38 / 1; background-size: cover; background-position: center; cursor: pointer; }
.spot.big .im { aspect-ratio: 1.38 / 1; }
.feat-side .spot .im { aspect-ratio: 1.38 / 1; }
.spot .ck { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.spot.sel .ck { border-color: var(--purple-400); background: var(--purple-500); }
.spot .pl { position: absolute; bottom: 10px; right: 10px; width: 26px; height: 26px; border-radius: 99px; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.spot .tagbig { position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 10.5px; color: #fff; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 99px; }
.spot .star { position: absolute; top: 10px; right: 10px; color: var(--amber-400); font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.spot .bd { padding: 14px; }
.spot .r1 { margin-bottom: 3px; }
.spot .r1 b { font-size: var(--text-sm); font-weight: 600; color: var(--text-1); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot .r2 { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot .r3 { display: flex; justify-content: space-between; align-items: center; min-height: 24px; gap: 8px; }
.spot .tags { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.spot .tags span { font-family: var(--font-mono); font-size: 10.5px; color: var(--purple-300); white-space: nowrap; }
/* Enviar pro Rodaí: sempre visível e em destaque, não só no hover */
.spot .go { flex-shrink: 0; background: var(--tint-purple); border: 1px solid var(--border-brand); color: var(--purple-300); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: background var(--dur), color var(--dur); }
.spot .go:hover:not(:disabled) { background: var(--purple-500); color: #fff; }
.spot .go:disabled { opacity: .6; cursor: default; }
.spot .go.sent { background: none; border: none; color: var(--ink-500); padding: 5px 0; cursor: default; }
.spot .go.sent img { opacity: .8; }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* botões e selos do design */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); line-height: 1; letter-spacing: var(--ls-tight); padding: .5rem .85rem; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; border: 1px solid transparent; background: var(--brand); color: #fff; box-shadow: var(--glow-purple); transition: background var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out); text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--brand-hover); color: #fff; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.md { font-size: var(--text-base); padding: .7rem 1.15rem; border-radius: var(--radius-md); }
.btn.lg { font-size: var(--text-lg); padding: .95rem 1.6rem; border-radius: var(--radius-md); }
.btn.secondary { background: var(--surface-2); color: var(--text-1); border-color: var(--border-strong); box-shadow: none; }
.btn.secondary:hover:not(:disabled) { background: var(--surface-3); color: var(--text-1); }
.btn.ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--tint-purple); color: var(--text-1); }
.btn.danger { background: var(--danger-bg); color: var(--coral-400); border-color: rgba(244,87,107,.42); box-shadow: none; }
.btn.danger:hover:not(:disabled) { background: rgba(244,87,107,.26); color: var(--coral-300); }
.btn.full { width: 100%; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius-full); line-height: 1; background: var(--tint-neutral); color: var(--text-2); border: 1px solid var(--border-strong); }
.badge.purple { background: var(--tint-purple); color: var(--purple-300); border-color: var(--border-brand); }
.badge.amber { background: var(--tint-amber); color: var(--amber-400); border-color: var(--border-amber); }
.badge.coral { background: var(--tint-coral); color: var(--coral-400); border-color: var(--border-coral); }
.badge.emerald { background: var(--tint-emerald); color: var(--emerald-400); border-color: var(--border-emerald); }

/* visualizar */
.view { flex: 1; min-width: 0; display: flex; }
.view-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 32px 32px 24px; }
.view-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.view-head h1 { font-size: var(--text-2xl); margin: 0; }
.view-tabs { display: flex; gap: 7px; margin-bottom: 12px; }
.stage { position: relative; height: clamp(480px, 74vh, 800px); border-radius: 16px; overflow: hidden; background: var(--ink-900); display: flex; align-items: center; justify-content: center; }
.stage img { max-width: 100%; max-height: 100%; transition: transform .05s linear; user-select: none; -webkit-user-drag: none; }
.stage .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 99px; border: none; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer; }
.stage .nav.l { left: 16px; } .stage .nav.r { right: 16px; }
.stage .zoom { position: absolute; bottom: 14px; right: 16px; background: rgba(0,0,0,.5); border-radius: 99px; padding: 5px 12px; font-family: var(--font-mono); font-size: 11px; color: #fff; }
.strip { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.strip button { width: 46px; height: 30px; flex-shrink: 0; border-radius: 6px; border: 2px solid transparent; cursor: pointer; padding: 0; background-size: cover; background-position: center; }
.strip button.on { border-color: var(--purple-400); }
.meta { width: 300px; flex-shrink: 0; border-left: 1px solid var(--ink-850); padding: 32px 24px; overflow-y: auto; }
.meta-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-850); font-size: 12.5px; }
.meta-row span:first-child { color: var(--ink-500); }
.meta-row span:last-child { color: var(--text-1); font-family: var(--font-mono); text-align: right; word-break: break-word; }
.note-label { font-size: 11px; color: var(--ink-500); margin: 20px 0 8px; }
.note-box { font-size: 13px; color: var(--text-2); background: var(--ink-900); border-radius: 10px; padding: 12px; min-height: 50px; white-space: pre-wrap; }
.note-edit { display: block; width: 100%; box-sizing: border-box; border: 1px solid transparent; font-family: inherit; color: var(--text-1); resize: vertical; }
.note-edit:focus { border-color: var(--border-brand); outline: none; }
.note-edit::placeholder { color: var(--ink-500); }
.tagrow { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tagpill { font-family: var(--font-mono); font-size: 10.5px; color: var(--purple-300); background: var(--tint-purple); padding: 4px 10px; border-radius: 99px; border: none; cursor: pointer; }
.meta-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.meta select, .meta-actions select { width: 100%; background: var(--ink-900); color: var(--text-1); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: var(--text-sm); }
.delivery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* sobre / cliente / vazio */
.about { flex: 1; min-width: 0; max-width: 620px; padding: 64px 32px 80px; }
.about h1 { font-size: var(--text-3xl); line-height: 1.15; margin-bottom: 16px; }
.about p.body { color: var(--text-2); font-size: var(--text-md); line-height: 1.6; margin-bottom: 28px; }
.about .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.about .brand img { height: 38px; }
.about .brand span { font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--ls-tight); color: var(--text-1); }
.pilltag { display: inline-flex; align-items: center; gap: 8px; background: var(--tint-purple); border-radius: 99px; padding: 6px 14px; margin-bottom: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--purple-300); }
.feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.feature .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ink-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature b { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.feature span { font-size: var(--text-sm); color: var(--ink-400); }
.foot-note { display: flex; align-items: center; gap: 12px; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--ink-850); font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.narrow { flex: 1; min-width: 0; max-width: 760px; padding: 48px 32px 80px; }
.narrow h1 { font-size: var(--text-3xl); margin-bottom: 8px; }
.stack { display: grid; gap: 16px; margin-top: 28px; }
.muted { color: var(--ink-400); font-size: var(--text-sm); }
.row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.field { width: 100%; background: var(--ink-900); color: var(--text-1); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: var(--text-base); }
.field:focus { border-color: var(--border-brand); }
textarea.field { resize: vertical; min-height: 76px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.mode { background: var(--ink-850); border: 1px solid transparent; border-radius: 12px; padding: 14px; cursor: pointer; text-align: left; color: var(--text-2); }
.mode b { display: block; color: var(--text-1); font-size: var(--text-sm); margin-bottom: 4px; }
.mode span { font-size: 12px; color: var(--ink-400); }
.mode.on { border-color: var(--border-brand); background: var(--tint-purple); }
.empty { text-align: center; padding: 64px 20px; color: var(--ink-400); }
.empty h2 { font-size: var(--text-xl); color: var(--text-1); margin-bottom: 8px; }
.notice { display: flex; align-items: center; gap: 10px; background: var(--tint-amber); border: 1px solid var(--border-amber); color: var(--amber-300); border-radius: 12px; padding: 12px 16px; font-size: var(--text-sm); margin-bottom: 20px; }
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 50; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast { position: relative; overflow: hidden; pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 12px; background: var(--ink-900); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 12px 12px 12px 14px; box-shadow: var(--shadow-pop); font-size: var(--text-sm); color: var(--text-1); white-space: pre-line; animation: toast-in .18s ease-out; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s; }
.toast-ic { flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--tint-neutral); }
.toast-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.toast-body b { font-weight: 700; }
.toast-act { flex: none; background: none; border: 1px solid var(--border-strong); color: var(--text-1); border-radius: 8px; padding: 5px 10px; font: inherit; font-weight: 600; cursor: pointer; }
.toast-act:hover { background: var(--tint-neutral); }
.toast-x { flex: none; background: none; border: 0; color: var(--ink-400); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; }
.toast-x:hover { color: var(--text-1); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; background: currentColor; opacity: .5; }
.toast.success { border-color: var(--border-emerald); } .toast.success .toast-ic { background: var(--tint-emerald); color: var(--emerald-400); } .toast.success .toast-bar { color: var(--emerald-400); }
.toast.info .toast-ic { background: var(--tint-purple); color: var(--purple-300); } .toast.info .toast-bar { color: var(--purple-400); }
.toast.warn { border-color: var(--border-amber); } .toast.warn .toast-ic { background: var(--tint-amber); color: var(--amber-400); } .toast.warn .toast-bar { color: var(--amber-400); }
.toast.error, .toast.err { border-color: var(--border-coral); } .toast.error .toast-ic { background: var(--tint-coral); color: var(--coral-400); } .toast.error .toast-bar { color: var(--coral-400); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.out { transition: none; } .toast-bar { display: none; } }

/* entrar / cadastro */
.auth-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px 80px; padding: 32px 16px; background: radial-gradient(900px 500px at 50% -10%, rgba(110,86,227,.18), transparent 60%), var(--ink-950); }
.auth-card { width: 100%; max-width: 420px; min-width: 0; flex: none; background: var(--ink-900); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-card); }

/* Painel de marca ao lado do cartão: some no celular (o cartão fica sozinho, como antes). Serve de mini-landing
   enquanto não existe uma página de produto própria. */
.auth-hero { display: none; max-width: 400px; }
@media (min-width: 980px) { .auth-hero { display: block; } .auth-card .auth-brand { display: none; } }
.auth-hero img { height: 76px; margin-bottom: 30px; }
.auth-hero h2 { font-size: var(--text-3xl); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin-bottom: 16px; }
.auth-hero > p { color: var(--ink-300); font-size: var(--text-base); line-height: var(--lh-relaxed); margin-bottom: 36px; max-width: 360px; }
.auth-hero-feats { display: grid; gap: 18px; }
.auth-hero-feat { display: flex; align-items: flex-start; gap: 14px; }
.auth-hero-feat .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tint-purple); display: grid; place-items: center; }
.auth-hero-feat b { display: block; color: var(--text-1); font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; }
.auth-hero-feat span { display: block; color: var(--ink-400); font-size: 12.5px; line-height: 1.5; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand img { height: 34px; }
.auth-brand span { font-size: var(--text-xl); font-weight: 700; letter-spacing: var(--ls-tight); color: var(--text-1); }
.auth-card h1 { font-size: var(--text-2xl); margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-400); font-size: var(--text-sm); margin-bottom: 24px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-size: 12px; color: var(--ink-300); font-weight: 500; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--ink-400); font-size: 12px; cursor: pointer; padding: 6px 8px; }
.auth-err { display: none; background: var(--danger-bg); border: 1px solid rgba(244,87,107,.42); color: var(--coral-300); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.auth-err.show { display: block; }
.auth-ok { background: var(--tint-emerald); border: 1px solid var(--border-emerald); color: var(--emerald-300); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-500); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--ls-wider); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--ink-800); }
.auth-alt { display: grid; gap: 10px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: var(--text-sm); color: var(--ink-400); }
.auth-form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-300); line-height: 1.45; }
.auth-form label.check input { margin-top: 3px; accent-color: var(--purple-500); }
.privacy { font-size: 12px; color: var(--ink-500); line-height: 1.5; margin-top: 18px; }

@media (max-width: 980px) {
  .queue { display: none; }
  .grid-2, .feat { grid-template-columns: 1fr; }
  .view { flex-direction: column; }
  .meta { width: auto; border-left: none; border-top: 1px solid var(--ink-850); }
  .home, .lib { padding: 28px 18px 60px; }
}
@media (max-width: 640px) {
  .sb { display: none; }
  .app-body { flex-direction: column; }
  .topbar-user, .topbar-tag { display: none; }
  .mobile-nav { display: flex !important; }
}
.mobile-nav { display: none; position: sticky; top: 0; z-index: 20; background: var(--ink-900); border-bottom: 1px solid var(--ink-850); padding: 8px 10px; gap: 4px; overflow-x: auto; }

/* Visualizar: modelo com a lista "Todos os spots" à direita */
.meta-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mcard { background: var(--ink-900); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcard span { font-size: 11.5px; color: var(--ink-500); }
.mcard b { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-base); color: var(--text-1); overflow-wrap: anywhere; }
.under { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 18px; align-items: start; }
.under .meta-actions { margin-top: 0; }
.strip.thumbs button { width: 112px; height: auto; flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--ink-900); cursor: pointer; display: flex; flex-direction: column; overflow: hidden; }
.strip.thumbs button.on { border-color: var(--purple-400); }
.th-img { display: block; width: 100%; height: 64px; background-size: cover; background-position: center; }
.th-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--ink-300); padding: 5px 0; text-align: center; }
.strip.thumbs button.on .th-label { color: var(--purple-300); }
.rail { width: 380px; flex-shrink: 0; border-left: 1px solid var(--ink-850); padding: 22px 16px; overflow-y: auto; position: sticky; top: 56px; height: calc(100vh - 56px); }
.rail.shut { width: 64px; padding: 22px 10px; }
.rail.shut .rail-title, .rail.shut .rail-list { display: none; }
.rail.shut .rail-head { justify-content: center; }
.rail.shut .rail-toggle svg { transform: rotate(180deg); }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.rail-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--text-1); }
.rail-toggle { width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--ink-850); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rail-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; border: none; background: transparent; cursor: pointer; text-align: left; }
.rail-row:hover { background: var(--ink-900); }
.rail-row.on { background: var(--tint-purple); }
.rail-row .dot { width: 7px; height: 7px; border-radius: 99px; flex-shrink: 0; }
.rr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rr-main b { font-size: var(--text-sm); font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-main i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); }
.rr-time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
@media (max-width: 980px) {
  .mgrid { grid-template-columns: repeat(2, 1fr); }
  .under { grid-template-columns: 1fr; }
  .rail { width: auto; position: static; height: auto; border-left: none; border-top: 1px solid var(--ink-850); }
}

/* Visualizar cabe inteira na altura da tela: miniaturas à esquerda, imagem no tamanho que sobra, dados embaixo */
.rail { width: 320px; }
.view-main.fit { height: calc(100vh - 56px); padding: 18px 28px; overflow: hidden; gap: 12px; }
.fit .view-head { margin-bottom: 0; flex-shrink: 0; flex-wrap: nowrap; }
.fit .view-head h1 { font-size: var(--text-xl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vh-r { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.vbody { flex: 1; min-height: 0; display: flex; gap: 14px; justify-content: center; }
.vbody .strip.thumbs { flex-direction: column; margin: 0; padding: 2px 2px 2px 0; width: 116px; flex-shrink: 0; overflow-y: auto; overflow-x: hidden; }
.vbody .stage { flex: 0 1 auto; height: 100%; aspect-ratio: 1.38 / 1; max-width: calc(100% - 130px); min-width: 0; }
.vinfo { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
/* Duas linhas fixas em vez de cada cartão quebrar o texto: Torneio sozinho numa linha larga (nome
   sem aperto), Sala/Mão/Lobbies/Horário/Replay na linha de baixo. */
.fit .mgrid { display: flex; flex-direction: column; gap: 10px; }
.fit .mgrid-row { display: grid; grid-template-columns: 0.9fr 1.3fr 0.7fr 1.3fr 0.8fr; gap: 10px; }
.fit .mgrid-row.wide { display: block; }
.fit .mcard { padding: 8px 12px; gap: 2px; }
.fit .mcard span { font-size: 10.5px; }
.fit .mcard b { font-size: 13px; white-space: normal; overflow: hidden; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fit .under { grid-template-columns: 1fr auto; gap: 16px; margin-top: 0; align-items: start; }
.fit .note-box { padding: 10px 14px; font-size: 13px; max-height: 64px; overflow: hidden; }
/* Ações em 2x2 (em vez de uma fileira só): fica mais estreito, sobrando largura pra nota ao lado. */
.fit .meta-actions.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px; align-items: center; margin: 0; }
.fit .meta-actions select { width: auto; min-width: 150px; }
@media (max-width: 980px) {
  .view-main.fit { height: auto; overflow: visible; }
  .vbody { flex-direction: column; min-height: auto; }
  .vbody .stage { height: auto; width: 100%; max-width: 100%; }
  .vbody .strip.thumbs { flex-direction: row; width: auto; overflow-x: auto; overflow-y: hidden; }
  .fit .mgrid-row { grid-template-columns: repeat(2, 1fr); }
  .fit .under { grid-template-columns: 1fr; }
  .fit .meta-actions.grid2 { justify-content: flex-start; }
}

/* Biblioteca: grade uniforme de cartões menores (a mesa aparece inteira, sem cartão gigante de destaque) */
.lib { padding: 28px 28px 60px; }
.lib-head { margin-bottom: 18px; }
.lib-head h1 { font-size: var(--text-2xl); }
.chips { margin-bottom: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.spot .bd { padding: 11px 13px; }
.spot .r1 b { font-size: 12.5px; }

/* Marca do Rodaí no cartão da biblioteca (spot já enviado ao chat) */
.spot .rm { position: absolute; bottom: 10px; left: 10px; width: 24px; height: 24px; padding: 3px; border-radius: 99px; background: rgba(0,0,0,.55); }

/* Visualizar: rodapé de informações maior (cartões e nota com bastante espaço) */
.vinfo { gap: 14px; }
.fit .mgrid { gap: 12px; }
.fit .mcard { padding: 16px 18px; gap: 6px; border-radius: 14px; }
.fit .mcard span { font-size: 12px; }
.fit .mcard b { font-size: 15px; }
.fit .under { gap: 18px; align-items: stretch; }
.fit .note-box { min-height: 104px; max-height: 190px; padding: 16px 18px; font-size: 14px; line-height: 1.5; overflow-y: auto; border-radius: 14px; }
.fit .tagrow { margin-top: 10px; }
.fit .meta-actions { align-self: start; }

/* Coluna de status: bolinha, ou o ícone do Rodaí (2x) quando o spot já foi ao chat */
.smark { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.smark i { width: 7px; height: 7px; border-radius: 99px; display: block; }
.smark img { display: block; }
.rail-row { gap: 10px; padding: 9px 12px; }

/* diálogo e menu */
.dlg-back { position: fixed; inset: 0; background: rgba(6, 5, 12, .62); display: grid; place-items: center; z-index: 60; padding: 16px; }
.dlg { width: min(420px, 100%); background: var(--ink-900); border: 1px solid var(--border-strong); border-radius: var(--radius-lg, 16px); padding: 22px; box-shadow: var(--shadow-pop); display: grid; gap: 12px; }
.dlg h2 { font-size: var(--text-lg, 18px); }
.dlg p { color: var(--ink-400); font-size: var(--text-sm); }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.pop { position: fixed; z-index: 55; min-width: 190px; max-height: 320px; overflow: auto; background: var(--ink-900); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-pop); display: grid; }
.pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.pop-item { text-align: left; background: none; border: 0; color: var(--text-1); font: inherit; font-size: var(--text-sm); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pop-item:hover, .pop-item:focus-visible { background: var(--tint-neutral); outline: 0; }
.pop-item.danger { color: var(--coral-300); }

/* faixa de pastas */
.folders { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; background: var(--ink-900); border: 1px solid var(--border); border-radius: 14px; }
.folders-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; margin-right: 4px; }
.fpill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--ink-800, transparent); color: var(--text-2); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.fpill:hover { border-color: var(--border-strong); color: var(--text-1); }
.fpill.on { border-color: var(--border-brand); background: var(--tint-purple); color: var(--text-1); }
.fpill.drop { border-color: var(--emerald-400); background: var(--tint-emerald); }
.fpill svg { flex: none; }
.fpill .n { font-size: 12px; color: var(--ink-400); }
.fpill .mo { border: 0; background: none; color: var(--ink-400); cursor: pointer; padding: 0 4px; border-radius: 6px; font-size: 16px; line-height: 1; }
.fpill .mo:hover { color: var(--text-1); background: var(--tint-neutral); }
.fnew { border-style: dashed; color: var(--purple-300); padding-right: 12px; }
.spot[draggable="true"] { cursor: grab; }
.spot.drag { opacity: .45; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fhint { width: 100%; color: var(--ink-500); font-size: 12px; }
.folder-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* página pública de spot compartilhado */
.share-page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 48px; display: grid; gap: 12px; align-content: start; }
.share-stage { background: var(--ink-900); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.share-img { max-width: 100%; height: auto; display: block; }
.share-foot a { color: var(--purple-300); }
.share-box { display: grid; gap: 10px; }
.share-box select { width: 100%; background: var(--ink-900); color: var(--text-1); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: var(--text-sm); }

/* onboarding */
.tour { text-align: left; }
.tour-body { display: grid; gap: 12px; }
.tour-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--tint-purple); display: grid; place-items: center; }
.tour h2 { font-size: var(--text-xl); }
.tour p { font-size: var(--text-base); line-height: 1.5; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--ink-700, var(--border-strong)); }
.tour-dots i.on { background: var(--purple-400); width: 20px; }
.checklist { display: grid; gap: 12px; margin-bottom: 20px; }
.ck-row { display: flex; gap: 12px; align-items: flex-start; }
.ck-row b { display: block; font-size: var(--text-sm); }
.ck-row span:not(.ck-dot) { color: var(--ink-400); font-size: 12px; }
.ck-dot { flex: none; width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; margin-top: 1px; }
.ck-row.done .ck-dot { background: var(--emerald-500); border-color: var(--emerald-500); }
.ck-row.done b { color: var(--ink-400); text-decoration: line-through; }

/* conta */
.conta { display: grid; gap: 16px; max-width: 700px; flex: 1; min-width: 0; padding: 32px 32px 60px; align-content: start; }
.conta-title { font-size: var(--text-2xl); margin-bottom: 4px; }
.conta-grid { display: grid; gap: 14px; }
.conta-field { display: grid; gap: 6px; font-size: var(--text-sm); color: var(--ink-400); }
.conta-field .pw { position: relative; }
.conta-field .pw input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--purple-300); font: inherit; font-size: 12px; cursor: pointer; padding: 6px; }
.conta-email { display: flex; align-items: center; gap: 10px; }
.conta-email .field { flex: 1; color: var(--ink-400); }
.conta-msg { min-height: 20px; margin-top: 10px; font-size: var(--text-sm); color: var(--ink-400); }
.conta-msg.err { color: var(--coral-300); }
a.topbar-user, a.sb-user { color: inherit; text-decoration: none; }
a.topbar-user:hover { color: var(--text-1); }

/* submenu de pastas na lateral */
.sb-nav { overflow-y: auto; }
.sb-subs { display: grid; gap: 2px; margin: -1px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--ink-800); }
.sb-subs:empty { display: none; }
.sb-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 0; background: none; color: var(--ink-400); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; white-space: nowrap; }
.sb-sub .t { overflow: hidden; text-overflow: ellipsis; }
.sb-sub .n { color: var(--ink-500); font-size: 11.5px; flex: none; }
.sb-sub:hover { color: var(--ink-200); }
.sb-sub.on { background: var(--tint-purple); color: var(--purple-300); }
.sb:not(.open) .sb-subs { display: none; }
.sb-subs.collapsed { display: none; }
.sb-lib { position: relative; display: flex; }
.sb-lib .sb-item { flex: 1; }
.sb-lib-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.sb-lib-toggle:hover { background: var(--ink-800); }
.sb-lib-toggle svg { transition: transform .15s; }
.sb-lib-toggle.collapsed svg { transform: rotate(-90deg); }
.sb:not(.open) .sb-lib-toggle { display: none; }
.folders .btn { flex: none; box-shadow: 0 0 0 3px var(--tint-purple); }
