/* ══════════════════════════════════════════════════════════════
   ONBOARDING BASTOS — Design system
   Portal do cliente + painel admin · Company Bastos
   Base preta, CTA branco, Space Grotesk (títulos/números) + Inter (texto)
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #060608;
  --surface: #0E0E12;
  --surface-2: #14141A;
  --surface-3: #1B1B23;
  --line: #22222B;
  --line-2: #30303B;
  --text: #F5F5F7;
  --text-2: #A3A3AE;
  --text-3: #6E6E7A;
  --white: #FFFFFF;
  --blue: #4F8CFF;
  --blue-bg: rgba(79,140,255,.12);
  --green: #2FD07A;
  --green-bg: rgba(47,208,122,.12);
  --amber: #F5B23D;
  --amber-bg: rgba(245,178,61,.13);
  --red: #FF5A5F;
  --red-bg: rgba(255,90,95,.13);
  --violet: #A78BFA;
  --violet-bg: rgba(167,139,250,.13);
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --topbar-h: 60px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.muted-text { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══ BOTÕES ══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .25s var(--ease), color .2s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--white); color: #000; }
.btn--primary:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(255,255,255,.16); transform: translateY(-1px); }
.btn--ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover:not(:disabled) { border-color: #4A4A57; background: var(--surface-3); }
.btn--danger { background: var(--red-bg); color: var(--red); border-color: rgba(255,90,95,.3); }
.btn--danger:hover:not(:disabled) { background: var(--red); color: #fff; }
.btn--success { background: var(--green); color: #00150A; }
.btn--success:hover:not(:disabled) { box-shadow: 0 6px 22px rgba(47,208,122,.28); transform: translateY(-1px); }
.btn--sm { height: 36px; padding: 0 13px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--text-2); transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:active { transform: scale(.92); }

/* ══ LOGIN ══ */
.login { min-height: 100dvh; display: grid; background: #000; }
.login__brand { display: none; }
.login__panel { display: flex; flex-direction: column; justify-content: center; padding: 32px 22px; max-width: 440px; width: 100%; margin: 0 auto; }
.login__logo { width: min(260px, 72%); height: auto; margin: 0 auto 40px; }
.login__title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.login__sub { color: var(--text-2); font-size: .92rem; margin: 4px 0 28px; }
.login__error { background: var(--red-bg); color: var(--red); border-radius: var(--r-sm); padding: 10px 12px; font-size: .85rem; margin-bottom: 14px; }
.login__remember { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); margin: 2px 0 20px; cursor: pointer; }
.login__remember input { width: 16px; height: 16px; accent-color: #fff; }
.login__help { margin-top: 18px; font-size: .82rem; color: var(--text-3); text-align: center; }
.login__help a { color: var(--text-2); }
.login__foot { margin-top: 40px; text-align: center; font-size: .72rem; color: #3A3A44; }
@media (min-width: 960px) {
  .login { grid-template-columns: 1.05fr 1fr; }
  .login__brand {
    display: flex; flex-direction: column; justify-content: space-between; padding: 56px;
    background: radial-gradient(120% 90% at 0% 0%, #17171F 0%, #050507 60%); border-right: 1px solid #141419;
  }
  .login__brand-logo { width: 340px; height: auto; }
  .login__brand-copy h1 { font-family: var(--font-head); font-size: 2.6rem; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 460px; }
  .login__brand-copy p { color: var(--text-2); margin-top: 14px; max-width: 420px; }
  .login__feats { display: grid; gap: 14px; margin-top: 36px; }
  .login__feat { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: .92rem; }
  .login__feat i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #111116; border: 1px solid #1F1F27; color: #fff; }
  .login__brand small { color: #3A3A44; font-size: .75rem; }
  .login__logo { display: none; }
}

/* ══ CAMPOS ══ */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field__label { font-size: .78rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.field__hint { font-size: .75rem; color: var(--text-3); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #5A5A68; box-shadow: 0 0 0 4px rgba(255,255,255,.06); background: var(--surface-2); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: .85rem; pointer-events: none; }
.input-icon input { padding-left: 42px !important; }
.input-icon .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-2); cursor: pointer; margin-bottom: 12px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: #fff; flex-shrink: 0; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { padding: 7px 12px; border-radius: 8px; font-size: .82rem; color: var(--text-2); font-weight: 600; transition: background .2s, color .2s; }
.seg button.active { background: var(--surface-3); color: var(--text); }

/* ══ SHELL (app logado) ══ */
.shell { min-height: 100dvh; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(6,6,8,.97); -webkit-
  border-bottom: 1px solid var(--line);
}
.topbar__logo { height: 30px; width: auto; }
.topbar__title { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.topbar__spacer { flex: 1; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, #2A2A35, #17171D); border: 1px solid var(--line-2);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: #fff;
}
.avatar--sm { width: 28px; height: 28px; font-size: .68rem; }
.main { padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 1180px; margin: 0 auto; }
.page { display: none; animation: pageIn .32s var(--ease); }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--text-2); font-size: .9rem; margin-top: 2px; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #0A0A0D; -webkit-
  border-top: 1px solid var(--line);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: .68rem; font-weight: 600; color: var(--text-3); position: relative; transition: color .2s;
}
.nav-item i { font-size: 1.1rem; transition: transform .2s var(--ease); }
.nav-item.active { color: #fff; }
.nav-item.active i { transform: translateY(-1px); }
.nav-item.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: #fff; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: .66rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1;
}
.nav-item .badge { position: absolute; top: 8px; left: calc(50% + 6px); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 252px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
    background: #08080B; border-right: 1px solid var(--line); padding: 34px 16px 18px;
  }
  .sidebar__logo { width: 172px; height: auto; margin: 2px 8px 6px; }
  .sidebar__tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 8px 26px; font-weight: 600; }
  .sidebar__nav { display: grid; gap: 4px; }
  .side-item {
    display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px;
    color: var(--text-2); font-weight: 500; font-size: .92rem; text-align: left; width: 100%;
    transition: background .2s, color .2s, transform .15s;
  }
  .side-item i { width: 18px; text-align: center; font-size: .95rem; }
  .side-item:hover { background: var(--surface-2); color: var(--text); }
  .side-item:active { transform: scale(.98); }
  .side-item.active { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
  .side-item .badge { margin-left: auto; }
  .sidebar__foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
  .sidebar__user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
  .sidebar__user b { display: block; font-size: .86rem; font-weight: 600; }
  .sidebar__user span { display: block; font-size: .74rem; color: var(--text-3); }
  .bottom-nav, .topbar__logo, .topbar .mobile-only { display: none; }
  .topbar { padding: 0 32px; }
  .main { padding: 30px 32px 60px; }
  .page-head h1 { font-size: 1.85rem; }
}

/* ══ CARTÕES / KPIs ══ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card + .card { margin-top: 14px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.card__link { font-size: .82rem; color: var(--text-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; transition: color .2s; }
.card__link:hover { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
button.kpi { text-align: left; width: 100%; }
button.kpi:hover { border-color: var(--line-2); transform: translateY(-2px); }
.kpi__label { font-size: .76rem; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi__value, .kpi__note { display: block; }
.kpi__value { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.kpi__note { font-size: .74rem; color: var(--text-3); margin-top: 4px; }
.kpi--red .kpi__value { color: var(--red); }
.kpi--amber .kpi__value { color: var(--amber); }
.kpi--green .kpi__value { color: var(--green); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.two-col { display: grid; gap: 14px; }
@media (min-width: 1040px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } .two-col .card + .card { margin-top: 0; } }

/* Destaque "precisa de você" */
.attention {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(245,178,61,.14), rgba(245,178,61,.04)); border: 1px solid rgba(245,178,61,.28);
  margin-bottom: 12px; width: 100%; text-align: left; transition: transform .2s var(--ease), border-color .2s;
}
.attention:hover { transform: translateY(-2px); border-color: rgba(245,178,61,.5); }
.attention i.lead { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(245,178,61,.18); color: var(--amber); flex-shrink: 0; }
.attention b { display: block; font-size: .95rem; }
.attention span { font-size: .82rem; color: var(--text-2); }
.attention .chev { margin-left: auto; color: var(--text-3); }

/* ══ STATUS PILLS ══ */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.pill--blue { background: var(--blue-bg); color: var(--blue); }
.pill--green { background: var(--green-bg); color: var(--green); }
.pill--amber { background: var(--amber-bg); color: var(--amber); }
.pill--red { background: var(--red-bg); color: var(--red); }
.pill--violet { background: var(--violet-bg); color: var(--violet); }
.pill--line { background: transparent; border: 1px solid var(--line-2); }

/* ══ LISTAS ══ */
.list { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
button.row:hover, a.row:hover, .row.is-link:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); }
.row__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; font-size: 1rem; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 600; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { font-size: .78rem; color: var(--text-3); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.row--urgent { box-shadow: inset 3px 0 0 var(--red); }
@media (max-width: 640px) {
  .row.ticket { flex-wrap: wrap; }
  .row.ticket .row__side { width: 100%; flex-direction: row; justify-content: flex-start; }
}
.row--risk { box-shadow: inset 3px 0 0 var(--amber); }

.ticket { display: block; }
.ticket__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ticket__title { font-weight: 600; font-size: .96rem; }
.ticket__meta { font-size: .78rem; color: var(--text-3); margin-top: 4px; display: flex; gap: 6px 12px; flex-wrap: wrap; }

.empty { text-align: center; padding: 44px 20px; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty i { font-size: 1.6rem; margin-bottom: 10px; color: var(--text-3); }
.empty b { display: block; color: var(--text-2); font-size: .95rem; margin-bottom: 4px; }
.empty p { font-size: .85rem; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .82rem; font-weight: 600; background: var(--surface); transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); border-color: #4A4A57; }
.chip.active { background: #fff; color: #000; border-color: #fff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .chips { margin: 0; }
.toolbar select.input { width: auto; min-width: 200px; min-height: 38px; padding: 6px 34px 6px 12px; font-size: .85rem; }

.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 3px; background: #fff; transition: width .5s var(--ease); }
.progress--green > span { background: var(--green); }

/* ══ CAMADAS (modal + drawer) ══ */
.layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); -webkit- opacity: 0; transition: opacity .22s; }
.layer__panel {
  position: relative; width: 100%; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px 20px 0 0;
  transform: translateY(24px); opacity: 0; transition: transform .26s var(--ease), opacity .22s;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.layer.open .layer__backdrop { opacity: 1; }
.layer.open .layer__panel { transform: none; opacity: 1; }
.layer__head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.layer__title { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer__body { padding: 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.layer__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); flex-wrap: wrap; }
.layer__foot .btn { flex: 1; }
@media (min-width: 720px) {
  .layer--modal { align-items: center; padding: 24px; }
  .layer--modal .layer__panel { max-width: 560px; border-radius: 20px; transform: translateY(10px) scale(.98); }
  .layer--modal .layer__panel--sm { max-width: 420px; }
  .layer--modal .layer__panel--lg { max-width: 760px; }
  .layer__foot .btn { flex: 0 0 auto; }
  .layer--drawer { justify-content: flex-end; align-items: stretch; }
  .layer--drawer .layer__panel { max-width: 640px; max-height: none; height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; transform: translateX(30px); }
}

/* ══ CONVERSA DO PEDIDO ══ */
.thread { display: grid; gap: 12px; margin: 6px 0 4px; }
.bubble { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bubble small { display: block; font-size: .7rem; color: var(--text-3); margin-top: 6px; white-space: normal; }
.bubble--them { background: var(--surface-3); border-top-left-radius: 4px; justify-self: start; }
.bubble--me { background: #fff; color: #0A0A0A; border-top-right-radius: 4px; justify-self: end; }
.bubble--me small { color: #6A6A75; }
.bubble--note { background: var(--amber-bg); border: 1px dashed rgba(245,178,61,.4); justify-self: end; }
.bubble--note small { color: var(--amber); }
.composer { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.composer textarea { min-height: 84px; }
.composer__opts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 12px; }
.composer__opts .check { margin: 0; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex-shrink: 0; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .76rem; color: var(--text-2); transition: all .2s; }
.quick button:hover { color: #fff; border-color: #4A4A57; }

.timeline { display: grid; gap: 0; margin: 4px 0; }
.timeline__item { display: grid; grid-template-columns: 16px 1fr; gap: 10px; position: relative; padding-bottom: 12px; font-size: .84rem; }
.timeline__item::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline__item:last-child::before { display: none; }
.timeline__item .dot { margin-top: 6px; margin-left: 4px; background: var(--text-3); }
.timeline__item:last-child .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.timeline__item span { color: var(--text-3); font-size: .76rem; margin-left: 6px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.info { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; }
.info small { display: block; font-size: .72rem; color: var(--text-3); margin-bottom: 2px; }
.info b { font-size: .9rem; font-weight: 600; }
.section-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; margin: 18px 0 10px; }
.desc-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; font-size: .9rem; white-space: pre-wrap; color: var(--text-2); }

/* Estrelas (avaliação) */
.stars { display: flex; gap: 6px; justify-content: center; margin: 8px 0 16px; }
.stars button { font-size: 1.9rem; color: var(--line-2); transition: transform .15s, color .15s; }
.stars button:hover { transform: scale(1.12); }
.stars button.on { color: var(--amber); }

/* ══ APROVAÇÕES ══ */
.approval { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s; }
.approval:hover { border-color: var(--line-2); }
.approval__media { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); overflow: hidden; position: relative; }
.approval__media img { width: 100%; height: 100%; object-fit: cover; }
.approval__media i { font-size: 2rem; }
.approval__media .pill { position: absolute; top: 10px; left: 10px; }
.approval__body { padding: 14px 16px 16px; }
.approval__title { font-weight: 600; font-size: .98rem; }
.approval__meta { font-size: .78rem; color: var(--text-3); margin: 4px 0 12px; }
.approval__actions { display: flex; gap: 8px; }
.approval__actions .btn { flex: 1; }
.approvals-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .approvals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .approvals-grid { grid-template-columns: repeat(3, 1fr); } }
.version { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.version__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .85rem; }
.version__preview { border-radius: 10px; overflow: hidden; background: #000; min-height: 80px; display: grid; place-items: center; color: var(--text-3); }
.version__preview img { width: 100%; max-height: 420px; object-fit: contain; }

/* ══ PASTAS / ARQUIVOS ══ */
.folders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 720px) { .folders { grid-template-columns: repeat(4, 1fr); } }
.folder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; text-align: left; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.folder:hover { border-color: var(--line-2); transform: translateY(-2px); }
.folder.active { border-color: #fff; background: var(--surface-2); }
.folder i { font-size: 1.15rem; color: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); margin-bottom: 12px; }
.folder b { display: block; font-size: .9rem; font-weight: 600; }
.folder span { font-size: .76rem; color: var(--text-3); }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 26px 16px; text-align: center; color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.dropzone:hover, .dropzone.drag { border-color: #fff; background: var(--surface-2); }
.dropzone i { font-size: 1.5rem; margin-bottom: 8px; color: var(--text-3); }
.dropzone b { color: var(--text); }
.dropzone small { display: block; color: var(--text-3); margin-top: 4px; font-size: .76rem; }
.dropzone input { display: none; }
.file-picked { font-size: .82rem; color: var(--text-2); margin-top: 8px; }

/* ══ ONBOARDING ══ */
.onb-card { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; }
.onb-ring { width: 64px; height: 64px; flex-shrink: 0; position: relative; }
.onb-ring svg { transform: rotate(-90deg); }
.onb-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: .95rem; }
.onb-group { margin-bottom: 18px; }
.onb-group h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.onb-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 6px; font-size: .9rem; transition: border-color .2s, opacity .2s; }
.onb-item.done { opacity: .62; }
.onb-item.done .onb-text { text-decoration: line-through; text-decoration-color: var(--text-3); }
.onb-item input { width: 19px; height: 19px; accent-color: var(--green); margin-top: 1px; flex-shrink: 0; cursor: pointer; }
.onb-item input:disabled { cursor: default; }
.onb-text { flex: 1; }
.onb-owner { font-size: .68rem; color: var(--text-3); white-space: nowrap; margin-top: 2px; }

/* ══ TABELA (desktop) ══ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 40px; padding: 0 12px; font-size: .85rem; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--text-2); }
.tabs button.active { color: #fff; border-color: #fff; }

.code-box { background: #000; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; font-size: .84rem; white-space: pre-wrap; color: var(--text-2); max-height: 280px; overflow-y: auto; }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cred .info b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .95rem; letter-spacing: .02em; }

/* ══ TOAST ══ */
.toast-host { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 960px) { .toast-host { bottom: 26px; left: auto; right: 26px; transform: none; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 12px; background: #fff; color: #000; font-size: .88rem; font-weight: 500; box-shadow: 0 12px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast--ok i { color: #0A8F4E; }
.toast--error { background: #2A0E10; color: #FFD5D6; border: 1px solid rgba(255,90,95,.4); }
.toast--error i { color: var(--red); }

/* ══ SKELETON ══ */
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.3s infinite; height: 72px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ══ FAB (novo pedido no celular) ══ */
.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 35;
  height: 52px; padding: 0 20px; border-radius: 26px; background: #fff; color: #000; font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .18s var(--ease), box-shadow .25s;
}
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(.95); }
@media (min-width: 960px) { .fab { display: none; } }

/* ══ BANNER INSTALAR APP ══ */
.install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 45; display: none; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: .84rem; }
.install.show { display: flex; animation: pageIn .3s var(--ease); }
.install img { width: 38px; height: 38px; border-radius: 10px; }
.install div { flex: 1; color: var(--text-2); }
.install b { color: var(--text); display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
