:root {
    color-scheme: dark;
    --background: #0f1319;
    --panel: #1d222a;
    --panel-2: #252b35;
    --border: #374151;
    --text: #f9fafb;
    --muted: #9ca3af;
    --blue: #2563eb;
    --red: #dc2626;
    --green: #22c55e;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--background); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: rgba(15,19,25,.96); position: sticky; top: 0; z-index: 1000; }
.topbar-spacer { grid-column: 1; min-width: 0; }
.topbar-title { grid-column: 2; min-width: 0; text-align: center; }
.topbar h1 { margin: 0; font-size: 22px; text-align: center; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.top-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sos-status-group { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.sos-badge { position: relative; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; overflow: visible; }
.sos-badge.inactive { background: rgba(107,114,128,.14); color: #9ca3af; border: 1px solid rgba(107,114,128,.42); }
.sos-badge.active { background: rgba(220,38,38,.30); color: #fff; border: 1px solid #ff4d4d; box-shadow: 0 0 0 0 rgba(239,68,68,.72), 0 0 18px rgba(239,68,68,.72); animation: sosBadgeAlarm 1s ease-in-out infinite; }
.sos-status-icon { position: relative; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; }
.sos-status-symbol { position: relative; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: currentColor; color: #111827; font-size: 11px; font-weight: 900; line-height: 1; }
.sos-status-ring { position: absolute; inset: 3px; border: 2px solid currentColor; border-radius: 50%; opacity: 0; transform: scale(.4); }
.sos-badge.active .sos-status-ring-one { animation: sosRingPulse 1.2s ease-out infinite; }
.sos-badge.active .sos-status-ring-two { animation: sosRingPulse 1.2s ease-out .6s infinite; }
.sos-badge.inactive .sos-status-ring { opacity: .20; transform: scale(1); }

.sos-message-bubble {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 1200;
    width: max-content;
    min-width: 0;
    max-width: min(360px, calc(100vw - 24px));
    transform: translateX(-50%);
    padding: 10px 12px;
    border: 1px solid rgba(248,113,113,.85);
    border-radius: 12px;
    background: rgba(127,29,29,.97);
    color: #fff;
    box-shadow:
        0 8px 24px rgba(0,0,0,.48),
        0 0 18px rgba(239,68,68,.35);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-align: center;
}

.sos-message-bubble::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(248,113,113,.85);
    border-top: 1px solid rgba(248,113,113,.85);
    background: rgba(127,29,29,.97);
}

.sos-message-bubble[hidden] {
    display: none;
}

@keyframes sosBadgeAlarm {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,.72), 0 0 14px rgba(239,68,68,.52); }
    50% { transform: scale(1.055); box-shadow: 0 0 0 7px rgba(239,68,68,0), 0 0 28px rgba(255,35,35,.95); }
}
@keyframes sosRingPulse {
    0% { opacity: 1; transform: scale(.35); }
    78%, 100% { opacity: 0; transform: scale(1.85); }
}
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.online { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.45); }
.badge.offline { background: rgba(107,114,128,.16); color: #9ca3af; border: 1px solid rgba(107,114,128,.48); }

.live-status-icon { position: relative; width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 19px; }
.live-status-dot { position: relative; z-index: 2; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.live-status-ring { position: absolute; inset: 4px; border: 2px solid currentColor; border-radius: 50%; opacity: 0; transform: scale(.35); }
.badge.online .live-status-ring-one { animation: liveSignalPulse 1.6s ease-out infinite; }
.badge.online .live-status-ring-two { animation: liveSignalPulse 1.6s ease-out .8s infinite; }
.badge.offline .live-status-ring { inset: 3px; opacity: .28; transform: scale(1); }
.badge.offline .live-status-dot { box-shadow: none; }
.badge.offline .live-status-icon::after { content: ""; position: absolute; z-index: 4; width: 22px; height: 2px; border-radius: 999px; background: currentColor; transform: rotate(-45deg); }

@keyframes liveSignalPulse {
    0% { opacity: .95; transform: scale(.35); }
    72%, 100% { opacity: 0; transform: scale(1.65); }
}

@media (prefers-reduced-motion: reduce) {
    .badge.online .live-status-ring {
        animation: none;
        opacity: .34;
        transform: scale(1);
    }
    .sos-badge.active { animation: none; }
    .sos-badge.active .sos-status-ring { animation: none; opacity: .55; transform: scale(1); }
}

.device-status-strip[hidden] { display: none !important; }
.device-status-strip { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s ease, filter .2s ease; }
.device-status-strip.offline { opacity: .55; filter: grayscale(.75); }
.device-chip[hidden] { display: none !important; }
.device-chip { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(75,85,99,.68); border-radius: 10px; background: rgba(31,41,55,.88); color: #e5e7eb; font-size: 10px; font-weight: 750; line-height: 1; white-space: nowrap; }
.mobile-status-chip { align-items: center; }
#mobileOperatorText { max-width: 125px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 800; }

.mobile-technology-chip {
    min-width: 45px;
    padding-left: 7px;
    padding-right: 7px;
    border-color: rgba(107,114,128,.62);
    background: rgba(55,65,81,.24);
}

.mobile-technology-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    min-height: 20px;
    padding: 0 5px;
    border: 1px solid rgba(156,163,175,.72);
    border-radius: 6px;
    background: rgba(75,85,99,.28);
    color: #d1d5db;
    box-shadow: inset 0 0 8px rgba(107,114,128,.16);
}

#mobileNetworkText {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* 1G e estado desconhecido: cinza */
.mobile-technology-chip.tech-1g,
.mobile-technology-chip.tech-unknown {
    border-color: rgba(107,114,128,.70);
    background: rgba(55,65,81,.28);
}

.mobile-technology-chip.tech-1g .mobile-technology-icon,
.mobile-technology-chip.tech-unknown .mobile-technology-icon {
    border-color: rgba(156,163,175,.78);
    background: rgba(75,85,99,.32);
    color: #e5e7eb;
    box-shadow: 0 0 8px rgba(107,114,128,.20);
}

/* 2G: vermelho */
.mobile-technology-chip.tech-2g {
    border-color: rgba(239,68,68,.72);
    background: rgba(127,29,29,.28);
}

.mobile-technology-chip.tech-2g .mobile-technology-icon {
    border-color: rgba(248,113,113,.86);
    background: rgba(185,28,28,.34);
    color: #fecaca;
    box-shadow: 0 0 9px rgba(239,68,68,.30);
}

/* 3G: verde */
.mobile-technology-chip.tech-3g {
    border-color: rgba(34,197,94,.70);
    background: rgba(20,83,45,.28);
}

.mobile-technology-chip.tech-3g .mobile-technology-icon {
    border-color: rgba(74,222,128,.84);
    background: rgba(21,128,61,.32);
    color: #bbf7d0;
    box-shadow: 0 0 9px rgba(34,197,94,.28);
}

/* 4G: azul */
.mobile-technology-chip.tech-4g {
    border-color: rgba(59,130,246,.72);
    background: rgba(30,64,175,.28);
}

.mobile-technology-chip.tech-4g .mobile-technology-icon {
    border-color: rgba(96,165,250,.86);
    background: rgba(37,99,235,.34);
    color: #bfdbfe;
    box-shadow: 0 0 9px rgba(59,130,246,.30);
}

/* 5G: lilás */
.mobile-technology-chip.tech-5g {
    border-color: rgba(168,85,247,.74);
    background: rgba(88,28,135,.30);
}

.mobile-technology-chip.tech-5g .mobile-technology-icon {
    border-color: rgba(196,120,255,.88);
    background: rgba(126,34,206,.36);
    color: #ead5ff;
    box-shadow: 0 0 10px rgba(168,85,247,.36);
}

/*
 * O roaming mantém a cor correspondente à tecnologia.
 * Apenas ganha uma borda e brilho mais fortes.
 */
.mobile-technology-chip.roaming {
    outline: 1px solid rgba(251,191,36,.72);
    outline-offset: 1px;
}

.mobile-technology-chip.roaming .mobile-technology-icon {
    box-shadow:
        0 0 0 1px rgba(251,191,36,.38),
        0 0 12px currentColor;
}
.battery-icon { position: relative; width: 22px; height: 11px; display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; padding: 1px; }
.battery-icon::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: currentColor; }
.battery-fill { display: block; width: 0%; height: 100%; border-radius: 1px; background: #22c55e; transition: width .25s ease, background .25s ease; }
.battery-chip.low .battery-fill { background: #ef4444; }
.battery-chip.charging .battery-icon { color: #86efac; filter: drop-shadow(0 0 4px rgba(34,197,94,.65)); }
.connection-symbol { color: #93c5fd; font-size: 16px; font-weight: 900; line-height: 1; }
.mobile-signal { width: 19px; height: 15px; display: inline-flex; align-items: flex-end; gap: 2px; }
.mobile-signal i { width: 3px; border-radius: 2px 2px 0 0; background: #4b5563; }
.mobile-signal i:nth-child(1) { height: 4px; }
.mobile-signal i:nth-child(2) { height: 7px; }
.mobile-signal i:nth-child(3) { height: 11px; }
.mobile-signal i:nth-child(4) { height: 15px; }
.mobile-signal.level-1 i:nth-child(-n+1), .mobile-signal.level-2 i:nth-child(-n+2), .mobile-signal.level-3 i:nth-child(-n+3), .mobile-signal.level-4 i:nth-child(-n+4) { background: #60a5fa; box-shadow: 0 0 4px rgba(96,165,250,.5); }
.wifi-signal { position: relative; width: 20px; height: 16px; display: inline-block; overflow: hidden; }
.wifi-wave { position: absolute; left: 50%; bottom: -8px; border: 2px solid #4b5563; border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translateX(-50%); }
.wifi-wave-outer { width: 20px; height: 20px; }
.wifi-wave-middle { width: 14px; height: 14px; bottom: -5px; }
.wifi-wave-inner { width: 8px; height: 8px; bottom: -2px; }
.wifi-point { position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; transform: translateX(-50%); background: #4b5563; }
.wifi-signal.level-1 .wifi-point, .wifi-signal.level-2 .wifi-point, .wifi-signal.level-3 .wifi-point, .wifi-signal.level-4 .wifi-point { background: #60a5fa; }
.wifi-signal.level-2 .wifi-wave-inner, .wifi-signal.level-3 .wifi-wave-inner, .wifi-signal.level-4 .wifi-wave-inner, .wifi-signal.level-3 .wifi-wave-middle, .wifi-signal.level-4 .wifi-wave-middle, .wifi-signal.level-4 .wifi-wave-outer { border-top-color: #60a5fa; filter: drop-shadow(0 0 3px rgba(96,165,250,.5)); }

.logout-link { color: #d1d5db; text-decoration: none; }
.dashboard { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; padding: 18px; }
.content-column { min-width: 0; display: grid; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.stat, .map-card, .timeline-card, .records-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.stat { padding: 14px; min-width: 0; }
.stat span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
.map-card, .timeline-card { overflow: hidden; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.section-header h2 { margin: 0; font-size: 16px; }
.section-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-header button, .records-heading button { border: 1px solid var(--border); background: var(--panel-2); color: var(--text); border-radius: 9px; padding: 8px 11px; cursor: pointer; }
#map { width: 100%; height: min(60vh, 570px); min-height: 330px; position: relative; overflow: hidden; isolation: isolate; background: #d9dde3; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.timeline { max-height: 300px; overflow: auto; padding: 10px 14px 16px; }
.timeline-row { display: block; color: #93c5fd; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; border-bottom: 1px solid rgba(55,65,81,.65); line-height: 1.45; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline-row:hover {
    color: #bfdbfe;
    background: rgba(37,99,235,.08);
}

.timeline-row.route-selected {
    position: relative;
    color: #eff6ff;
    background:
        linear-gradient(
            90deg,
            rgba(37,99,235,.38),
            rgba(30,64,175,.18)
        );
    border-left: 4px solid #facc15;
    padding-left: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(96,165,250,.35),
        0 0 14px rgba(37,99,235,.18);
    text-decoration-color: #facc15;
}

.timeline-row.route-selected::before {
    content: "PONTO SELECIONADO";
    display: block;
    margin-bottom: 4px;
    color: #fde68a;
    font-family: system-ui, sans-serif;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-decoration: none;
}
.records-panel { overflow: hidden; height: fit-content; position: sticky; top: 96px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; }
.records-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); }
.records-heading h2 { margin: 0; font-size: 16px; }
.records-list { overflow: auto; padding: 10px; }
.record-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 8px; margin-bottom: 9px; }
.record { width: 100%; min-width: 0; text-align: left; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 11px; padding: 11px; cursor: pointer; }
.record:hover, .record.active { border-color: #60a5fa; background: rgba(37,99,235,.13); }
.record strong { display: block; font-size: 13px; margin-bottom: 5px; }
.record span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.record-delete { align-self: stretch; min-width: 82px; border: 1px solid rgba(239,68,68,.55); border-radius: 11px; padding: 9px 10px; background: rgba(220,38,38,.14); color: #fecaca; font-size: 12px; font-weight: 700; cursor: pointer; }
.record-delete:hover:not(:disabled) { background: rgba(220,38,38,.28); border-color: #ef4444; color: #fff; }
.record-delete:disabled { cursor: not-allowed; opacity: .52; }
.empty { color: var(--muted); padding: 16px 4px; text-align: center; }

.osm-tiles { position: absolute; inset: 0; overflow: hidden; z-index: 1; background: #d9dde3; }
.osm-tile { position: absolute; display: block; margin: 0; padding: 0; border: 0; max-width: none; transform-origin: 0 0; transform: translateZ(0); image-rendering: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: left, top, width, height; pointer-events: none; background: #d9dde3; }
.osm-tile.failed { opacity: 0; }
.osm-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.osm-controls { position: absolute; left: 12px; top: 12px; z-index: 20; display: flex; flex-direction: column; gap: 7px; }
.osm-control { width: 46px; height: 46px; padding: 0; border: 1px solid #9ca3af; border-radius: 10px; background: rgba(255,255,255,.96); color: #111827; box-shadow: 0 2px 8px rgba(0,0,0,.28); font-size: 27px; font-weight: 800; line-height: 44px; text-align: center; cursor: pointer; touch-action: manipulation; }
.osm-control:hover { background: #f3f4f6; }
.osm-control:active { background: #e5e7eb; transform: translateY(1px); }
.osm-recenter { font-size: 24px; }
.osm-loading { position: absolute; left: 50%; top: 50%; z-index: 8; transform: translate(-50%,-50%); padding: 9px 12px; border-radius: 9px; background: rgba(17,24,39,.82); color: #fff; font-size: 13px; pointer-events: none; }
.osm-loading[hidden] { display: none; }
.osm-info { position: absolute; z-index: 25; max-width: calc(100% - 18px); padding: 8px 10px; border: 1px solid rgba(255,255,255,.68); border-radius: 9px; background: rgba(17,24,39,.95); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4); font-size: 11px; line-height: 1.45; white-space: nowrap; }
.osm-info[hidden] { display: none; }
.osm-info strong { color: #fca5a5; }
.osm-info a { color: #93c5fd; }
.osm-attribution { position: absolute; right: 4px; bottom: 4px; z-index: 20; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.92); color: #111827; font-size: 10px; line-height: 1.2; }
.osm-attribution a { color: #075985; text-decoration: none; }

.login-shell[hidden], #dashboardShell[hidden] { display: none !important; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(500px,100%); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.34); }
.login-card h1 { margin: 0 0 8px; text-align: center; }
.login-card p { color: var(--muted); line-height: 1.5; text-align: center; }
.login-card label { display: block; margin: 18px 0 7px; font-size: 13px; }
.login-card input { width: 100%; border: 1px solid var(--border); background: #111827; color: var(--text); border-radius: 9px; padding: 12px; }
.login-card button { width: 100%; margin-top: 14px; border: 0; border-radius: 9px; padding: 12px; font-weight: 700; color: #fff; background: var(--blue); cursor: pointer; }
.error-message { color: #fecaca; background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.4); border-radius: 8px; padding: 10px; }

.recent-tokens-section {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.recent-tokens-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.recent-tokens-heading h2 {
    margin: 0;
    font-size: 14px;
}

.recent-tokens-heading span {
    color: var(--muted);
    font-size: 11px;
}

.recent-tokens-heading-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.login-card .clear-recent-tokens-button {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid rgba(248,113,113,.45);
    border-radius: 7px;
    background: rgba(127,29,29,.18);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}

.login-card .clear-recent-tokens-button:hover,
.login-card .clear-recent-tokens-button:focus-visible {
    border-color: rgba(248,113,113,.82);
    background: rgba(185,28,28,.28);
    color: #fee2e2;
}

.recent-tokens-list {
    display: grid;
    gap: 9px;
}

.recent-token-item {
    position: relative;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(17,24,39,.72);
    overflow: visible;
    transition: padding-bottom .16s ease;
}

.recent-token-main {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
}

.recent-token-identity {
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-token-link {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    line-height: 16px;
    text-decoration: none;
}

.recent-token-name {
    flex: 0 0 auto;
    max-width: 160px;
    height: 16px;
    color: #f3f4f6;
    font-size: 12px;
    font-weight: 850;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-token-name.unnamed {
    color: #9ca3af;
    font-style: italic;
    font-weight: 650;
}

.recent-token-marquee {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 16px;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 8px,
        #000 calc(100% - 8px),
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 8px,
        #000 calc(100% - 8px),
        transparent
    );
}

.recent-token-marquee-track {
    display: inline-flex;
    align-items: center;
    height: 16px;
    width: max-content;
    min-width: max-content;
    gap: 34px;
    padding: 0;
    will-change: transform;
    animation:
        recent-token-marquee-scroll
        19s
        linear
        infinite;
}

.recent-token-value {
    display: inline-block;
    flex: 0 0 auto;
    height: 16px;
    padding: 0;
    color: #93c5fd;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
    transform: none;
}

.recent-token-value-copy {
    padding-right: 0;
}

.recent-token-link:hover
.recent-token-marquee-track,
.recent-token-link:focus-visible
.recent-token-marquee-track {
    animation-play-state: paused;
}

@keyframes recent-token-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform:
            translateX(
                calc(-50% - 22px)
            );
    }
}

.recent-token-link:hover .recent-token-name,
.recent-token-link:focus-visible .recent-token-name {
    color: #dbeafe;
    text-decoration: underline;
}

.recent-token-link:hover .recent-token-value,
.recent-token-link:focus-visible .recent-token-value {
    color: #bfdbfe;
}

.recent-token-link.loading,
.recent-token-link[aria-disabled="true"] {
    opacity: .58;
    pointer-events: none;
}

.login-card .recent-token-name-button {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid rgba(96,165,250,.44);
    border-radius: 7px;
    background: rgba(30,64,175,.18);
    color: #bfdbfe;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}

.login-card .recent-token-name-button:hover,
.login-card .recent-token-name-button:focus-visible {
    border-color: rgba(96,165,250,.82);
    background: rgba(37,99,235,.28);
    color: #eff6ff;
}

.recent-token-indicators {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.recent-token-sos-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.recent-token-sos,
.recent-token-live {
    padding: 5px 7px;
    gap: 5px;
    font-size: 9px;
}

.recent-token-sos .sos-status-icon,
.recent-token-live .live-status-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.recent-token-sos .sos-status-symbol {
    width: 13px;
    height: 13px;
    font-size: 9px;
}

.recent-token-sos-message {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 30;
    width: max-content;
    min-width: 0;
    max-width: min(320px, calc(100vw - 40px));
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(248,113,113,.85);
    border-radius: 10px;
    background: rgba(127,29,29,.97);
    color: #fff;
    box-shadow:
        0 5px 16px rgba(0,0,0,.38),
        0 0 12px rgba(239,68,68,.25);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.recent-token-sos-message::before {
    content: "";
    position: absolute;
    top: -6px;
    left: var(
        --recent-sos-arrow-left,
        15px
    );
    width: 10px;
    height: 10px;
    transform:
        translateX(-50%)
        rotate(45deg);
    border-left: 1px solid rgba(248,113,113,.85);
    border-top: 1px solid rgba(248,113,113,.85);
    background: rgba(127,29,29,.97);
}

.recent-token-sos-message[hidden],
.recent-tokens-section[hidden] {
    display: none !important;
}
@media (max-width: 980px) {
    .dashboard { grid-template-columns: 1fr; }
    .records-panel { position: static; max-height: 420px; order: -1; }
}
@media (max-width: 680px) {
    .login-card {
        padding: 18px 14px;
    }

    .recent-tokens-heading {
        align-items: flex-start;
    }

    .recent-tokens-heading-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .login-card .clear-recent-tokens-button {
        padding: 5px 7px;
        font-size: 9px;
    }

    .recent-token-main {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .recent-token-identity {
        width: 100%;
        flex-direction: column;
        justify-content: center;
    }

    .recent-token-link {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .recent-token-name {
        white-space: normal;
        text-align: center;
    }

    .recent-token-marquee {
        width: 100%;
    }

    .recent-token-value {
        text-align: left;
    }

    .recent-token-indicators {
        justify-content: center;
        flex-wrap: wrap;
    }

    .topbar { padding: 14px 10px; gap: 7px; grid-template-columns: minmax(68px,1fr) auto minmax(68px,1fr); }
    .dashboard { padding: 10px; gap: 10px; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #map { min-height: 300px; height: 48vh; }
    .topbar h1 { font-size: 18px; }
    .topbar p { font-size: 11px; max-width: 190px; }
    .topbar { grid-template-columns: 1fr; }
    .topbar-spacer { display: none; }
    .topbar-title,
    .top-actions { grid-column: 1; justify-self: center; }
    .top-actions { width: 100%; justify-content: center; gap: 6px; }
    .device-status-strip { width: 100%; justify-content: center; flex-wrap: wrap; }
    .device-chip { min-height: 30px; padding: 5px 7px; font-size: 9px; }
    #mobileOperatorText { max-width: 110px; font-size: 9px; }
    .mobile-technology-chip { min-width: 41px; padding-left: 5px; padding-right: 5px; }
    .mobile-technology-icon { min-width: 25px; min-height: 18px; padding: 0 4px; }
    #mobileNetworkText { font-size: 8px; }
    .badge,
    .sos-badge { padding: 6px 7px; gap: 5px; font-size: 9px; }
    .live-status-icon,
    .sos-status-icon { width: 16px; height: 16px; flex-basis: 16px; }
    .sos-status-symbol { width: 13px; height: 13px; font-size: 9px; }
    .sos-message-bubble {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        right: auto;
        width: max-content;
        min-width: 0;
        max-width: calc(100vw - 24px);
        transform: translateX(-50%);
        padding: 9px 11px;
        text-align: center;
    }
    .sos-message-bubble::before {
        display: block;
    }
    .logout-link { display: none; }
    .record-item { grid-template-columns: minmax(0,1fr) 76px; gap: 6px; }
    .record-delete { min-width: 0; padding: 8px 6px; font-size: 11px; }
}


/*
 * As informações dos pontos são mostradas e selecionadas
 * diretamente na linha do tempo. O antigo balão móvel do mapa
 * permanece desativado.
 */
.osm-info {
    display: none !important;
}


@media (max-width: 680px) {
    .recent-token-link {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .recent-token-name {
        white-space: nowrap;
        text-align: left;
    }

    .recent-token-marquee {
        width: auto;
        height: 11px;
    }

    .recent-token-value {
        height: 11px;
        line-height: 1;
        text-align: left;
        transform: translateY(-1px);
    }
}


/* Alinhamento definitivo do nome e do letreiro do token */
.recent-token-link {
    align-items: center !important;
    line-height: 16px !important;
}

.recent-token-name,
.recent-token-marquee,
.recent-token-marquee-track,
.recent-token-value {
    height: 16px !important;
}

.recent-token-name,
.recent-token-value {
    line-height: 16px !important;
}

.recent-token-value {
    transform: none !important;
    vertical-align: middle;
}

@media (max-width: 680px) {
    .recent-token-link {
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
    }

    .recent-token-name,
    .recent-token-value {
        line-height: 16px !important;
        text-align: left !important;
        transform: none !important;
    }

    .recent-token-marquee,
    .recent-token-marquee-track {
        height: 16px !important;
    }
}


/* Nome e token com o mesmo tamanho de fonte */
.recent-token-name,
.recent-token-value {
    font-size: 12px !important;
}


/*
 * Mobile:
 * 1ª linha — informações do aparelho;
 * 2ª linha — SOS e estado Em tempo real/Sem sinal.
 */
@media (max-width: 680px) {
    .top-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
        column-gap: 6px;
    }

    .top-actions .device-status-strip {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-actions .sos-status-group {
        order: 2;
        flex: 0 0 auto;
    }

    .top-actions #liveBadge {
        order: 3;
        flex: 0 0 auto;
    }

    .top-actions .logout-link {
        order: 4;
    }
}


/*
 * Mobile: o botão Trocar token fica visível em uma linha
 * própria, abaixo dos indicadores SOS e de conexão.
 */
@media (max-width: 680px) {
    .top-actions .logout-link {
        order: 4;
        display: inline-flex !important;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        margin-top: 2px;
        padding: 6px 12px;
        border: 1px solid rgba(96,165,250,.58);
        border-radius: 9px;
        background: rgba(37,99,235,.14);
        color: #bfdbfe;
        font-size: 10px;
        font-weight: 750;
        line-height: 1;
        text-decoration: none;
    }

    .top-actions .logout-link:active {
        background: rgba(37,99,235,.28);
    }

    .top-actions .logout-link::before {
        content: "↔";
        margin-right: 5px;
        font-size: 13px;
        line-height: 1;
    }
}


/*
 * Tela de entrada do token no celular:
 * cada token salvo permanece inteiro em uma única linha.
 */
@media (max-width: 680px) {
    .recent-token-main {
        display: flex !important;
        grid-template-columns: none !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        padding: 5px 5px !important;
    }

    .recent-token-identity {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 3px !important;
        overflow: hidden !important;
    }

    .recent-token-link {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
        text-align: left !important;
        overflow: hidden !important;
    }

    .recent-token-name {
        flex: 0 1 auto !important;
        max-width: 78px !important;
        height: 14px !important;
        font-size: 9px !important;
        line-height: 14px !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .recent-token-marquee,
    .recent-token-marquee-track,
    .recent-token-value {
        height: 14px !important;
    }

    .recent-token-marquee {
        width: auto !important;
        min-width: 20px !important;
        flex: 1 1 auto !important;
    }

    .recent-token-marquee-track {
        gap: 24px !important;
    }

    .recent-token-value {
        font-size: 7px !important;
        line-height: 14px !important;
        transform: none !important;
    }

    .recent-token-name-button {
        flex: 0 0 auto !important;
        padding: 3px 4px !important;
        border-radius: 5px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .recent-token-indicators {
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
    }

    .recent-token-sos,
    .recent-token-live {
        min-height: 20px !important;
        padding: 2px 4px !important;
        gap: 2px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .recent-token-sos .sos-status-icon,
    .recent-token-live .live-status-icon {
        width: 10px !important;
        height: 10px !important;
        flex-basis: 10px !important;
    }

    .recent-token-sos .sos-status-symbol {
        width: 8px !important;
        height: 8px !important;
        font-size: 6px !important;
    }

    .recent-token-live .live-status-dot {
        width: 6px !important;
        height: 6px !important;
    }
}


/*
 * Exibição condicional do token:
 * - sem nome: token sempre visível;
 * - com nome: nome visível e token aparece no hover/foco;
 * - celular: primeiro toque revela o token.
 */
.recent-token-link.has-saved-name {
    position: relative;
}

.recent-token-link.has-saved-name .recent-token-name {
    display: block;
    flex: 1 1 auto;
    max-width: 100%;
}

.recent-token-link.has-saved-name .recent-token-marquee {
    display: none;
    flex: 1 1 auto;
}

.recent-token-link.has-saved-name:hover .recent-token-name,
.recent-token-link.has-saved-name:focus-visible .recent-token-name,
.recent-token-link.has-saved-name.mobile-token-revealed .recent-token-name {
    display: none;
}

.recent-token-link.has-saved-name:hover .recent-token-marquee,
.recent-token-link.has-saved-name:focus-visible .recent-token-marquee,
.recent-token-link.has-saved-name.mobile-token-revealed .recent-token-marquee {
    display: block;
}

.recent-token-link.has-no-name .recent-token-marquee {
    display: block;
    width: 100%;
    flex: 1 1 auto;
}

@media (max-width: 680px) {
    .recent-token-link.has-saved-name .recent-token-name {
        max-width: 100% !important;
        font-size: 9px !important;
    }

    .recent-token-link.has-saved-name.mobile-token-revealed
    .recent-token-marquee {
        display: block !important;
    }

    .recent-token-link.has-saved-name.mobile-token-revealed
    .recent-token-name {
        display: none !important;
    }

    .recent-token-link.has-no-name .recent-token-value,
    .recent-token-link.has-saved-name.mobile-token-revealed
    .recent-token-value {
        font-size: 7px !important;
    }
}


/*
 * Exibição definitiva dos tokens salvos:
 * - sem nome: token fixo e sem animação;
 * - com nome: somente o nome;
 * - o token completo aparece apenas no tooltip.
 */
.recent-token-link .recent-token-marquee,
.recent-token-link .recent-token-marquee-track,
.recent-token-link .recent-token-value,
.recent-token-link .recent-token-value-copy {
    display: none !important;
    animation: none !important;
}

.recent-token-link.has-saved-name .recent-token-name,
.recent-token-link.has-saved-name:hover .recent-token-name,
.recent-token-link.has-saved-name:focus-visible .recent-token-name {
    display: block !important;
}

.recent-token-link.has-saved-name:hover
.recent-token-marquee,
.recent-token-link.has-saved-name:focus-visible
.recent-token-marquee {
    display: none !important;
}

.recent-token-static {
    display: block;
    width: 100%;
    min-width: 0;
    height: 16px;
    overflow: hidden;
    color: #93c5fd;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-token-link:hover .recent-token-static,
.recent-token-link:focus-visible .recent-token-static {
    color: #bfdbfe;
}

@media (max-width: 680px) {
    .recent-token-static {
        height: 14px;
        font-size: 7px;
        line-height: 14px;
        text-align: left;
    }

    .recent-token-link.has-saved-name .recent-token-name {
        display: block !important;
        max-width: 100% !important;
    }
}


/*
 * Centraliza o nome no espaço disponível entre a borda
 * esquerda do cartão e o botão Nomear/Renomear.
 */
.recent-token-link.has-saved-name {
    justify-content: center !important;
    text-align: center !important;
}

.recent-token-link.has-saved-name .recent-token-name,
.recent-token-link.has-saved-name:hover .recent-token-name,
.recent-token-link.has-saved-name:focus-visible .recent-token-name {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    text-align: center !important;
}

@media (max-width: 680px) {
    .recent-token-link.has-saved-name {
        justify-content: center !important;
        text-align: center !important;
    }

    .recent-token-link.has-saved-name .recent-token-name {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
}


/*
 * Cartão compacto da página de acesso.
 * No computador acompanha visualmente a largura do título.
 */
.login-card {
    width: min(500px, 100%) !important;
    margin-inline: auto;
}

@media (max-width: 540px) {
    .login-shell {
        padding: 12px;
    }

    .login-card {
        width: 100% !important;
    }
}


/*
 * Botão Acessar com a mesma identidade visual
 * do botão Nomear/Renomear.
 */
.login-card #tokenSubmitButton {
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(96,165,250,.44);
    border-radius: 7px;
    background: rgba(30,64,175,.18);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.login-card #tokenSubmitButton:hover,
.login-card #tokenSubmitButton:focus-visible {
    border-color: rgba(96,165,250,.82);
    background: rgba(37,99,235,.28);
    color: #eff6ff;
}

.login-card #tokenSubmitButton:disabled {
    opacity: .55;
    cursor: wait;
}


/*
 * Menu administrativo exibido depois da senha secreta.
 */
.token-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2,6,23,.78);
    backdrop-filter: blur(4px);
}

.token-admin-dialog {
    width: min(430px, 100%);
    padding: 22px;
    border: 1px solid rgba(96,165,250,.42);
    border-radius: 15px;
    background: #111827;
    box-shadow: 0 22px 70px rgba(0,0,0,.55);
    color: #f3f4f6;
}

.token-admin-dialog h2 {
    margin: 0 0 9px;
    font-size: 20px;
    text-align: center;
}

.token-admin-dialog p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.token-admin-actions {
    display: grid;
    gap: 9px;
    margin-top: 19px;
}

.login-card .token-admin-button,
.token-admin-button {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(96,165,250,.44);
    border-radius: 8px;
    background: rgba(30,64,175,.18);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}

.token-admin-button:hover,
.token-admin-button:focus-visible {
    border-color: rgba(96,165,250,.82);
    background: rgba(37,99,235,.28);
    color: #eff6ff;
}

.token-admin-purge {
    border-color: rgba(248,113,113,.52);
    background: rgba(127,29,29,.22);
    color: #fecaca;
}

.token-admin-purge:hover,
.token-admin-purge:focus-visible {
    border-color: rgba(248,113,113,.88);
    background: rgba(185,28,28,.34);
    color: #fff;
}

.token-admin-cancel {
    border-color: rgba(156,163,175,.35);
    background: rgba(55,65,81,.28);
    color: #d1d5db;
}

@media (max-width: 540px) {
    .token-admin-overlay {
        padding: 12px;
    }

    .token-admin-dialog {
        padding: 18px 15px;
    }
}


/*
 * Cloudflare Turnstile exibido somente depois do terceiro
 * token incorreto no mesmo navegador.
 */
.turnstile-container {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(96,165,250,.34);
    border-radius: 10px;
    background: rgba(15,23,42,.52);
}

.turnstile-container[hidden] {
    display: none !important;
}

.turnstile-container p {
    margin: 0 0 10px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.turnstile-widget {
    display: flex;
    width: 100%;
    min-height: 65px;
    align-items: center;
    justify-content: center;
}

.turnstile-widget iframe {
    max-width: 100%;
}
/*
 * Correção mínima de alinhamento dos indicadores.
 *
 * A geometria original dos círculos e símbolos foi mantida.
 * Apenas a altura da linha foi padronizada e o botão SOS
 * deixou de aumentar durante a pulsação.
 */
.top-actions {
    align-items: center;
}

.top-actions > *,
.device-status-strip > * {
    align-self: center;
}

.sos-badge,
.badge,
.device-chip {
    box-sizing: border-box;
    vertical-align: middle;
}

@media (min-width: 681px) {
    .sos-badge,
    .badge,
    .device-chip {
        min-height: 36px;
    }
}

.sos-status-icon,
.live-status-icon,
.battery-icon,
.connection-symbol,
.mobile-signal,
.mobile-technology-icon {
    align-self: center;
    vertical-align: middle;
}

/*
 * Mantém o brilho do SOS sem aplicar escala no botão inteiro.
 */
@keyframes sosBadgeAlarm {
    0%,
    100% {
        transform: none;
        box-shadow:
            0 0 0 0 rgba(239,68,68,.72),
            0 0 14px rgba(239,68,68,.52);
    }

    50% {
        transform: none;
        box-shadow:
            0 0 0 7px rgba(239,68,68,0),
            0 0 28px rgba(255,35,35,.95);
    }
}

/*
 * Mesma centralização para os indicadores da página de token.
 */
.recent-token-indicators,
.recent-token-sos-group,
.recent-token-sos,
.recent-token-live {
    align-items: center;
}

.recent-token-sos .sos-status-icon,
.recent-token-live .live-status-icon {
    align-self: center;
    vertical-align: middle;
}
/*
 * Alternador de acompanhamento da localização.
 * Desativado por padrão para manter o comportamento antigo.
 */
.osm-follow-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: auto;
    min-width: 112px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border-color: #9ca3af;
    background: rgba(255,255,255,.96);
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.osm-follow-toggle:hover {
    background: #f3f4f6;
}

.osm-follow-toggle.active {
    border-color: #2563eb;
    background: #1d4ed8;
    color: #fff;
    box-shadow:
        0 2px 8px rgba(0,0,0,.28),
        0 0 0 2px rgba(96,165,250,.28);
}

.osm-follow-toggle.active:hover {
    background: #1e40af;
}

.osm-follow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    font-size: 18px;
    line-height: 1;
}

.osm-follow-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (max-width: 480px) {
    .osm-follow-toggle {
        min-width: 99px;
        height: 38px;
        padding: 0 8px;
        gap: 5px;
        font-size: 10px;
    }

    .osm-follow-icon {
        width: 15px;
        height: 15px;
        font-size: 16px;
    }
}


/*
 * Ações do cabeçalho do mapa.
 */
.map-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

#clearMapButton {
    border-color: rgba(148,163,184,.46);
    background: rgba(51,65,85,.36);
    color: #e2e8f0;
}

#clearMapButton:hover,
#clearMapButton:focus-visible {
    border-color: rgba(148,163,184,.82);
    background: rgba(71,85,105,.55);
    color: #fff;
}

@media (max-width: 520px) {
    .map-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .map-header-actions button {
        flex: 1 1 0;
    }
}


/*
 * Ações dos mapeamentos salvos.
 */
.record-actions {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    min-width: 88px;
}

.record-resend,
.record-delete {
    align-self: stretch;
    min-width: 0;
}

.record-resend {
    border: 1px solid rgba(96,165,250,.58);
    border-radius: 11px;
    padding: 8px 9px;
    background: rgba(37,99,235,.15);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.record-resend:hover:not(:disabled) {
    border-color: #60a5fa;
    background: rgba(37,99,235,.3);
    color: #fff;
}

.record-resend:disabled {
    cursor: not-allowed;
    opacity: .52;
}

@media (max-width: 680px) {
    .record-actions {
        min-width: 76px;
        gap: 5px;
    }

    .record-resend,
    .record-delete {
        padding: 7px 5px;
        font-size: 10px;
    }
}
