/* Caixa do Lima (admin > Design > Lima, js/lima.js) */
.lima-mine-row td { background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* Visual do Estúdio (2026-11-12): topo com o estado do Lima, gasto e a chave de ligar; aprovar é só no Estúdio. */
.lima-host { max-width: 1280px; }
.lm-hero { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding: 20px 24px; border-radius: 24px; background: var(--card); border: var(--hair, 1px) solid var(--line); }
.lm-hero .grow { flex: 1; }
.lm-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--text-3); }
.lm-hero.on .lm-dot { background: #34c759; box-shadow: 0 0 0 5px color-mix(in srgb, #34c759 22%, transparent); }
.lm-hero.warn .lm-dot { background: #e69a1c; box-shadow: 0 0 0 5px color-mix(in srgb, #e69a1c 22%, transparent); }
.lm-st { min-width: 0; margin-right: 12px; } .lm-st b { display: block; font-size: 1.3125rem; letter-spacing: -.02em; } .lm-st span { display: block; color: var(--text-2); font-size: .8438rem; margin-top: 2px; }
.lm-spend { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: var(--hair, 1px) solid var(--line); }
.lm-spend b { display: block; font-size: .9375rem; } .lm-spend div span { display: block; color: var(--text-2); font-size: .75rem; }
.lm-b, .lm-go, .lm-more { font: inherit; cursor: pointer; padding: 9px 16px; border-radius: 999px; border: var(--hair, 1px) solid var(--line); background: var(--fill, rgba(127, 127, 127, .1)); color: var(--text); font-size: .8438rem; font-weight: 600; white-space: nowrap; transition: border-color .2s, transform .15s; }
.lm-b:hover, .lm-more:hover { border-color: var(--line2, var(--text-3)); } .lm-b:active, .lm-go:active { transform: scale(.97); }
.lm-b.on { border-color: var(--text-2); }
.lm-b.primary, .lm-go { border: 0; background: var(--lemon-green, #95ff92); color: #0a0a0a; font-weight: 700; }
.lm-b:disabled { opacity: .5; cursor: default; }
.lm-sw { flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 22%, transparent); cursor: pointer; position: relative; transition: background .25s; }
.lm-sw i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.lm-sw[aria-checked="true"] { background: #34c759; } .lm-sw[aria-checked="true"] i { transform: translateX(20px); }
.lm-sw:focus-visible, .lm-b:focus-visible, .lm-go:focus-visible, .lm-chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.lm-cfg { margin-top: 14px; padding: 20px 24px; border-radius: 24px; background: var(--card); border: var(--hair, 1px) solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.lm-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .lm-f.wide { grid-column: 1 / -1; } .lm-f > b { font-size: .8125rem; }
.lm-f input, .lm-f select { font: inherit; padding: 10px 12px; border-radius: 12px; border: var(--hair, 1px) solid var(--line); background: transparent; color: var(--text); }
.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-chip { font: inherit; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: var(--hair, 1px) solid var(--line); background: none; color: var(--text-2); font-size: .8125rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.lm-chip.on { background: color-mix(in srgb, #34c759 18%, transparent); border-color: color-mix(in srgb, #34c759 55%, transparent); color: var(--text); }
.lm-chip.on::before { content: "✓ "; font-weight: 800; }
.lm-bar { flex-direction: row; gap: 10px; }
.lm-msg { margin: 14px 4px 0; color: var(--text-2); font-size: .875rem; }
.lm-n { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); font-size: .75rem; font-weight: 700; text-align: center; }
.lima-host .fin-table { border-radius: 20px; }
.lima-host .fin-table td.ds-act { display: table-cell; white-space: nowrap; text-align: right; } .lima-host td.ds-act .btn + .btn { margin-left: 6px; }
.lima-host .fin-table .ds-msg, .lima-host .fin-table .ds-err { white-space: normal; overflow: visible; max-width: 46ch; }
.lima-host .fin-table .sub:empty, .lima-host .fin-table .ds-msg:empty { display: none; }
.lima-host .fin-table td .pill { margin: 0 4px 4px 0; }
.lm-more { display: block; margin: 14px auto 0; }
@media (max-width: 720px) { .lm-cfg { grid-template-columns: 1fr; } .lm-spend { padding-left: 0; border-left: 0; } .lm-hero { padding: 16px; } }
.lima-host .fin-table .sub { margin: 0; max-width: none; }
.lima-host .fin-table td .pill { max-width: none; overflow: visible; white-space: nowrap; display: inline-block; }
@media (max-width: 980px) { .lm-hero .grow { display: none; } .lm-sw { margin-left: auto; } }
.lima-host .fin-table td { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.lima-host .fin-table td.ds-act { white-space: nowrap; }
.lima-host .fin-table td:nth-child(2) { white-space: normal; overflow: visible; max-width: none; }
