/* ===== Fontes (arquivos locais, licença OFL) ===== */
@font-face { font-family: "Jakarta"; src: url(/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f2f5f3;
  --card: #ffffff;
  --ink: #0d1a14;
  --ink-2: #33433b;
  --muted: #6b7a72;
  --line: #e3e9e5;
  --line-2: #eef2ef;
  --brand: #12b76a;
  --brand-2: #0e9f6e;
  --brand-ink: #087443;
  --brand-soft: #e3f8ed;
  --grad: linear-gradient(135deg, #22c55e 0%, #10b981 45%, #0ea5a4 100%);
  --mint: #dbf6e8; --lilac: #ebe7fc; --peach: #fde8da; --sky: #e1ecfd;
  --mint-ink: #0b7a4b; --lilac-ink: #5b3fd1; --peach-ink: #c2541b; --sky-ink: #1f5fd1;
  --warn: #b45309; --warn-soft: #fef3e2;
  --danger: #d0362b; --danger-soft: #fdecea;
  --side: #07110d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(13, 26, 20, .04), 0 8px 24px -12px rgba(13, 26, 20, .10);
  --shadow-lg: 0 2px 4px rgba(13, 26, 20, .04), 0 24px 48px -20px rgba(13, 26, 20, .22);
  --display: "Bricolage", "Jakarta", system-ui, sans-serif;
  --text: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.15; font-family: var(--display); letter-spacing: -.02em; }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
code { background: var(--line-2); padding: 2px 7px; border-radius: 7px; font-size: .86em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* ===== Estrutura: menu lateral + conteúdo ===== */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--side); color: #c6d3cc;
  display: flex; flex-direction: column; padding: 20px 14px; overflow: hidden;
  background-image:
    radial-gradient(600px 300px at -10% -10%, rgba(34, 197, 94, .22), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(34, 197, 94, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.brand-mark svg { width: 20px; height: 20px; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #5d6f66; padding: 14px 12px 6px; font-weight: 600; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #b7c5be; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.side nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.side nav a.on { color: #fff; background: linear-gradient(90deg, rgba(34, 197, 94, .22), rgba(34, 197, 94, .04)); box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .25); }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #34d399; box-shadow: 0 0 12px #34d399; }
.side nav a .count { margin-left: auto; font-size: .72rem; background: rgba(255,255,255,.08); padding: 1px 8px; border-radius: 99px; color: #d5e1db; }
.side .spacer { flex: 1; }
.side-user { border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; background: var(--grad); flex: none; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; color: #fff; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: .74rem; color: #7d8f86; }
.side-user button { background: transparent; border: 1px solid rgba(255,255,255,.12); color: #d5e1db; padding: 6px 9px; border-radius: 9px; }
.side-user button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

.main { min-width: 0; background: radial-gradient(900px 260px at 70% -80px, rgba(18, 183, 106, .08), transparent 70%); }
.topbar { height: 60px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.page { max-width: 1120px; margin: 0 auto; padding: 34px 32px 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 0; max-width: 620px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumb:hover { color: var(--ink); text-decoration: none; }

/* ===== Elementos ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #94a39b; flex: none; }
.dot.ok { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
.dot.warn { background: #f59e0b; }
.dot.bad { background: #ef4444; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }

button, .btn { white-space: nowrap; font: inherit; font-weight: 600; font-size: .92rem; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .08s, box-shadow .15s, background .15s, border-color .15s; }
button:hover, .btn:hover { border-color: #c9d3cd; text-decoration: none; box-shadow: var(--shadow); }
button:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(16, 185, 129, .9), inset 0 1px 0 rgba(255,255,255,.25); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.05); box-shadow: 0 12px 26px -10px rgba(16, 185, 129, .95); }
button.danger { color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 7px 10px; }
button.ghost:hover { background: var(--line-2); color: var(--ink); box-shadow: none; }
button:disabled { opacity: .55; cursor: wait; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.hint { font-weight: 400; color: var(--muted); font-size: .83rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18, 183, 106, .14); }
input[type=file] { font: inherit; font-size: .9rem; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
textarea.big { min-height: 360px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; }
.field + .field { margin-top: 16px; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.switch b { display: block; }

/* ===== Início ===== */
.hello { font-size: 2.4rem; }
.hello em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.action { position: relative; border-radius: var(--radius); padding: 22px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s; overflow: hidden; display: block; color: inherit; }
.action:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.action .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.75); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.action h3 { margin-bottom: 4px; font-size: 1.08rem; }
.action p { margin: 0; color: var(--ink-2); font-size: .9rem; opacity: .85; }
.action .go { position: absolute; right: 18px; top: 22px; opacity: .35; transition: opacity .15s, transform .15s; }
.action:hover .go { opacity: .9; transform: translateX(3px); }
.action.mint { background: var(--mint); } .action.mint .ico { color: var(--mint-ink); }
.action.lilac { background: var(--lilac); } .action.lilac .ico { color: var(--lilac-ink); }
.action.peach { background: var(--peach); } .action.peach .ico { color: var(--peach-ink); }
.action.sky { background: var(--sky); } .action.sky .ico { color: var(--sky-ink); }

.stat { padding: 18px 20px; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 500; }
.stat .num { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.stat .sub { font-size: .8rem; color: var(--muted); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; max-width: 46px; border-radius: 9px 9px 4px 4px; background: var(--grad); min-height: 4px; opacity: .9; }
.bars .b.today i { box-shadow: 0 8px 18px -8px rgba(16,185,129,.9); opacity: 1; }
.bars .b span { font-size: .74rem; color: var(--muted); text-transform: capitalize; }
.bars .b small { font-size: .74rem; font-weight: 700; color: var(--ink-2); }

.onboard { background: linear-gradient(135deg, #0b1d15, #0a2a1d 60%, #0d3324); color: #e5f2eb; border: 0; position: relative; overflow: hidden; }
.onboard::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, .35), transparent 65%); }
.onboard h2 { color: #fff; }
.onboard .prog { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 12px 0 18px; }
.onboard .prog i { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #a7f3d0); border-radius: 99px; }
.steps-list { display: grid; gap: 8px; position: relative; z-index: 1; }
.step { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); color: #d7e6de; }
.step:hover { background: rgba(255,255,255,.09); text-decoration: none; }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 1.5px solid rgba(255,255,255,.25); flex: none; }
.step.done .n { background: #34d399; border-color: #34d399; color: #06261a; }
.step.done .t { text-decoration: line-through; opacity: .6; }
.step .t { flex: 1; font-weight: 500; }
.step.next { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .35); color: #fff; }

/* ===== Agentes ===== */
.agent-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; }
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfe9db; }
.agent-card .top { display: flex; align-items: center; gap: 12px; }
.agent-card .ava { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; position: relative; flex: none; }
.agent-card .ava .dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid #fff; width: 13px; height: 13px; }
.agent-card .name { font-weight: 700; font-size: 1.05rem; font-family: var(--display); letter-spacing: -.01em; }
.agent-card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; padding-top: 12px; border-top: 1px solid var(--line-2); }
.agent-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.agent-new { border: 1.5px dashed #cdd8d1; background: transparent; box-shadow: none; display: grid; place-items: center; text-align: center; color: var(--muted); min-height: 168px; cursor: pointer; border-radius: var(--radius); transition: border-color .15s, color .15s, background .15s; }
.agent-new:hover { border-color: var(--brand); color: var(--brand-ink); background: rgba(18,183,106,.04); }

.agent-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.agent-hero .ava { width: 62px; height: 62px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; box-shadow: 0 12px 28px -12px rgba(16,185,129,.9); }
.agent-hero h1 { margin: 0 0 6px; font-size: 1.9rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 22px 0 22px; overflow-x: auto; box-shadow: var(--shadow); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--muted); font-weight: 600; font-size: .9rem; border-radius: 10px; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); background: var(--line-2); text-decoration: none; }
.tabs a.on { color: #fff; background: var(--ink); }
.tabs a.on svg { color: #34d399; }

/* QR */
.qr-box { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.qr-frame { width: 300px; height: 300px; border-radius: 20px; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; place-items: center; text-align: center; color: var(--muted); }
.qr-frame img { width: 100%; height: 100%; border-radius: 10px; }
.qr-frame.ok { background: var(--brand-soft); border-color: #b7ebcf; color: var(--brand-ink); }
ol.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
ol.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
ol.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }

/* Cérebro */
.brain-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.brain-item:last-child { border-bottom: 0; }
.brain-item .kind { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kind.text { background: var(--mint); color: var(--mint-ink); }
.kind.file { background: var(--sky); color: var(--sky-ink); }
.kind.link { background: var(--lilac); color: var(--lilac-ink); }
.brain-item .body { flex: 1; min-width: 0; }
.brain-item .preview { color: var(--muted); font-size: .86rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; }
.meter { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.meter i { min-width: 4px; display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; color: var(--muted); box-shadow: none; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; height: 480px; overflow-y: auto; padding: 18px; border-radius: 16px; background-color: #efeae2; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 16px 16px; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.07); font-size: .94rem; }
.bubble.user { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.bubble.assistant { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble .who { font-size: .74rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 2px; }
.bubble .when { font-size: .7rem; color: var(--muted); text-align: right; margin-top: 2px; }
.typing { align-self: flex-start; color: var(--muted); font-style: italic; font-size: .88rem; }

.conv-layout { display: grid; grid-template-columns: 330px 1fr; gap: 16px; }
.conv-list { max-height: 600px; overflow-y: auto; padding: 8px; }
.conv { padding: 12px; border-radius: 12px; cursor: pointer; display: flex; gap: 11px; align-items: center; }
.conv:hover, .conv.on { background: var(--brand-soft); }
.conv .avatar { width: 38px; height: 38px; font-size: .8rem; }
.conv .txt { min-width: 0; flex: 1; }
.conv .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .p { color: var(--muted); font-size: .83rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); font-size: .9rem; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--danger-soft); color: var(--danger); }
.notice a { color: inherit; text-decoration: underline; font-weight: 600; }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty .big { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.empty .big svg { width: 30px; height: 30px; }
.empty h2 { color: var(--ink); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login .art { background: var(--side); color: #d7e6de; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  background-image: radial-gradient(700px 400px at 0% 0%, rgba(34,197,94,.3), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(14,165,164,.25), transparent 60%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, auto, 18px 18px; }
.login .art h1 { color: #fff; font-size: 3rem; max-width: 520px; }
.login .art h1 em { font-style: normal; background: linear-gradient(90deg, #34d399, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.login .art li { display: flex; gap: 10px; align-items: center; color: #b7c9bf; }
.login .art li svg { color: #34d399; }
.login .form-side { display: grid; place-items: center; padding: 28px; }
.login .box { width: 100%; max-width: 380px; }

/* Janela */
.ar-dialog { border: 0 !important; background: #fff !important; border-radius: 22px !important; width: calc(100% - 40px) !important; max-width: 680px !important;
  height: fit-content !important; min-height: 0 !important; max-height: calc(100vh - 40px) !important; overflow-y: auto !important; padding: 28px !important;
  margin: auto !important; inset: 0 !important; position: fixed !important; transform: none !important; box-shadow: var(--shadow-lg); color: var(--ink); }
.ar-dialog::backdrop { background: rgba(7, 17, 13, .62); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 50; box-shadow: var(--shadow-lg); max-width: 90vw; font-weight: 500; animation: pop .2s; }
.toast.bad { background: var(--danger); }

.mobile-bar { display: none; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .mobile-bar { display: flex; align-items: center; gap: 10px; }
  .topbar { justify-content: space-between; padding: 0 16px; }
  .page { padding: 24px 16px 80px; }
  .qr-box, .conv-layout { grid-template-columns: 1fr; }
  .qr-frame { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; }
  .hello { font-size: 1.8rem; }
}
input[type=checkbox] { accent-color: var(--brand); width: 17px; height: 17px; }

.agent-switch { min-width: 230px; font-weight: 600; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 820px) { .agent-hero { flex-wrap: wrap; } }

/* =====================================================================
   EDIÇÃO CLIENTE — "Meia-noite & Champanhe"
   Ativada com EDICAO=cliente no .env. Mesmo painel, identidade própria.
   ===================================================================== */
.ed-cliente {
  --bg: #f6f4ef; --card: #ffffff; --ink: #141a2e; --ink-2: #3b4159; --muted: #767c8f;
  --line: #e9e5dc; --line-2: #f2efe8;
  --brand: #a8823f; --brand-2: #8f6d31; --brand-ink: #7d5e27; --brand-soft: #f7f0e3;
  --gold: #c9a463; --gold-2: #e3c891; --navy: #141c3a; --navy-2: #24305c;
  --grad: linear-gradient(135deg, #1b2547 0%, #2a3768 100%);
  --mint: #f4efe4; --lilac: #eef0f6; --peach: #f6efe9; --sky: #eef2f7;
  --mint-ink: #7d5e27; --lilac-ink: #2a3768; --peach-ink: #8a5a3a; --sky-ink: #2a4a7a;
  --side: #10162f; --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 26, 46, .04), 0 10px 30px -16px rgba(20, 26, 46, .16);
  --shadow-lg: 0 2px 4px rgba(20, 26, 46, .05), 0 30px 60px -28px rgba(20, 26, 46, .35);
  --display: "Jakarta", system-ui, sans-serif;
}
.ed-cliente h1, .ed-cliente h2, .ed-cliente h3 { font-weight: 700; letter-spacing: -.03em; }
.ed-cliente .eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.ed-cliente .eyebrow.light { color: var(--gold-2); }

/* Menu lateral */
.ed-cliente .side { background: linear-gradient(180deg, #121a37 0%, #0c1127 100%); color: #b9bfd3;
  background-image: radial-gradient(520px 280px at 0% -5%, rgba(201, 164, 99, .20), transparent 62%), linear-gradient(180deg, #121a37 0%, #0c1127 100%); background-size: auto; }
.ed-cliente .brand { font-family: var(--text); font-weight: 700; letter-spacing: -.02em; }
.ed-cliente .brand-mark.mono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: #1b2547; background: linear-gradient(135deg, #f1dcae, #c9a463 55%, #a8823f); box-shadow: 0 6px 18px -8px rgba(201,164,99,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.ed-cliente .side-label { color: #5d6684; }
.ed-cliente .side nav a { color: #aab1c8; }
.ed-cliente .side nav a.on { color: #fff; background: linear-gradient(90deg, rgba(201,164,99,.18), rgba(201,164,99,.03)); box-shadow: inset 0 0 0 1px rgba(201,164,99,.22); }
.ed-cliente .side nav a.on::before { background: var(--gold); box-shadow: 0 0 12px rgba(201,164,99,.9); }
.ed-cliente .side nav a .count { background: rgba(201,164,99,.18); color: #f1dcae; }
.ed-cliente .avatar { background: linear-gradient(135deg, #2a3768, #1b2547); color: #f1dcae; }
.ed-cliente .side-user { border-color: rgba(255,255,255,.07); }
.ed-cliente .main { background: radial-gradient(900px 300px at 80% -120px, rgba(201,164,99,.10), transparent 70%); }
.ed-cliente .topbar { background: rgba(246,244,239,.78); }

/* Botões */
.ed-cliente button.primary, .ed-cliente .btn.primary { box-shadow: 0 10px 22px -12px rgba(27,37,71,.9), inset 0 1px 0 rgba(255,255,255,.15); }
.ed-cliente button.primary:hover, .ed-cliente .btn.primary:hover { box-shadow: 0 14px 28px -12px rgba(27,37,71,.95); }
.ed-cliente button:hover, .ed-cliente .btn:hover { border-color: #d9d2c2; }
.ed-cliente .gold, .ed-cliente button.gold { background: linear-gradient(135deg, #f0d9a8, #c9a463 55%, #b08a4e); color: #1b2547; border: 0; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(201,164,99,.95), inset 0 1px 0 rgba(255,255,255,.45); }
.ed-cliente .gold:hover { filter: brightness(1.04); text-decoration: none; }
.ed-cliente .glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.ed-cliente .glass:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); text-decoration: none; box-shadow: none; }
.ed-cliente .tabs button.on, .ed-cliente .tabs a.on { background: var(--grad); color: #fff; }
.ed-cliente .bars .b i { background: linear-gradient(180deg, #c9a463, #a8823f); }
.ed-cliente .bars .b.today i { background: var(--grad); box-shadow: 0 8px 18px -8px rgba(27,37,71,.8); }
.ed-cliente .hello em { background: none; color: inherit; }

/* Início */
.cl-home .hello { font-size: 2.5rem; margin-bottom: 4px; }
.cl-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 34px 36px; color: #e8ebf5; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: radial-gradient(520px 260px at 100% 0%, rgba(201,164,99,.28), transparent 60%), radial-gradient(400px 220px at 0% 100%, rgba(80,104,190,.30), transparent 60%), linear-gradient(135deg, #141c3a, #1e2a55);
  box-shadow: var(--shadow-lg); }
.cl-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.cl-hero h2 { color: #fff; font-size: 2.1rem; margin: 0 0 6px; }
.cl-hero p { color: #b9c0d8; margin: 0 0 18px; }
.cl-ava { position: relative; width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #f1dcae, #c9a463 50%, #6f5a2e); }
.cl-ava span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: #1b2547; color: #f1dcae; font-weight: 700; font-size: 1.7rem; letter-spacing: .02em; }
.cl-ava .st { position: absolute; right: 4px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #1b2547; }
.st { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa1b5; }
.st.ok { background: #3ddc97; box-shadow: 0 0 0 4px rgba(61,220,151,.18); }
.st.off { background: #f07167; box-shadow: 0 0 0 4px rgba(240,113,103,.18); }
.st.pausa { background: #f4b740; box-shadow: 0 0 0 4px rgba(244,183,64,.18); }
.cl-status { display: flex; align-items: center; gap: 9px; color: #cfd4e6; font-size: .92rem; }
.cl-status .sep { opacity: .4; }
.cl-hero-kpis { display: grid; gap: 14px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.1); min-width: 170px; }
.cl-hero-kpis b { display: block; font-size: 1.9rem; line-height: 1; color: #fff; letter-spacing: -.03em; }
.cl-hero-kpis span { font-size: .78rem; color: #9ea6c2; text-transform: uppercase; letter-spacing: .1em; }
.empty-hero { grid-template-columns: 1fr; padding: 48px; }
.cl-alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #fff7e8; border: 1px solid #f1dfb8; color: #6b4e17; }
.cl-alert:hover { text-decoration: none; box-shadow: var(--shadow); }
.cl-alert span { flex: 1; }
.cl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cl-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s, border-color .2s; display: block; }
.cl-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #e2d6bd; text-decoration: none; }
.cl-tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.cl-tile .tt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.cl-tile .vv { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; }
.cl-tile .ss { font-size: .84rem; color: var(--muted); }
.cl-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.cl-recent { display: flex; flex-direction: column; gap: 4px; }
.cl-recent h3 { margin: 0; }
.cl-conv { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: inherit; }
.cl-conv:hover { background: var(--line-2); text-decoration: none; }
.cl-conv .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-conv .txt b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-conv .txt span { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-conv .when { font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* Login */
.ed-cliente .login .art { background: #10162f;
  background-image: radial-gradient(700px 420px at 0% 0%, rgba(201,164,99,.28), transparent 60%), radial-gradient(520px 320px at 100% 100%, rgba(80,104,190,.30), transparent 60%); background-size: auto; color: #c9cee0; }
.ed-cliente .login .art h1 { font-size: 3.1rem; letter-spacing: -.035em; }
.ed-cliente .login .art h1 em { background: linear-gradient(90deg, #f1dcae, #c9a463); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-cliente .login .art .lead { color: #aab1c8; font-size: 1.05rem; max-width: 460px; margin-top: 16px; }
.ed-cliente .login .art .art-foot { color: #5d6684; }
.ed-cliente .login .form-side { background: var(--bg); }

@media (max-width: 980px) {
  .cl-hero { grid-template-columns: auto 1fr; }
  .cl-hero-kpis { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
  .cl-tiles { grid-template-columns: repeat(2, 1fr); }
  .cl-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cl-hero { grid-template-columns: 1fr; padding: 26px; }
  .cl-tiles { grid-template-columns: 1fr; }
}
.ed-cliente .tabs a.on { background: var(--navy); }
.ed-cliente .tabs a.on svg { color: var(--gold); }
.ed-cliente input:focus, .ed-cliente select:focus, .ed-cliente textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,99,.18); }
.ed-cliente .agent-hero .ava { border-radius: 50%; color: #f1dcae; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c9a463, 0 14px 28px -14px rgba(27,37,71,.8); }
.cl-2 > *, .cl-tiles > * { min-width: 0; }
.cl-status { flex-wrap: wrap; }
@media (max-width: 560px) {
  .cl-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cl-tile { padding: 16px; }
  .cl-tile .ic { margin-bottom: 10px; }
  .cl-tile .vv { font-size: 1.05rem; }
  .cl-tile .ss { display: none; }
  .cl-home .hello { font-size: 2rem; }
  .cl-hero h2 { font-size: 1.8rem; }
  .cl-hero-kpis b { font-size: 1.5rem; }
  .cl-hero-kpis span { font-size: .68rem; letter-spacing: .06em; }
}
/* Logo da edição cliente */
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; flex: none; }
.brand-logo.wide { width: auto; height: auto; max-width: 100%; max-height: 46px; border-radius: 0; }
.brand.has-wide { padding-right: 10px; }
.brand > span { min-width: 0; }
.login .art .brand-logo { width: 46px; height: 46px; }
.login .art .brand-logo.wide { width: auto; height: auto; max-height: 64px; max-width: 280px; }
.brand.mini { padding: 0; font-size: .95rem; color: var(--ink); gap: 8px; }
.brand.mini .brand-logo { width: 28px; height: 28px; }
.brand.mini .brand-logo.wide { width: auto; height: auto; max-height: 30px; max-width: 160px; }
.logo-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.logo-preview { width: 220px; height: 120px; border-radius: 16px; display: grid; place-items: center; padding: 16px; flex: none;
  background: linear-gradient(135deg, #141c3a, #1e2a55); border: 1px solid var(--line); }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview .muted { color: #9ea6c2; }
.logo-tips { line-height: 1.7; }
.brand.mini { background: linear-gradient(135deg, #141c3a, #1e2a55); color: #fff; padding: 5px 12px 5px 6px; border-radius: 12px; }
.brand.mini.has-wide { padding: 6px 12px; }
.login-m-brand { display: none; margin-bottom: 26px; }
@media (max-width: 980px) { .login-m-brand { display: flex; } }
/* Logo horizontal maior no menu (ocupa a largura toda do menu) */
.side .brand.has-wide { padding: 6px 8px 22px; }
.side .brand-logo.wide { width: 100%; max-width: 230px; max-height: 64px; object-fit: contain; object-position: left center; }

/* ===== Configurações: abas e cartões de chave ===== */
.cfg-tabs { margin: 0 0 4px; }
.key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.key-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.key-card.is-on { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.key-head { display: flex; align-items: center; gap: 14px; }
.key-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.key-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.key-txt > span { font-size: .85rem; color: var(--muted); }
.key-status .badge { gap: 5px; }
.key-status code { background: transparent; padding: 0; font-size: .74rem; color: inherit; opacity: .75; }
.key-actions { gap: 8px; }
.key-actions button { padding: 7px 13px; font-size: .86rem; }
.key-form { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.key-form[hidden] { display: none; }
.key-input { display: flex; gap: 8px; }
.key-input input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.how summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--brand-ink); }
.how-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); }
.kind.notion { background: #ececec; color: #191919; }
@media (max-width: 560px) { .key-grid { grid-template-columns: 1fr; } .key-head { flex-wrap: wrap; } .key-status { width: 100%; } }
.key-grid { align-items: start; }
/* Equipe */
.team-row { display: grid; grid-template-columns: auto 1fr auto auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.team-txt { min-width: 0; display: flex; flex-direction: column; }
.team-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-txt span { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.gold-b { background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.login.one { grid-template-columns: 1fr; }
.login-m-brand.show { display: flex; }
@media (max-width: 820px) { .team-row { grid-template-columns: auto 1fr; } .team-row > .badge, .team-row .team-when, .team-row > .row, .team-row > .small { grid-column: 2; justify-self: start; } }
.grid-2 > .field { margin-top: 0; }
/* Logo horizontal + nome do painel pequeno embaixo */
.brand.has-wide { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-sub { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #e3c891; padding-left: 2px; }
.brand.mini .brand-sub { display: none; }
.brand.mini.has-wide { flex-direction: row; }

/* ===== Painel novo: Conhecimento ===== */
.fontes { display: flex; flex-direction: column; gap: 0; }
.fontes > .row:first-child { margin-bottom: 6px; }
.fonte { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.fonte-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.k-text { background: #eef0f6; color: #2a3768; } .k-file { background: #eef2f7; color: #2a4a7a; } .k-link { background: #f4efe4; color: #7d5e27; }
.k-notion { background: #ececec; color: #191919; } .k-drive { background: #e8f0fe; color: #1a73e8; }
.fonte-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fonte-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fonte-txt > span { font-size: .82rem; color: var(--muted); }
.fonte-arquivos summary { cursor: pointer; font-size: .8rem; color: var(--brand-ink); margin-top: 4px; }
.fonte-arquivos ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; }
.fonte-arquivos li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px; background: var(--line-2); border-radius: 8px; }
.fonte-acoes { gap: 2px; flex-wrap: nowrap; }
.seg.mini button { padding: 5px 10px; font-size: .78rem; }
.conexoes { color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.conexoes .ok { color: var(--brand-ink); font-weight: 600; }
.tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tipo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 16px; border-radius: 16px; white-space: normal; height: 100%; }
.tipo:hover { border-color: var(--gold, var(--brand)); transform: translateY(-1px); }
.tipo span { font-weight: 400; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.ar-dialog .fonte-modal { min-width: min(620px, 100%); }
/* Instruções */
.instr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.instr-teste { position: sticky; top: 76px; }
.instr-teste .chat { height: 440px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .86rem; }
.chip.on { background: var(--navy, var(--ink)); color: #fff; border-color: transparent; }
.ed-cliente .chip.on { background: linear-gradient(135deg, #1b2547, #2a3768); color: #f1dcae; }
pre.final { white-space: pre-wrap; font: .84rem/1.55 var(--text); background: var(--line-2); padding: 14px; border-radius: 12px; margin: 10px 0 0; }
/* Início: configuração */
.setup { display: flex; flex-direction: column; gap: 14px; border-color: #e2d6bd; }
.setup-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--line-2); color: var(--muted); font-size: .84rem; font-weight: 600; }
.setup-step:hover { text-decoration: none; background: #ece7db; }
.setup-step .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c9c2b2; display: grid; place-items: center; flex: none; background: #fff; }
.setup-step.ok { color: var(--brand-ink); } .setup-step.ok .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.setup-step.next { background: #fff7e8; color: #6b4e17; box-shadow: inset 0 0 0 1.5px #e3c891; }
.onb-form { display: flex; gap: 10px; margin: 6px 0 22px; max-width: 520px; }
.onb-form input { flex: 1; background: rgba(255,255,255,.95); }
.onb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.onb-step { display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.onb-step.on { background: rgba(201,164,99,.14); border-color: rgba(201,164,99,.4); }
.onb-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: rgba(255,255,255,.1); color: #f1dcae; flex: none; }
.onb-step b { display: block; color: #fff; font-size: .92rem; } .onb-step span { font-size: .8rem; color: #aab1c8; }
@media (max-width: 980px) { .instr { grid-template-columns: 1fr; } .instr-teste { position: static; } .setup-steps { grid-template-columns: repeat(3, 1fr); } .onb-steps { grid-template-columns: 1fr 1fr; } .fonte { grid-template-columns: auto 1fr; } .fonte > .seg, .fonte > .fonte-acoes { grid-column: 2; } }
@media (max-width: 560px) { .setup-steps, .onb-steps { grid-template-columns: 1fr; } .onb-form { flex-direction: column; } }
.instr .seg { display: flex; flex-wrap: nowrap; } .instr .seg button { flex: 1; justify-content: center; }
.fonte { align-items: start; } .fonte > .seg, .fonte > .fonte-acoes { margin-top: 4px; }
