:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e6e9f0;
  --primary: #1f5eff;
  --primary-dark: #1647c7;
  --danger: #d92d20;
  --success: #027a48;
  --warning: #b54708;
  --shadow: 0 18px 40px rgba(16, 24, 40, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.layout { min-height: 100vh; display: flex; }
.sidebar { width: 280px; background: #101828; color: #fff; padding: 24px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand span, .sidebar-footer small { display: block; color: #bfc6d4; font-size: 12px; margin-top: 2px; }
.sidebar nav { display: grid; gap: 8px; margin-top: 36px; }
.sidebar nav a { padding: 12px 14px; border-radius: 12px; color: #eaecf0; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.logout { display: inline-block; margin-top: 10px; color: #d1e0ff; }
.main { width: 100%; margin-left: 280px; padding: 28px 32px 18px; }
.main-full { margin-left: 0; padding: 0; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: 28px; }
.topbar p { margin: 6px 0 0; color: var(--muted); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.help-tooltip-container { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.help-button {
  width: auto;
  height: 42px;
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #101828, var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.help-button:hover, .help-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, .22);
  outline: none;
}
.help-button-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.16); line-height: 1; }
.help-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  transform: translateY(-8px) scale(.98);
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 35px rgba(16, 24, 40, .16);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  z-index: 80;
}
.help-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 16px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}
.help-tooltip strong { color: var(--primary); font-weight: 900; animation: helpGlow 2s infinite; }
.help-tooltip-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 999px; background: #eef2ff; color: var(--primary); font-weight: 900; }
.help-tooltip-container:hover .help-tooltip,
.help-tooltip-container:focus-within .help-tooltip,
.help-tooltip.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
@keyframes helpGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(31, 94, 255, .25); }
  50% { text-shadow: 0 0 16px rgba(31, 94, 255, .42); }
}
.btn { border: 0; padding: 10px 14px; border-radius: 10px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #eef2ff; color: #233876; }
.btn-danger { background: var(--danger); color: #fff; }
.full { width: 100%; margin-top: 18px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 20px; }
.stat span { color: var(--muted); display: block; margin-bottom: 10px; }
.stat strong { font-size: 34px; }
.panel { padding: 20px; margin-bottom: 20px; }
.panel-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.panel-header h2 { margin: 0; font-size: 20px; }
.panel-header p { margin: 5px 0 0; color: var(--muted); }
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 620px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; position: sticky; top: 0; z-index: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #475467; }
td small { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f2f4f7; color: #344054; font-weight: 700; font-size: 12px; }
.badge.ok { background: #ecfdf3; color: var(--success); }
.badge.bad { background: #fef3f2; color: var(--danger); }
.muted-badge { color: #667085; }
.flash-area { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.flash-success { border-color: #abefc6; color: var(--success); }
.flash-error { border-color: #fecdca; color: var(--danger); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 30px; }
.brand-login { margin-bottom: 24px; color: var(--text); }
.brand-login span { color: var(--muted); }
.login-card h1 { margin: 0 0 18px; }

.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; padding-right: 48px; }
.password-toggle { position: absolute; right: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 8px; border-radius: 10px; }
.password-toggle:hover { background: #eef4ff; color: var(--primary); }
.password-toggle.is-visible { color: var(--primary); }
label { display: grid; gap: 7px; font-weight: 700; margin-bottom: 14px; }
input, select, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { resize: vertical; }
label small, .muted { color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-section { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fbfcff; }
.form-section h2 { margin: 0 0 16px; font-size: 18px; }
.wide { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 14px; align-items: end; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.danger-zone { margin-top: -8px; }
.inline-form, .mini-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select, .mini-form input { width: auto; min-width: 180px; }
.error-cell { max-width: 360px; color: var(--danger); }
.modal { display: none; position: fixed; inset: 0; background: rgba(16,24,40,.52); z-index: 50; padding: 24px; }
.modal.open { display: grid; place-items: center; }
.modal-card { width: min(760px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; }
.modal-header button { border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.modal-body { padding: 22px; }
.modal-body h3 { margin: 18px 0 6px; }
.modal-body h3:first-child { margin-top: 0; }
.toast { display: none; position: fixed; right: 22px; bottom: 22px; max-width: 520px; background: #101828; color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow); z-index: 80; white-space: pre-line; }
.toast.open { display: block; }
.footer { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 0 4px; }
@media (max-width: 1100px) { .cards-grid, .form-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; } .wide { grid-column: auto; } .sidebar { position: static; width: 100%; } .layout { display: block; } .main { margin-left: 0; padding: 20px; } .topbar { flex-direction: column; align-items: flex-start; } }
.progress-card { width: min(820px, 100%); }
.progress-headline { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.progress-headline strong { font-size: 34px; }
.progress-headline span { color: var(--muted); font-weight: 700; }
.progress-track { height: 16px; background: #eef2ff; border-radius: 999px; overflow: hidden; border: 1px solid #dbe4ff; }
.progress-bar { height: 100%; width: 0%; background: var(--primary); transition: width .35s ease; }
.progress-status { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); font-weight: 700; }
.progress-message { margin: 12px 0 18px; color: var(--text); }
.progress-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.progress-grid div { border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; padding: 12px; }
.progress-grid small { display: block; color: var(--muted); margin-bottom: 7px; }
.progress-grid strong { font-size: 18px; word-break: break-word; }
.progress-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 900px) { .progress-grid { grid-template-columns: repeat(2, 1fr); } }
.weekday-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.weekday-box p { margin: 6px 0 12px; }
.weekday-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; }
.note-box { border: 1px dashed #b3c7ff; background: #f4f7ff; border-radius: 12px; padding: 12px 14px; color: #233876; }
.note-box p { margin: 6px 0 0; color: #475467; }
@media (max-width: 1100px) { .weekday-grid { grid-template-columns: repeat(2, 1fr); } }

.extra-targets-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.extra-targets-box p { margin: 6px 0 14px; }
.badge.warn { background: #fffaeb; color: #b54708; }
.rotation-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rotation-box h3 { margin: 0 0 6px; font-size: 16px; }
.rotation-box p { margin: 6px 0 14px; }
.filter-options-row { margin: 4px 0 14px; }
#spaFilterSection { border-color: #b3c7ff; background: #f7f9ff; }

/* Vencimento SPA - layout guiado e responsivo */
.stat strong { display: block; line-height: 1.12; word-break: break-word; }
.stat small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.35; }
.cards-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vencimento-summary-grid { align-items: stretch; }
.vencimento-stat { min-height: 128px; display: flex; flex-direction: column; justify-content: center; }
.vencimento-stat strong { font-size: clamp(24px, 2.2vw, 34px); }
.vencimento-stat .mono-strong { font-size: 17px; font-family: Consolas, Monaco, monospace; line-height: 1.35; }
.vencimento-config-panel .panel-header { margin-bottom: 18px; }
.vencimento-form { display: grid; gap: 18px; }
.vencimento-step { background: #fff; border-color: #d9e2f2; }
.step-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.step-title-row h2 { margin: 0 0 6px; font-size: 18px; }
.step-title-row p { margin: 0; color: var(--muted); font-weight: 400; line-height: 1.45; }
.step-pill { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: #eef2ff; color: var(--primary); font-weight: 800; margin-bottom: 8px; }
.vencimento-two-columns { display: grid; grid-template-columns: minmax(260px, .8fr) 1fr; gap: 14px; align-items: stretch; }
.check-card { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px; border: 1px solid #d0d5dd; border-radius: 14px; background: #fbfcff; cursor: pointer; }
.check-card input { width: auto; margin-top: 4px; }
.check-card span { display: grid; gap: 5px; }
.check-card small { line-height: 1.35; }
.vencimento-origin-grid { grid-template-columns: .7fr .7fr 1.6fr; margin-top: 14px; align-items: start; }
.vencimento-module.is-hidden { display: none !important; }
.module-hint { border: 1px dashed #b3c7ff; background: #f4f7ff; color: #233876; border-radius: 14px; padding: 14px 16px; font-weight: 700; }
.module-hint.is-hidden { display: none; }
.vencimento-overdue-grid { align-items: start; }
.vencimento-load-options-row { align-items: center; margin-bottom: 14px; }
.vencimento-form-actions { justify-content: flex-end; padding-top: 2px; }
.vencimento-actions-stack { gap: 14px; }
.vencimento-inline-form { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.vencimento-collapsible-panel details { display: grid; gap: 12px; }
.vencimento-collapsible-panel summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.compact-table-wrap { max-height: 420px; margin-top: 12px; }
.error-cell { line-height: 1.4; }
@media (max-width: 1400px) {
  .cards-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vencimento-origin-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cards-grid-compact, .vencimento-two-columns, .vencimento-origin-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .vencimento-stat { min-height: auto; }
  .vencimento-inline-form { width: 100%; }
}


/* Monitor em tempo real v1.3.7 */
.live-executions-panel { border-color: #b3c7ff; background: #fbfdff; }
.live-executions-panel.is-empty { opacity: .92; }
.live-executions-stack { display: grid; gap: 14px; }
.live-execution-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.04); }
.live-execution-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.live-execution-head strong { display: block; font-size: 16px; margin-bottom: 6px; }
.live-execution-head small { color: var(--muted); line-height: 1.4; }
.live-percent { font-size: 28px; font-weight: 900; color: var(--primary); white-space: nowrap; }
.small-track { height: 10px; margin-bottom: 10px; }
.live-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.live-metrics span { border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 12px; }
.live-metrics strong { color: var(--text); }
.terminal-box { background: #0b1220; color: #d7e4ff; border-radius: 14px; padding: 12px 14px; font-family: Consolas, Monaco, 'Courier New', monospace; font-size: 12px; line-height: 1.55; max-height: 260px; overflow: auto; }
.terminal-box div { white-space: pre-wrap; word-break: break-word; }
.terminal-box span { color: #7dd3fc; margin-right: 8px; }
@media (max-width: 900px) { .live-execution-head { flex-direction: column; } .live-percent { font-size: 22px; } }

/* Menu animado inspirado no ReactBits - v1.3.9, JS puro */
.layout { display: block; min-height: 100vh; }
.main { width: 100%; margin-left: 0; padding: 28px 32px 18px; }
.main-full { margin-left: 0; padding: 0; }
.topbar { align-items: flex-start; }
.topbar-left { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.topbar-title-block { min-width: 0; }
.staggered-trigger { min-width: 118px; height: 44px; border: 0; border-radius: 999px; background: #101828; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 30px rgba(16,24,40,.16); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; position: relative; z-index: 120; }
.staggered-trigger:hover { transform: translateY(-1px); background: var(--primary); box-shadow: 0 16px 34px rgba(31,94,255,.22); }
.staggered-trigger:focus-visible { outline: 3px solid rgba(31,94,255,.28); outline-offset: 3px; }
.staggered-trigger-icon { width: 15px; height: 15px; position: relative; display: inline-grid; place-items: center; }
.staggered-trigger-icon span { position: absolute; width: 15px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .25s ease; }
.staggered-trigger-icon span:nth-child(2) { transform: rotate(90deg); }
body.menu-open .staggered-trigger-icon span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .staggered-trigger-icon span:nth-child(2) { transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }
.staggered-nav { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.staggered-menu-scrim { position: fixed; inset: 0; background: rgba(8, 13, 26, .48); opacity: 0; transition: opacity .28s ease; }
.staggered-menu-layers { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); pointer-events: none; overflow: hidden; }
.staggered-layer { position: absolute; inset: 0; transform: translateX(105%); transition: transform .52s cubic-bezier(.19,1,.22,1); }
.staggered-layer.layer-one { background: #B497CF; transition-delay: .03s; }
.staggered-layer.layer-two { background: #5227FF; transition-delay: .10s; }
.staggered-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: rgba(255,255,255,.96); color: #101828; border-left: 1px solid rgba(255,255,255,.45); box-shadow: -28px 0 70px rgba(16,24,40,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateX(105%); transition: transform .62s cubic-bezier(.19,1,.22,1); transition-delay: .16s; pointer-events: auto; display: flex; flex-direction: column; padding: 30px; overflow-y: auto; }
.staggered-nav.is-open { pointer-events: auto; }
.staggered-nav.is-open .staggered-menu-scrim { opacity: 1; }
.staggered-nav.is-open .staggered-layer,
.staggered-nav.is-open .staggered-panel { transform: translateX(0); }
.staggered-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: clamp(34px, 8vh, 76px); }
.staggered-panel-brand { display: flex; align-items: center; gap: 12px; }
.staggered-panel-brand span { display: block; color: #667085; font-size: 12px; margin-top: 2px; }
.staggered-close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: #f2f4f7; color: #101828; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.staggered-close:hover { background: #e6e9f0; transform: rotate(8deg); }
.staggered-panel-nav { counter-reset: menuItem; display: grid; gap: clamp(8px, 1.4vh, 14px); }
.staggered-panel-link { counter-increment: menuItem; position: relative; overflow: hidden; display: block; padding: 4px 84px 8px 0; color: #0b1220; text-transform: uppercase; letter-spacing: -0.06em; font-size: clamp(34px, 5vw, 70px); line-height: .95; font-weight: 950; }
.staggered-panel-link::after { content: counter(menuItem, decimal-leading-zero); position: absolute; right: 0; top: .2em; font-size: clamp(13px, 1.2vw, 18px); letter-spacing: 0; color: var(--primary); font-weight: 800; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; transition-delay: calc(.24s + var(--i) * .055s); }
.staggered-panel-link span { display: inline-block; transform: translateY(130%) rotate(7deg); transform-origin: 50% 100%; transition: transform .72s cubic-bezier(.19,1,.22,1), color .18s ease; transition-delay: calc(.20s + var(--i) * .07s); }
.staggered-panel-link:hover span { color: var(--primary); }
.staggered-nav.is-open .staggered-panel-link span { transform: translateY(0) rotate(0); }
.staggered-nav.is-open .staggered-panel-link::after { opacity: 1; transform: translateY(0); }
.staggered-panel-footer { margin-top: auto; padding-top: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.staggered-panel-footer small { display: block; color: #667085; margin-bottom: 4px; }
.staggered-logout { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 14px; border-radius: 999px; background: #101828; color: #fff; font-weight: 900; }
.staggered-logout:hover { background: var(--primary); }
.sidebar { display: none !important; }
@media (max-width: 1100px) {
  .main { margin-left: 0; padding: 20px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-left { width: 100%; }
  .topbar-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .main { padding: 16px 14px 18px; }
  .topbar-left { gap: 12px; flex-direction: column; }
  .staggered-trigger { width: 100%; justify-content: space-between; padding: 0 18px; }
  .topbar-actions .btn { flex: 1 1 145px; }
  .help-button { min-width: 40px; height: 40px; padding: 0 12px; }
  .staggered-menu-layers, .staggered-panel { width: 100vw; }
  .staggered-panel { padding: 22px; }
  .staggered-panel-link { font-size: clamp(30px, 12vw, 48px); padding-right: 58px; letter-spacing: -0.045em; }
  .staggered-panel-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .staggered-layer, .staggered-panel, .staggered-panel-link span, .staggered-panel-link::after, .staggered-trigger, .staggered-trigger-icon span { transition: none !important; }
}


/* Login animado inspirado no template 21st.dev - v1.3.9, JS puro */
.animated-login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 1.15fr) minmax(420px, .85fr); background: #ffffff; overflow: hidden; }
.login-visual-panel { position: relative; min-height: 100vh; padding: 48px; color: #fff; background: radial-gradient(circle at 22% 22%, rgba(255,255,255,.16), transparent 32%), linear-gradient(135deg, #5227ff 0%, #3b1dbd 55%, #25136f 100%); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login-visual-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25)); }
.login-visual-bg::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 999px; right: -120px; top: 14%; background: rgba(255,255,255,.12); filter: blur(18px); }
.login-visual-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 900; }
.login-visual-brand span, .mobile-login-brand span { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.70); }
.login-brand-mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(10px); }
.character-stage { position: relative; z-index: 2; width: min(620px, 100%); height: 460px; margin: 20px auto 0; }
.login-character { position: absolute; bottom: 0; transform-origin: bottom center; transform: skewX(var(--body-skew, 0deg)) translateX(var(--body-shift, 0px)); transition: transform .45s cubic-bezier(.19,1,.22,1), height .45s cubic-bezier(.19,1,.22,1); box-shadow: 0 30px 70px rgba(0,0,0,.18); }
.character-face { position: absolute; display: flex; align-items: center; gap: var(--eye-gap, 22px); left: var(--face-left, 30px); top: var(--face-top, 34px); transform: translate(var(--face-x, 0px), var(--face-y, 0px)); transition: left .45s ease, top .45s ease, transform .12s ease-out; }
.eye { width: var(--eye-size, 18px); height: var(--eye-size, 18px); border-radius: 999px; background: #fff; display: grid; place-items: center; overflow: hidden; transition: height .12s ease; }
.pupil { display: block; width: var(--pupil-size, 7px); height: var(--pupil-size, 7px); border-radius: 999px; background: #2d2d2d; transform: translate(var(--pupil-x, 0px), var(--pupil-y, 0px)); transition: transform .1s ease-out; }
.pupil-only { display: block; width: 12px; height: 12px; border-radius: 999px; background: #2d2d2d; transform: translate(var(--pupil-x, 0px), var(--pupil-y, 0px)); transition: transform .12s ease-out; }
.no-eye-shell { gap: 30px; }
.login-character.is-blinking .eye { height: 2px; }
.login-character.is-blinking .eye .pupil { opacity: 0; }
.character-purple { left: 82px; width: 190px; height: 410px; background: #6c3ff5; border-radius: 12px 12px 0 0; z-index: 1; --face-left: 48px; --face-top: 44px; --eye-gap: 30px; }
.character-black { left: 260px; width: 128px; height: 315px; background: #2d2d2d; border-radius: 10px 10px 0 0; z-index: 2; --face-left: 30px; --face-top: 34px; --eye-size: 16px; --pupil-size: 6px; --eye-gap: 24px; }
.character-orange { left: 0; width: 252px; height: 205px; background: #ff9b6b; border-radius: 130px 130px 0 0; z-index: 3; --face-left: 88px; --face-top: 92px; }
.character-yellow { left: 336px; width: 150px; height: 238px; background: #e8d754; border-radius: 80px 80px 0 0; z-index: 4; --face-left: 54px; --face-top: 42px; }
.character-mouth { position: absolute; left: -12px; top: 48px; width: 82px; height: 4px; border-radius: 999px; background: #2d2d2d; }
.animated-login-page.is-typing .character-purple { height: 445px; --body-shift: 34px; }
.animated-login-page.is-typing .character-black { --body-shift: 14px; }
.animated-login-page.password-visible.password-filled .character-purple { --body-shift: -14px; --body-skew: 0deg; }
.animated-login-page.password-visible.password-filled .character-black,
.animated-login-page.password-visible.password-filled .character-orange,
.animated-login-page.password-visible.password-filled .character-yellow { --body-skew: 0deg; }
.animated-login-page.password-visible.password-filled .character-face { --face-x: -16px; --face-y: -8px; }
.animated-login-page.password-visible.password-filled .pupil,
.animated-login-page.password-visible.password-filled .pupil-only { --pupil-x: -5px; --pupil-y: -4px; }
.animated-login-page.password-visible.password-filled.is-peeking .character-purple .pupil { --pupil-x: 4px; --pupil-y: 5px; }
.login-visual-copy { position: relative; z-index: 2; max-width: 520px; }
.login-visual-copy h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -0.055em; }
.login-visual-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.5; }
.login-form-panel { min-height: 100vh; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at top right, #eef2ff, transparent 32%), #fff; }
.login-form-card { width: min(430px, 100%); }
.mobile-login-brand { display: none; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; color: #101828; }
.mobile-login-brand .login-brand-mark { background: var(--primary); border: 0; }
.mobile-login-brand span { color: var(--muted); }
.login-mini-characters { display: none; align-items: flex-end; justify-content: center; gap: 4px; height: 92px; margin: 8px 0 22px; }
.mini-character { display: block; width: 42px; border-radius: 24px 24px 0 0; animation: miniBob 2.8s ease-in-out infinite; }
.mini-purple { height: 88px; background: #6c3ff5; animation-delay: 0s; }
.mini-black { height: 64px; background: #2d2d2d; animation-delay: .22s; }
.mini-orange { width: 58px; height: 48px; background: #ff9b6b; border-radius: 999px 999px 0 0; animation-delay: .1s; }
.mini-yellow { height: 58px; background: #e8d754; animation-delay: .32s; }
@keyframes miniBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.login-header { text-align: center; margin-bottom: 28px; }
.login-kicker { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: var(--primary); font-size: 12px; font-weight: 900; margin-bottom: 12px; }
.login-header h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.05; letter-spacing: -0.04em; }
.login-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.modern-login-form { display: grid; gap: 16px; }
.login-input-group { display: grid; gap: 8px; margin: 0; font-weight: 800; color: #344054; }
.login-input-group input { height: 50px; border-radius: 14px; background: #fff; border-color: #d8dee9; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.login-input-group input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,94,255,.12); transform: translateY(-1px); }
.modern-password-field { position: relative; }
.modern-password-field input { padding-right: 54px; }
.modern-password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 17px; transition: background .18s ease, color .18s ease; }
.modern-password-toggle:hover { background: #eef4ff; color: var(--primary); }
.modern-password-toggle .eye-closed { display: none; }
.modern-password-toggle.is-visible .eye-open { display: none; }
.modern-password-toggle.is-visible .eye-closed { display: inline; }
.remember-card { margin: 0; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid #d8dee9; background: #fbfcff; border-radius: 14px; cursor: pointer; }
.remember-card input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.remember-card span { display: grid; gap: 3px; }
.remember-card small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.login-submit { min-height: 50px; border-radius: 14px; font-size: 15px; box-shadow: 0 14px 28px rgba(31,94,255,.18); }
.login-note { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.45; }
.main-full .flash-area { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(520px, calc(100vw - 32px)); }
.main-full .footer { position: fixed; right: 22px; bottom: 14px; z-index: 5; color: rgba(102,112,133,.75); }
@media (max-width: 1100px) { .animated-login-page { grid-template-columns: 1fr; } .login-visual-panel { display: none; } .login-form-panel { padding: 28px 18px; } .mobile-login-brand, .login-mini-characters { display: flex; } .main-full .footer { position: static; padding: 14px; } }
@media (max-width: 520px) { .login-form-panel { align-items: start; padding: 22px 16px; } .login-header h1 { font-size: 29px; } .login-form-card { padding-top: 8px; } .remember-card { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .login-character, .character-face, .eye, .pupil, .pupil-only, .mini-character, .login-input-group input { transition: none !important; animation: none !important; } }

/* Vonix v1.4.0 */
.vonix-hero .stat-card strong { word-break: break-word; }
.danger-soft { border-color: rgba(239, 68, 68, 0.25) !important; background: rgba(239, 68, 68, 0.06); }
.danger-soft strong { color: #991b1b; }
#vonixQueuesBox { margin-top: 0.75rem; }
@media (max-width: 760px) {
  .stats-grid-4 { grid-template-columns: 1fr; }
  .vonix-hero .panel-header { align-items: flex-start; gap: 1rem; }
}

/* v1.4.1 - Menu agrupado e dashboard Vonix corrigido */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; width: 100%; }
.stats-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; display: grid; gap: 8px; align-content: start; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.stat-card strong { display: block; color: var(--text); font-size: clamp(20px, 1.65vw, 28px); line-height: 1.12; letter-spacing: -0.035em; overflow-wrap: anywhere; word-break: normal; }
.stat-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.42; overflow-wrap: anywhere; word-break: break-word; }
.vonix-hero .panel-header { align-items: flex-start; }
.vonix-hero .stats-grid { margin-top: 14px; }
.vonix-hero .stat-card strong { word-break: normal; overflow-wrap: anywhere; }
.vonix-hero code { background: #eef2ff; color: #233876; padding: 2px 6px; border-radius: 7px; }

.staggered-menu-layers { width: min(640px, 100vw); }
.staggered-panel { width: min(600px, 100vw); padding: 26px 30px 22px; }
.staggered-panel-top { margin-bottom: 24px; }
.staggered-panel-nav.nav-grouped { counter-reset: menuItem; display: grid; gap: 18px; }
.menu-group { display: grid; gap: 6px; padding: 0 0 14px; border-bottom: 1px solid rgba(16, 24, 40, .09); }
.menu-group:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-group-title { font-size: 12px; line-height: 1; font-weight: 950; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; transition-delay: calc(.18s + var(--g, 0) * .06s); }
.staggered-nav.is-open .menu-group-title { opacity: 1; transform: translateY(0); }
.staggered-panel-link { padding: 5px 62px 6px 0; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 950; }
.staggered-panel-link::after { top: .35em; font-size: clamp(11px, .95vw, 14px); }
.staggered-panel-footer { padding-top: 20px; margin-top: 24px; }
@media (max-width: 1200px) { .stats-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .staggered-panel { padding: 20px; }
  .staggered-panel-top { margin-bottom: 18px; }
  .staggered-panel-nav.nav-grouped { gap: 14px; }
  .menu-group { gap: 5px; padding-bottom: 12px; }
  .staggered-panel-link { font-size: clamp(22px, 7.4vw, 32px); padding: 5px 48px 6px 0; letter-spacing: -0.035em; }
  .staggered-panel-link::after { font-size: 11px; right: 2px; top: .42em; }
  .menu-group-title { font-size: 11px; }
  .stats-grid, .stats-grid-4 { grid-template-columns: 1fr; }
  .stat-card { padding: 14px; }
}

/* v1.4.2 - Dashboard geral operacional */
.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.ops-hero > div {
  background: linear-gradient(135deg, #101828 0%, #1f5eff 100%);
  color: #fff;
  border: 2px solid #101828;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #101828;
  padding: 22px;
  min-width: 0;
}
.ops-hero h2 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -.05em; }
.ops-hero p { margin: 0; color: rgba(255,255,255,.78); max-width: 760px; line-height: 1.5; }
.eyebrow { display: inline-flex; color: #dbeafe; text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.ops-hero-next { background: #fff !important; color: var(--text) !important; display: grid; align-content: center; gap: 7px; }
.ops-hero-next small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ops-hero-next strong { font-size: 24px; line-height: 1.05; overflow-wrap: anywhere; }
.ops-hero-next span { color: var(--muted); font-weight: 700; }
.retro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.retro-card {
  border: 2px solid #101828;
  background: #fff;
  color: #101828;
  box-shadow: 4px 4px 0 #101828, 8px 8px 0 rgba(31,94,255,.22);
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
}
.retro-card-bar { padding: 12px 14px; border-bottom: 2px solid #101828; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #dbeafe; }
.retro-card-bar strong { font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.retro-dots { display: flex; gap: 5px; }
.retro-dots span { width: 11px; height: 11px; border: 2px solid #101828; background: #fff; display: block; }
.retro-card-body { padding: 16px; }
.retro-card-body h3 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: .9; letter-spacing: -.06em; }
.retro-card-body p { margin: 10px 0 0; color: #475467; font-size: 13px; line-height: 1.45; }
.retro-card.accent-green { box-shadow: 4px 4px 0 #101828, 8px 8px 0 rgba(2,122,72,.22); }
.retro-card.accent-green .retro-card-bar { background: #d1fadf; }
.retro-card.accent-purple { box-shadow: 4px 4px 0 #101828, 8px 8px 0 rgba(108,63,245,.22); }
.retro-card.accent-purple .retro-card-bar { background: #ebe9fe; }
.retro-card.accent-orange { box-shadow: 4px 4px 0 #101828, 8px 8px 0 rgba(181,71,8,.22); }
.retro-card.accent-orange .retro-card-bar { background: #fef0c7; }
.operational-terminal-panel { border: 2px solid #101828; box-shadow: 4px 4px 0 #101828; background: #fff; }
.terminal-header-row { align-items: center; }
.ops-terminal {
  min-height: 138px;
  max-height: 360px;
  overflow: auto;
  border: 2px solid #101828;
  background: #0b1020;
  color: #d1e0ff;
  padding: 14px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.terminal-log-line, .terminal-execution-line { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; line-height: 1.4; font-size: 13px; }
.terminal-execution-line { color: #fff; border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; padding-top: 10px; flex-wrap: wrap; }
.terminal-execution-line:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.terminal-time { color: #7dd3fc; min-width: 92px; font-size: 12px; flex: 0 0 auto; }
.terminal-tag { display: inline-flex; padding: 2px 7px; background: #334155; color: #e2e8f0; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.terminal-tag.is-running { background: #f59e0b; color: #111827; }
.terminal-progress { height: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); margin: 6px 0 8px; overflow: hidden; }
.terminal-progress div { height: 100%; background: #60a5fa; transition: width .35s ease; }
.muted-line { color: #94a3b8; }
.operations-panel { overflow: visible; }
.slim-actions { flex-wrap: wrap; justify-content: flex-end; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.operation-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(16,24,40,.06);
}
.operation-card h3 { margin: 0; font-size: 20px; line-height: 1.12; letter-spacing: -.02em; }
.operation-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.operation-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.provider-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.provider-badge.callix { background: #eef4ff; color: #1f5eff; }
.provider-badge.vonix { background: #f4ebff; color: #6941c6; }
.operation-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.operation-meta div { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; padding: 10px; }
.operation-meta dt { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.operation-meta dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; line-height: 1.35; }
.operation-actions { display: flex; justify-content: flex-end; }
.friendly-history table { min-width: 980px; }
.friendly-history td strong { display: inline-block; max-width: 380px; }
@media (max-width: 1180px) {
  .retro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ops-hero { grid-template-columns: 1fr; }
  .retro-grid { grid-template-columns: 1fr; }
  .terminal-log-line, .terminal-execution-line { display: block; }
  .terminal-time { display: inline-block; min-width: 0; margin-right: 8px; }
  .operation-meta { grid-template-columns: 1fr; }
  .slim-actions { justify-content: flex-start; }
}

/* v1.4.4 - pagina de boas-vindas preservada com paleta original */
.welcome-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 20px;
  margin-bottom: 22px;
}
.welcome-hero-copy, .welcome-status-card {
  border: 2px solid #111827;
  background: #fff;
  box-shadow: 5px 5px 0 #9ca3af;
  padding: 24px;
}
.welcome-hero-copy h2 { margin: 8px 0 10px; font-size: clamp(32px, 4vw, 58px); line-height: .92; letter-spacing: -.07em; color: #111827; }
.welcome-hero-copy p { margin: 0; max-width: 820px; color: #4b5563; line-height: 1.55; }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.welcome-status-card { display: grid; align-content: center; gap: 8px; }
.welcome-status-card small { color: #6b7280; text-transform: uppercase; letter-spacing: .06em; font-weight: 950; }
.welcome-status-card strong { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.05; color: #111827; }
.welcome-status-card span { color: #374151; font-weight: 800; }
.welcome-status-card em { color: #6b7280; font-style: normal; }
.welcome-grid { margin-bottom: 22px; }
.welcome-panel { border: 1px solid #d1d5db; }
.welcome-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.welcome-shortcuts a { border: 1px solid #d1d5db; background: #f9fafb; border-radius: 16px; padding: 16px; display: grid; gap: 6px; transition: transform .16s ease, box-shadow .16s ease; }
.welcome-shortcuts a:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17,24,39,.08); }
.welcome-shortcuts span { color: #6b7280; font-weight: 950; font-size: 12px; letter-spacing: .08em; }
.welcome-shortcuts strong { font-size: 18px; color: #111827; }
.welcome-shortcuts small { color: #6b7280; line-height: 1.35; }
@media (max-width: 980px) {
  .welcome-hero { grid-template-columns: 1fr; }
  .welcome-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar-actions .btn { display: none; }
  .help-button-text { display: none; }
  .help-button { min-width: 42px; padding: 0 10px; }
  .welcome-shortcuts { grid-template-columns: 1fr; }
  .welcome-hero-copy, .welcome-status-card { padding: 18px; }
}


/* v1.4.4 - retorno da paleta original e terminal operacional unificado */
.welcome-hero-copy, .welcome-status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.welcome-hero-copy h2 { color: var(--text); }
.welcome-hero-copy p, .welcome-status-card em, .welcome-shortcuts small { color: var(--muted); }
.welcome-status-card small, .welcome-status-card span { color: var(--primary); }
.welcome-status-card strong, .welcome-shortcuts strong { color: var(--text); }
.welcome-shortcuts a { border: 1px solid var(--line); background: #fff; }
.welcome-shortcuts a:hover { box-shadow: 0 14px 28px rgba(31,94,255,.10); border-color: #bfd0ff; }
.ops-terminal { min-height: 180px; max-height: 420px; overflow: auto; }
.terminal-empty-state { opacity: .75; }
.terminal-log-line.is-error span:last-child { color: #fca5a5; }
.terminal-log-line.is-success span:last-child { color: #86efac; }
.terminal-log-line.is-warning span:last-child { color: #fde68a; }
.terminal-source { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 950; letter-spacing: .04em; background: rgba(255,255,255,.12); color: #fff; }
.terminal-source.source-vonix { background: rgba(180,151,207,.30); }
.terminal-source.source-callix { background: rgba(31,94,255,.32); }
.terminal-source.source-vencimento { background: rgba(2,122,72,.32); }
.terminal-source.source-cleanup { background: rgba(181,71,8,.32); }
.terminal-run-head { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; margin-top: 10px; }

/* v1.4.6 - Diagnostico Vonix */
.diagnostic-box {
  border: 1px solid #d6dbe8;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.diagnostic-grid > div {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.diagnostic-grid small {
  display: block;
  color: #667085;
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.diagnostic-grid strong {
  display: block;
  color: #101828;
  font-size: 0.9rem;
  word-break: break-word;
}
.diagnostic-section {
  margin-top: 10px;
  font-size: 0.9rem;
}
.diagnostic-section ul {
  margin: 6px 0 0 18px;
  padding: 0;
}
.warn-text { color: #9a6700; }
.error-text { color: #b42318; }
@media (max-width: 900px) {
  .diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .diagnostic-grid { grid-template-columns: 1fr; }
}

.raw-details { margin-top: 8px; }
.raw-details summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.raw-details pre { max-height: 280px; overflow: auto; margin: 8px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #0b1020; color: #d7e6ff; font-size: 11px; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 768px) {
  .help-tooltip {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    width: auto;
    white-space: normal;
    text-align: center;
    transform: translateY(-8px);
  }
  .help-tooltip::after {
    bottom: 100%;
    right: 24px;
  }
}

/* v1.5.2 - logo oficial e alinhamento de marca no login/menu */
.brand-logo-img {
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-logo-fallback {
  display: none;
}
.login-logo-img {
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menu-logo-img,
.mobile-login-logo-img {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(16,24,40,.08);
  box-shadow: 0 10px 24px rgba(16,24,40,.10);
}
.login-visual-panel {
  padding: 14px 48px 48px 14px;
}
.login-visual-brand {
  align-self: flex-start;
  min-height: 48px;
  padding: 0;
  margin: 0;
}
.login-visual-brand strong,
.mobile-login-brand strong,
.staggered-panel-brand strong {
  display: block;
  line-height: 1.05;
}
.staggered-panel {
  padding: 16px 30px 22px 16px;
}
.staggered-panel-top {
  align-items: flex-start;
  margin-bottom: 24px;
}
.staggered-panel-brand {
  min-height: 44px;
  align-items: center;
}
.staggered-panel-brand span {
  line-height: 1.2;
}
.mobile-login-brand {
  justify-content: flex-start;
  width: 100%;
}
@media (max-width: 1100px) {
  .mobile-login-brand {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 640px) {
  .staggered-panel {
    padding: 14px 18px 20px 14px;
  }
  .menu-logo-img,
  .mobile-login-logo-img {
    width: 40px;
    height: 40px;
  }
}

/* v1.5.4 - ações operacionais por campanha/rotina */
.operation-actions-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.operation-actions-wrap .inline-form { display: inline-flex; margin: 0; }
.btn-danger-soft { border: 1px solid rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); color: #991b1b; }
.btn-danger-soft:hover { background: rgba(239, 68, 68, 0.14); }
.notice-box { border: 1px dashed rgba(15, 23, 42, 0.18); background: rgba(248, 250, 252, 0.85); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; color: var(--muted); }
.notice-box strong { color: var(--text); }
