/* Tokens estruturais: iguais para todos os clientes. */
:root{
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;--space-9:96px;
  --text-xs:12px;--text-sm:14px;--text-base:16px;--text-lg:18px;--text-xl:20px;
  --heading-sm:24px;--heading-md:32px;--heading-lg:44px;--heading-xl:clamp(42px,6vw,64px);
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);--shadow-md:0 8px 24px rgba(0,0,0,.10);--shadow-lg:0 20px 45px rgba(0,0,0,.14);
  --container:1200px;
}

/* Componentes ROTA. Usam apenas tokens semânticos (var(--...)); nunca valores brutos. */
.themed{font-family:var(--font-body);color:var(--text-primary)}
.themed :where(h1,h2,h3,h4){font-family:var(--font-display)}
.r-btn{--button-bg:var(--brand-primary);--button-fg:var(--brand-primary-contrast);--button-bg-hover:var(--brand-primary-hover);--button-border:transparent;
  appearance:none;cursor:pointer;font:600 var(--text-base)/1.1 var(--font-body);display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);
  min-height:44px;padding:0 var(--space-5);border:2px solid var(--button-border);border-radius:var(--radius-md);background:var(--button-bg);color:var(--button-fg);text-decoration:none;
  transition:background-color .15s,color .15s,border-color .15s;white-space:nowrap}
