/* ============================================================
   VERUS MINUTAS — Design System
   Estrutura tipo Metronic (sidebar escura + topbar + cards),
   identidade própria: teal institucional + neutros quentes de papel,
   tipografia Plus Jakarta Sans (UI) + Fraunces serif (marca/documento).
   Reescrito sem alterar o app.js — cobre todo o vocabulário de classes.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --font-ui: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --paper: #f6f6f2;
    --surface: #ffffff;
    --surface-2: #fbfbf8;
    --surface-3: #f3f3ee;
    --border: #e8e7e0;
    --border-strong: #d8d7cd;

    --ink: #18241f;
    --ink-2: #586460;
    --ink-3: #9aa39e;

    --brand: #4b5563;
    --brand-strong: #374151;
    --brand-deep: #1f2937;
    --brand-soft: #f1f2f4;
    --brand-soft-2: #e3e5e9;
    --brand-ink: #374151;

    --gold: #b0843a;
    --gold-soft: #fbf4e6;

    --success: #059669;  --success-soft: #ecfdf3;  --success-border: #b4e8cc;  --success-ink: #06694a;
    --warning: #bf6f0d;  --warning-soft: #fdf6ec;  --warning-border: #f1d6a4;  --warning-ink: #8a4f0a;
    --danger:  #dc2626;  --danger-soft:  #fdeeee;  --danger-border:  #f3c2c2;  --danger-ink:  #9f1b1b;
    --info:    #2563eb;  --info-soft:    #eef3fe;  --info-border:    #c6d6fb;  --info-ink:    #1b44a6;

    /* Sidebar escura */
    --side-bg: #1f2430;
    --side-bg-2: #2a3040;
    --side-text: #aab0bd;
    --side-text-strong: #f1f3f6;
    --side-border: rgba(255,255,255,.07);
    --side-active-bg: rgba(148,163,184,.18);
    --side-active-text: #e5e7eb;

    --r-sm: 7px;
    --r: 11px;
    --r-lg: 16px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(24,36,31,.05);
    --shadow-sm: 0 1px 3px rgba(24,36,31,.07), 0 1px 2px rgba(24,36,31,.04);
    --shadow: 0 6px 16px -6px rgba(24,36,31,.12), 0 2px 6px -2px rgba(24,36,31,.06);
    --shadow-md: 0 18px 40px -12px rgba(24,36,31,.18), 0 6px 14px -6px rgba(24,36,31,.08);
    --ring: 0 0 0 3.5px rgba(148,163,184,.20);
}

/* ---------- Tema escuro ---------- */
[data-theme="dark"] {
    --paper: #0f1614;
    --surface: #18211d;
    --surface-2: #1d2722;
    --surface-3: #25302a;
    --border: #2b362f;
    --border-strong: #3a463f;

    --ink: #eef2ef;
    --ink-2: #aeb8b2;
    --ink-3: #788079;

    --brand-soft: rgba(148,163,184,.16);
    --brand-soft-2: rgba(148,163,184,.24);
    --gold-soft: rgba(176,132,58,.16);

    --success-soft: rgba(5,150,105,.15);  --success-border: rgba(5,150,105,.38);
    --warning-soft: rgba(191,111,13,.15); --warning-border: rgba(191,111,13,.40);
    --danger-soft:  rgba(220,38,38,.14);  --danger-border:  rgba(220,38,38,.38);
    --info-soft:    rgba(37,99,235,.14);   --info-border:    rgba(37,99,235,.38);

    --shadow-xs: 0 1px 2px rgba(0,0,0,.30);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
    --shadow: 0 6px 16px -6px rgba(0,0,0,.55), 0 2px 6px -2px rgba(0,0,0,.40);
    --shadow-md: 0 18px 40px -12px rgba(0,0,0,.65), 0 6px 14px -6px rgba(0,0,0,.45);
    --ring: 0 0 0 3.5px rgba(148,163,184,.30);

    color-scheme: dark;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--brand-strong); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
pre { margin: 0; }
::selection { background: var(--brand-soft-2); color: var(--brand-deep); }

/* Scrollbar discreta */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(24,36,31,.16); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(24,36,31,.28); background-clip: content-box; }

/* ---------- Utilitários ---------- */
.muted { color: var(--ink-3); }
.muted-inline { color: var(--ink-3); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sep { color: var(--border-strong); margin: 0 6px; }
.full { grid-column: 1 / -1; }
.section-title {
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink-3); margin: 0 0 12px;
}
[hidden] { display: none !important; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 16px;
    font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .06s;
    white-space: nowrap;
}
.btn:active { transform: translateY(.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-strong); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--ink-3); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-icon {
    width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.field { margin-bottom: 14px; }
.field label, .field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full, .form-grid .full { grid-column: 1 / -1; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], input[type=url], input[type=search],
input[type=time], input[type=datetime-local], input:not([type]),
textarea, select, .input {
    width: 100%; height: 40px; padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    font-size: 14px; color: var(--ink);
    transition: border-color .16s, box-shadow .16s, background .16s;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); background: var(--surface); }
input[type=file] {
    font-size: 13px; color: var(--ink-2);
    padding: 8px; height: auto; background: var(--surface-2); border-style: dashed;
}
input[type=file]::file-selector-button {
    margin-right: 12px; padding: 7px 13px; border: 0; border-radius: 6px;
    background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; cursor: pointer; font-size: 12.5px;
}

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; font-size: 11.5px; font-weight: 600; line-height: 1.4;
    border-radius: var(--r-pill); border: 1px solid transparent;
    background: var(--surface-3); color: var(--ink-2);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-rascunho { background: var(--warning-soft); color: var(--warning-ink); border-color: var(--warning-border); }

