:root {
    /* Superfície — slate escuro (sem marrom) */
    --bg: #0b0f14;
    --bg2: #121820;
    --bg3: #1a2230;
    --bg-elevated: #1e2836;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --line: #2a3544;
    --line-soft: #1e293b;

    /* Acentos */
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --accent-dim: #0c4a6e;
    --largada: #22c55e;
    --largada-dim: #14532d;
    --largada-ink: #ecfdf5;
    --chegada: #f59e0b;
    --chegada-dim: #78350f;
    --chegada-ink: #fffbeb;
    --danger: #ef4444;
    --danger-dim: #7f1d1d;
    --ok: #22c55e;
    --warn: #eab308;
    --cat: #7dd3fc;

    --posto: var(--accent);
    --posto-dim: var(--accent-dim);
    --posto-glow: rgba(56, 189, 248, .18);

    --pad: 16px;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, .08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 197, 94, .05), transparent 40%);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
body[data-posto="largada"] {
    --posto: var(--largada);
    --posto-dim: var(--largada-dim);
    --posto-glow: rgba(34, 197, 94, .2);
}
body[data-posto="chegada"] {
    --posto: var(--chegada);
    --posto-dim: var(--chegada-dim);
    --posto-glow: rgba(245, 158, 11, .2);
}
body.setup-mode #dashMain,
body.setup-mode footer.cfg {
    display: none !important;
}
body { padding-bottom: 24px; }
button, input { font: inherit; }
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px var(--pad);
    background: rgba(11, 15, 20, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 3;
}
.brand strong {
    letter-spacing: .14em;
    font-size: .85rem;
    color: #fff;
    font-weight: 800;
}
.brand span { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge {
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .04em;
}
.badge-posto.posto-largada {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: var(--largada-ink);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, .4), 0 2px 12px rgba(34, 197, 94, .25);
}
.badge-posto.posto-chegada {
    background: linear-gradient(135deg, #fcd34d, #d97706);
    color: var(--chegada-ink);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .4), 0 2px 12px rgba(245, 158, 11, .25);
}
.badge-ghost {
    background: var(--bg-elevated);
    color: var(--muted);
    border: 1px solid var(--line);
}
.dot { font-size: 1.1rem; color: var(--warn); }
.dot.ok { color: var(--ok); }
.dot.bad { color: var(--danger); }

.dash {
    display: grid;
    gap: 12px;
    padding: 12px var(--pad);
    max-width: 1400px;
    margin: 0 auto;
}

.zona { min-width: 0; }