.r-btn:hover:not(:disabled):not([aria-disabled="true"]),.r-btn.is-hover{background:var(--button-bg-hover)}
.r-btn:focus-visible,.r-btn.is-focus{outline:3px solid var(--brand-primary-ink);outline-offset:3px}
.r-btn:disabled,.r-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.r-btn.is-loading{pointer-events:none}
.r-btn--secondary{--button-bg:var(--brand-secondary);--button-fg:var(--text-inverse);--button-bg-hover:color-mix(in srgb,var(--brand-secondary) 84%,#000)}
.r-btn--outline{--button-bg:transparent;--button-fg:var(--brand-primary-ink);--button-border:var(--brand-primary-ink);--button-bg-hover:color-mix(in srgb,var(--brand-primary-ink) 10%,transparent)}
.r-btn--ghost{--button-bg:transparent;--button-fg:var(--brand-primary-ink);--button-bg-hover:color-mix(in srgb,var(--brand-primary-ink) 10%,transparent)}
.r-btn--sm{min-height:36px;padding:0 var(--space-4);font-size:var(--text-sm)}
.r-btn--lg{min-height:52px;padding:0 var(--space-6);font-size:var(--text-lg)}
.r-iconbtn{appearance:none;cursor:pointer;width:44px;height:44px;display:inline-grid;place-items:center;border-radius:var(--radius-md);border:1.5px solid var(--border-strong);background:var(--surface-card);color:var(--text-primary)}
.r-iconbtn:hover{border-color:var(--brand-primary-ink);color:var(--brand-primary-ink)}
.r-iconbtn:focus-visible{outline:3px solid var(--brand-primary-ink);outline-offset:3px}
.r-spin{width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.r-spin{animation-duration:2s}}

.r-field{display:grid;gap:6px;min-width:0}
.r-label{font-weight:600;font-size:var(--text-sm)}
.r-input,.r-select,.r-textarea{font:inherit;width:100%;min-height:44px;padding:10px 14px;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface-card);color:var(--text-primary)}
.r-textarea{min-height:96px;resize:vertical}
.r-input::placeholder,.r-textarea::placeholder{color:var(--text-muted)}
.r-input:focus-visible,.r-select:focus-visible,.r-textarea:focus-visible{outline:3px solid var(--brand-primary-ink);outline-offset:1px;border-color:var(--brand-primary-ink)}
.r-help{font-size:var(--text-xs);color:var(--text-muted)}
.r-field[data-invalid="true"] .r-input{border-color:var(--danger)}
.r-error{font-size:var(--text-sm);color:var(--danger);font-weight:500}
.r-check{display:flex;gap:10px;align-items:center;min-height:32px;cursor:pointer}
.r-check input{width:20px;height:20px;accent-color:var(--brand-primary-ink);margin:0}
.r-switch{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:12px}
.r-switch .trk{width:46px;height:26px;border-radius:999px;background:var(--border-strong);position:relative;transition:background-color .15s;flex:none}
.r-switch .trk::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
.r-switch[aria-checked="true"] .trk{background:var(--brand-primary-ink)}
.r-switch[aria-checked="true"] .trk::after{transform:translateX(20px)}
.r-switch:focus-visible{outline:3px solid var(--brand-primary-ink);outline-offset:3px;border-radius:999px}
@media (prefers-reduced-motion:reduce){.r-switch .trk,.r-switch .trk::after{transition:none}}

.r-badge{display:inline-flex;align-items:center;gap:6px;font-size:var(--text-xs);font-weight:600;padding:3px 10px;border-radius:var(--radius-pill);background:color-mix(in srgb,var(--brand-primary-ink) 12%,var(--surface-card));color:var(--brand-primary-ink)}
.r-badge--success{background:color-mix(in srgb,var(--success) 14%,var(--surface-card));color:color-mix(in srgb,var(--success) 62%,#000)}
.r-badge--warning{background:color-mix(in srgb,var(--warning) 14%,var(--surface-card));color:color-mix(in srgb,var(--warning) 55%,#000)}
.r-badge--danger{background:color-mix(in srgb,var(--danger) 12%,var(--surface-card));color:color-mix(in srgb,var(--danger) 78%,#000)}
.r-badge--neutral{background:var(--surface-soft);color:var(--text-secondary);box-shadow:inset 0 0 0 1px var(--border-light)}
.r-tag{display:inline-flex;font-size:var(--text-sm);padding:4px 12px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);color:var(--text-secondary);background:var(--surface-card)}

.r-card{--card-bg:var(--surface-card);--card-border:var(--border-light);--card-radius:var(--radius-lg);
  background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--card-radius);box-shadow:var(--shadow-sm);padding:var(--space-5);display:grid;gap:var(--space-3);align-content:start;min-width:0}
.r-card h4{margin:0;font-size:var(--text-xl);line-height:1.2;font-weight:600}
.r-card p{margin:0;color:var(--text-secondary)}
.r-bubble{width:44px;height:44px;border-radius:var(--radius-md);display:grid;place-items:center;background:color-mix(in srgb,var(--brand-primary) 14%,var(--surface-card));color:var(--brand-secondary)}
.r-link{color:var(--brand-primary-ink);font-weight:600;text-underline-offset:3px}
.r-ph{aspect-ratio:4/3;border-radius:var(--radius-md);background:color-mix(in srgb,var(--brand-secondary) 12%,var(--surface-soft));display:grid;place-items:center;color:var(--brand-secondary)}
.r-price{font:700 var(--heading-sm)/1 var(--font-display)}
.r-avatar{width:44px;height:44px;border-radius:50%;background:var(--brand-secondary);color:var(--text-inverse);display:grid;place-items:center;font:600 16px var(--font-display);flex:none}
.r-metric{font:700 var(--heading-md)/1 var(--font-display);color:var(--brand-secondary)}
.r-grid{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}

.r-alert{display:flex;gap:12px;padding:14px 16px;border-radius:var(--radius-md);border:1px solid color-mix(in srgb,var(--_c) 35%,var(--surface-card));border-left:4px solid var(--_c);background:color-mix(in srgb,var(--_c) 8%,var(--surface-card));color:var(--text-primary)}
.r-alert svg{flex:none;color:var(--_c);margin-top:2px}
.r-alert b{display:block}
.r-alert p{margin:2px 0 0;color:var(--text-secondary);font-size:var(--text-sm)}
.r-alert--success{--_c:var(--success)}.r-alert--warning{--_c:var(--warning)}.r-alert--danger{--_c:var(--danger)}.r-alert--info{--_c:var(--info)}
.toastzone{display:grid;gap:8px;min-height:64px;margin-top:16px;justify-items:start}
.r-toast{background:var(--surface-dark);color:var(--text-inverse);padding:12px 16px;border-radius:var(--radius-md);box-shadow:var(--shadow-md);font-size:var(--text-sm);display:flex;gap:10px;align-items:center}
.r-toast svg{color:var(--brand-accent)}
dialog.r-modal{border:0;padding:0;border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);width:min(440px,calc(100vw - 32px));background:var(--surface-card);color:var(--text-primary);font-family:var(--font-body)}
dialog.r-modal::backdrop{background:rgba(10,14,20,.55)}
.r-modal .in{padding:var(--space-5);display:grid;gap:var(--space-3)}
.r-modal h4{margin:0;font:600 var(--text-xl)/1.2 var(--font-display)}
.r-modal p{margin:0;color:var(--text-secondary)}
.r-tabs [role="tablist"]{display:flex;gap:4px;border-bottom:1px solid var(--border-light);overflow-x:auto}
.r-tabs [role="tab"]{all:unset;box-sizing:border-box;cursor:pointer;padding:12px 16px;font-weight:600;color:var(--text-secondary);border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.r-tabs [role="tab"][aria-selected="true"]{color:var(--brand-primary-ink);border-bottom-color:var(--brand-primary-ink)}
.r-tabs [role="tab"]:focus-visible{outline:3px solid var(--brand-primary-ink);outline-offset:-3px;border-radius:var(--radius-sm)}
.r-tabs [role="tabpanel"]{padding:var(--space-4) 0 0;color:var(--text-secondary)}
.r-acc{border:1px solid var(--border-light);border-radius:var(--radius-md);background:var(--surface-card);overflow:hidden}
.r-acc details+details{border-top:1px solid var(--border-light)}
.r-acc summary{cursor:pointer;padding:14px 18px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}
.r-acc summary::-webkit-details-marker{display:none}
.r-acc summary::after{content:"+";font-size:20px;line-height:1;color:var(--brand-primary-ink)}
.r-acc details[open] summary::after{content:"–"}
.r-acc summary:focus-visible{outline:3px solid var(--brand-primary-ink);outline-offset:-3px}
.r-acc .body{padding:0 18px 16px;color:var(--text-secondary)}
.r-skel{position:relative;overflow:hidden;background:color-mix(in srgb,var(--text-primary) 8%,transparent);border-radius:var(--radius-sm);height:14px}
.r-skel::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--surface-page) 70%,transparent),transparent);transform:translateX(-100%);animation:shimmer 1.4s infinite}
@keyframes shimmer{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.r-skel::after{animation:none}}
.r-state{text-align:center;padding:var(--space-6) var(--space-4);display:grid;gap:var(--space-3);justify-items:center;max-width:44ch;margin:0 auto}
.r-state h4{margin:0;font-size:var(--heading-sm);line-height:1.15}
.r-state p{margin:0;color:var(--text-secondary)}
.r-state .r-bubble{width:56px;height:56px;border-radius:50%}
.r-banner{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:var(--radius-md);background:color-mix(in srgb,var(--warning) 14%,var(--surface-card));border:1px solid color-mix(in srgb,var(--warning) 40%,var(--surface-card));font-size:var(--text-sm);margin-bottom:var(--space-4)}

/* contexto de superfície escura: remapeia tokens, sem tocar nos componentes */
.on-dark{--brand-primary:var(--brand-accent);--brand-primary-hover:color-mix(in srgb,var(--brand-accent) 82%,#fff);--brand-primary-contrast:var(--brand-secondary);--brand-primary-ink:var(--brand-accent);
  --text-primary:var(--text-inverse);--text-secondary:color-mix(in srgb,var(--text-inverse) 78%,transparent);--surface-page:var(--surface-dark);background:var(--surface-dark);color:var(--text-inverse)}




:root {
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-contrast: #ffffff;
  --brand-primary-ink: #1d4ed8;
  --brand-secondary: #0f172a;
  --brand-accent: #12b76a;
  --surface-page: #f6f8fb;
  --surface-soft: #f1f5f9;
  --surface-card: #ffffff;
  --surface-dark: #0b1220;
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-muted: #667085;
  --text-inverse: #ffffff;
  --success: #16834a;
  --warning: #ad6800;
  --danger: #c43b3b;
  --info: #2667a8;
  --border-light: #e4e7ec;
  --border-default: #d0d5dd;
  --border-strong: #98a2b3;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--surface-page); }
body { margin: 0; min-width: 320px; background: var(--surface-page); color: var(--text-primary); font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: var(--surface-dark); color: var(--text-inverse); display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--brand-accent); color: var(--brand-secondary); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: rgba(255,255,255,.66); margin-top: 2px; }
.nav { display: grid; gap: 6px; }
.nav a { text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); color: rgba(255,255,255,.78); font-weight: 600; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-icon { width: 22px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); }
.sidebar-foot strong { font-size: 13px; }
.sidebar-foot p { margin: 6px 0 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }

.mobile-top { display: none; }
.main { min-width: 0; }
.topbar { min-height: 76px; padding: 14px clamp(18px, 4vw, 48px); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar-title strong { display: block; font-size: 15px; }
.topbar-title span { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.page { width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 70px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.page-head p { margin: 8px 0 0; color: var(--text-secondary); max-width: 680px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.hero-panel { display: grid; grid-template-columns: 1.4fr .9fr; gap: 20px; align-items: stretch; margin-bottom: 22px; }
.hero-copy { background: linear-gradient(135deg, var(--brand-secondary), #17493e); color: #fff; border-radius: var(--radius-xl); padding: clamp(26px, 5vw, 48px); position: relative; overflow: hidden; }
.hero-copy::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -100px; background: rgba(255,183,3,.22); }
.hero-copy .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #ffd66b; }
.hero-copy h1 { margin: 18px 0 12px; font-size: clamp(34px, 5vw, 56px); line-height: .98; max-width: 620px; letter-spacing: -.05em; }
.hero-copy p { margin: 0; max-width: 620px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; }
.hero-copy .actions { margin-top: 24px; position: relative; z-index: 1; }
.hero-copy .r-btn--outline { --button-fg: #fff; --button-border: rgba(255,255,255,.7); --button-bg-hover: rgba(255,255,255,.1); }
.demo-note { background: var(--surface-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 26px; display: grid; align-content: center; box-shadow: var(--shadow-sm); }
.demo-note .big { font-size: 42px; font-weight: 800; letter-spacing: -.04em; color: var(--brand-primary); }
.demo-note h3 { margin: 12px 0 6px; font-size: 20px; }
.demo-note p { margin: 0; color: var(--text-secondary); line-height: 1.55; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { background: var(--surface-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.metric span { display: block; color: var(--text-muted); font-size: 13px; font-weight: 650; }
.metric strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -.03em; }
.metric em { display: inline-flex; margin-top: 7px; font-size: 12px; font-style: normal; color: var(--brand-primary-ink); font-weight: 650; }

.panel { background: var(--surface-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border-light); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 18px; }
.panel-body { padding: 22px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { color: var(--text-muted); font-size: 12px; text-align: left; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.table td { padding: 15px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-soft); }
.table a { text-decoration: none; font-weight: 700; }
.table .sub { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; font-weight: 500; }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.badge.info { color: #1f5f94; background: #eaf3fb; }
.badge.success { color: #0f6a3b; background: #e7f6ed; }
.badge.warning { color: #7d4d00; background: #fff3d6; }
.badge.danger { color: #9c2929; background: #fdeaea; }
.badge.neutral { color: #52625e; background: #edf1ef; }

.toolbar { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; min-width: min(360px, 100%); flex: 1; max-width: 440px; }
.search input { padding-left: 40px; }
.search::before { content: '⌕'; position: absolute; left: 14px; top: 9px; color: var(--text-muted); z-index: 1; font-size: 19px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--border-light); background: var(--surface-card); border-radius: 999px; min-height: 38px; padding: 0 13px; cursor: pointer; color: var(--text-secondary); font-weight: 650; font-size: 13px; }
.filter.active, .filter:hover { border-color: var(--brand-primary); color: var(--brand-primary-ink); background: color-mix(in srgb, var(--brand-primary) 8%, white); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { padding: 22px; border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--surface-card); box-shadow: var(--shadow-sm); }
.form-section + .form-section { margin-top: 16px; }
.form-section h2 { margin: 0 0 6px; font-size: 20px; }
.form-section > p { margin: 0 0 18px; color: var(--text-secondary); }
.items-editor { display: grid; gap: 10px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 140px 44px; gap: 10px; align-items: start; }
.item-row .r-iconbtn { color: var(--danger); }
.totals-box { margin-top: 16px; margin-left: auto; width: min(420px, 100%); padding: 18px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--surface-soft); }
.total-line { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; color: var(--text-secondary); }
.total-line.strong { padding-top: 12px; margin-top: 7px; border-top: 1px solid var(--border-default); color: var(--text-primary); font-weight: 800; font-size: 20px; }
.sticky-actions { position: sticky; bottom: 14px; margin-top: 20px; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); display: flex; justify-content: flex-end; gap: 10px; z-index: 15; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; align-items: start; }
.quote-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.quote-brand { display: flex; justify-content: space-between; gap: 24px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--border-light); }
.quote-brand h2 { margin: 0; font-size: 24px; }
.quote-brand p { margin: 6px 0 0; color: var(--text-secondary); }
.quote-number { text-align: right; }
.quote-number strong { display: block; font-size: 15px; }
.quote-number span { color: var(--text-muted); font-size: 12px; }
.quote-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; }
.quote-intro h3 { margin: 0 0 7px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.quote-intro p { margin: 0; }
.quote-items { width: 100%; border-collapse: collapse; }
.quote-items th { padding: 10px 8px; border-bottom: 1px solid var(--border-default); text-align: left; color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.quote-items td { padding: 13px 8px; border-bottom: 1px solid var(--border-light); }
.quote-items th:nth-child(n+2), .quote-items td:nth-child(n+2) { text-align: right; }
.quote-totals { margin: 18px 0 0 auto; width: min(360px, 100%); }
.quote-note { margin-top: 26px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-soft); color: var(--text-secondary); line-height: 1.5; }
.side-stack { display: grid; gap: 14px; }
.side-card { background: var(--surface-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h3 { margin: 0 0 14px; font-size: 17px; }
.side-card .actions { display: grid; }
.side-card .actions .r-btn { width: 100%; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; min-height: 54px; }
.timeline-dot { width: 10px; height: 10px; margin: 5px auto 0; border-radius: 50%; background: var(--brand-primary); position: relative; }
.timeline-item:not(:last-child) .timeline-dot::after { content: ''; position: absolute; width: 1px; height: 45px; background: var(--border-default); left: 4px; top: 12px; }
.timeline-item strong { display: block; font-size: 13px; }
.timeline-item span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.timeline-item p { margin: 4px 0 0; color: var(--text-secondary); font-size: 12px; }

.public-wrap { min-height: 100vh; background: linear-gradient(180deg, #eef6f3 0, #f8faf9 340px); padding: 28px 16px 60px; }
.public-top { width: min(900px, 100%); margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.public-top .powered { color: var(--text-muted); font-size: 12px; }
.public-card { width: min(900px, 100%); margin: 0 auto; }
.public-actions { margin-top: 18px; background: var(--surface-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-sm); }
.public-actions h3 { margin: 0 0 7px; }
.public-actions > p { margin: 0 0 16px; color: var(--text-secondary); }
.public-actions .buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.pix-box { margin-top: 16px; padding: 18px; background: #f2f8f5; border: 1px solid #cfe5dc; border-radius: var(--radius-lg); }
.pix-box strong { display: block; }
.pix-code { margin: 10px 0; padding: 10px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.empty { padding: 50px 24px; text-align: center; color: var(--text-secondary); }
.empty .icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; font-size: 24px; }
.empty h3 { margin: 0; color: var(--text-primary); }
.empty p { margin: 7px auto 18px; max-width: 440px; }

.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(390px, calc(100vw - 40px)); background: var(--surface-dark); color: #fff; padding: 13px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 80; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,23,19,.56); z-index: 60; display: grid; place-items: center; padding: 18px; }
.modal-card { width: min(480px, 100%); background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 24px; }
.modal-card h2 { margin: 0 0 8px; }
.modal-card > p { margin: 0 0 18px; color: var(--text-secondary); }
.modal-card .actions { justify-content: flex-end; margin-top: 18px; }

.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.callout { padding: 18px; border-radius: var(--radius-lg); background: #fff8e6; border: 1px solid #f2d788; color: #5f4800; }
.callout strong { display: block; margin-bottom: 5px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-top { display: flex; position: sticky; top: 0; z-index: 30; height: 62px; padding: 0 16px; background: var(--surface-dark); color: #fff; align-items: center; justify-content: space-between; }
  .mobile-top .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .mobile-links { display: flex; gap: 4px; }
  .mobile-links a { min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; }
  .mobile-links a.active { background: rgba(255,255,255,.12); }
  .topbar { top: 62px; }
  .hero-panel, .detail-grid, .settings-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { min-height: 64px; padding: 10px 16px; }
  .topbar .r-btn { display: none; }
  .page { width: min(100% - 24px, 1200px); padding-top: 22px; }
  .page-head { align-items: stretch; flex-direction: column; margin-bottom: 18px; }
  .page-head .actions .r-btn { flex: 1; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 23px; }
  .hero-copy, .demo-note { padding: 22px; }
  .hero-copy h1 { font-size: 37px; }
  .form-grid, .quote-intro { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: minmax(0, 1fr) 72px 100px 42px; gap: 6px; }
  .item-row .r-input { padding-inline: 8px; }
  .sticky-actions { bottom: 8px; }
  .sticky-actions .r-btn { flex: 1; padding-inline: 10px; }
  .quote-card { padding: 18px; }
  .quote-brand { flex-direction: column; }
  .quote-number { text-align: left; }
  .quote-items { font-size: 13px; }
  .public-actions .buttons .r-btn { width: 100%; }
}


/* =========================================================
   Aprova AKI v1.3 — B2B commercial interface
   Layered on top of ROTA System Design v1 tokens/components.
   ========================================================= */
:root {
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-md: 0 8px 24px rgba(16,24,40,.08);
  --shadow-lg: 0 20px 48px rgba(16,24,40,.14);
}
body { background: #f7f8fb; }
svg { display: block; }
.r-btn { border-radius: 9px; font-weight: 700; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.r-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.r-btn--ghost { box-shadow: none; }
.r-input,.r-select,.r-textarea { border-color: #d0d5dd; border-radius: 9px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.r-input:hover,.r-select:hover,.r-textarea:hover { border-color: #98a2b3; }
.r-input:focus-visible,.r-select:focus-visible,.r-textarea:focus-visible { outline: 3px solid rgba(37,99,235,.12); border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.r-label { color: #344054; font-size: 13px; }

.app-shell { grid-template-columns: 264px minmax(0,1fr); }
.sidebar { padding: 22px 14px 18px; background: linear-gradient(180deg,#0b1220 0%,#101828 100%); border-right: 1px solid rgba(255,255,255,.04); gap: 18px; }
.sidebar-main { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 20px; }
.brand { min-height: 44px; padding: 0 8px; gap: 11px; }
.brand-mark { position: relative; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg,#3973f8,#1d4ed8); box-shadow: 0 7px 18px rgba(37,99,235,.26); overflow: hidden; }
.brand-mark > span { position: absolute; width: 16px; height: 8px; border: 2px solid #fff; border-radius: 999px; top: 14px; transform: rotate(-35deg); }
.brand-mark > span:first-child { left: 7px; }
.brand-mark > span:last-child { right: 7px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.025em; }
.brand-copy small { font-size: 11px; color: #98a2b3; margin-top: 1px; }
.workspace-pill { margin: 0 6px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); display: flex; align-items: center; gap: 9px; }
.workspace-pill .workspace-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.12); }
.workspace-pill span:last-child { min-width: 0; display: grid; }
.workspace-pill small { color: #667085; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.workspace-pill strong { color: #f2f4f7; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.nav { gap: 4px; }
.nav-label { color: #667085; font-size: 9px; font-weight: 800; letter-spacing: .12em; padding: 0 12px 7px; }
.nav-label--second { margin-top: 14px; padding-top: 8px; }
.nav a { min-height: 42px; padding: 0 11px; border-radius: 9px; color: #98a2b3; font-size: 13px; font-weight: 650; transition: background .15s,color .15s; }
.nav a:hover { background: rgba(255,255,255,.055); color: #f2f4f7; }
.nav a.active { background: rgba(37,99,235,.15); color: #dbeafe; box-shadow: inset 3px 0 0 #60a5fa; }
.nav-icon { width: 18px; display: grid; place-items: center; }
.nav-icon svg { width: 17px; height: 17px; fill: currentColor; }
.sidebar-foot { margin: auto 5px 0; padding: 13px; border-radius: 11px; background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.sidebar-version { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; font-weight: 750; color: #d0d5dd; }
.status-dot { color: #6ce9a6; display: inline-flex; align-items: center; gap: 5px; }
.status-dot::before { content:''; width:6px; height:6px; border-radius:50%; background:#12b76a; }
.sidebar-foot p { color: #667085; font-size: 10px; line-height: 1.45; }

.topbar { min-height: 70px; padding: 12px clamp(22px,3vw,42px); background: rgba(255,255,255,.92); border-bottom-color: #eaecf0; backdrop-filter: blur(16px); }
.topbar-title strong { font-size: 14px; color: #101828; }
.topbar-title span { color: #98a2b3; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.env-chip { display: inline-flex; align-items: center; gap: 7px; color: #667085; font-size: 11px; font-weight: 700; padding: 7px 9px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; }
.env-chip span { width: 7px; height: 7px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px #ecfdf3; }
.account-chip { min-width: 0; display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 800; border: 1px solid #e0e7ff; }
.account-copy { display: grid; min-width: 0; }
.account-copy strong { font-size: 11px; color: #344054; }
.account-copy small { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #98a2b3; font-size: 10px; margin-top: 1px; }
.page { width: min(1220px,calc(100% - 42px)); padding: 34px 0 76px; }
.section-kicker { display: inline-block; color: #667085; font-size: 9px; line-height: 1; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

/* Dashboard */
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 6px 0 27px; }
.welcome-row h1 { margin: 8px 0 7px; color:#101828; font-size: clamp(28px,3vw,38px); line-height: 1.08; letter-spacing: -.035em; }
.welcome-row h1 span { color:#667085; font-weight: 500; }
.welcome-row p { margin: 0; color:#667085; font-size:14px; }
.welcome-actions { display:flex; gap:9px; flex-wrap:wrap; }
.metrics--executive { gap: 12px; margin-bottom: 18px; }
.metrics--executive .metric { position: relative; padding: 18px 18px 17px; border-radius: 14px; border-color:#eaecf0; box-shadow:0 1px 2px rgba(16,24,40,.03); overflow:hidden; }
.metric--primary::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:#2563eb; }
.metric-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.metric-top > span:first-child { font-size: 12px; color:#667085; }
.metric-icon { width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background:#eff4ff; color:#2563eb; font-size:11px; font-weight:850; }
.metric-icon svg { width:15px; height:15px; }
.metric-icon--success { background:#ecfdf3; color:#067647; }
.metrics--executive .metric strong { margin-top:15px; font-size:27px; color:#101828; }
.metrics--executive .metric em { margin-top:6px; color:#667085; font-size:10px; font-weight:600; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr); gap:14px; margin-bottom:18px; }
.pipeline-panel,.recent-panel { border-radius:14px; border-color:#eaecf0; box-shadow:0 1px 2px rgba(16,24,40,.03); }
.panel-head { padding: 17px 19px; border-bottom-color:#eaecf0; }
.panel-head > div { display:grid; gap:5px; }
.panel-head h2 { font-size:16px; color:#101828; }
.pipeline-body { display:grid; grid-template-columns:140px minmax(0,1fr); gap:22px; align-items:center; padding:22px; }
.pipeline-summary { min-height:120px; border-radius:12px; background:linear-gradient(145deg,#0f172a,#1e293b); color:#fff; display:grid; align-content:center; justify-items:center; padding:18px; }
.pipeline-summary strong { font-size:42px; letter-spacing:-.05em; line-height:1; }
.pipeline-summary span { margin-top:8px; font-size:10px; color:#cbd5e1; text-align:center; }
.pipeline-track { display:grid; gap:12px; }
.pipeline-track > div { display:grid; grid-template-columns:100px 28px 1fr; gap:9px; align-items:center; }
.pipeline-track span { font-size:11px; color:#667085; }
.pipeline-track strong { font-size:11px; color:#344054; text-align:right; }
.pipeline-track i { height:7px; border-radius:999px; background:#f2f4f7; overflow:hidden; position:relative; }
.pipeline-track i::after { content:''; position:absolute; inset:0 auto 0 0; width:var(--w); border-radius:inherit; background:linear-gradient(90deg,#2563eb,#60a5fa); }
.insight-card { border:1px solid #dbeafe; background:linear-gradient(145deg,#eff6ff,#f8fbff 72%); border-radius:14px; padding:22px; display:grid; align-content:start; gap:8px; }
.insight-icon { width:36px; height:36px; border-radius:10px; background:#2563eb; color:#fff; display:grid; place-items:center; font-size:17px; margin-bottom:10px; }
.insight-card h2 { margin:2px 0 0; font-size:19px; line-height:1.25; letter-spacing:-.02em; }
.insight-card p { margin:2px 0 10px; color:#475467; font-size:12px; line-height:1.6; }

/* Tables */
.table { min-width:760px; }
.table th { background:#fcfcfd; color:#667085; font-size:10px; padding:11px 16px; letter-spacing:.07em; }
.table td { padding:14px 16px; border-bottom-color:#f0f1f3; font-size:12px; }
.table tbody tr:hover { background:#f9fafb; }
.table a { color:#101828; font-size:12px; }
.table .sub { color:#98a2b3; font-size:10px; }
.badge { min-height:24px; padding:0 8px; font-size:10px; font-weight:750; border:1px solid transparent; }
.badge.info { color:#175cd3; background:#eff8ff; border-color:#d1e9ff; }
.badge.success { color:#067647; background:#ecfdf3; border-color:#abefc6; }
.badge.warning { color:#b54708; background:#fffaeb; border-color:#fedf89; }
.badge.danger { color:#b42318; background:#fef3f2; border-color:#fecdca; }
.badge.neutral { color:#475467; background:#f9fafb; border-color:#eaecf0; }

/* Quote builder */
.builder-head { margin-bottom:20px; align-items:flex-start; }
.builder-head h1 { margin-top:7px; }
.builder-progress { display:flex; align-items:center; gap:9px; margin-bottom:18px; color:#667085; font-size:11px; font-weight:700; }
.builder-progress span { display:flex; align-items:center; gap:7px; }
.builder-progress b { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:9px; background:#eff4ff; color:#2563eb; }
.builder-progress i { width:34px; height:1px; background:#d0d5dd; }
.quote-builder-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:16px; align-items:start; }
.builder-main { display:grid; gap:14px; }
.form-section { border-color:#eaecf0; border-radius:14px; box-shadow:0 1px 2px rgba(16,24,40,.03); }
.form-section--numbered { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr); column-gap:12px; padding:21px; }
.section-number { width:32px; height:32px; border-radius:9px; background:#eff4ff; color:#2563eb; display:grid; place-items:center; font-size:10px; font-weight:850; }
.section-copy h2 { margin:0; font-size:16px; }
.section-copy > p { margin:4px 0 0; color:#667085; font-size:11px; }
.form-grid--section { grid-column:1/-1; margin-top:18px; }
.items-editor.form-grid--section { margin-top:18px; }
.item-row { position:relative; border:1px solid #eaecf0; border-radius:11px; padding:13px; background:#fcfcfd; grid-template-columns:minmax(0,1fr) 80px 125px 38px; }
.item-row .r-label { font-size:10px; color:#667085; }
.item-row .r-iconbtn { width:38px; height:38px; margin-top:23px!important; border-radius:9px; border-color:#fecdca; background:#fff; }
.add-item-row { grid-column:1/-1; margin-top:11px; padding-left:48px; }
.builder-aside { position:sticky; top:88px; }
.summary-card { border:1px solid #dbeafe; background:linear-gradient(180deg,#fff 0%,#f8fbff 100%); border-radius:14px; padding:20px; box-shadow:0 8px 28px rgba(37,99,235,.07); }
.summary-card h2 { margin:7px 0 5px; font-size:18px; }
.summary-card > p { margin:0; color:#667085; font-size:11px; }
.totals-box--clean { width:100%; margin:18px 0 0; padding:0; border:0; background:transparent; }
.totals-box--clean .total-line { padding:7px 0; font-size:12px; }
.totals-box--clean .total-line.strong { margin-top:7px; padding:14px 0 2px; font-size:19px; }
.summary-note { display:flex; gap:8px; margin:17px 0; padding:11px; border-radius:10px; background:#f2f4f7; color:#475467; }
.summary-note > span { color:#067647; font-weight:900; }
.summary-note p { margin:0; font-size:10px; line-height:1.5; }
.summary-submit { width:100%; justify-content:space-between; }
.summary-cancel { display:block; margin-top:11px; text-align:center; color:#667085; font-size:11px; font-weight:700; text-decoration:none; }
.sticky-actions { display:none; }

/* Quote detail / document */
.detail-grid { grid-template-columns:minmax(0,1.45fr) minmax(292px,.55fr); gap:16px; }
.quote-card { border-color:#e4e7ec; border-radius:16px; padding:0; overflow:hidden; box-shadow:0 5px 18px rgba(16,24,40,.05); }
.quote-brand { padding:24px 28px; background:#fcfcfd; border-bottom:1px solid #eaecf0; align-items:center; }
.quote-business { display:flex; align-items:center; gap:13px; }
.business-monogram { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background:#0f172a; color:#fff; font-size:12px; font-weight:850; letter-spacing:.04em; }
.document-label { color:#667085; font-size:8px; font-weight:850; letter-spacing:.14em; }
.quote-brand h2 { margin:3px 0 0; font-size:16px; }
.quote-brand p { font-size:10px; color:#667085; }
.quote-number { display:grid; gap:2px; text-align:right; }
.quote-number > span { color:#98a2b3; font-size:9px; text-transform:uppercase; font-weight:800; letter-spacing:.1em; }
.quote-number strong { color:#101828; font-size:17px; }
.quote-number small { color:#667085; font-size:9px; }
.quote-title-block { padding:28px 28px 20px; }
.quote-title-block > span { color:#667085; font-size:10px; font-weight:650; }
.quote-title-block h1 { margin:4px 0; font-size:28px; letter-spacing:-.035em; }
.quote-title-block p { margin:0; color:#475467; font-size:13px; }
.quote-meta-grid { margin:0 28px 22px; padding:14px 16px; border:1px solid #eaecf0; border-radius:11px; background:#fcfcfd; display:grid; grid-template-columns:1.2fr .7fr .7fr; gap:18px; }
.quote-meta-grid > div { display:grid; gap:5px; align-content:start; }
.quote-meta-grid > div > span:first-child { color:#98a2b3; font-size:8px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.quote-meta-grid strong { color:#344054; font-size:11px; }
.quote-table-shell { margin:0 28px; border:1px solid #eaecf0; border-radius:11px; overflow:hidden; }
.quote-items th { background:#f9fafb; color:#667085; padding:10px 12px; font-size:9px; border-bottom-color:#eaecf0; }
.quote-items td { padding:13px 12px; font-size:11px; border-bottom-color:#f2f4f7; }
.quote-financial-row { display:grid; grid-template-columns:1fr minmax(260px,.75fr); gap:30px; padding:22px 28px 25px; align-items:start; }
.quote-conditions { padding-top:7px; }
.quote-conditions p { margin:7px 0 0; color:#667085; font-size:10px; line-height:1.5; }
.quote-totals { width:100%; margin:0; }
.quote-totals .total-line { font-size:11px; }
.quote-totals .total-line.strong { font-size:19px; border-top-color:#d0d5dd; }
.deposit-line { display:flex; justify-content:space-between; gap:12px; margin-top:9px; padding:9px 10px; border-radius:8px; background:#ecfdf3; color:#067647; font-size:10px; }
.quote-note { margin:0 28px 24px; padding:13px 15px; background:#f9fafb; border:1px solid #eaecf0; border-radius:10px; }
.quote-note p { margin:7px 0 0; color:#475467; font-size:10px; line-height:1.55; }
.quote-footer { min-height:42px; padding:0 28px; border-top:1px solid #eaecf0; background:#fcfcfd; display:flex; justify-content:space-between; align-items:center; gap:12px; color:#98a2b3; font-size:8px; }
.side-card { border-radius:14px; border-color:#eaecf0; box-shadow:0 1px 2px rgba(16,24,40,.03); }
.side-card h3 { font-size:14px; }
.timeline-item strong { color:#344054; font-size:11px; }
.timeline-item span,.timeline-item p { font-size:9px; }

/* Public proposal */
.public-wrap { background: radial-gradient(circle at 50% -15%,#dbeafe 0,rgba(219,234,254,.45) 20%,transparent 45%),#f7f8fb; padding:28px 16px 58px; }
.public-top { width:min(920px,100%); margin:0 auto 18px; }
.public-product { display:flex; align-items:center; gap:10px; text-decoration:none; }
.public-product .brand-mark { width:34px; height:34px; border-radius:9px; }
.public-product .brand-mark > span { top:12px; }
.public-product strong { display:block; color:#101828; font-size:13px; }
.public-product small { display:block; color:#667085; font-size:9px; margin-top:1px; }
.public-secure { display:inline-flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid #e4e7ec; border-radius:8px; background:rgba(255,255,255,.78); color:#667085; font-size:9px; font-weight:700; }
.public-secure i { width:6px; height:6px; border-radius:50%; background:#12b76a; }
.public-card { width:min(920px,100%); }
.public-actions { margin-top:14px; padding:22px 24px; border-radius:14px; border-color:#dbeafe; box-shadow:0 8px 28px rgba(37,99,235,.06); }
.public-actions.is-accepted { border-color:#abefc6; background:linear-gradient(180deg,#fff,#f7fef9); }
.decision-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.decision-icon { width:40px; height:40px; border-radius:11px; background:#eff4ff; color:#2563eb; display:grid; place-items:center; font-size:20px; }
.decision-icon svg { width:20px; height:20px; }
.decision-icon--success { background:#ecfdf3; color:#067647; }
.decision-head h3 { margin:4px 0 0; font-size:18px; }
.public-actions > p { margin:0 0 16px; font-size:12px; line-height:1.6; }
.public-actions .buttons { align-items:center; }
.pix-box { margin-top:14px; padding:16px; background:#f8fafc; border-color:#d0d5dd; }
.pix-head { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.pix-head > div { display:grid; gap:2px; }
.pix-head span { color:#667085; font-size:8px; font-weight:850; letter-spacing:.08em; }
.pix-head strong { font-size:20px; }
.pix-badge { padding:5px 8px; border-radius:999px; background:#ecfdf3; color:#067647!important; letter-spacing:0!important; font-size:8px!important; }
.pix-code { margin:12px 0; background:#fff; color:#667085; }
.trust-row { display:flex; gap:16px; flex-wrap:wrap; margin-top:18px; padding-top:14px; border-top:1px solid #eaecf0; color:#667085; font-size:9px; }
.public-powered { text-align:center; color:#98a2b3; font-size:9px; margin:16px 0 0; }

/* Settings & filters */
.toolbar { align-items:center; }
.filter { min-height:34px; background:#fff; border-color:#eaecf0; font-size:10px; padding:0 11px; }
.filter.active,.filter:hover { border-color:#b2ccff; background:#eff4ff; color:#175cd3; }
.callout { background:#fffaeb; border-color:#fedf89; color:#7a2e0e; }
.settings-grid { gap:16px; }

@media (max-width:1080px) {
  .account-copy,.env-chip { display:none; }
  .dashboard-grid { grid-template-columns:1fr; }
  .insight-card { grid-template-columns:46px 1fr; column-gap:12px; }
  .insight-card .section-kicker,.insight-card h2,.insight-card p,.insight-card .r-link { grid-column:2; }
  .insight-icon { grid-column:1; grid-row:1/5; }
  .quote-builder-grid { grid-template-columns:1fr; }
  .builder-aside { position:static; }
  .summary-card { max-width:none; }
}
@media (max-width:980px) {
  .app-shell { grid-template-columns:1fr; }
  .mobile-top { height:58px; background:#0b1220; }
  .mobile-top .brand strong { font-size:14px; }
  .mobile-links a svg { width:17px; height:17px; fill:currentColor; }
  .topbar { top:58px; }
  .welcome-row { align-items:flex-start; flex-direction:column; }
  .quote-financial-row { grid-template-columns:1fr; gap:14px; }
}
@media (max-width:720px) {
  .page { width:min(100% - 24px,1220px); padding-top:24px; }
  .topbar-actions > .r-btn { display:none; }
  .metrics { grid-template-columns:1fr 1fr; }
  .welcome-actions { width:100%; }
  .welcome-actions .r-btn { flex:1; }
  .pipeline-body { grid-template-columns:1fr; }
  .pipeline-summary { min-height:88px; grid-auto-flow:column; gap:8px; justify-content:center; align-items:center; }
  .pipeline-summary span { margin:0; }
  .quote-brand { padding:20px; align-items:flex-start; }
  .quote-business { align-items:flex-start; }
  .quote-title-block { padding:22px 20px 17px; }
  .quote-meta-grid { margin:0 20px 18px; grid-template-columns:1fr 1fr; }
  .quote-table-shell { margin:0 20px; }
  .quote-financial-row { padding:18px 20px 22px; }
  .quote-note { margin:0 20px 20px; }
  .quote-footer { padding:0 20px; }
}
@media (max-width:560px) {
  .metrics { grid-template-columns:1fr; }
  .welcome-row h1 { font-size:29px; }
  .welcome-actions { display:grid; grid-template-columns:1fr; }
  .builder-progress { overflow-x:auto; padding-bottom:4px; }
  .builder-progress span { white-space:nowrap; }
  .form-section--numbered { grid-template-columns:32px minmax(0,1fr); padding:17px; }
  .form-grid--section { grid-template-columns:1fr; }
  .item-row { grid-template-columns:minmax(0,1fr) 66px 94px 36px; padding:10px; gap:6px; }
  .item-row .r-label { font-size:9px; }
  .item-row .r-input { padding-inline:7px; font-size:12px; }
  .add-item-row { padding-left:0; }
  .public-top { align-items:flex-start; }
  .public-secure { display:none; }
  .quote-brand { flex-direction:column; gap:14px; }
  .quote-number { text-align:left; }
  .quote-meta-grid { grid-template-columns:1fr; }
  .public-actions .buttons { display:grid; grid-template-columns:1fr; }
  .public-actions .buttons .r-btn { width:100%; }
  .trust-row { display:grid; gap:6px; }
}


/* Aprova AKI v1.3 — revisão com mão de obra ajustável pelo prestador */
.guide-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:16px;margin-bottom:18px}
.guide-intro{padding:30px;border-radius:18px;background:linear-gradient(135deg,#0f172a,#173b5f);color:#fff;box-shadow:0 10px 28px rgba(15,23,42,.12)}
.guide-intro .section-kicker{color:#93c5fd}.guide-intro h1{margin:8px 0 10px;font-size:clamp(30px,4vw,46px);letter-spacing:-.04em}.guide-intro p{margin:0;color:rgba(255,255,255,.76);line-height:1.65;max-width:720px}
.guide-note{padding:24px;border:1px solid var(--border-light);border-radius:18px;background:#fff;display:grid;align-content:center;gap:10px}.guide-note strong{font-size:18px}.guide-note p{margin:0;color:var(--text-secondary);line-height:1.55;font-size:13px}
.guide-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;align-items:start}
.guide-browser,.price-calc{background:#fff;border:1px solid var(--border-light);border-radius:18px;box-shadow:var(--shadow-sm)}
.guide-browser{overflow:hidden}.guide-toolbar{padding:18px;border-bottom:1px solid var(--border-light);display:grid;gap:12px}.guide-search-row{display:grid;grid-template-columns:1fr 210px;gap:10px}.category-pills{display:flex;gap:7px;overflow:auto;padding-bottom:2px}.category-pill{white-space:nowrap;border:1px solid var(--border-light);background:#fff;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:750;cursor:pointer;color:var(--text-secondary)}.category-pill.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.profession-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:18px}.profession-card{border:1px solid var(--border-light);border-radius:13px;padding:14px;display:grid;gap:8px;background:#fff}.profession-card:hover{border-color:#bfdbfe;box-shadow:0 6px 18px rgba(37,99,235,.06)}.profession-card h3{margin:0;font-size:14px}.profession-card p{margin:0;color:var(--text-muted);font-size:11px;line-height:1.45}.profession-meta{display:flex;gap:6px;flex-wrap:wrap}.profession-meta span{font-size:9px;font-weight:750;padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#475467}.profession-card button{justify-self:start;border:0;background:transparent;padding:0;color:#1d4ed8;font-size:11px;font-weight:800;cursor:pointer}
.price-calc{padding:20px;position:sticky;top:94px}.price-calc h2{margin:5px 0 6px;font-size:20px}.price-calc>p{margin:0 0 16px;color:var(--text-secondary);font-size:12px;line-height:1.55}.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.calc-grid .full{grid-column:1/-1}.calc-result{margin-top:16px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;padding:15px;display:grid;gap:9px}.calc-result .price-main{display:flex;justify-content:space-between;align-items:end;gap:12px}.calc-result .price-main span{font-size:10px;color:#64748b;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.calc-result .price-main strong{font-size:28px;letter-spacing:-.04em;color:#0f172a}.calc-band{display:grid;grid-template-columns:1fr 1fr;gap:8px}.calc-band div{padding:9px;border-radius:9px;background:#fff;border:1px solid #e2e8f0}.calc-band span{display:block;color:#64748b;font-size:9px}.calc-band strong{display:block;margin-top:3px;font-size:13px}.calc-warning{font-size:10px;color:#667085;line-height:1.5;margin-top:9px}
.revision-box{border:1px solid #f4c790;background:#fffaf2;border-radius:13px;padding:14px;display:grid;gap:10px}.revision-box h4{margin:0;font-size:14px}.revision-box p{margin:0;color:#7c5727;font-size:11px;line-height:1.5}.revision-list{display:grid;gap:6px}.revision-list span{font-size:10px;color:#7c5727}.revision-total{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid #f0dfc6;font-size:11px}.revision-total strong{font-size:15px}
.revision-modal-list{display:grid;gap:8px;max-height:320px;overflow:auto;margin:12px 0}.revision-option{display:grid;grid-template-columns:20px minmax(0,1fr) 104px 92px;gap:10px;align-items:center;padding:10px;border:1px solid var(--border-light);border-radius:10px}.revision-option>input[type=checkbox]{width:17px;height:17px}.revision-option strong{font-size:12px}.revision-option small{display:block;color:var(--text-muted);font-size:9px;margin-top:2px}.revision-option .revision-line-total{font-size:11px;font-weight:750;text-align:right}.revision-qty{display:grid;gap:4px}.revision-qty span{font-size:9px;color:var(--text-muted);font-weight:700}.revision-qty input{width:100%;min-height:36px;padding:7px 8px;text-align:center}.revision-option.is-off{opacity:.58}.revision-option--labor{grid-template-columns:30px minmax(0,1fr) 104px 92px;background:#f8fafc;border-style:dashed}.revision-lock{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#e8eef0;color:#38534d;font-size:13px}.revision-locked-value{min-height:36px;border:1px solid var(--border-light);border-radius:8px;background:#eef2f1;color:#52625e;display:flex;align-items:center;justify-content:center;padding:6px 8px;font-size:10px;font-weight:750}.revision-summary{padding:10px 12px;background:#f8fafc;border-radius:10px;font-size:11px;color:#475467}@media(max-width:620px){.revision-option,.revision-option--labor{grid-template-columns:20px minmax(0,1fr) 80px}.revision-option .revision-line-total{grid-column:2/-1;text-align:left}.revision-option--labor .revision-line-total{grid-column:2/-1}.revision-lock{width:20px;height:20px}.revision-qty input{min-height:34px}}
.marketplace-preview{margin-top:18px;border:1px dashed #cbd5e1;border-radius:16px;padding:18px;background:#f8fafc}.marketplace-preview h3{margin:0 0 6px;font-size:15px}.marketplace-preview p{margin:0;color:#667085;font-size:11px;line-height:1.55}
@media(max-width:960px){.guide-hero,.guide-layout{grid-template-columns:1fr}.price-calc{position:static}.profession-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.guide-search-row,.calc-grid,.profession-grid{grid-template-columns:1fr}.calc-grid .full{grid-column:auto}.guide-intro{padding:23px}.guide-note{padding:20px}}


/* =========================================================
   Aprova AKI Design System v1 — aplicado na v1.3
   Confiança, clareza e serviço. Mantém o motor funcional.
   ========================================================= */
:root{
  --brand-primary:#2F5D8A;
  --brand-primary-hover:#264C71;
  --brand-primary-contrast:#FFFFFF;
  --brand-primary-ink:#2F5D8A;
  --brand-secondary:#1F2A37;
  --brand-accent:#3F9A71;
  --surface-page:#F6F8FB;
  --surface-soft:#F0F4F7;
  --surface-card:#FFFFFF;
  --surface-dark:#1F2A37;
  --text-primary:#1F2A37;
  --text-secondary:#4B5B6B;
  --text-muted:#758392;
  --text-inverse:#FFFFFF;
  --success:#2E7D5B;
  --warning:#A97724;
  --danger:#A94F4F;
  --info:#5B7FA3;
  --border-light:#DDE4EA;
  --border-default:#D3DCE4;
  --border-strong:#B9C5CF;
  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:18px;
  --radius-xl:24px;
  --shadow-sm:0 2px 10px rgba(18,38,63,.05);
  --shadow-md:0 8px 24px rgba(18,38,63,.08);
  --shadow-lg:0 20px 50px rgba(18,38,63,.10);
  --font-display:'Poppins','Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-body:'Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

html,body{background:var(--surface-page);color:var(--text-primary)}
body{font-family:var(--font-body)}
.main{position:relative;isolation:isolate;background-color:var(--surface-page)}
.main::before{content:'';position:fixed;z-index:-1;pointer-events:none;inset:70px 0 0 264px;opacity:.48;background-image:linear-gradient(rgba(47,93,138,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(47,93,138,.025) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,#000 0,transparent 56%)}

/* marca */
.brand{color:var(--text-primary)}
.brand-mark{width:40px;height:40px;border-radius:13px;background:linear-gradient(145deg,#355F88,#274F76)!important;box-shadow:0 8px 18px rgba(47,93,138,.16)!important;border:1px solid rgba(38,76,113,.12);position:relative;overflow:visible!important}
.brand-mark>span{display:none!important}
.brand-mark::before{content:'A';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:700 20px/1 var(--font-display);letter-spacing:-.06em}
.brand-mark::after{content:'✓';position:absolute;right:-5px;bottom:-4px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#3F9A71;color:#fff;border:2px solid #fff;font:800 10px/1 var(--font-body);box-shadow:0 2px 7px rgba(31,42,55,.16)}
.brand-copy strong,.mobile-brand-name,.public-product strong{font-family:var(--font-display);font-style:normal;color:#1F2A37;font-weight:650;letter-spacing:-.025em}
.brand-copy strong em,.mobile-brand-name em,.public-product strong em{font-style:normal;color:#2F5D8A;font-weight:750}
.brand-copy small{color:#758392!important}

/* sidebar clara */
.app-shell{grid-template-columns:264px minmax(0,1fr)}
.sidebar{background:rgba(255,255,255,.97)!important;color:var(--text-primary)!important;border-right:1px solid var(--border-light)!important;box-shadow:6px 0 22px rgba(18,38,63,.025);padding:22px 14px 18px;gap:18px}
.workspace-pill{background:#F7F9FB!important;border:1px solid var(--border-light)!important}
.workspace-pill small{color:#84909C!important}
.workspace-pill strong{color:#344250!important}
.workspace-pill .workspace-dot{background:#3F9A71!important;box-shadow:0 0 0 4px rgba(63,154,113,.11)!important}
.nav-label{color:#9AA5AF!important}
.nav a{color:#667786!important;font-weight:600!important}
.nav a:hover{background:#F1F4F8!important;color:#2B3A47!important}
.nav a.active{background:#EAF1F7!important;color:#264C71!important;box-shadow:inset 3px 0 0 #2F5D8A!important}
.nav a.active .nav-icon{color:#2F5D8A}
.sidebar-foot{background:#F8FAFB!important;border:1px solid var(--border-light)!important}
.sidebar-version{color:#4B5B6B!important}
.status-dot{color:#2E7D5B!important}
.sidebar-foot p{color:#758392!important;font-size:10px!important;line-height:1.5!important}

/* topo */
.topbar{background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--border-light)!important;box-shadow:0 1px 0 rgba(18,38,63,.02)}
.topbar-title strong{color:#1F2A37!important;font-weight:650!important}
.topbar-title span{color:#758392!important}
.env-chip{color:#637381!important;border-color:var(--border-light)!important;background:#FAFBFC!important}
.env-chip span{background:#3F9A71!important;box-shadow:0 0 0 3px #E9F5EF!important}
.avatar{background:#EAF1F7!important;color:#2F5D8A!important;border-color:#D6E3EE!important}
.account-copy strong{color:#344250!important}.account-copy small{color:#84909C!important}

/* botões menos agressivos */
.r-btn{min-height:44px;border-radius:12px!important;background:#2F5D8A;color:#fff;border:1px solid #2F5D8A;box-shadow:none!important;font-weight:650!important;transition:background .15s,border-color .15s,color .15s,transform .15s}
.r-btn:hover:not(:disabled):not([aria-disabled='true']){background:#264C71;border-color:#264C71;transform:translateY(-1px)}
.r-btn:focus-visible{outline:3px solid rgba(47,93,138,.18)!important;outline-offset:2px}
.r-btn--outline{background:#fff!important;color:#35566F!important;border-color:#C9D5DE!important}
.r-btn--outline:hover:not(:disabled){background:#F3F6F8!important;border-color:#9EB0BE!important;color:#264C71!important}
.r-btn--ghost{background:transparent!important;color:#5B6E7E!important;border-color:transparent!important}
.r-btn--ghost:hover:not(:disabled){background:#EEF2F5!important;color:#344A5A!important}
.r-btn--secondary{background:#EAF1F7!important;color:#264C71!important;border-color:#D6E3EE!important}
.r-btn--success{background:#2E7D5B!important;color:#fff!important;border-color:#2E7D5B!important}
.r-btn--success:hover:not(:disabled){background:#276B50!important;border-color:#276B50!important}
.r-btn--lg{min-height:50px}

/* campos */
.r-input,.r-select,.r-textarea{border:1px solid #C8D2DC!important;border-radius:12px!important;background:#fff!important;color:#1F2A37;box-shadow:0 1px 2px rgba(18,38,63,.025)!important}
.r-input:hover,.r-select:hover,.r-textarea:hover{border-color:#A9B8C5!important}
.r-input:focus-visible,.r-select:focus-visible,.r-textarea:focus-visible{outline:3px solid rgba(47,93,138,.10)!important;border-color:#3A6F9F!important;box-shadow:0 0 0 1px #3A6F9F!important}
.r-label{color:#344250!important;font-weight:600!important}.r-help{color:#758392!important}

/* superfícies */
.page{width:min(1220px,calc(100% - 42px));padding:34px 0 76px}
.panel,.form-section,.side-card,.metric,.guide-browser,.price-calc{border-color:var(--border-light)!important;box-shadow:var(--shadow-sm)!important;background:#fff!important}
.panel,.form-section,.side-card{border-radius:18px!important}
.section-kicker{color:#6E7E8C!important;font-weight:800!important;letter-spacing:.11em!important}

/* dashboard como central comercial */
.welcome-row{position:relative;overflow:hidden;border:1px solid #DCE6EE;border-radius:24px;padding:30px 32px;margin:0 0 18px;background:linear-gradient(135deg,#FBFCFD 0%,#F2F7FA 58%,#EDF5F2 100%);align-items:center}
.welcome-row::after{content:'';position:absolute;right:-20px;top:-26px;width:330px;height:210px;opacity:.24;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 210' fill='none' stroke='%232F5D8A' stroke-width='2'%3E%3Cg opacity='.38'%3E%3Cpath d='M55 61h46v35H55zM66 96v22h24V96'/%3E%3Cpath d='M174 48a18 18 0 1 0 0 36 18 18 0 0 0 0-36Zm-8 18 6 6 11-13'/%3E%3Cpath d='M245 52h42v29h-42zM256 87h20M266 81v6'/%3E%3Cpath d='M98 148l12-12 13 13 19-20M201 145c13-15 30-15 43 0M214 131l8-10 8 10'/%3E%3Ccircle cx='48' cy='151' r='16'/%3E%3Cpath d='M40 151h16M48 143v16'/%3E%3C/g%3E%3C/svg%3E")}
.welcome-row>div{position:relative;z-index:1}
.welcome-row h1{color:#1F2A37!important;font-weight:650!important}.welcome-row h1 span{color:#657685!important;font-weight:500!important}.welcome-row p{color:#536575!important;max-width:700px;line-height:1.55}
.metrics--executive .metric{border-radius:18px!important;padding:19px 20px!important}
.metric--primary::before{background:#2F5D8A!important;width:3px!important}
.metric-icon{background:#EAF1F7!important;color:#2F5D8A!important}.metric-icon--success{background:#E9F5EF!important;color:#2E7D5B!important}
.metrics--executive .metric strong{color:#1F2A37!important;font-weight:700}.metrics--executive .metric em{color:#758392!important}
.pipeline-summary{background:linear-gradient(145deg,#294B68,#365F80)!important}
.pipeline-track i::after{background:linear-gradient(90deg,#3A6F9F,#6F96B7)!important}
.insight-card{border-color:#DCE6EE!important;background:linear-gradient(145deg,#F3F7FA,#FAFCFD 70%)!important}
.insight-icon{background:#2F5D8A!important}

/* formulários/orçamento */
.form-section--numbered .step-number{background:#EAF1F7!important;color:#2F5D8A!important;border-color:#D6E3EE!important}
.summary-card{border-color:#DCE6EE!important;background:#FBFCFD!important}
.quote-card{border-color:#DCE4EA!important;border-radius:20px!important;box-shadow:0 10px 32px rgba(18,38,63,.07)!important}
.quote-brand{background:linear-gradient(180deg,#FCFDFE,#F7FAFB)!important;border-bottom-color:#E4EAF0!important}
.business-monogram{background:#EAF1F7!important;color:#2F5D8A!important;border:1px solid #D6E3EE!important}
.document-label{color:#2F5D8A!important}
.quote-title-block h1{color:#1F2A37!important}.quote-title-block>span,.quote-meta-grid span{color:#758392!important}
.quote-table-shell{border-color:#E2E8ED!important}.quote-items thead{background:#F6F8FA!important}.quote-items th{color:#667786!important}
.quote-totals{background:#F7F9FB!important;border-color:#E0E7EC!important}
.quote-totals .strong{color:#1F2A37!important}.deposit-line{background:#EAF1F7!important;color:#264C71!important}
.quote-footer{background:#F8FAFB!important;color:#84909C!important}

/* página pública: documento, não dashboard */
.public-wrap{background-color:#F5F8FA!important;background-image:radial-gradient(circle at 12% 8%,rgba(47,93,138,.08),transparent 26%),radial-gradient(circle at 88% 16%,rgba(63,154,113,.07),transparent 24%),linear-gradient(rgba(47,93,138,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(47,93,138,.025) 1px,transparent 1px)!important;background-size:auto,auto,34px 34px,34px 34px!important;padding:30px 16px 64px!important}
.public-top{width:min(920px,100%);padding:0 2px}.public-product{color:#1F2A37!important}.public-secure{background:rgba(255,255,255,.8)!important;border:1px solid #DDE4EA!important;color:#5D6F7E!important;border-radius:999px!important;padding:7px 10px!important}
.public-secure i{background:#3F9A71!important}
.public-actions{border:1px solid #DCE6EE!important;border-radius:18px!important;box-shadow:0 10px 30px rgba(18,38,63,.06)!important;background:#fff!important}
.public-actions.is-accepted{border-color:#CDE7D9!important;background:linear-gradient(180deg,#fff,#F4FBF7)!important}
.decision-icon{background:#EAF1F7!important;color:#2F5D8A!important}.decision-icon--success{background:#E9F5EF!important;color:#2E7D5B!important}
.pix-box{background:#F6F9F7!important;border-color:#D6E8DE!important}.pix-badge{background:#E9F5EF!important;color:#2E7D5B!important}
.trust-row{color:#687A88!important}.public-powered{color:#84909C!important}

/* guia de preços: profissional, não promocional */
.guide-intro{position:relative;overflow:hidden;background:linear-gradient(135deg,#F5F8FA,#EDF4F7 62%,#EDF6F1)!important;color:#1F2A37!important;border:1px solid #DCE6EE!important;box-shadow:var(--shadow-sm)!important}
.guide-intro::after{content:'';position:absolute;right:-30px;bottom:-55px;width:280px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(47,93,138,.10),transparent 68%)}
.guide-intro .section-kicker{color:#2F5D8A!important}.guide-intro h1,.guide-intro p{position:relative;z-index:1}.guide-intro p{color:#536575!important}
.category-pill.active{background:#EAF1F7!important;border-color:#C8DBE9!important;color:#264C71!important}.profession-card:hover{border-color:#C7D8E5!important;box-shadow:0 6px 18px rgba(47,93,138,.06)!important}.profession-card button{color:#2F5D8A!important}
.calc-result{background:#F7F9FB!important;border-color:#DDE4EA!important}.calc-result .price-main strong{color:#1F2A37!important}

/* estados e badges */
.badge.info{color:#2F5D8A!important;background:#EAF1F7!important;border-color:#D6E3EE!important}
.badge.success{color:#276B50!important;background:#E9F5EF!important;border-color:#CDE7D9!important}
.badge.warning{color:#87611D!important;background:#FFF5DF!important;border-color:#F1DEB4!important}
.badge.danger{color:#944545!important;background:#FBECEC!important;border-color:#EECFCF!important}
.badge.neutral{color:#5B6E7E!important;background:#F3F5F7!important;border-color:#DDE4EA!important}
.revision-box{border-color:#E9D7AE!important;background:#FFF9EC!important}.revision-box p,.revision-list span{color:#755C2D!important}
.callout{background:#FFF8E8!important;border-color:#EAD6A6!important;color:#6D5627!important}

/* mobile */
.mobile-top{background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--border-light)!important}
.mobile-top .brand{color:#1F2A37!important}.mobile-links a{color:#758392!important}.mobile-links a.active{background:#EAF1F7!important;color:#2F5D8A!important}
@media(max-width:860px){.main::before{inset:64px 0 0 0}.welcome-row{padding:24px}.welcome-row::after{opacity:.12;right:-100px}.sidebar{box-shadow:none}}
@media(max-width:620px){.welcome-row{border-radius:18px}.welcome-actions .r-btn{width:100%}.public-top{align-items:center}.public-secure{font-size:9px}.quote-card{border-radius:16px!important}}