/* status pill (matrículas / minutas) */
.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: var(--r-pill);
    font-size: 11.5px; font-weight: 600; border: 1px solid transparent;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill-regular,  .status-pill-concluida, .status-pill-aprovada { background: var(--success-soft); color: var(--success-ink); border-color: var(--success-border); }
.status-pill-atencao,  .status-pill-rascunho,  .status-pill-em_elaboracao { background: var(--warning-soft); color: var(--warning-ink); border-color: var(--warning-border); }
.status-pill-irregular, .status-pill-erro, .status-pill-cancelada { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-border); }

/* tag pill */
.tag-pill {
    display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--ink-2);
    border: 1px solid var(--border);
}
.tag-matricula { background: var(--info-soft); color: var(--info-ink); border-color: var(--info-border); }

/* role pill (papel da parte) */
.role-pill { display: inline-flex; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.role-vendedor { background: #fdeef0; color: #9d2449; }
.role-comprador { background: var(--brand-soft); color: var(--brand-ink); }
.role-interveniente { background: var(--info-soft); color: var(--info-ink); }

/* veredito da minuta (Frente A — pronto pra wiring) */
.veredito { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r); font-weight: 700; font-size: 13px; border: 1px solid transparent; }
.veredito::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.veredito-regular { background: var(--success-soft); color: var(--success-ink); border-color: var(--success-border); }
.veredito-atencao { background: var(--warning-soft); color: var(--warning-ink); border-color: var(--warning-border); }
.veredito-irregular { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-border); }
.prov-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; }
.prov-extraido { background: var(--brand-soft); color: var(--brand-ink); }
.prov-manual { background: var(--surface-3); color: var(--ink-2); }
.prov-inferido { background: var(--gold-soft); color: var(--gold); }

/* ============================================================
   ALERTAS
   ============================================================ */
.alert-banner {
    padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: var(--surface-3); color: var(--ink-2);
    margin-top: 12px;
}
.alert-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-border); }
.alert-success { background: var(--success-soft); color: var(--success-ink); border-color: var(--success-border); }
.alert-warning { background: var(--warning-soft); color: var(--warning-ink); border-color: var(--warning-border); }

/* alertas estruturados (lista) */
.alerta {
    display: flex; flex-direction: column; gap: 2px;
    padding: 11px 14px 11px 16px; border-radius: var(--r-sm);
    border: 1px solid var(--border); border-left-width: 3px;
    background: var(--surface-2); margin-bottom: 10px;
}
.alerta-erro    { border-left-color: var(--danger);  background: var(--danger-soft); }
.alerta-atencao { border-left-color: var(--warning); background: var(--warning-soft); }
.alerta-info    { border-left-color: var(--info);    background: var(--info-soft); }
.alerta-titulo { font-weight: 700; font-size: 12.5px; }
.alerta-erro .alerta-titulo { color: var(--danger-ink); }
.alerta-atencao .alerta-titulo { color: var(--warning-ink); }
.alerta-info .alerta-titulo { color: var(--info-ink); }
.alerta-msg { font-size: 13px; color: var(--ink-2); }
.alerta-acao { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; font-style: italic; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.card-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.card-body { padding: 20px; }

/* ============================================================
   LOGIN
   ============================================================ */
.view-login { position: fixed; inset: 0; }
.login-shell {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(148,163,184,.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(176,132,58,.08), transparent 55%),
        var(--side-bg);
    position: relative;
}
.login-shell::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 22px 22px; pointer-events: none;
}
.login-card {
    position: relative; width: 100%; max-width: 400px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 38px 34px;
    box-shadow: var(--shadow-md);
    animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand h1 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin-top: 16px; letter-spacing: -.02em; }
.login-brand p { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.login-card .field label { font-weight: 600; }
.login-card .btn-primary { margin-top: 6px; height: 44px; }

/* marca */
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 4px 12px -3px rgba(75,85,99,.45);
}
.brand-mark-lg { width: 58px; height: 58px; border-radius: 16px; font-size: 30px; margin: 0 auto; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* Sidebar escura */
.sidebar {
    display: flex; flex-direction: column;
    background: var(--side-bg);
    border-right: 1px solid var(--side-border);
    padding: 18px 14px; gap: 22px; position: sticky; top: 0; height: 100vh;
}
.brand-row { display: flex; align-items: center; gap: 11px; padding: 6px 8px 4px; }
.brand-text { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--side-text-strong); letter-spacing: -.01em; }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.32); padding: 0 10px 6px; }
.nav-link {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 9px 11px; border-radius: var(--r-sm);
    font-size: 13.5px; font-weight: 500; color: var(--side-text); text-align: left;
    transition: background .15s, color .15s;
}
.nav-link .icon { font-size: 15px; width: 20px; text-align: center; opacity: .9; }
.nav-link .icon svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
.icon svg { vertical-align: middle; }
.btn svg, .btn-ico svg { width: 15px; height: 15px; vertical-align: -2px; }
.btn-ico { display: inline-flex; align-items: center; }
.dropzone-icon svg { width: 30px; height: 30px; opacity: .55; }
#btn-tema svg { width: 18px; height: 18px; display: block; }
.nav-link:not([disabled]):hover { background: var(--side-bg-2); color: var(--side-text-strong); }
.nav-link.active { background: var(--side-active-bg); color: var(--side-active-text); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand); }
.nav-link[disabled] { opacity: .4; cursor: default; }
.soon { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.4); background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 5px; }