.bloco-campo { margin-bottom: 16px; }
.bloco-campo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.bloco-campo-head h2 { margin: 0; }
.btn-relargar-todos {
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    color: var(--ink);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-relargar-todos:hover:not(:disabled) {
    border-color: var(--posto);
    color: #fff;
    background: var(--posto-dim);
}
.btn-relargar-todos:disabled { opacity: .4; cursor: not-allowed; }
.bloco-campo h2 {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.count {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .7rem;
    color: var(--ink);
}
.bloco-fila .count {
    background: var(--posto-dim);
    border-color: transparent;
    color: #fff;
}

.bloco-fila .cards {
    max-height: min(52vh, 520px);
    gap: 8px;
}
.bloco-fila .card-comp {
    min-height: 68px;
    padding: 14px 14px;
    border-radius: 12px;
}
.bloco-fila .card-comp .num {
    font-size: 1.4rem;
    min-width: 3.5rem;
    line-height: 1.1;
}
.bloco-fila .card-comp .nome {
    font-size: 1.02rem;
    white-space: normal;
    line-height: 1.25;
    overflow: visible;
    text-overflow: unset;
}
.bloco-fila .card-comp .cat {
    font-size: .82rem;
    margin-top: 2px;
    display: inline-block;
}
.bloco-fila .card-comp .veiculo-meta {
    font-size: .78rem;
    line-height: 1.3;
    margin-top: 3px;
}
.bloco-fila .card-comp .acao {
    font-size: .72rem;
    font-weight: 700;
}
.bloco-fila .card-row .btn-x {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    border-radius: 10px;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}
.card-comp {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    width: 100%;
    min-height: 48px;
    transition: border-color .15s, background .15s;
}
.card-comp:hover { background: var(--bg3); }
.card-comp:active { transform: scale(.99); }
.card-comp .num {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    min-width: 2.5rem;
}
.card-comp .info { min-width: 0; }
.card-comp .nome {
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-comp .cat {
    font-size: .72rem;
    color: var(--cat);
    font-weight: 700;
}
.card-comp .veiculo-meta {
    display: block;
    font-size: .72rem;
    line-height: 1.25;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
    white-space: normal;
}
.card-comp .acao {
    font-size: .65rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .06em;
}
.card-comp.fila-atual {
    border-color: var(--posto);
    box-shadow: 0 0 0 1px var(--posto), 0 4px 20px var(--posto-glow);
    background: var(--bg-elevated);
}
.card-comp[data-action="selecionar"] {
    cursor: pointer;
}
.card-comp[data-action="selecionar"]:hover {
    border-color: var(--accent);
}
.card-comp.card-selecionado {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, .45), 0 4px 16px rgba(14, 165, 233, .2);
    background: linear-gradient(135deg, var(--bg-elevated), rgba(14, 165, 233, .08));
}
.card-comp.card-selecionado .acao {
    color: var(--accent);
    font-weight: 800;
}
.card-comp .tentativas {
    font-size: .7rem;
    color: var(--warn);
    margin-left: 4px;
}
.card-comp .badge-largada {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--largada-ink);
    background: var(--largada-dim);
    border: 1px solid var(--largada);
}
.card-comp.static { cursor: default; }
.card-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
}
.card-comp .btn-x, .card-row .btn-x {
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.card-comp .btn-x:hover, .card-row .btn-x:hover {
    background: var(--danger-dim);
    border-color: var(--danger);
    color: #fff;
}

.zona.posto {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
}
.kicker {
    margin: 0 0 12px;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .72rem;
    text-align: center;
}

.proximo-card, .sugestao-card {
    text-align: center;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
}
.sugestao-card {
    border-color: var(--posto);
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg2));
    box-shadow: 0 0 0 1px var(--posto-glow);
}
.proximo-kicker, .sugestao-kicker {
    margin: 0;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.proximo-num, .sugestao-num {
    margin: 6px 0 0;
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
}
.proximo-meta, .sugestao-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .9rem;
}
.sugestao-meta .cat { color: var(--cat); font-weight: 700; }

