:root {
    --bg: #eff6f4;
    --panel: #ffffff;
    --soft: #f7fbfa;
    --line: #dbe9e4;
    --text: #183832;
    --muted: #6b7f79;
    --primary: #0f8c72;
    --primary-dark: #0b6a59;
    --accent: #39b58f;
    --danger: #df5959;
    --shadow: 0 20px 45px rgba(15, 86, 73, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #edf4f2 0%, #f8fbfa 100%);
    color: var(--text);
    padding: 16px;
}

.shell {
    max-width: 980px;
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--primary-dark);
}

.badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.chip {
    border: 1px solid var(--line);
    background: var(--soft);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.chip.offline {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.chip.online {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.hero {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at right top, rgba(57, 181, 143, .16), transparent 30%),
        radial-gradient(circle at left bottom, rgba(15, 140, 114, .12), transparent 26%),
        var(--panel);
}

.eyebrow {
    display: inline-block;
    background: #e7f7f2;
    color: var(--primary-dark);
    border: 1px solid #d4efe7;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

h1 {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.label {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.value {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
}

.subvalue {
    color: var(--muted);
    font-size: 15px;
}

.progress {
    margin-top: 12px;
    height: 12px;
    background: #edf4f2;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e0ece7;
}

.progress i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .4s ease;
}

.status-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    border: 1px solid var(--line);
    background: #eef7f4;
    color: var(--primary-dark);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12a46f;
    box-shadow: 0 0 0 5px rgba(18, 164, 111, .15);
}

.dot.red {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, .15);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

button {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
    min-width: 130px;
}

button:hover {
    transform: translateY(-1px);
}

.btn-start {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-stop {
    background: linear-gradient(135deg, #d85b5b, #f08b8b);
    color: white;
}

.btn-auto {
    background: #eef7f4;
    color: var(--primary-dark);
    border: 1px solid #d6ebe4;
}

.rf-card {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.rf-card span {
    font-weight: 700;
    color: var(--text);
}


.map-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.map-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.map-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    display: block;
}

.footer-note {
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    padding-bottom: 8px;
}

@media (max-width: 760px) {
    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }

    .value {
        font-size: 34px;
    }

    button {
        width: 100%;
    }
}