.sidebar-footer { margin-top: auto; }
.user-card {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--r); background: var(--side-bg-2);
    border: 1px solid var(--side-border);
}
.avatar {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; color: #fff;
    background: linear-gradient(150deg, var(--brand), var(--brand-deep));
}
.user-info-block { min-width: 0; flex: 1; }
.user-name { font-size: 13px; font-weight: 600; color: var(--side-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: rgba(255,255,255,.4); }
.user-card .btn-icon { color: var(--side-text); }
.user-card .btn-icon:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ============================================================
   MAIN AREA + TOPBAR
   ============================================================ */
.main-area { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: 60px; padding: 0 20px;
    background: rgba(246,246,242,.82); backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 13px; color: var(--ink-3); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.shortcut-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
kbd {
    font-family: var(--font-ui); font-size: 11px; font-weight: 600;
    padding: 2px 6px; border-radius: 5px; background: var(--surface);
    border: 1px solid var(--border-strong); box-shadow: 0 1px 0 var(--border-strong); color: var(--ink-2);
}

/* page header */
.view { padding: 24px 18px; max-width: 1480px; width: 100%; margin-inline: auto; }
.view#view-minuta { max-width: 1480px; }
.view:not([hidden]) { animation: fade .32s ease both; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-title { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.page-subtitle { color: var(--ink-3); font-size: 14px; margin-top: 4px; }

/* upload form (dashboard) */
.upload-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload-form input[type=file] { flex: 1; min-width: 240px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--ink-3); }
.empty-state .icon { font-size: 32px; opacity: .55; display: block; margin-bottom: 12px; }
.empty-state .icon svg { width: 34px; height: 34px; display: inline-block; }
.row-icon svg { width: 18px; height: 18px; }
.revisao-head svg { width: 16px; height: 16px; vertical-align: -3px; }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.empty-state p { font-size: 13px; }

/* listas de minutas / histórico (linhas) */
.minuta-row, .history-row, .meta-info {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer;
    transition: background .14s;
}
.minuta-row:last-child, .history-row:last-child { border-bottom: 0; }
.minuta-row:hover, .history-row:hover { background: var(--surface-2); }
.row-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-size: 17px; }
.row-main { flex: 1; min-width: 0; }
.row-main .nome, .row-main .titulo { font-weight: 600; font-size: 14px; color: var(--ink); }
.row-meta, .entry-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-arrow { color: var(--ink-3); font-size: 16px; }

/* Matrículas — grid de cards */
.matriculas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 18px 20px; }
.matricula-card { text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .12s; font: inherit; }
.matricula-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.mat-top { display: flex; align-items: center; justify-content: space-between; }
.mat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); font-size: 17px; }
.mat-num { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.mat-meta { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.mat-local { font-size: 12.5px; color: var(--ink-2); }
.mat-icon svg { width: 18px; height: 18px; color: var(--brand); }
.mat-local svg { width: 13px; height: 13px; vertical-align: -2px; }
.mat-ver { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 2px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: var(--r); cursor: pointer; transition: background .15s; }
.mat-ver:hover { background: var(--brand-soft-2); }
.mat-ver svg { width: 14px; height: 14px; }
.mat-local-vazio { color: var(--ink-3); font-style: italic; }
.mat-data { font-size: 11.5px; color: var(--ink-3); }

/* ============================================================
   WIZARD — barra de progresso
   ============================================================ */
.wizard-progress-bar {
    display: flex; align-items: flex-start; gap: 4px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 16px 12px; margin-bottom: 22px; box-shadow: var(--shadow-sm); overflow-x: auto;
}
.wp-step { position: relative; flex: 1; min-width: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 0 4px; }
.wp-step:not(:last-child)::after {
    content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px);
    height: 2px; background: var(--border-strong); border-radius: 2px; transition: background .2s;
}
.wp-circle {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); border: 2px solid var(--border-strong); color: var(--ink-3);
    font-size: 13px; font-weight: 700; transition: all .2s; z-index: 1;
}
.wp-label { font-size: 11.5px; font-weight: 500; color: var(--ink-3); text-align: center; transition: color .2s; }
.wp-step:hover .wp-circle { border-color: var(--brand); color: var(--brand-strong); }

.wp-step.done::after { background: var(--brand); }
.wp-step.done .wp-circle { background: var(--brand); border-color: var(--brand); color: #fff; }
.wp-step.done .wp-num { font-size: 0; }
.wp-step.done .wp-circle::after { content: "✓"; font-size: 14px; }
.wp-step.done .wp-label { color: var(--ink-2); }

.wp-step.active .wp-circle { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); box-shadow: var(--ring); }
.wp-step.active .wp-label { color: var(--brand-strong); font-weight: 700; }
.wp-step.completed:not(.active):not(.done) .wp-circle { border-color: var(--brand); color: var(--brand-strong); }

/* wizard layout */
.wizard-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.wizard-layout.resumo-oculto { grid-template-columns: 1fr; }
.wizard-layout.resumo-oculto .wizard-aside { display: none; }
.wizard-content { min-width: 0; }
.wizard-step { animation: fade .28s ease both; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }

/* aside resumo */
.wizard-aside { position: sticky; top: 80px; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.summary-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.summary-section { padding: 12px 0; border-top: 1px solid var(--border); }
.summary-section:first-of-type { border-top: 0; padding-top: 0; }
.summary-section-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.summary-item { font-size: 12.5px; color: var(--ink); padding: 2px 0; display: flex; gap: 6px; }
.summary-item.muted-inline, .summary-empty { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.summary-cost { margin-top: 14px; padding: 14px; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); border-radius: var(--r); text-align: center; }
.summary-cost-label { font-size: 11px; font-weight: 600; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .05em; }
.summary-cost-val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--brand-deep); margin-top: 3px; }

/* ============================================================
   DROPZONE / UPLOAD
   ============================================================ */
.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 36px 20px; border: 2px dashed var(--border-strong); border-radius: var(--r-lg);
    background: var(--surface-2); cursor: pointer; transition: border-color .18s, background .18s; text-align: center;
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--ring); }
.dropzone-icon { font-size: 30px; opacity: .7; }
.dropzone-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.dropzone-sub { font-size: 12px; color: var(--ink-3); }

/* Dropzone compacto (análise rápida de matrícula) */
.upload-form-dz { display: flex; gap: 12px; align-items: stretch; }
.upload-form-dz .dropzone { flex: 1; }
.upload-form-dz .btn { align-self: stretch; }
.dropzone-sm { padding: 16px 20px; }
.dropzone-sm .dropzone-icon { font-size: 22px; }
@media (max-width: 640px) { .upload-form-dz { flex-direction: column; } }

#upload-queue { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.upload-progress-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.upload-progress-bar > .progresso { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.triagem-resumo { margin-top: 14px; }
.triagem-resumo-card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--info-soft); border: 1px solid var(--info-border); color: var(--info-ink); font-size: 13px; }

