/* Helper — painel. Mesma identidade visual do PROFITS (cores, letras, medidas lidas de profits.kingfy.co). */

:root,
:root[data-theme='dark'] {
  --bg: #0b0c10;
  --glow: rgba(124, 108, 242, 0.08);
  --panel: #121419;
  --panel2: #191c24;
  --panel3: #20242e;
  --line: #242835;
  --btn-line: #2e3342;
  --ink: #eceef4;
  --ink2: #c4c8d4;
  --mute: #8d93a5;
  --dim: #5e6476;
  --brand: #7c6cf2;
  --brand2: #9d8ff7;
  --brand-soft: rgba(124, 108, 242, 0.15);
  --pos: #34d399;
  --pos-ink: #4ade80;
  --pos-soft: rgba(52, 211, 153, 0.12);
  --est: #f59e0b;
  --est-soft: rgba(245, 158, 11, 0.13);
  --neg: #f87171;
  --neg-soft: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.13);
  --radius: 16px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f5f6fa;
    --glow: rgba(106, 90, 232, 0.07);
    --panel: #ffffff;
    --panel2: #f0f2f7;
    --panel3: #e8ebf2;
    --line: #e2e5ed;
    --btn-line: #d3d7e2;
    --ink: #141722;
    --ink2: #3a4052;
    --mute: #596076;
    --dim: #7a8195;
    --brand: #6a5ae8;
    --brand2: #5647d6;
    --brand-soft: rgba(106, 90, 232, 0.1);
    --pos: #059669;
    --pos-ink: #047857;
    --pos-soft: rgba(5, 150, 105, 0.1);
    --est: #d97706;
    --est-soft: rgba(217, 119, 6, 0.11);
    --neg: #dc2626;
    --neg-soft: rgba(220, 38, 38, 0.08);
    --info: #2563eb;
    --info-soft: rgba(37, 99, 235, 0.08);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #f5f6fa;
  --glow: rgba(106, 90, 232, 0.07);
  --panel: #ffffff;
  --panel2: #f0f2f7;
  --panel3: #e8ebf2;
  --line: #e2e5ed;
  --btn-line: #d3d7e2;
  --ink: #141722;
  --ink2: #3a4052;
  --mute: #596076;
  --dim: #7a8195;
  --brand: #6a5ae8;
  --brand2: #5647d6;
  --brand-soft: rgba(106, 90, 232, 0.1);
  --pos: #059669;
  --pos-ink: #047857;
  --pos-soft: rgba(5, 150, 105, 0.1);
  --est: #d97706;
  --est-soft: rgba(217, 119, 6, 0.11);
  --neg: #dc2626;
  --neg-soft: rgba(220, 38, 38, 0.08);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, var(--glow), transparent 60%), var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a {
  color: var(--brand2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0;
}
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 2px;
}

