/* Telas específicas: painéis, projeto, etapas, checklist, conversa, arquivos, gráficos, propostas. */

/* ---------- utilitários ---------- */
.pad-x { padding-left: 20px; padding-right: 20px; }
.pad-top { padding-top: 16px; }
.stack-sm { display: grid; gap: 12px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.w-120 { width: 120px; }
.text-bad { color: var(--bad) !important; }
.flip-y .ic { transform: rotate(180deg); }
.grid-2.align-start { align-items: start; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.mini-title { margin: 16px 0 8px; font-size: 14px; }
.card-link { font-size: 13.5px; font-weight: 650; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.checks { display: grid; gap: 8px; margin: 4px 0 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--ok); margin-top: 3px; }
.important { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.important strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13.5px; }
.important p { margin: 0; }
.secret { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--gold-3); font: 600 15px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; user-select: all; }
.late-tag, .due-tag { flex: none; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.late-tag { background: var(--bad-soft); color: var(--bad); }
.due-tag { background: var(--surface-3); color: var(--muted); }
.is-late { color: var(--bad) !important; }
.sec-title { margin: 6px 0 12px; }
.sec-title h2 { font-size: 18px; }
.sec-title a { font-size: 13.5px; font-weight: 650; }
.status-select { width: auto; min-width: 210px; min-height: 42px; font-weight: 600; }
input.color { padding: 4px; width: 90px; height: 44px; cursor: pointer; }
.svc-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); }
.thumb { width: 48px; height: 34px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex: none; }