/* docs — lista de linhas (estilo partes) */
.docs-grid { display: flex; flex-direction: column; gap: 10px; }
.doc-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r);
    background: var(--surface); box-shadow: var(--shadow-xs);
    transition: box-shadow .15s, border-color .15s;
}
.doc-row:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.doc-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.doc-open:hover .doc-name { color: var(--brand-strong); }
.doc-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--ink-2); }
.doc-thumb.pdf { background: linear-gradient(150deg, #e2574c, #c0392b); }
.doc-thumb.img { background: linear-gradient(150deg, #3b82f6, #1d4ed8); }
.doc-main { flex: 1; min-width: 0; }
.doc-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; transition: color .15s; }
.doc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.confidence-bar { display: inline-block; width: 46px; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; vertical-align: middle; margin-left: 4px; }
.confidence-fill { display: block; height: 100%; border-radius: 999px; background: var(--success); }
.confidence-fill.low { background: var(--danger); }
.confidence-fill.med { background: var(--warning); }
.doc-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.doc-detalhes { flex-basis: 100%; margin-top: 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.campos-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.campos-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.campos-table tr:last-child td { border-bottom: 0; }
.campo-label { color: var(--ink-3); text-transform: capitalize; white-space: nowrap; width: 40%; }
.campo-valor { color: var(--ink); font-weight: 500; }
.sel-tipo { height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12px; max-width: 170px; }

/* acervo (documentos disponíveis) */
#docs-disponiveis { display: flex; flex-direction: column; gap: 8px; }
.doc-item.selecionavel {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2);
    cursor: pointer; transition: background .14s, border-color .14s;
}
.doc-item.selecionavel:hover { background: var(--surface); border-color: var(--border-strong); }
.doc-item.selecionavel > div { flex: 1; min-width: 0; }
.doc-item.selecionavel strong { font-size: 13px; font-weight: 600; }
.doc-conf { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* visualizador de documento (PDF/imagem) */
.modal-content-lg { max-width: min(1600px, 98vw); width: min(1600px, 98vw); height: 96vh; max-height: 96vh; display: flex; flex-direction: column; }
.modal-pdf-body { flex: 1; min-height: 0; background: var(--surface-3); display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
.pdf-frame { width: 100%; height: 100%; min-height: 88vh; border: 0; background: #fff; }
.pdf-img { width: 100%; max-width: 1100px; height: auto; margin: 0 auto; display: block; }
.pdf-loading { margin: auto; color: var(--ink-3); font-size: 14px; }

.sugestao-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.sugestao-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.sugestao-card .nome { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.sugestao-card .campos { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ============================================================
   PARTES
   ============================================================ */
.parte-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; transition: box-shadow .15s, border-color .15s; }
.parte-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.parte-avatar { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--ink-2); }
.parte-avatar.vendedor { background: linear-gradient(150deg, #c2456a, #9d2449); }
.parte-avatar.comprador { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); }
.parte-avatar.interveniente { background: linear-gradient(150deg, #3b82f6, #1d4ed8); }
.parte-info { flex: 1; min-width: 0; }
.parte-info .nome { font-weight: 600; font-size: 14px; }
.parte-info .campos { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   PAINÉIS (análise de matrícula)
   ============================================================ */
.painel { padding: 16px; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--r); background: var(--surface-2); margin-bottom: 12px; }
.painel-info    { border-left-color: var(--info); }
.painel-atencao { border-left-color: var(--warning); background: var(--warning-soft); }
.painel-erro, .painel-irregular { border-left-color: var(--danger); background: var(--danger-soft); }
.painel-titulo { font-weight: 700; font-size: 14px; color: var(--ink); }
.painel-categoria { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.painel-meta { font-size: 12px; color: var(--ink-3); margin: 4px 0; }
.painel-conteudo { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
#resultado-sumario { font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* ============================================================
   CHAT (pagamento)
   ============================================================ */
.chat-window { display: flex; flex-direction: column; height: 460px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.msg { max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; animation: rise .25s ease both; }
.msg-assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--ink); box-shadow: var(--shadow-xs); }
.msg-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.3s infinite both; }
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input { flex: 1; }

/* Campos de data — estilo consistente e bonito */
input[type=date], input[type=time], input[type=datetime-local] {
    appearance: none; -webkit-appearance: none;
    color: var(--ink); cursor: pointer; position: relative;
}
input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: .55; padding: 2px; border-radius: 4px;
    transition: opacity .14s, background .14s;
}
input[type=date]::-webkit-calendar-picker-indicator:hover,
input[type=time]::-webkit-calendar-picker-indicator:hover,
input[type=datetime-local]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--brand-soft); }
input[type=date]:invalid, input[type=date]:not(:focus):placeholder-shown { color: var(--ink-3); }

/* ============================================================
   PREVIEWS DE DOCUMENTO (clausula / minuta) — cara de papel
   ============================================================ */
.clausula-preview, .minuta-preview {
    font-family: var(--font-display); font-size: 14px; line-height: 1.85; color: #2a2a26;
    white-space: pre-wrap; word-wrap: break-word;
    padding: 32px 38px; margin: 0;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        repeating-linear-gradient(transparent, transparent 31px, #f0efe8 31px, #f0efe8 32px) padding-box;
    border-top: 1px solid var(--border);
    max-height: 560px; overflow-y: auto;
}
.minuta-preview { box-shadow: inset 0 0 0 1px var(--border); }
.minuta-editor {
    width: 100%; min-height: 420px; resize: vertical;
    font-family: var(--font-display); font-size: 14px; line-height: 1.85; color: #2a2a26;
    padding: 32px 38px; border: 0; border-top: 1px solid var(--border);
    background: #fffdf7; outline: none;
}
.minuta-editor:focus { box-shadow: inset 0 0 0 2px var(--brand); }
/* Modo escuro: o preview/editor tinham cor e fundo claros fixos (texto preto
   ilegível no escuro). Usa as variáveis do tema. */
[data-theme="dark"] .clausula-preview,
[data-theme="dark"] .minuta-preview {
    color: var(--ink);
    background: var(--surface);
}
[data-theme="dark"] .minuta-editor {
    color: var(--ink);
    background: var(--surface-2);
}
.minuta-editor-toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--surface-2); border: 1px solid var(--border); border-bottom: none; border-radius: var(--r) var(--r) 0 0; }
.btn-xs { padding: 2px 9px; font-size: 12px; min-width: 30px; font-weight: 600; }
.minuta-editor-count { margin-left: auto; font-size: 12px; color: var(--text-muted, #888); }
.minuta-editor-toolbar:not([hidden]) + .minuta-editor { border-top-left-radius: 0; border-top-right-radius: 0; }

/* ============================================================
   TEMPLATES (cláusulas adicionais)
   ============================================================ */
#templates-list, #templates-poderes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.template-card { display: flex; gap: 10px; align-items: flex-start; padding: 15px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.template-card > input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.template-card > div { min-width: 0; }
.template-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.template-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.template-card .titulo { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }

/* ============================================================
   TABELAS (custos / metadados)
   ============================================================ */
.custos-table, .meta-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.custos-table th, .meta-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.custos-table td, .meta-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.custos-table tr:last-child td { border-bottom: 0; }
.custos-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24,36,31,.5); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-content { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); animation: rise .26s cubic-bezier(.2,.7,.3,1) both; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ============================================================
   TOASTS
   ============================================================ */
#toast-container { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { padding: 13px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); box-shadow: var(--shadow-md); animation: slidein .3s cubic-bezier(.2,.7,.3,1) both; }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.toast-msg { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* Painel de custos de IA */
.custos-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.custos-kpis .kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.custos-kpis .kpi-valor { font-size: 22px; font-weight: 700; color: var(--ink); }
.custos-kpis .kpi-label { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.custos-grafico { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.custos-bar { flex: 1; min-width: 3px; height: 100%; display: flex; align-items: flex-end; }
.custos-bar-fill { width: 100%; background: var(--brand); border-radius: 2px 2px 0 0; transition: opacity .12s; }
.custos-bar:hover .custos-bar-fill { opacity: .7; }
.custos-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.custos-tabela th, .custos-tabela td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.custos-tabela th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.custos-tabela td:not(:first-child), .custos-tabela th:not(:first-child) { text-align: right; }

/* Alternador de agrupamento de documentos */
.docs-modo-toggle { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 12.5px; color: var(--ink-3); }
.doc-modo { border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }
.doc-modo.ativo { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Exigências de documentos */
.exig-itens { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.exig-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); }
.exig-row .exig-label { flex: 1; min-width: 160px; }
.exig-row .exig-tags { min-width: 220px; max-width: 320px; }

/* Resumo de uma linha no card de documento */
.doc-resumo { font-size: 12px; color: var(--ink-2); margin: 2px 0 4px; line-height: 1.35; }

/* Vínculo documento ↔ parte */
.sel-parte { max-width: 180px; font-size: 12px; }
.sel-parte.sugerido { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.vinculo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--brand); border-radius: var(--r); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); font-size: 13px; }

/* Validação cruzada entre documentos */
.docs-cruzada-card { border: 1px solid var(--warning, #b7791f); border-radius: var(--r); background: color-mix(in srgb, var(--warning, #b7791f) 6%, var(--surface)); padding: 12px 14px; margin: 12px 0; }
.docs-cruzada-head { font-size: 13.5px; font-weight: 700; color: var(--warning, #b7791f); margin-bottom: 8px; }

/* Agrupamento e filtro de documentos */
.docs-filtro-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.doc-chip { border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; transition: all .12s; }
.doc-chip:hover { border-color: var(--brand); }
.doc-chip.ativo { background: var(--brand); color: #fff; border-color: var(--brand); }
.docs-grupo { margin-bottom: 18px; }
.docs-grupo-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.docs-grupo-cnt { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; font-size: 11px; color: var(--ink-2); }

/* Checklist de documentos do ato */
.docs-checklist-card { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); padding: 12px 14px; margin: 12px 0; }
.docs-checklist-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 8px; }
details.docs-checklist-card > summary.docs-checklist-head { margin-bottom: 0; cursor: pointer; list-style: none; user-select: none; }
details.docs-checklist-card > summary.docs-checklist-head::-webkit-details-marker { display: none; }
details.docs-checklist-card > summary.docs-checklist-head::before { content: "▸"; color: var(--text-muted, #888); font-size: 11px; transition: transform .15s; }
details.docs-checklist-card[open] > summary.docs-checklist-head::before { transform: rotate(90deg); }
details.docs-checklist-card[open] > summary.docs-checklist-head { margin-bottom: 8px; }
.chk-resumo { font-size: 12.5px; font-weight: 600; }
.chk-resumo.pend { color: var(--warning, #b7791f); }
.chk-resumo.ok { color: var(--success); }
.docs-checklist-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.chk-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.chk-item .chk-icone { width: 18px; text-align: center; font-weight: 700; }
.chk-item.ok .chk-icone { color: var(--success); }
.chk-item.ok .chk-label { color: var(--ink); }
.chk-item.falta-obr .chk-icone { color: var(--warning, #b7791f); }
.chk-item.falta-obr .chk-label { color: var(--ink); }
.chk-item.falta-opc { color: var(--ink-3); }
.chk-opc { color: var(--ink-3); font-style: italic; }

/* Tipos de ato */
.tipo-ato-toggles { display: flex; gap: 18px; flex-wrap: wrap; }
.ta-papeis { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.ta-papel-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); }
.ta-papel-row .ta-papel-label { flex: 1; min-width: 160px; }

/* Painel de pendências (consolidação) */
.pendencias-head { font-size: 13.5px; color: var(--ink); padding: 10px 0 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pendencias-head.ok { color: var(--success); }
.pend-cnt { font-size: 12.5px; font-weight: 600; }
.pend-cnt.erro { color: var(--danger, #c0392b); }
.pend-cnt.atencao { color: var(--warning, #b7791f); }
.pend-grupo { margin-top: 10px; }
.pend-grupo-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }

/* Filtros da lista de minutas */
.minutas-filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.minutas-filtros #minutas-busca { flex: 1; min-width: 220px; }
.minutas-filtros select { max-width: 200px; }

/* Coleção Postman */
.btn-sep { width: 1px; align-self: stretch; background: var(--border); margin: 0 2px; }
.integ-postman-key { display: flex; flex-direction: column; gap: 5px; max-width: 520px; }
.integ-postman-key > span { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* Análise da matrícula inline no card de imóvel */
.imovel-analise-wrap { margin: 0 0 12px; }
.imovel-analise { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); padding: 12px 14px; }
.imovel-analise-inner { display: flex; flex-direction: column; gap: 8px; }
.ia-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ia-num { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ia-sumario { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.ia-sec-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; margin-top: 4px; }
.ia-props { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ia-props li { font-size: 12.5px; color: var(--ink); }
.ia-props .ia-meta, .ia-meta { font-size: 11.5px; color: var(--ink-3); }

/* Tipos de ato na cláusula */
.cl-atos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.cl-atos-label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cl-ato-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); }

/* Link de emissão de certidão (wizard) */
.cert-emitir { display: inline-block; margin: 2px 0 8px; font-size: 12.5px; color: var(--brand-strong); text-decoration: none; }
.cert-emitir:hover { text-decoration: underline; }

/* Prompts (gestão central) */
.prompts-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .prompts-layout { grid-template-columns: 1fr; } }
.prompts-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; }
.prompt-grupo { margin-bottom: 10px; }
.prompt-grupo-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); padding: 8px 10px 4px; }
.prompt-slot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; background: transparent; border: none; border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px; color: var(--ink-1); text-align: left; }
.prompt-slot:hover { background: var(--surface-2); }
.prompt-slot.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.prompt-padrao-tag { font-size: 11px; color: var(--ink-3); }
.prompt-textarea { width: 100%; min-height: 360px; font-family: var(--font-mono, monospace); font-size: 12.5px; line-height: 1.6; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); resize: vertical; background: var(--surface-2); color: var(--ink-1); }
.prompt-default { margin-top: 10px; font-size: 12.5px; }
.prompt-default summary { cursor: pointer; color: var(--brand-strong); }
.prompt-default pre { white-space: pre-wrap; background: var(--surface-3); border-radius: var(--r-sm); padding: 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); max-height: 280px; overflow: auto; }
.prompt-historico { margin-top: 16px; }
.prompt-hist-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); margin-bottom: 8px; }
.prompt-hist-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 8px; }
.prompt-hist-item.is-ativo { border-color: var(--brand); background: var(--brand-soft); }

/* Revisão jurídica por IA (enriquecimento) */
.revisao-box { padding: 14px 18px; border-top: 1px solid var(--border); }
.revisao-head { font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.revisao-ok { color: var(--success); font-size: 13px; }
.revisao-item { border-left: 3px solid var(--border-strong); padding: 8px 12px; margin-bottom: 8px; background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.revisao-item.sev-erro { border-left-color: var(--danger); }
.revisao-item.sev-atencao { border-left-color: var(--warning); }
.revisao-item.sev-info { border-left-color: var(--brand); }
.revisao-titulo { font-weight: 600; font-size: 13px; }
.revisao-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.revisao-sug { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-style: italic; }

/* Integração (Etapa 6) */
.chave-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--r-sm); }
.chave-box code { flex: 1; font-family: var(--font-mono, monospace); font-size: 13px; color: var(--brand-strong); word-break: break-all; }
.integ-ref { background: var(--surface-3); border-radius: var(--r-sm); padding: 14px 16px; font-family: var(--font-mono, monospace); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }

/* Certidões (Etapa 4) — reusa .clausula-card */
.cert-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.cert-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.cert-field > span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.cert-field.cert-field-sm { flex: 0 0 130px; min-width: 0; }
.cert-field.cert-field-full { flex: 1 1 100%; }
.cert-mencao-label { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.cert-card .ct-template { width: 100%; resize: vertical; font-family: var(--font-mono, monospace); font-size: 12.5px; line-height: 1.5; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); }
.cert-card .ct-template:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft-2); outline: none; }
.cert-preview { font-size: 12px; margin-top: 6px; font-style: italic; }

/* ============================================================
   CONFIG DE CLÁUSULAS (Etapa 3)
   ============================================================ */
.clausula-card { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-xs); }
.clausula-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.clausula-card-top .cl-titulo, .clausula-card-top .ct-nome { flex: 1; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.cl-ativo-label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); white-space: nowrap; cursor: pointer; }
.clausula-card .cl-desc { width: 100%; margin-bottom: 8px; font-size: 13px; }
.clausula-card .cl-texto { width: 100%; resize: vertical; font-family: var(--font-mono, monospace); font-size: 12.5px; line-height: 1.55; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); }
.clausula-card .cl-texto:focus, .clausula-card .cl-desc:focus, .clausula-card .cl-titulo:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft-2); outline: none; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .config-grid { grid-template-columns: 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
    font-family: var(--font-mono, monospace); font-size: 11.5px;
    padding: 4px 9px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--ink-2);
    transition: background .14s, border-color .14s, color .14s;
}
.chip:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.qual-template {
    width: 100%; min-height: 240px; resize: vertical;
    font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
    font-size: 13px; line-height: 1.6; padding: 14px 16px;
    border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink);
}
.qual-template:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft-2); outline: none; }
.qual-preview {
    font-family: var(--font-display); font-size: 14px; line-height: 1.85; color: #2a2a26;
    background: #fffdf7; border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: 22px 24px; min-height: 240px; text-align: justify;
}
.lista-rows { display: flex; flex-direction: column; }
.lista-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.lista-row:last-child { border-bottom: 0; }
.lista-row-main { flex: 1; min-width: 0; }
.lista-row-titulo { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lista-row-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.lista-row-acoes { display: flex; align-items: center; gap: 6px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
    .wizard-layout { grid-template-columns: 1fr; }
    .wizard-aside { position: static; }
}
@media (max-width: 860px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 50;
        flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px;
        border-right: 0; border-top: 1px solid var(--side-border); overflow-x: auto;
    }
    .brand-row, .nav-group-label, .sidebar-footer, .soon { display: none; }
    .nav-group { flex-direction: row; }
    .nav-link span:not(.icon) { display: none; }
    .nav-link { padding: 10px 14px; }
    .main-area { padding-bottom: 64px; }
    .view { padding: 18px; }
    .topbar { padding: 0 18px; }
    .shortcut-hint { display: none; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
    .msg { max-width: 90%; }
}

/* Coluna de erro na aba Processamento */
.proc-erro { max-width: 340px; white-space: normal; word-break: break-word; font-size: 12px; color: var(--danger, #c0392b); line-height: 1.4; }

/* ===== Listas de configuração (Cláusulas / Certidões / Poderes) ===== */
.cfg-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px;
}
.cfg-row:hover { border-color: var(--border-strong); }
.cfg-row-main { min-width: 0; flex: 1; }
.cfg-row-title {
    font-weight: 600; font-size: 14px; color: var(--ink);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cfg-row-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.cfg-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.cfg-badge {
    font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.cfg-badge.ok { background: var(--success-soft); color: var(--success-ink); }
.cfg-badge.off { background: var(--surface-3); color: var(--ink-3); }
.cfg-badge.info { background: var(--info-soft); color: var(--info-ink); }

/* Ícone da barra de pendências não pode herdar tamanho gigante do svg */
.pendencias-head svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Seleção de tipos de documento (Exigências) — maior e mais legível */
select.exig-tags {
    min-width: 240px; width: 100%; min-height: 110px; padding: 6px 8px;
    font-size: 13px; line-height: 1.5; border: 1px solid var(--border);
    border-radius: 8px; background: var(--surface);
}
select.exig-tags option { padding: 3px 4px; }

/* Erro clicável na aba Processamento + modal */
.proc-erro-link {
    background: none; border: none; padding: 0; text-align: left; cursor: pointer;
    color: var(--danger); font: inherit; font-size: 12px; text-decoration: underline;
    text-decoration-style: dotted; max-width: 340px; white-space: normal; word-break: break-word;
}
.proc-erro-link:hover { color: var(--danger-ink); }
.erro-proc-pre {
    background: var(--surface-3); border: 1px solid var(--border); border-radius: 8px;
    padding: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word;
    font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin: 0;
}

/* Minuta: texto fluido, justificado, com negrito (render HTML) */
.minuta-preview { white-space: normal; text-align: justify; }
.minuta-preview p { text-align: justify; margin: 0 0 0.9em; text-indent: 1.5em; }
.minuta-preview p:first-child { text-indent: 0; }
.minuta-preview p:last-child { margin-bottom: 0; }
.minuta-preview strong { font-weight: 700; }

/* ===== Extras do starter ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.stat-card .stat-label { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.stat-card .stat-delta { font-size: 12px; margin-top: 4px; }
.stat-card .stat-delta.up { color: var(--success); }
.stat-card .stat-delta.down { color: var(--danger); }
.modal-checks { display: flex; flex-direction: column; gap: 8px; }
.modal-checks label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }

/* ===== Verus Deployer — componentes específicos ===== */
.mono { font-family: var(--font-mono); font-size: 12px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.proj-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.proj-head { display: flex; justify-content: space-between; align-items: center; }
.proj-title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.proj-title strong { color: var(--ink); }
.proj-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.proj-meta > div { display: flex; align-items: center; gap: 6px; }
.proj-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 4px; }
.proj-excluir { margin-left: auto; padding-left: 8px; padding-right: 8px; }
.proj-excluir .btn-ico { margin: 0; }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.badge-ok { background: var(--success-soft); color: var(--success-ink); border-color: var(--success-border); }
.badge-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-border); }
.badge-info { background: var(--info-soft); color: var(--info-ink); border-color: var(--info-border); }
.badge-muted { background: var(--surface-3); color: var(--ink-3); border-color: var(--border); }

.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th { text-align: left; padding: 10px 14px; background: var(--brand); color: #fff; font-weight: 600; font-size: 12px; }
.tbl tbody td { padding: 10px 14px; border-top: 1px solid var(--border); }
.tbl tbody tr:hover { background: var(--surface-2); }

.log-box { background: #0d1117; color: #d1d5da; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; padding: 14px; border-radius: 10px; max-height: 440px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.log-status-row { margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }

.secret-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.secret-val { flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-3); padding: 10px 12px; border-radius: 8px; word-break: break-all; }

.empty-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.empty-icon svg { width: 26px; height: 26px; }

/* ===== Deploys: tabela mais compacta e legível ===== */
.deploys-card { padding: 0; overflow: hidden; }
.tbl-deploys { table-layout: auto; }
.tbl-deploys thead th { padding: 9px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.tbl-deploys tbody td { padding: 8px 14px; font-size: 13px; }
.tbl-deploys tbody tr:hover { background: var(--surface-2); }
.col-gatilho {
    max-width: 640px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--ink-2);
}
.content { max-width: 1600px; }

/* dica sob os campos do formulário */
.hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.hint code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; }

/* campos do modal de webhook (URL + secret) */
.wh-field { margin-top: 12px; }
.wh-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 5px; }

/* ===== Central VPS ===== */
.central-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.central-auto { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ct-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; border-left: 3px solid var(--border); }
.ct-card.ok { border-left-color: var(--success-border); }
.ct-card.warn { border-left-color: var(--warning-border); }
.ct-card.off { border-left-color: var(--danger-border); }
.ct-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--ink-3); }
.ct-dot.ok { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.ct-dot.warn { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.ct-dot.off { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.ct-img { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-metrics { display: flex; gap: 12px; flex-wrap: wrap; min-height: 16px; }
.ct-metric { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.ct-metric svg { width: 12px; height: 12px; }
.ct-actions { display: flex; gap: 6px; margin-top: 2px; }
.log-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }

/* ===== Central: painel de recursos da VPS ===== */
.vps-recursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; }
.rec-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.rec-titulo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.rec-valor { font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.rec-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rec-bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; background: var(--ink-3); }
.rec-ok { color: #16a34a; } .rec-bar-fill.rec-ok { background: #16a34a; }
.rec-warn { color: #d97706; } .rec-bar-fill.rec-warn { background: #d97706; }
.rec-danger { color: #dc2626; } .rec-bar-fill.rec-danger { background: #dc2626; }
.rec-sub { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }

/* busca da central */
.central-search { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 6px 10px; min-width: 240px; }
.central-search svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.central-search input { border: none; background: transparent; outline: none; font-size: 13.5px; color: var(--ink); width: 100%; }
.central-bar { flex-wrap: wrap; }

/* foguete no breadcrumb da topbar */
.breadcrumb { display: flex; align-items: center; gap: 7px; }
.bc-rocket { display: inline-flex; color: var(--brand); }
.bc-rocket svg { width: 16px; height: 16px; }