/* ---------- Estrutura ---------- */
.layout {
  display: flex;
  min-height: 100vh;
}
.side {
  width: 256px;
  flex: none;
  border-right: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-top {
  height: 64px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo:hover {
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  box-shadow: 0 6px 18px -6px rgba(124, 108, 242, 0.8);
  display: grid;
  place-items: center;
  color: #fff;
}
.logo-word {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.side-store {
  padding: 12px 12px 0;
  position: relative;
}
.store-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
}
.store-btn:hover {
  border-color: var(--btn-line);
}
.store-menu {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 6px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  z-index: 30;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  max-height: 60vh;
  overflow: auto;
}
.store-menu button,
.store-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  font-size: 13.5px;
}
.store-menu button:hover,
.store-menu a:hover {
  background: var(--panel2);
  text-decoration: none;
}
.avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.avatar.lg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 18px;
}
.nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label {
  padding: 4px 12px 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--mute);
  font-size: 14px;
}
.nav-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--panel2);
  text-decoration: none;
}
.nav-link.on,
.nav-link.on:hover {
  color: var(--ink);
  background: var(--brand-soft);
}
.nav-link .soon {
  margin-left: auto;
  font-size: 10.5px;
  border: 1px solid var(--btn-line);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--mute);
}
.side-foot {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.user-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.user-btn:hover {
  background: var(--panel2);
}
.user-dot {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
}
.user-menu {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% - 4px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  z-index: 30;
}
.user-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.user-menu button:hover {
  background: var(--panel2);
}

.content {
  flex: 1;
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
}
.btn.menu-toggle {
  display: none;
}
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head > div:first-child {
  flex: 1;
  min-width: 240px;
}
.page-head h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.page-head p {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 14px;
}
.crumb {
  font-size: 13px;
  color: var(--mute);
}

/* ---------- Componentes ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card.accent {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h2 {
  font-size: 15.5px;
  font-weight: 600;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.desc {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.5;
}
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.grid.tight {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--mute);
}
.small {
  font-size: 12.5px;
}
.label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi .val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.kv > span:first-child {
  color: var(--mute);
}
.kv > span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--btn-line);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--mute);
  text-decoration: none;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--brand2);
  padding: 0 8px;
}
.btn.danger {
  color: var(--neg);
}
.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn svg {
  width: 16px;
  height: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok {
  background: var(--pos-soft);
  color: var(--pos-ink);
}
.pill.warn {
  background: var(--est-soft);
  color: var(--est);
}
.pill.bad {
  background: var(--neg-soft);
  color: var(--neg);
}
.pill.info {
  background: var(--info-soft);
  color: var(--info);
}
.pill.idle {
  background: var(--panel3);
  color: var(--ink2);
}
.tag {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 7px;
  background: var(--panel3);
  color: var(--ink2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-size: 13px;
  font-weight: 500;
}
.field small {
  color: var(--mute);
  font-size: 12px;
}
.input,
select.input,
textarea.input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--btn-line);
  background: var(--panel2);
  padding: 0 12px;
  font-size: 14px;
  width: 100%;
  min-width: 0;
}
textarea.input {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
}
.copy {
  display: flex;
  gap: 8px;
}
.copy .input {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
}

.seg {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 4px;
}
.seg button {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  white-space: nowrap;
}
.seg button.on {
  background: var(--brand);
  color: #fff;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink2);
  font-size: 13.5px;
}
.steps b {
  color: var(--ink);
  font-weight: 600;
}
.checklist {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
}
.check .num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
  background: var(--panel3);
  color: var(--mute);
}
.check.done .num {
  background: var(--pos-soft);
  color: var(--pos-ink);
}
.check.now {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
}
.check.now .num {
  background: var(--brand);
  color: #fff;
}
.bar {
  height: 8px;
  background: var(--panel3);
  border-radius: 999px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 999px;
}
.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.scope-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
}
.scope-list li code {
  flex: none;
}
.scope-list li > span:not(.pill) {
  flex: 1;
  min-width: 200px;
  color: var(--mute);
}
.scope-list li.missing code {
  border-color: var(--est);
  color: var(--est);
}
details.more summary {
  cursor: pointer;
  color: var(--brand2);
  font-size: 13px;
}
.notice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--panel2);
}
.notice.ok {
  background: var(--pos-soft);
  border-color: transparent;
  color: var(--pos-ink);
}
.notice.warn {
  background: var(--est-soft);
  border-color: transparent;
  color: var(--est);
}
.notice.bad {
  background: var(--neg-soft);
  border-color: transparent;
  color: var(--neg);
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--mute);
}

/* Lojas */
.store-card {
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.store-card:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  transform: translateY(-2px);
}
.store-title {
  display: flex;
  gap: 14px;
  align-items: center;
}
.store-title h3 {
  font-size: 16px;
  font-weight: 600;
}

/* Consulta de cliente */
.search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search .input {
  flex: 1 1 320px;
  height: 46px;
  font-size: 15px;
}
.search .btn {
  height: 46px;
}
.facts {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.order-top b {
  font-size: 15px;
}
.conv {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.conv:hover {
  border-color: var(--btn-line);
}
.msg {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg.out {
  background: transparent;
  border-style: dashed;
}
.msg pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink2);
  max-height: 340px;
  overflow: auto;
}

/* Login */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth .card {
  width: min(420px, 100%);
  gap: 16px;
}

/* Modal */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
}

/* Tabela simples (equipe) */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  border-top: 0;
}

/* Celular / tablet: o menu vira gaveta */
@media (max-width: 1100px) {
  .side {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  body.nav-open .side {
    transform: none;
  }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
  }
  .btn.menu-toggle {
    display: inline-flex;
  }
  .main {
    padding: 20px 16px 40px;
  }
  .topbar {
    padding: 0 16px;
  }
}
.grid.fill {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}

/* ---------- Caixa de atendimento (colunas) ---------- */
.main.wide {
  max-width: 1800px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
}
.kcol {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.kcol-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.kcount {
  margin-left: auto;
  background: var(--panel3);
  color: var(--ink2);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 600;
}
.kempty {
  color: var(--dim);
  font-size: 13px;
  text-align: center;
  padding: 18px 0;
}
.kcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 12px;
  padding: 11px 12px;
  color: inherit;
  text-decoration: none;
}
.kcard:hover,
.kcard:focus-visible {
  border-color: var(--brand);
  outline: none;
}
.kname {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ksubj {
  font-size: 13px;
  color: var(--ink2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kwarn {
  color: var(--est);
}
.kbad {
  color: var(--neg);
}
.kclip {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Tela do caso ---------- */
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
textarea.input.answer {
  min-height: 300px;
  line-height: 1.5;
  resize: vertical;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand2);
  cursor: pointer;
  font-size: 12px;
}
ul.why {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink2);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- Configurações: IA e envio ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.ai-prov {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
  width: 100%;
}
.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--panel3);
  position: relative;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mute);
  transition: left 0.15s;
}
.switch.on {
  background: var(--pos);
  border-color: var(--pos);
}
.switch.on .knob {
  left: 23px;
  background: #fff;
}
@media (max-width: 1100px) {
  .case-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.copy.cmd .input {
  font-family: inherit;
  font-size: 14px;
}
.card-head {
  flex-wrap: wrap;
}

/* ---------- Regras ---------- */
.rule {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule.proposed {
  border-color: var(--est);
  border-style: dashed;
}
.rule-title {
  font-size: 14px;
}
.rule-body {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink2);
}