/* ---------- listas ---------- */
.list-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-decoration: none; text-align: left; }
.list > li:last-child > .list-item { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item.compact { padding: 0; border: 0; }
.list-item.compact:hover { background: none; text-decoration: underline; }
.list-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-text strong { color: var(--ink); font-size: 14.5px; }
.list-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .list-item.is-waiting { background: #fffbef; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.inbox-meta small { color: var(--faint); font-size: 12px; }
.mini-list { display: grid; }
.mini-list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mini-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list > li:first-child { padding-top: 0; }
.mini-list strong { display: block; color: var(--ink); font-size: 14px; }
.mini-list small { display: block; color: var(--muted); font-size: 12.5px; }
.mini-list .t-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mini-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
.mini-link:hover strong { text-decoration: underline; }
.mini-msg { display: flex; gap: 10px; color: inherit; text-decoration: none; width: 100%; }
.mini-msg p { margin: 2px 0; font-size: 13.5px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-msg:hover strong { text-decoration: underline; }
.notes { display: grid; gap: 10px; margin-top: 14px; }
.notes li { position: relative; padding: 12px 44px 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.notes p { margin: 0 0 4px; }
.notes small { color: var(--faint); font-size: 12px; }
.notes .icon-btn { position: absolute; top: 6px; right: 6px; }

/* ---------- portal do cliente: início ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.todo { display: grid; gap: 8px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #f0dfae; background: #fffaf0; color: inherit; text-decoration: none; transition: border-color .2s, transform .15s; }
.todo-item:hover { border-color: var(--gold-2); transform: translateY(-1px); }
.todo-item.is-bad { border-color: #f3c2bc; background: #fff6f5; }
.todo-item.is-bad .todo-ic { background: var(--bad-soft); color: var(--bad); }
.todo-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--gold-soft); color: var(--gold-ink); }
.todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.todo-text strong { color: var(--ink); font-size: 15px; }
.todo-text small { color: var(--muted); font-size: 13px; }
.proj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.proj-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow-1); transition: border-color .2s, box-shadow .2s, transform .2s; }
.proj-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.proj-card h3 { font-size: 18px; line-height: 1.25; }
.proj-type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.proj-next { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.proj-next > div { flex: 1 1 100px; min-width: 0; }
.proj-next small, .now-next small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.proj-next strong { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.proj-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 700; font-size: 14px; }

/* ---------- painel do administrador ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 20px; margin-bottom: 22px; align-items: stretch; }
.welcome-text { padding: 8px 0; }
.welcome-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; margin: 4px 0 10px; }
.cta-gold { position: relative; overflow: hidden; padding: 22px 24px; border-radius: 20px; background: var(--grad-gold); color: #1a1206; box-shadow: 0 18px 40px -22px rgba(195, 143, 40, .9); isolation: isolate; }
.cta-gold strong { display: block; font-size: 22px; letter-spacing: -.01em; margin-bottom: 6px; }
.cta-gold p { margin: 0 0 16px; max-width: 32ch; font-size: 14.5px; color: #3b2a0c; }
.cta-gold .btn-ghost { color: #1a1206; }
.cta-gold .btn-ghost:hover { background: rgba(255, 255, 255, .3); }
.cta-gold-art { position: absolute; right: -46px; bottom: -58px; z-index: -1; width: 190px; height: 170px; opacity: .28;
  background: url(/assets/img/cham-s.webp?v=af216600cd) center / contain no-repeat; filter: brightness(1.25) saturate(.8); transform: rotate(-8deg); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pipe-col { min-width: 0; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pipe-col header { display: flex; align-items: center; gap: 8px; }
.pipe-col header strong { font-size: 14px; color: var(--ink); flex: 1; }
.pipe-dot { width: 9px; height: 9px; border-radius: 50%; }
.pipe-start { background: #d9a53a; } .pipe-design { background: #7b62c9; } .pipe-build { background: #2f74c9; } .pipe-launch { background: #1c8a50; }
.pipe-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 750; line-height: 22px; text-align: center; }
.pipe-hint { margin: 2px 0 10px; font-size: 12px; color: var(--faint); }
.pipe-col ul { display: grid; gap: 8px; }
.pipe-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pipe-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow-2); }
.pipe-card.is-mine { border-left: 3px solid var(--gold-2); }
.pipe-text { display: flex; flex-direction: column; min-width: 0; }
.pipe-text strong { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipe-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipe-meta { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pipe-meta .badge { font-size: 11.5px; padding: 2px 8px; }
.pipe-more { display: block; padding: 6px 10px; font-size: 13px; font-weight: 650; text-decoration: none; }
.pipe-empty { font-size: 13px; color: var(--faint); padding: 6px 2px; }
.agenda-mini { display: grid; gap: 10px; }
.agenda-mini li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.agenda-mini li.is-mine .am-date { background: var(--ink); color: #fff; }
.agenda-mini li.is-mine .am-date span { color: var(--gold-3); }
.am-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 52px; flex: none; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.am-date strong { font-size: 13px; text-transform: capitalize; }
.am-date span { font-size: 12px; font-weight: 700; }
.am-text { flex: 1; min-width: 0; }
.am-text strong { display: block; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-text small { color: var(--muted); font-size: 12.5px; }
.feed { display: grid; gap: 0; }
.feed > li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed > li:last-child { border-bottom: 0; }
.feed a { color: var(--text); text-decoration: none; }
.feed a:hover { color: var(--ink); text-decoration: underline; }
.feed small { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.feed-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--surface-3); color: var(--muted); }
.tone-line-ok .feed-ic { background: var(--ok-soft); color: var(--ok); }
.tone-line-bad .feed-ic { background: var(--bad-soft); color: var(--bad); }
.feed-full > li { padding: 14px 20px; }
.feed-body { flex: 1; min-width: 0; }
.diff { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 12.5px; }
.diff-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.diff-row strong { min-width: 120px; color: var(--muted); font-weight: 650; }
.diff-old { color: var(--bad); text-decoration: line-through; overflow-wrap: anywhere; }
.diff-new { color: var(--ok); overflow-wrap: anywhere; }
.diff pre { margin: 0; white-space: pre-wrap; font-size: 12px; max-height: 260px; overflow: auto; }

/* ---------- gráficos ---------- */
.chart { margin: 0; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .tick { fill: var(--faint); font: 500 11px var(--font); }
.chart-svg .lbl { fill: var(--text); font: 600 12.5px var(--font); }
.chart-svg .lbl.is-hover { fill: var(--ink); }
.chart-svg .val { fill: var(--ink); font: 700 12px var(--font); }
.chart-svg .bar { fill: #a97b1e; transition: opacity .15s; }
.chart-svg g:hover .bar, .chart-svg .bar.is-hover { fill: #8a6415; }
.chart-svg .hit { fill: transparent; cursor: pointer; }
.chart-svg .tip rect { fill: var(--ink); }
.chart-svg .tip text { fill: #fff; font: 600 12px var(--font); }

/* ---------- página do projeto ---------- */
.head-badges { margin-top: 10px; gap: 8px; }
.head-progress { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.mini-bar { width: 90px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--grad-gold); }
.now-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 20px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.now-next strong { display: block; font-size: 15px; color: var(--ink); margin-top: 2px; }
.now-next span { font-size: 12.5px; color: var(--muted); }

/* linha do tempo das etapas */
.stepper { position: relative; display: grid; gap: 0; }
.step { position: relative; display: flex; gap: 14px; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); color: var(--faint); }
.step.is-done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-in_progress .step-dot { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 5px rgba(224, 178, 74, .18); }
.step.is-next .step-dot { border-color: var(--gold-2); }
.step-body { display: flex; flex-direction: column; min-width: 0; }
.step-body strong { color: var(--ink); font-size: 14.5px; }
.step-body span { font-size: 12.5px; color: var(--muted); }
.step.is-in_progress .step-body span { color: var(--gold-ink); font-weight: 650; }
.step-body small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.stepper-v .step { padding-bottom: 20px; }
.stepper-v .step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line-2); }
.stepper-v .step.is-done:not(:last-child)::before { background: var(--ok); }
.stepper-v .step-body { padding-top: 4px; }
.stepper-h { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.stepper-h .step { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 4px; }
.stepper-h .step:not(:last-child)::before { content: ""; position: absolute; top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px); height: 2px; background: var(--line-2); }
.stepper-h .step.is-done:not(:last-child)::before { background: var(--ok); }
.stepper-h .step-body strong { font-size: 13px; }
.stepper-h .step-body span { font-size: 11.5px; }

/* editor de etapas */
.stage-edit { display: grid; gap: 8px; }
.stage-edit > li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.se-num { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; font-size: 12px; font-weight: 800; }
.se-name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-status { width: 150px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; }
.se-actions { display: flex; gap: 2px; }
.stage-edit > li.se-add { background: none; border-style: dashed; }
.se-add form { flex: 1; display: flex; gap: 8px; }
.se-add .input { min-height: 40px; }

/* checklist */
.cl-group { margin-top: 14px; }
.cl-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cl-title span { margin-left: 4px; color: var(--muted); }
.checklist { display: grid; gap: 2px; }
.cl-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.cl-item:hover { background: var(--surface-2); }
.cl-check { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--faint); }
.cl-check:not(:disabled):hover { background: var(--gold-soft); color: var(--gold-ink); }
.cl-check:disabled { cursor: default; }
.cl-item.is-done .cl-check { color: var(--ok); }
.cl-item.is-in_progress .cl-check { color: var(--gold); }
.cl-body { flex: 1; min-width: 0; padding-top: 4px; }
.cl-text { display: block; font-size: 14.5px; color: var(--ink); text-decoration: none; }
a.cl-text:hover { text-decoration: underline; }
.cl-item.is-done .cl-text { color: var(--faint); text-decoration: line-through; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.cl-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.cl-meta .badge { font-size: 11.5px; padding: 1px 8px; }
.cl-actions { display: flex; opacity: .5; transition: opacity .15s; }
.cl-item:hover .cl-actions, .cl-item:focus-within .cl-actions { opacity: 1; }
.task-board { padding: 8px 14px 14px; }

/* arquivos */
.file-list { display: grid; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.file-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.file-info { flex: 1; min-width: 0; }
.file-name { display: block; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: block; font-size: 12.5px; color: var(--muted); }
.file-actions { display: flex; gap: 2px; }
.chips + .file-list, .pad-x + .file-list { margin-top: 14px; }
.dropzone { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--surface-2); transition: border-color .2s, background-color .2s; }
.dropzone.is-over { border-color: var(--gold); background: var(--gold-soft); }
.dropzone.is-busy { opacity: .75; }
.dropzone.is-compact { padding: 12px 14px; }
.dz-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--surface); color: var(--gold-ink); border: 1px solid var(--line); }
.dz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dz-text strong { color: var(--ink); }
.dz-text span { font-size: 13px; color: var(--muted); }
.upload-opts { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.upload-cat { display: flex; flex-direction: column; gap: 6px; min-width: 220px; margin-bottom: 14px; }
.upload-opts .upload-cat { margin-bottom: 0; }

/* conversa */
.chat { display: flex; flex-direction: column; min-height: 520px; }
.chat > .card-head { padding: 18px 20px 14px; margin: 0; border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; max-height: min(62vh, 640px); min-height: 300px; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.chat-day { display: flex; justify-content: center; margin: 6px 0; }
.chat-day span { padding: 4px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--muted); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 82%; }
.msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { position: relative; padding: 10px 14px 8px; border-radius: 16px 16px 16px 6px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.msg.is-mine .msg-bubble { background: var(--ink); color: #f5efe2; border-color: var(--ink); border-radius: 16px 16px 6px 16px; }
.msg.is-mine .msg-head strong { color: var(--gold-3); }
.msg.is-internal .msg-bubble { background: #fff6dd; border: 1px dashed var(--gold-2); color: var(--text); }
.msg.is-internal.is-mine .msg-head strong { color: var(--gold-ink); }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; font-size: 12.5px; }
.msg-head strong { color: var(--ink); }
.msg-role { color: var(--faint); font-size: 12px; }
.msg-internal { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11px; font-weight: 700; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg-body a { color: inherit; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-file { display: inline-flex; align-items: center; gap: 5px; max-width: 240px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 12.5px; }
.msg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-time { display: block; margin-top: 4px; font-size: 11px; color: var(--faint); text-align: right; }
.msg.is-mine .msg-time { color: rgba(245, 239, 226, .55); }
.chat-off { margin: 0; padding: 14px 20px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.composer { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer-input { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 14px; resize: none; font-size: 15px; line-height: 1.45; background: var(--surface-2); }
.composer-input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); background: var(--surface); }
.composer-send { min-width: 48px; min-height: 44px; padding: 0 14px; }
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.att { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12.5px; font-weight: 600; }
.att button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); color: inherit; }
.composer-opts { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* design */
.v-tag { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--ink); color: var(--gold-3); font-size: 12px; font-weight: 800; margin-right: 6px; vertical-align: middle; }
.design-current .card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.design-file { display: grid; gap: 10px; justify-items: start; margin: 14px 0; }
.design-file img { max-height: 520px; width: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.design-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.design-current .alert { margin-top: 14px; }
.versions > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.versions > li > div { flex: 1; min-width: 0; }
.versions strong { display: block; color: var(--ink); font-size: 14px; }
.versions small { color: var(--muted); font-size: 12.5px; }
.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: flex; gap: 12px; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); }
.tl-approved .tl-dot, .tl-ok .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-changes_requested .tl-dot, .tl-warn .tl-dot { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.tl-submitted .tl-dot, .tl-gold .tl-dot { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.tl-body { padding-top: 3px; min-width: 0; }
.tl-body strong { display: block; color: var(--ink); font-size: 14px; }
.tl-body p { margin: 4px 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; white-space: pre-line; }
.tl-body small { color: var(--faint); font-size: 12px; }

/* alterações */
.revisions { display: grid; gap: 12px; }
.rev { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.rev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rev-where { display: flex; gap: 6px; flex-wrap: wrap; }
.rev-text { margin: 10px 0 8px; color: var(--ink); }
.rev-note { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border-left: 3px solid var(--gold-2); font-size: 14px; }
.rev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rev-foot small { color: var(--faint); font-size: 12.5px; }

/* briefing */
.briefing { display: grid; gap: 22px; margin-top: 16px; }
.bq-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.bq .hint { margin: -4px 0 8px; }
.bq-answer { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.bq-answer.is-empty { color: var(--faint); font-style: italic; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; transition: .15s; }
.pill:hover span { border-color: var(--gold); }
.pill.is-on span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { box-shadow: var(--focus); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* pagamento */
.howpay { display: grid; gap: 14px; }
.pix { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #efdca8; }
.pix > div { flex: 1; min-width: 180px; }
.pix small { display: block; color: var(--gold-ink); font-size: 12.5px; font-weight: 600; }
.pix-key { display: block; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.pix-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--gold-ink); }

/* proposta */
.proposal-doc { padding: clamp(20px, 4vw, 40px); }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.doc-brand { display: flex; align-items: center; gap: 12px; }
.doc-brand strong { display: block; letter-spacing: .14em; color: var(--ink); }
.doc-brand small { color: var(--muted); font-size: 13px; }
.doc-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.doc-price { display: inline-flex; flex-direction: column; margin-bottom: 20px; padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; }
.doc-price small { color: var(--gold-3); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.doc-price strong { font-size: 30px; letter-spacing: -.02em; }
.doc-sec { margin-top: 24px; }
.doc-sec h3 { font-size: 16px; margin-bottom: 8px; }
.doc-sec p { margin: 0; }
.proposal-doc .alert { margin-top: 24px; }
.doc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* suporte */
.ticket-thread { display: grid; gap: 14px; }
.tmsg { display: flex; gap: 10px; }
.tmsg > div { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tmsg.is-mine > div { background: #fffaf0; border-color: #f0dfae; }
.tmsg.is-internal > div { border-style: dashed; border-color: var(--gold-2); }
.tmsg p { margin: 4px 0 0; }
.tmsg .msg-head small { color: var(--faint); margin-left: auto; }
.ticket-reply { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* conta */
/* idade e redes (painel) */
.pf { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; }
.pf-age, .pf-link { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-weight: 650; white-space: nowrap; }
.pf-age { background: var(--surface-3); color: var(--ink); }
.pf-link { text-decoration: none; }
.pf-ig { background: #fbe7f1; color: #a3195b; }
.pf-li { background: #e3eefb; color: #0a5aa6; }
.pf-link:hover { text-decoration: underline; }

/* ---------- Complete seu cadastro ---------- */
.reg-type { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 18px; }
.reg-radio { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--ink); cursor: pointer; }
.reg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reg-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); flex: none; transition: .15s; }
.reg-radio.is-on .reg-dot { border: 6px solid var(--ink); }
.reg-radio input:focus-visible + .reg-dot { box-shadow: var(--focus); }
.reg-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.reg-cep { position: relative; display: flex; align-items: center; }
.reg-cep .spin { position: absolute; right: 12px; width: 16px; height: 16px; }
.reg-cep-help, .reg-exempt { justify-content: flex-end; padding-bottom: 12px; }
.reg-cep-help a { font-size: 13.5px; font-weight: 700; }
.reg-form .row-end { margin-top: 22px; }
.reg-prompt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid #efd9a0; background: var(--gold-soft); color: var(--ink); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.reg-prompt:hover { border-color: var(--gold-2); box-shadow: var(--shadow-2); }
.reg-prompt-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--grad-gold); color: #1a1206; }
.reg-prompt span:nth-child(2) { flex: 1; min-width: 0; }
.reg-prompt strong { display: block; font-size: 15px; }
.reg-prompt small { display: block; color: var(--gold-ink); font-size: 13px; }
@media (max-width: 640px) { .reg-cep-help, .reg-exempt { padding-bottom: 0; justify-content: flex-start; } }

.photo-pick { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.photo-btn { position: relative; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.photo-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.photo-btn:hover .avatar { filter: brightness(.94); }
.photo-badge { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold-2); box-shadow: 0 0 0 3px var(--surface); }
.photo-badge .spin { width: 14px; height: 14px; border-width: 2px; }
.photo-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.photo-text strong { font-size: 17px; color: var(--ink); }
.photo-text > span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.photo-text .row { margin-top: 6px; }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.account-head strong { display: block; font-size: 17px; color: var(--ink); }
.account-head span { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.card.is-highlight { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(224, 178, 74, .15); }

/* verificação em duas etapas (Minha conta; a versão escura, em /entrar, fica em auth.css) */
.mfa-off { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.mfa-off .muted { margin: 0; flex: 1 1 240px; font-size: 14px; }
.mfa-enroll { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mfa-enroll .row-end { margin-top: 2px; }
.mfa-setup { display: flex; align-items: flex-start; gap: 18px; }
/* o QR code fica sempre sobre fundo branco, inclusive no tema escuro: alguns leitores não leem QR invertido */
.mfa-qr { flex: none; width: 168px; height: 168px; padding: 10px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.mfa-setup-text { min-width: 0; flex: 1; }
.mfa-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; color: var(--text); font-size: 14px; line-height: 1.5; }
.mfa-steps a { color: var(--gold-ink); font-weight: 650; }
.mfa-key { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.mfa-key span { flex-basis: 100%; }
.mfa-key code { padding: 4px 8px; border-radius: var(--radius-xs); background: var(--surface-3); color: var(--ink); font-size: 13px; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.input.mfa-code { max-width: 220px; letter-spacing: .3em; font-variant-numeric: tabular-nums; font-weight: 650; }
.input.mfa-code::placeholder { letter-spacing: .3em; font-weight: 400; }
@media (max-width: 560px) {
  .mfa-setup { flex-direction: column; align-items: center; }
  .mfa-setup-text { width: 100%; }
  .input.mfa-code { max-width: none; }
}

/* imagens (portfólio, logotipo) */
.img-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.img-pick img, .img-empty { width: 120px; height: 80px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.img-empty { display: grid; place-items: center; color: var(--faint); }
.gallery-edit { display: grid; gap: 10px; }
.gal-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.gal-item img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; }

/* modelos de briefing */
.q-editor { display: grid; gap: 10px; }
.q-row { display: flex; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.q-row-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.q-row-main .row .select { width: auto; min-width: 170px; }
.q-row-actions { display: flex; flex-direction: column; gap: 2px; }

/* permissões */
.perm-table td, .perm-table th { padding: 9px 12px; }
.perm-table .center { text-align: center; }
.perm-group td { background: var(--surface-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.perm-check { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
.role-help { display: grid; gap: 4px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.role-help strong { color: var(--ink); }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .stepper-h { grid-auto-flow: row; grid-auto-columns: auto; }
  .stepper-h .step { flex-direction: row; text-align: left; align-items: flex-start; padding: 0 0 14px; }
  .stepper-h .step:not(:last-child)::before { left: 14px; right: auto; top: 30px; bottom: 0; width: 2px; height: auto; }
  .stepper-h .step-body strong { font-size: 14px; }
}
@media (max-width: 720px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .now-next { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 94%; }
  .chat-list { max-height: 60vh; padding: 14px; }
  .chat { min-height: 0; }
  .file-row { padding: 12px 14px; flex-wrap: wrap; }
  .file-actions { margin-left: auto; }
  .dropzone { flex-wrap: wrap; }
  .dropzone .btn { width: 100%; }
  .se-status { width: 120px; }
  .stage-edit > li { flex-wrap: wrap; }
  .se-actions { width: 100%; justify-content: flex-end; }
  .design-actions .btn, .doc-actions .btn { flex: 1; }
  .gal-item { grid-template-columns: 72px minmax(0, 1fr); }
  .gal-item .row { grid-column: 1 / -1; justify-content: flex-end; }
  .q-row { flex-direction: column; }
  .q-row-actions { flex-direction: row; justify-content: flex-end; }
  .hello .btn { width: 100%; }
  .sticky-actions { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sticky-actions .btn { flex: 1; }
  .pad-x { padding-left: 14px; padding-right: 14px; }
  .list-item { padding: 12px 14px; }
}

/* ---------- impressão (propostas) ---------- */
@media print {
  .sidebar, .topbar, .bottom-nav, .pw-banner, .preview-bar, .page-head .page-actions, .back, .no-print, .toasts, .alert { display: none !important; }
  .shell { display: block; }
  body, html { background: #fff; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
  .doc-price { color: #000; background: #f4efe2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-price small { color: #7a5611; }
}