.carimbo-atual { text-align: center; margin-bottom: 16px; }
.hora {
    margin: 0;
    font-family: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.data { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.ids {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .8rem;
    font-family: "Cascadia Mono", Consolas, monospace;
}

.badge-ancora {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.badge-ancora.pps { background: rgba(34, 197, 94, .2); color: #86efac; }
.badge-ancora.nmea { background: rgba(234, 179, 8, .15); color: #fde047; }

.acoes-principais {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}
.btn-ok, .btn-danger, .btn-ghost {
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s, transform .1s;
}
.btn-ok {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: #ecfdf5;
    box-shadow: 0 4px 18px rgba(34, 197, 94, .4);
}
.btn-ok:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ok:active:not(:disabled) { transform: scale(.99); }
.btn-ok:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-danger {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    border: 1px solid #ef4444;
    box-shadow: 0 4px 18px rgba(239, 68, 68, .35);
}
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
.btn-danger:active:not(:disabled) { transform: scale(0.98); }
.btn-danger:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost {
    background: var(--bg-elevated);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn-danger.acao-busy,
.btn-ok.acao-busy,
.btn-ghost.acao-busy {
    animation: acao-pulse 0.85s ease-in-out infinite;
    pointer-events: none;
}
@keyframes acao-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}

.zona.posto.flash-rejeitar {
    animation: posto-shake-rejeitar 0.38s ease;
}
.zona.posto.flash-rejeitado-ok {
    animation: posto-rejeitado-ok 0.65s ease;
}
.zona.posto.flash-confirmado {
    animation: posto-confirmado 0.55s ease;
}
.zona.posto.flash-pulado {
    animation: posto-pulado 0.45s ease;
}
@keyframes posto-shake-rejeitar {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); box-shadow: inset 0 0 0 2px var(--danger); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}
@keyframes posto-rejeitado-ok {
    0% { box-shadow: inset 0 0 0 3px var(--danger), var(--shadow); filter: brightness(1.15); }
    100% { box-shadow: var(--shadow); filter: brightness(1); }
}
@keyframes posto-confirmado {
    0% { box-shadow: inset 0 0 0 3px var(--ok), var(--shadow); }
    100% { box-shadow: var(--shadow); }
}
@keyframes posto-pulado {
    0% { opacity: .55; transform: scale(0.99); }
    100% { opacity: 1; transform: scale(1); }
}

.toast-acao {
    margin: 10px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast-acao.toast-visible {
    opacity: 1;
    transform: translateY(0);
}
.toast-rejeitado {
    background: rgba(127, 29, 29, .85);
    border: 1px solid var(--danger);
    color: #fecaca;
}
.toast-ok {
    background: rgba(20, 83, 45, .85);
    border: 1px solid var(--ok);
    color: #bbf7d0;
}
.toast-err {
    background: rgba(127, 29, 29, .9);
    border: 1px solid var(--danger);
    color: #fff;
}
.toast-info {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    color: var(--muted);
}

.teclado-wrap {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}
.teclado-wrap summary {
    cursor: pointer;
    color: var(--muted);
    font-size: .85rem;
    padding: 8px 0;
}

.acoes { padding-top: 10px; }
#numero {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 10px;
    border-radius: var(--radius);
    border: 2px solid var(--line);
    background: var(--bg);
    color: #fff;
}
.match {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    font-size: .9rem;
    border: 1px solid var(--line-soft);
}
.match .cat { color: var(--cat); font-weight: 700; }

.pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.pad button, #btnSalvarUrl {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.pad .primary {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    border-color: transparent;
}
.pad .ghost { background: var(--bg3); font-size: 1rem; }

.lista h2 {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}
.lista ol { list-style: none; margin: 0 0 16px; padding: 0; }
.lista li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-bottom: 0;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: .82rem;
}
.lista li:first-child { border-radius: 10px 10px 0 0; }
.lista li:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.lista li:only-child { border-radius: 10px; }
.lista li.hist-item {
    grid-template-columns: 5.2rem auto 1fr;
    align-items: center;
    font-family: inherit;
}
.lista li.hist-empty {
    font-family: inherit;
    color: var(--muted);
    font-style: italic;
}
.hist-hora {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: .8rem;
    white-space: nowrap;
}
.hist-piloto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}
.hist-num {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: .85rem;
    font-weight: 800;
    color: #86efac;
}
.hist-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.hist-nome {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hist-veiculo {
    font-size: .7rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lista-descartes {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.lista-descartes h2 {
    color: #94a3b8;
}
.lista li.hist-desc {
    grid-template-columns: 5.2rem auto 1fr;
    align-items: center;
    font-family: inherit;
}
.lista li.desc-rejeitado {
    background: rgba(127, 29, 29, .25);
    box-shadow: inset 3px 0 0 var(--danger);
}
.lista li.desc-pulado {
    background: rgba(51, 65, 85, .4);
    box-shadow: inset 3px 0 0 #64748b;
}
.tag-desc {
    font-size: .68rem;
    letter-spacing: .04em;
    text-align: right;
}
.desc-rejeitado .tag-desc { color: #fca5a5; }
.desc-pulado .tag-desc { color: #cbd5e1; }

.lista li.carimbo-atual {
    background: var(--bg-elevated);
    box-shadow: inset 3px 0 0 var(--posto);
}
.lista li.carimbo-acao {
    animation: carimbo-acao-in 0.35s ease;
    font-weight: 600;
}
.lista li.carimbo-acao-confirmado {
    background: rgba(20, 83, 45, .45);
    border-color: var(--ok);
    box-shadow: inset 3px 0 0 var(--ok);
}
.lista li.carimbo-acao-rejeitado {
    background: rgba(127, 29, 29, .45);
    border-color: var(--danger);
    box-shadow: inset 3px 0 0 var(--danger);
}
.lista li.carimbo-acao-pulado {
    background: rgba(51, 65, 85, .55);
    border-color: #64748b;
    box-shadow: inset 3px 0 0 #94a3b8;
}
.tag-acao { font-size: .68rem; letter-spacing: .04em; }
.carimbo-acao-confirmado .tag-acao { color: #86efac; }
.carimbo-acao-rejeitado .tag-acao { color: #fca5a5; }
.carimbo-acao-pulado .tag-acao { color: #cbd5e1; }
@keyframes carimbo-acao-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
.tag { font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.tag.ok { color: #86efac; }
.tag.no { color: #fca5a5; }
.tag-ancora {
    font-size: .65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}
.tag-ancora.pps { background: rgba(34, 197, 94, .2); color: #86efac; }
.tag-ancora.nmea { background: rgba(234, 179, 8, .15); color: #fde047; }

.cfg {
    max-width: 1400px;
    margin: 12px auto 0;
    padding: 16px var(--pad);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}
.cfg label { display: grid; gap: 6px; color: var(--muted); font-size: .85rem; }
.cfg input[type="url"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg2);
    color: #fff;
}
.check { display: flex; align-items: center; gap: 8px; }
#btnSalvarUrl { font-size: 1rem; }
.status { margin: 0; min-height: 1.2em; color: var(--warn); font-size: .9rem; }
.status.err { color: #fca5a5; }

.empty-hint {
    color: var(--muted);
    font-size: .85rem;
    padding: 8px 4px;
    font-style: italic;
}

.setup-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(8, 11, 16, .88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.setup-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}
.setup-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.setup-lead {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}
.setup-field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}
.setup-field span,
.setup-posto legend {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.setup-field select,
.setup-field input {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}
.setup-hint {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.35;
}
.setup-posto {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px 10px;
    margin: 0 0 14px;
}
.setup-posto legend {
    padding: 0 4px;
    margin-bottom: 8px;
}
.setup-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
}
.setup-radio input { width: auto; accent-color: var(--largada); }
.setup-radio span { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.setup-resumo {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    font-size: .85rem;
    color: var(--muted);
}
.setup-erro {
    margin: 0 0 12px;
    color: #fca5a5;
    font-size: .88rem;
}
.setup-php-erro {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(245, 197, 66, .45);
    background: rgba(245, 197, 66, .08);
    color: #fde68a;
    line-height: 1.45;
}
.setup-php-link {
    display: inline-block;
    margin-top: 10px;
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
}
.setup-php-link:hover {
    text-decoration: underline;
}
.btn-iniciar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: var(--largada-ink);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 4px 16px rgba(34, 197, 94, .3);
}
.btn-iniciar:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-edit-ambiente {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    color: var(--muted);
    font-size: .72rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.btn-edit-ambiente:hover { color: var(--ink); border-color: var(--muted); }

@media (min-width: 960px) {
    .dash {
        grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr) minmax(220px, .85fr);
        align-items: start;
    }
    .zona.campo { max-height: calc(100vh - 140px); overflow-y: auto; }
    .cards { max-height: 200px; }
    .bloco-fila .cards { max-height: min(calc(100vh - 220px), 580px); }
}

@media (max-width: 959px) {
    .dash {
        grid-template-columns: 1fr;
    }
    .zona.posto { order: -1; }
}
