/* Painel administrativo, login e instalador */
:root {
  --primary: #F4C542; --primary-hover: #DBB13B; --primary-soft: #FDF6E1; --on-primary: #171717;
  --text: #171717; --bg: #F8F9FB; --muted: #737373; --white: #FFFFFF;
  --line: #ECEDF0; --line-strong: #DADCE1;
  --success: #15803D; --success-bg: #ECFDF3; --danger: #DC2626; --danger-bg: #FEF2F2;
  --warning: #A16207; --warning-bg: #FEF9C3; --info: #1D4ED8; --info-bg: #EFF6FF;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 700; }
h2 { font-size: 16px; margin: 0 0 16px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
code { background: rgba(23, 23, 23, .06); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.block { display: block; }
.strong { font-weight: 600; text-decoration: none; }
.strong:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.link { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.link:hover { color: var(--text); }
.danger-text { color: var(--danger) !important; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint .icon { vertical-align: -2px; }
.error { display: block; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
[hidden] { display: none !important; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; border: 1px solid transparent; border-radius: 999px; padding: 9px 18px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; line-height: 1.3; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--white); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(23, 23, 23, .05); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.saving { pointer-events: none; opacity: .7; }
.btn.saved { background: var(--success); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(23, 23, 23, .06); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }

/* Formulários */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.input { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { resize: vertical; min-height: 44px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.input-sm { padding: 7px 34px 7px 10px; font-size: 13px; width: auto; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-prefix span { background: var(--bg); color: var(--muted); padding: 10px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; border-right: 1px solid var(--line); display: flex; align-items: center; }
.input-prefix .input { border: 0; border-radius: 0; box-shadow: none; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 36px; }
.copy-field { display: flex; gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; cursor: pointer; font-size: 14px; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--text); flex: none; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); cursor: pointer; flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-actions.between { justify-content: space-between; }
.inline-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 6px 16px; border-radius: 999px; font-weight: 500; color: var(--muted); transition: all .15s; }
.segmented input:checked + span { background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(20px); }

/* Cards e alertas */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 22px; margin-bottom: 20px; }
.card.narrow { max-width: 640px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); margin: 12px 0; font-size: 13.5px; }
.alert .icon { margin-top: 1px; }
.alert-error { background: var(--danger-bg); color: #991B1B; }
.alert-success { background: var(--success-bg); color: #166534; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: #F1F2F4; color: #525252; }
.empty { text-align: center; padding: 40px 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--primary-soft); color: var(--text); margin-bottom: 14px; }
.empty p { margin: 0 0 18px; }

/* Layout do painel */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: none; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; z-index: 40; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.brand img { max-height: 34px; max-width: 170px; object-fit: contain; display: block; }
.brand-sub { font-size: 12px; color: var(--muted); padding: 6px 8px 0; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--text); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav a.active .icon { color: var(--text); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.sidebar-foot form { margin: 0; }
.user-chip { display: flex; gap: 10px; align-items: center; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.user-meta { min-width: 0; display: flex; flex-direction: column; }
.user-meta strong, .user-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.user-meta small { color: var(--muted); font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 32px 36px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.topbar { display: none; }
.only-mobile { display: none !important; }
.backdrop { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 6px; }
.back-link:hover { color: var(--text); }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 8px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat-note { color: var(--muted); font-size: 12px; }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FBFBFC; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; color: var(--success); text-decoration: none; font-weight: 500; }
.wa-link:hover { text-decoration: underline; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; padding-bottom: 6px; }
.filters .field { min-width: 150px; flex: 1; }
.filters .field.grow { flex: 2.5; min-width: 220px; }
.filter-actions { display: flex; gap: 6px; margin-bottom: 16px; }

/* Lista de formulários */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.form-card { margin: 0; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.form-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.form-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.form-card h3 { font-size: 16px; margin: 0 0 4px; }
.form-card h3 a { text-decoration: none; }
.form-card p { margin: 0 0 14px; }
.form-card-meta { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; margin-top: auto; margin-bottom: 14px; }
.form-card-meta a, .form-card-meta span { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.form-card-meta a:hover { color: var(--text); }
.form-card-actions { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; z-index: 30; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu form { margin: 0; }
.dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; font: inherit; color: var(--text); border-radius: 8px; cursor: pointer; text-align: left; }
.dropdown-menu button:hover { background: var(--bg); }
.dropdown-menu button.danger { color: var(--danger); }

/* Modal */
.modal { border: 0; border-radius: 18px; padding: 28px; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.modal::backdrop { background: rgba(23, 23, 23, .4); backdrop-filter: blur(2px); }
.modal h2 { font-size: 18px; margin-bottom: 8px; }
.modal-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.modal-icon.danger { background: var(--danger-bg); color: var(--danger); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* Abas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--primary); }
.tab-panel { display: none; animation: fade .25s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }

/* Construtor */
.builder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.builder-title { min-width: 0; }
.builder-link { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.builder-link a { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.builder-link a:hover { color: var(--text); text-decoration: underline; }
.builder-actions { display: flex; gap: 8px; align-items: center; }
.builder-hint { margin: -6px 0 16px; }
.q-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; counter-reset: q; }
.q-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.q-card.open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.q-card.flash { animation: flash 1s; }
@keyframes flash { 0% { background: var(--primary-soft); } }
.q-summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.q-num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--primary-soft); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.q-type-ic { color: var(--muted); display: flex; }
.q-sum-text { flex: 1; min-width: 0; }
.q-sum-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.q-sum-text small { color: var(--muted); font-size: 12px; }
.q-tools { display: flex; gap: 2px; flex: none; }
.q-body { display: none; padding: 4px 16px 16px 56px; border-top: 1px solid var(--line); }
.q-card.open .q-body { display: block; padding-top: 16px; }
.opt-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.opt-row { display: flex; gap: 6px; align-items: center; }
.opt-row .opt-key { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 11px; display: grid; place-items: center; color: var(--muted); }
.q-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.add-question h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.type-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font: inherit; font-weight: 500; cursor: pointer; text-align: left; transition: all .15s; color: var(--text); }
.type-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.type-btn .icon { color: var(--muted); }
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-preview { min-width: 120px; height: 52px; border: 1px dashed var(--line-strong); border-radius: 10px; display: grid; place-items: center; padding: 6px 12px; background: var(--bg); }
.logo-preview img { max-height: 40px; max-width: 180px; object-fit: contain; }
.logo-preview.lg { height: 96px; margin-bottom: 16px; }
.logo-preview.lg img { max-height: 70px; max-width: 260px; }
.upload-form .input { padding: 8px; }

/* Ficha do lead */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.answers { margin: 0; }
.answer { padding: 14px 0; border-bottom: 1px solid var(--line); }
.answer:first-child { padding-top: 0; }
.answer dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.answer dd { margin: 0; font-size: 15px; white-space: pre-line; word-break: break-word; }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv strong { font-weight: 500; text-align: right; min-width: 0; }
.muted-kv { margin: 6px 0 4px; background: var(--bg); border-radius: 10px; padding: 4px 12px; }
.event-row { display: flex; flex-direction: column; padding: 10px 12px; background: var(--bg); border-radius: 10px; margin-top: 10px; }
.event-row small { font-size: 12px; }

/* Integrações */
.integration-card { margin: 0; }
.integration-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.integration-logo.calendly { background: #E8F1FF; color: #006BFF; }
.status-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 20px; }
.status-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.status-item.ok { color: var(--success); }
.status-item.ok span { color: var(--text); }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100% - 40px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease); max-width: 420px; font-size: 13.5px; }
.toast-success .icon:first-child { color: #4ADE80; }
.toast-error .icon:first-child { color: #F87171; }
.toast-close { border: 0; background: none; color: rgba(255, 255, 255, .6); cursor: pointer; padding: 2px; display: flex; margin-left: auto; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Login / erros */
.auth-page { min-height: 100vh; display: flex; }
.auth-wrap { margin: auto; width: 100%; max-width: 420px; padding: 32px 16px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand img { max-height: 44px; max-width: 220px; }
.auth-card { padding: 32px; }
.auth-card h1 { font-size: 22px; }
.auth-card > p { margin: 0 0 20px; }
.auth-card.center { text-align: center; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }
.big-code { font-size: 64px; font-weight: 700; letter-spacing: -.04em; color: var(--primary); line-height: 1; margin-bottom: 8px; }

/* Instalador */
.install-page { min-height: 100vh; }
.install-wrap { max-width: 680px; margin: 0 auto; padding: 40px 16px 60px; }
.install-brand { text-align: center; margin-bottom: 28px; }
.install-card { padding: 34px; }
.install-card h1 { font-size: 24px; }
.install-card > p.muted { margin: 0 0 20px; }
.install-steps { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0 0 24px; counter-reset: s; position: relative; }
.install-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 14px; height: 2px; background: var(--line-strong); }
.install-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); position: relative; flex: 1; text-align: center; }
.install-steps .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.install-steps li.current .dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.install-steps li.done .dot { border-color: var(--text); background: var(--text); color: #fff; }
.install-steps li.current { color: var(--text); font-weight: 600; }
.section-title { font-size: 14px; margin: 20px 0 10px; }
.check-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.check-list li strong { display: block; font-weight: 500; font-size: 13.5px; }
.check-list li small { color: var(--muted); font-size: 12px; }
.check-list .ci { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.check-list .ok .ci { background: var(--success-bg); color: var(--success); }
.check-list .fail .ci { background: var(--danger-bg); color: var(--danger); }
.check-list .warn .ci { background: var(--warning-bg); color: var(--warning); }
.help-box { background: var(--bg); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; }
.help-box summary { cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.help-box ol { padding-left: 20px; margin: 12px 0 6px; }
.help-box li { margin-bottom: 4px; }
.install-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; margin-bottom: 18px; }
.install-done-icon.lock { background: var(--text); color: #fff; }
.install-foot { text-align: center; color: var(--muted); font-size: 12px; }

/* Responsivo */
@media (max-width: 1200px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .detail-grid, .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-grid !important; }
  header.only-mobile { display: flex !important; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(23, 23, 23, .35); z-index: 35; }
  .topbar { align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar-logo { max-height: 28px; max-width: 140px; }
  .topbar span { width: 36px; }
  .content { padding: 20px 16px 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .q-body { padding-left: 16px; }
  .builder-link a { max-width: 220px; }
  .hide-sm { display: none; }
  .table-responsive thead { display: none; }
  .table-responsive tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table-responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table-responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .table-responsive td.actions::before { content: none; }
  .table-responsive td small.block { display: inline; margin-left: 4px; }
  .install-card, .auth-card { padding: 24px 20px; }
  .install-steps .lbl { display: none; }
  .card { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
}
@media (max-width: 480px) {
  .q-summary { padding: 12px; gap: 8px; }
  .q-type-ic { display: none; }
  .builder-actions { width: 100%; }
  .builder-actions .btn-primary { flex: 1; }
  .page-head .btn { width: 100%; }
}
