﻿
    :root {
      --bg: #07110e;
      --sidebar: #081410;
      --card: #0d1c16;
      --card-2: #10261c;
      --line: rgba(78, 186, 122, 0.22);
      --line-strong: rgba(78, 214, 132, 0.55);
      --text: #e8f6ee;
      --muted: #86a394;
      --faint: #648274;
      --green: #3ddc84;
      --green-deep: #1b9a4e;
      --gold: #f0c14b;
      --red: #ff6b6b;
      --amber: #f0b429;
      --blue: #49c8ff;
      --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    * { box-sizing: border-box; }
    .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
    html, body { margin: 0; min-height: 100%; }
    html { background: var(--bg); }
    body {
      display: grid;
      grid-template-columns: 228px minmax(0, 1fr);
      font-size: 14px;
      color: var(--text);
      font-family: Outfit, "Segoe UI", sans-serif;
      background:
        radial-gradient(900px 380px at 8% -12%, rgba(28, 92, 58, 0.38), transparent 60%),
        var(--bg);
      font-variant-numeric: tabular-nums;
    }
    button, input, select { font: inherit; color: inherit; }
    button { cursor: pointer; }
    :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
    h1, h2, p { margin: 0; }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 18px 14px 14px;
      background: rgba(6, 16, 12, 0.92);
      border-right: 1px solid var(--line);
      overflow: auto;
    }
    .brand { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
    .brand-mark {
      width: 34px; height: 34px; flex: none;
      display: grid; place-items: center;
      border-radius: 10px;
      background: linear-gradient(160deg, #2ee58a, #12824a);
      color: #062112;
      box-shadow: 0 0 0 1px rgba(180, 255, 210, 0.25);
    }
    .brand strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
    .brand span { color: var(--green); font-size: 12px; }
    .field { display: grid; gap: 6px; margin: 8px 0 4px; font-size: 12px; color: var(--muted); }
    .field select {
      width: 100%;
      appearance: none;
      background: #0c1a15 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2386a394' stroke-width='1.6'/></svg>") no-repeat right 10px center;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 28px 8px 10px;
      color: var(--text);
    }
    .profile-new { width: 100%; margin: 6px 0 0; }
    #profile-dialog { width: min(460px, calc(100vw - 28px)); }
    .host {
      margin: 8px 2px 12px;
      color: var(--faint);
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 10px;
      word-break: break-all;
    }
    .nav-label {
      margin: 12px 8px 6px;
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
    }
    .side-nav { display: grid; gap: 4px; }
    .side-nav button {
      display: flex; align-items: center; gap: 8px;
      text-align: left;
      background: transparent;
      border: 1px solid transparent;
      color: var(--muted);
      border-radius: 10px;
      padding: 8px 10px;
    }
    .side-nav button svg { flex: none; }
    .side-nav button:hover { background: rgba(61, 220, 132, 0.06); color: var(--text); }
    .side-nav button.active {
      background: var(--green-deep);
      color: white;
      box-shadow: inset 0 0 0 1px rgba(190, 255, 214, 0.18);
    }
    .side-actions { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }
    .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .btn-go, .btn-stop, .btn-quiet, .btn-exit, .btn-add, .send, .linkish {
      border-radius: 10px;
      padding: 8px 10px;
      font-size: 12.5px;
      white-space: nowrap;
    }
    .btn-go {
      background: var(--green-deep);
      color: white;
      border: 0;
      font-weight: 600;
    }
    .btn-go:hover { background: #22b15a; }
    .btn-stop, .btn-exit {
      background: transparent;
      border: 1px solid rgba(255, 107, 107, 0.45);
      color: #ff9a9a;
    }
    .btn-quiet {
      background: transparent;
      border: 1px solid var(--line);
      color: var(--muted);
    }
    .btn-quiet:hover, .btn-stop:hover { background: rgba(255, 255, 255, 0.03); }

    main { padding: 14px 14px 16px 12px; min-width: 0; }
    .kpis, .stage {
      display: grid;
      grid-template-columns: minmax(0, 1.72fr) minmax(340px, 0.98fr);
      gap: 12px;
    }
    .kpi-prod, .kpi-side { display: grid; gap: 12px; min-width: 0; }
    .kpi-prod { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kpi-side { grid-template-columns: 1.15fr 0.9fr; }
    .panel {
      background: linear-gradient(180deg, rgba(16, 40, 30, 0.96), rgba(10, 26, 20, 0.96));
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: var(--shadow);
      min-width: 0;
    }
    .kpi { display: flex; gap: 12px; align-items: center; padding: 12px 14px; height: 100%; }
    .ico {
      width: 38px; height: 38px; flex: none;
      display: grid; place-items: center;
      border-radius: 11px;
      background: rgba(61, 220, 132, 0.12);
      color: var(--green);
      border: 1px solid rgba(61, 220, 132, 0.18);
    }
    .ico.gold { color: var(--gold); background: rgba(240, 193, 75, 0.1); border-color: rgba(240, 193, 75, 0.2); }
    .kpi p, .panel-title, .accounts-head h2, .selected h2 { font-size: 12px; color: var(--muted); font-weight: 500; }
    .kpi strong {
      display: block;
      margin: 1px 0 2px;
      font-size: 20px;
      letter-spacing: -0.03em;
      font-weight: 650;
      color: #f4fff8;
    }
    .kpi strong em { font-style: normal; font-size: 0.68em; font-weight: 600; color: #b7e7c8; margin-left: 4px; }
    .delta { color: var(--green); font-size: 12px; }
    .status-list, .account-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
    .status-list li, .account-list li {
      display: flex; align-items: center; gap: 8px;
      font-size: 12.5px; color: var(--muted);
    }
    .status-list b, .account-list b { color: var(--text); font-weight: 650; min-width: 1.2em; }
    .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
    .dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.12); }
    .dot.warn { background: var(--amber); }
    .dot.bad { background: var(--red); }
    .dot.idle { background: #66786f; }
    .account-total {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid rgba(78, 186, 122, 0.14);
      color: var(--muted);
      font-size: 12px;
    }

    .stage { margin-top: 12px; align-items: stretch; }
    .stage-main, .stage-side { gap: 12px; min-width: 0; }
    .stage-main { display: grid; align-content: start; }
    .stage-side { display: flex; flex-direction: column; }
    .accounts { padding: 12px; }
    .chat-wrap { position: relative; flex: 1 1 auto; min-height: 500px; }
    .chat {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      padding: 10px 12px 12px;
      overflow: hidden;
    }
    .lower { display: grid; gap: 12px; grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr; grid-template-areas: "selected rank farms alerts"; }
    .selected { grid-area: selected; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
    .rank { grid-area: rank; }
    .farms { grid-area: farms; }
    .alerts { grid-area: alerts; }
    .rank, .farms, .alerts, .uptime { padding: 12px 14px; }
    #farm-money-meta { color: var(--muted); }
    .money-kpi > div { min-width: 0; }
    .money-kpi p { line-height: 1.25; }

    .accounts-head {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
      margin-bottom: 10px;
    }
    .accounts-head h2 { color: var(--text); font-size: 16px; font-weight: 650; }
    .summary { text-align: center; color: var(--muted); font-size: 12px; }
    .filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
    .filters button, .btn-add {
      background: transparent;
      border: 1px solid var(--line);
      color: var(--muted);
      border-radius: 999px;
      padding: 5px 10px;
      font-size: 12px;
    }
    .filters button.active {
      background: var(--green-deep);
      border-color: transparent;
      color: white;
      font-weight: 600;
    }
    .btn-add { color: var(--green); border-color: rgba(61, 220, 132, 0.45); font-weight: 650; }
    .bot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    .bot {
      cursor: pointer;
      text-align: left;
      background: rgba(6, 16, 12, 0.55);
      border: 1px solid rgba(78, 186, 122, 0.16);
      border-radius: 12px;
      padding: 8px 8px 7px;
      display: grid;
      gap: 6px;
      min-width: 0;
    }
    .bot:hover { border-color: rgba(61, 220, 132, 0.4); }
    .bot.is-selected { border-color: var(--green); box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.28); }
    .bot-top { display: flex; gap: 8px; align-items: center; min-width: 0; }
    .bot-top div { min-width: 0; }
    .bot strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .presence { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
    .head { width: 36px; height: 36px; flex: none; border-radius: 7px; background: #1b140f; shape-rendering: crispEdges; }
    .head.lg { width: 46px; height: 46px; border-radius: 8px; }
    .rate { display: flex; align-items: baseline; gap: 4px; color: #e9fff2; font-weight: 650; font-size: 13px; letter-spacing: -0.02em; }
    .rate svg { color: var(--gold); align-self: center; }
    .rate span { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: -1px; }
    .today { color: var(--faint); font-size: 11px; margin-top: -4px; }
    .bot-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
    .sel-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .sel-actions button:disabled { opacity: 0.4; cursor: default; }
    .ctx {
      position: fixed;
      z-index: 40;
      min-width: 180px;
      padding: 6px;
      background: #10261c;
      border: 1px solid var(--line-strong);
      border-radius: 12px;
      box-shadow: var(--shadow);
    }
    .ctx button {
      display: block;
      width: 100%;
      text-align: left;
      background: transparent;
      border: 0;
      border-radius: 8px;
      padding: 8px 10px;
      color: var(--text);
    }
    .ctx button:hover:not(:disabled) { background: rgba(61, 220, 132, 0.12); }
    .ctx button:disabled { color: var(--faint); cursor: default; }
    .ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
    html:has(.account-dialog[open]) { overflow: hidden; }
    .account-dialog {
      width: min(640px, calc(100vw - 28px));
      max-height: min(88vh, 860px);
      margin: auto;
      padding: 0;
      overflow: hidden;
      color-scheme: dark;
      border: 1px solid var(--line-strong);
      border-radius: 18px;
      background:
        radial-gradient(480px 160px at 0% 0%, rgba(28, 92, 58, 0.42), transparent 62%),
        linear-gradient(180deg, #10281e, #0b1813);
      color: var(--text);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    }
    .account-dialog::backdrop { background: rgba(4, 10, 8, 0.78); }
    .account-dialog form {
      display: flex;
      flex-direction: column;
      max-height: min(88vh, 860px);
      overflow: hidden;
    }
    .dlg-head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 16px 14px;
      border-bottom: 1px solid rgba(78, 186, 122, 0.16);
    }
    .dlg-head h2 { font-size: 18px; letter-spacing: -0.03em; }
    .dlg-head .hint {
      margin: 2px 0 0;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 11px;
    }
    .dlg-x {
      margin-left: auto;
      width: 32px;
      height: 32px;
      flex: none;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      font-size: 20px;
      line-height: 1;
    }
    .dlg-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
    .dlg-body {
      overflow: auto;
      padding: 14px 16px 16px;
      display: grid;
      gap: 12px;
    }
    .dlg-body::-webkit-scrollbar { width: 8px; }
    .dlg-body::-webkit-scrollbar-thumb { background: #1b9a4e; border-radius: 8px; }
    .dlg-section {
      background: rgba(6, 16, 12, 0.5);
      border: 1px solid rgba(78, 186, 122, 0.16);
      border-radius: 12px;
      padding: 12px;
    }
    .dlg-kicker {
      margin: 0 0 10px;
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
    }
    .dlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .span-2 { grid-column: 1 / -1; }
    .account-dialog label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; min-width: 0; }
    .account-dialog input,
    .account-dialog select {
      width: 100%;
      background: #07140f;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 9px 10px;
      outline: none;
    }
    .account-dialog select {
      appearance: none;
      padding-right: 30px;
      background: #07140f url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2386a394' stroke-width='1.6'/></svg>") no-repeat right 10px center;
    }
    .account-dialog input::placeholder { color: var(--faint); }
    .account-dialog input:focus,
    .account-dialog select:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16);
    }
    .account-dialog label.check-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px;
      border-radius: 10px;
      background: rgba(61, 220, 132, 0.06);
      border: 1px solid rgba(61, 220, 132, 0.16);
      color: var(--text);
    }
    .account-dialog label.check-row input {
      width: 16px;
      height: 16px;
      margin-top: 2px;
      accent-color: var(--green-deep);
    }
    .account-dialog label.check-row strong { display: block; font-size: 13px; font-weight: 600; }
    .account-dialog label.check-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
    .proxy-custom {
      padding: 10px;
      border-radius: 10px;
      border: 1px dashed rgba(78, 186, 122, 0.28);
    }
    .dlg-foot {
      display: grid;
      gap: 10px;
      padding: 12px 16px 16px;
      border-top: 1px solid rgba(78, 186, 122, 0.16);
      background: rgba(6, 16, 12, 0.55);
    }
    .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
    .dlg-actions .btn-quiet,
    .dlg-actions .btn-go { min-width: 108px; }
    .account-dialog .banner { margin: 0; }
    .account-dialog .hint { margin: 0; }
    @media (max-width: 640px) {
      .dlg-grid { grid-template-columns: 1fr; }
      .span-2 { grid-column: auto; }
    }
    .ping { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; color: var(--green); }
    .ping.mid { color: var(--amber); }
    .ping.high { color: var(--red); }
    .badge {
      border-radius: 999px;
      padding: 3px 6px;
      font-size: 9px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-weight: 700;
      color: white;
      white-space: nowrap;
    }
    .badge.farmando { background: #1b9a4e; }
    .badge.vendendo { background: #c4921d; color: #1c1404; }
    .badge.teletransporte { background: #147a9e; }
    .badge.parada { background: #c44747; }
    .empty-filter { color: var(--muted); font-size: 13px; padding: 18px 4px; }

    .tabs { display: flex; gap: 14px; border-bottom: 1px solid rgba(78, 186, 122, 0.16); margin-bottom: 8px; flex: none; }
    .tabs button {
      background: none; border: 0; color: var(--muted);
      padding: 6px 0 8px; position: relative; font-size: 13px;
    }
    .tabs button.active { color: var(--green); font-weight: 650; }
    .tabs button.active::after {
      content: "";
      position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
      background: var(--green); border-radius: 2px;
    }
    .log {
      flex: 1; min-height: 0; overflow: auto;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 11.5px; line-height: 1.55;
      padding-right: 6px;
    }
    .log::-webkit-scrollbar { width: 8px; }
    .log::-webkit-scrollbar-thumb { background: #1b9a4e; border-radius: 8px; }
    .line { color: #d5e4da; }
    .t { color: #74867c; }
    .loja { color: #5dff7a; }
    .gold { color: var(--gold); }
    .sys { color: #d9c98a; }
    .cmd { color: #c9ddd2; }
    .hi { color: #7ee0ff; }
    .ann { color: #ff9ec8; }
    .name { color: #8fd0ff; }
    .composer { display: flex; gap: 8px; margin-top: 8px; flex: none; }
    .composer input {
      flex: 1; min-width: 0;
      background: #07140f;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 10px;
      outline: none;
    }
    .composer input:focus { border-color: var(--green); }
    .send { background: var(--green-deep); color: white; border: 0; font-weight: 650; }
    .hint { margin-top: 6px; color: var(--faint); font-size: 11px; flex: none; }
    .play { display: none; min-height: 0; }
    .play.show { display: block; }
    .play.show.log { display: block; overflow: auto; }
    #panel-chat.show { display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .slots {
      display: grid;
      grid-template-columns: repeat(9, 1fr);
      gap: 6px;
      padding: 8px 0;
    }
    .slot {
      aspect-ratio: 1;
      border-radius: 6px;
      background: #102018;
      border: 1px solid rgba(78, 186, 122, 0.16);
    }
    .slot.wheat { background: linear-gradient(#e2c15a, #8a6a22); }
    .slot.emerald { background: linear-gradient(#5dff9a, #12824a); }
    .slot.carrot { background: linear-gradient(#ff9a3c, #c45a12); }
    .slot.bone { background: linear-gradient(#f4f1e4, #b7b09a); }
    .screen {
      margin-top: 8px;
      min-height: 180px;
      border-radius: 10px;
      background: #07140f;
      border: 1px solid var(--line);
      display: grid; place-items: center;
      color: var(--muted); font-size: 13px;
    }
    .registo { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: #c9ddd2; display: grid; gap: 6px; padding-top: 8px; }
    .registo span { color: var(--faint); }

    .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
    .panel-head h2, .selected h2 { color: var(--text); font-size: 14px; font-weight: 650; }
    .linkish { background: none; border: 0; color: var(--green); padding: 0; font-size: 12px; }
    .plot { display: grid; grid-template-columns: 28px 1fr; height: 132px; position: relative; }
    .y, .x { color: var(--faint); font-size: 10px; }
    .y { display: flex; flex-direction: column; justify-content: space-between; }
    .x { display: flex; justify-content: space-between; margin: 4px 0 0 28px; }
    .chart-svg { width: 100%; height: 132px; display: block; }
    .tip {
      position: absolute;
      left: 18%;
      top: 6px;
      background: #10261c;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      padding: 4px 7px;
      font-size: 11px;
      box-shadow: var(--shadow);
    }
    .tip strong { display: block; color: var(--green); font-size: 11px; }
    .tip span { color: var(--muted); }
    .peak {
      position: absolute;
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--green);
      border: 2px solid #07110e;
      left: calc(28px + 8.3% - 4px);
      top: 26%;
    }

    .rank ol, .alerts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
    .rank li, .alerts li {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      padding: 5px 0;
      font-size: 12px;
    }
    .rank li { grid-template-columns: 18px minmax(0, 1fr) auto auto; }
    .rank em {
      width: 18px; height: 18px; border-radius: 50%;
      display: grid; place-items: center;
      background: #1b9a4e; color: white;
      font-style: normal; font-size: 10px; font-weight: 700;
    }
    .rank b, .alerts b { font-weight: 600; }
    .rank small { color: var(--green); font-size: 11px; }
    .rate-sm { color: var(--muted); font-size: 11px; }
    .alerts time { color: var(--faint); font-size: 11px; }
    .alerts li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .msg-warn { color: #e6c56a; }
    .msg-bad { color: #ff9a9a; }

    .uptime-now { font-size: 22px; letter-spacing: -0.03em; margin: 6px 0 2px; }
    .uptime p { color: var(--muted); font-size: 12px; }
    .track { margin-top: 10px; height: 7px; border-radius: 99px; background: #163026; overflow: hidden; }
    .track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12824a, #3ddc84); }

    .who { display: flex; gap: 10px; align-items: center; }
    .who div { min-width: 0; flex: 1; }
    .who-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
    .stat-lg { font-size: 22px; letter-spacing: -0.03em; }
    .stat-lg span { font-size: 13px; color: var(--muted); font-weight: 500; }
    .meters { display: grid; gap: 10px; margin-top: auto; }
    .meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
    .meter-label b { color: var(--text); font-weight: 600; }

    @media (max-width: 1280px) {
      .bot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .lower {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "selected selected" "rank farms" "alerts alerts";
      }
    }
    @media (max-width: 980px) {
      body { display: block; }
      .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
      .kpis, .stage, .kpi-prod, .kpi-side { grid-template-columns: 1fr; }
      .stage-main, .stage-side { display: contents; }
      .stage { grid-template-areas: "accounts" "chat" "lower"; }
      .accounts { grid-area: accounts; }
      .chat-wrap { grid-area: chat; min-height: 500px; }
      .lower { grid-area: lower; }
      .accounts-head { grid-template-columns: 1fr; }
      .summary { text-align: left; }
    }
  
    .hidden { display: none !important; }
    .beta {
      font-style: normal; font-size: 11px; font-weight: 700;
      color: #062112; background: var(--green);
      border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px;
    }
    img.head { display: block; object-fit: cover; image-rendering: pixelated; }
    .ping.off { color: var(--faint); }
    .badge.erro, .badge.offline { background: #5c403f; }
    .badge.ligando { background: #8a6a22; color: #1c1404; }
    .auth-gate {
      position: fixed; inset: 0; z-index: 30;
      display: grid; place-items: center;
      background: rgba(5, 12, 9, 0.92);
      padding: 16px;
    }
    .auth-card { width: min(380px, 100%); padding: 22px; display: grid; gap: 10px; }
    .auth-card h1 { font-size: 22px; }
    .auth-card label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
    .auth-card input {
      background: #07140f; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
    }
    .banner { margin: 0 0 12px; }
    .banner.error {
      color: #ffb4b4; background: rgba(255, 80, 80, 0.08);
      border: 1px solid rgba(255, 107, 107, 0.35); border-radius: 10px; padding: 8px 10px;
    }
    .plot-main { position: relative; min-width: 0; height: 132px; }
    .peak { transform: translate(-50%, -50%); }
    .rank li.muted-row, .alerts li.muted-row { display: block; color: var(--muted); }
    .inv-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
    .inv-tools { display: flex; flex-wrap: wrap; gap: 4px; }
    .inv-actions button {
      background: transparent; border: 1px solid var(--line); color: var(--text);
      border-radius: 8px; padding: 4px 7px; font-size: 11px;
    }
    .inv-actions button.active {
      background: rgba(240, 193, 75, 0.14);
      border-color: var(--gold);
      color: var(--gold);
    }
    .mc-slot.picked {
      border-color: var(--gold);
      box-shadow: inset 0 0 0 2px var(--gold);
      background: #2a2412;
    }
    .mc-inv.picking { outline: 1px solid rgba(240, 193, 75, 0.45); }
    .mc-inv.is-busy { outline: 1px solid rgba(73, 200, 255, 0.45); }
    .mc-cursor {
      position: fixed; z-index: 45; pointer-events: none;
      width: 36px; height: 36px; display: grid; place-items: center;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
    }
    .mc-cursor img { width: 32px; height: 32px; object-fit: contain; }
    .mc-cursor .mc-count {
      position: absolute; right: 0; bottom: 0; font-size: 11px;
      font-family: "IBM Plex Mono", monospace; text-shadow: 1px 1px 0 #000;
    }
    .inv-menu {
      position: fixed; z-index: 46; min-width: 220px; padding: 6px;
      background: #10261c; border: 1px solid var(--line-strong);
      border-radius: 12px; box-shadow: var(--shadow);
    }
    .inv-menu button {
      display: block; width: 100%; text-align: left;
      background: transparent; border: 0; border-radius: 8px;
      padding: 7px 10px; color: var(--text); line-height: 1.25;
    }
    .inv-menu button small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
    .inv-menu button:hover { background: rgba(61, 220, 132, 0.12); }
    .inv-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
    #panel-inv.show {
      display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden;
    }
    .inv-body {
      flex: 1; min-height: 0; overflow: hidden;
      display: flex; align-items: flex-start;
    }
    .mc-inv {
      background: #14181c; border: 1px solid #3a4450; border-radius: 12px;
      padding: 12px; width: max-content; max-width: none; user-select: none;
      transform-origin: top left; zoom: 1;
    }
    .mc-title { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
    .mc-top { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
    .mc-armor, .mc-grid { display: grid; gap: 3px; }
    .mc-craft {
      display: grid; grid-template-columns: repeat(2, 40px) 10px 40px;
      grid-template-rows: 40px 40px; gap: 3px; margin-left: auto; align-items: center;
    }
    .mc-craft .mc-slot:nth-child(5) { grid-column: 4; grid-row: 1 / span 2; }
    .mc-cols-9 { grid-template-columns: repeat(9, 40px); }
    .mc-hotbar-gap { margin-top: 8px; padding-top: 8px; border-top: 1px solid #2c3540; }
    .mc-slot {
      width: 40px; height: 40px; padding: 0; border-radius: 4px;
      background: #0e1216; border: 2px solid #2a323c; box-shadow: inset 0 0 0 1px #1b222a;
      position: relative; display: grid; place-items: center; color: inherit;
    }
    .mc-slot:hover { border-color: #6cb6ff; }
    .mc-slot.held { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
    .mc-slot img { width: 32px; height: 32px; object-fit: contain; image-rendering: auto; pointer-events: none; }
    .mc-slot .mc-count {
      position: absolute; right: 2px; bottom: 0; font-size: 11px;
      font-family: "IBM Plex Mono", monospace; text-shadow: 1px 1px 0 #000; pointer-events: none;
    }
    .mc-slot .mc-fallback { font-size: 10px; font-weight: 700; color: var(--green); }
    .mc-slot.empty-armor::after { content: attr(data-place); font-size: 14px; opacity: 0.28; }
    .mc-tip {
      position: fixed; z-index: 40; max-width: 280px; padding: 6px 8px;
      background: #10010f; border: 2px solid #24005a; box-shadow: 0 0 0 2px #10010f;
      font-size: 12px; line-height: 1.35; pointer-events: none;
    }
    .mc-tip strong { display: block; color: #fff; margin-bottom: 3px; }
    .mc-tip strong.custom { color: #55ffff; font-style: italic; }
    .mc-tip-lore { color: #aaa; }
    .mc-tip-id { color: #777; margin-top: 4px; font-family: "IBM Plex Mono", monospace; }
    .slot {
      position: relative; color: #f4fff8; font-size: 10px; font-weight: 700;
      display: grid; place-items: end stretch; padding: 2px;
    }
    .slot.filled { background: #1c4a32; border-color: rgba(61, 220, 132, 0.4); }
    .slot em { font-style: normal; text-align: right; }
    .screen { display: grid; align-content: start; justify-items: stretch; gap: 10px; padding: 12px; text-align: left; }
    .gui-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .gui-actions button {
      background: #10261c; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text);
    }
    .mc-msg { color: #e7f6ee; }
    #panel-screen.show, #panel-log.show { overflow: auto; }

    body[data-page="sniper"] .kpis,
    body[data-page="sniper"] .stage,
    body[data-page="production"] .kpis,
    body[data-page="production"] .stage,
    body[data-page="logs"] .kpis,
    body[data-page="logs"] .stage,
    body[data-page="economy"] .kpis,
    body[data-page="economy"] .stage,
    body[data-page="macros"] .kpis,
    body[data-page="macros"] .stage,
    body[data-page="order"] .kpis,
    body[data-page="order"] .stage,
    body[data-page="settings"] .kpis,
    body[data-page="settings"] .stage { display: none; }
    .sales-bots { display: grid; gap: 8px; }
    .sales-bots .check-row small { font-family: "IBM Plex Mono", ui-monospace, monospace; }
    .sniper { max-width: 820px; }
    .sniper-card { padding: 16px; display: grid; gap: 12px; }
    .sniper-card .panel-head { margin: 0; flex-wrap: wrap; }
    .head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
    .head-actions .btn-quiet { width: auto; white-space: nowrap; }
    .head-actions .btn-quiet:disabled { opacity: 0.55; cursor: wait; }
    .sniper-card .panel-head h2 { font-size: 18px; }
    #sniper-state, #sales-state {
      font-size: 12px;
      color: var(--muted);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 4px 8px;
      white-space: nowrap;
    }
    #sniper-state.on, #sales-state.on { color: var(--green); border-color: rgba(61, 220, 132, 0.45); }
    .sniper-note, .sniper-hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
    .sniper-hint { margin-top: -4px; }
    .sniper-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 10px; }
    .sniper label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
    .sniper input,
    .sniper select {
      width: 100%;
      background: #07140f;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 9px 10px;
      outline: none;
    }
    .sniper select {
      appearance: none;
      padding-right: 30px;
      background: #07140f url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2386a394' stroke-width='1.6'/></svg>") no-repeat right 10px center;
    }
    .sniper input:focus,
    .sniper select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16); }
    .sniper .check-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px;
      border-radius: 10px;
      background: rgba(61, 220, 132, 0.06);
      border: 1px solid rgba(61, 220, 132, 0.16);
      color: var(--text);
    }
    .sniper .check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green-deep); }
    .sniper .check-row strong { display: block; font-size: 13px; font-weight: 600; }
    .sniper .check-row small { display: block; color: var(--muted); font-size: 12px; }
    .sniper-rules-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
    .sniper-rules-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
    #sniper-rules { display: grid; gap: 8px; }
    .sniper-rule { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.65fr) minmax(96px, 0.4fr) minmax(72px, 0.35fr) auto; gap: 8px; align-items: center; }
    .sniper-actions { display: flex; justify-content: flex-end; }
    .sniper-status { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 1.2em; }
    .sniper-status strong { color: var(--text); font-weight: 600; }
    @media (max-width: 720px) {
      .sniper-grid, .sniper-rule { grid-template-columns: 1fr; }
    }

