* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Arial, sans-serif;
}

.container {
    width: 1180px;
    max-width: calc(100% - 32px);
    margin: 24px auto 40px;
}

.hero,
.panel,
.result-card,
.stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero,
.panel {
    padding: 24px;
    margin-bottom: 18px;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.hero p {
    margin: 0;
    color: #94a3b8;
    max-width: 780px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}


.info-panel {
    padding: 18px 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-text {
    color: #94a3b8;
    line-height: 1.5;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 16px;
    border-radius: 14px;
    background: #0b1220;
    border: 1px solid #334155;
    color: #f8fafc;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-primary {
    background: #2563eb;
}

.btn-success {
    background: #16a34a;
}

.save-message,
.run-status {
    margin-top: 14px;
    color: #cbd5e1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card strong {
    font-size: 22px;
}

.stat-card span {
    color: #94a3b8;
    font-size: 13px;
}

.results {
    display: grid;
    gap: 16px;
}

.result-card {
    padding: 18px;
}

.result-card.ok {
    border-color: rgba(34, 197, 94, 0.4);
}

.result-card.warning {
    border-color: rgba(245, 158, 11, 0.45);
}

.result-card.down {
    border-color: rgba(239, 68, 68, 0.45);
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.domain {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.title {
    color: #94a3b8;
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    min-width: 72px;
}

.badge.ok {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.badge.down {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.badge.neutral {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

.card-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 380px);
    gap: 18px;
}

.card-meta {
    display: grid;
    gap: 10px;
}

.meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f2937;
}

.meta-row span {
    color: #94a3b8;
}

.meta-row strong {
    color: #f8fafc;
    font-weight: 600;
}

.break {
    overflow-wrap: anywhere;
}

.card-shot {
    background: #0b1220;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.card-shot img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.shot-link {
    display: block;
    width: 100%;
}

.shot-empty,
.empty {
    color: #94a3b8;
    text-align: center;
}

a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .hero {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: calc(100% - 20px);
        margin-top: 10px;
    }

    .panel,
    .hero,
    .result-card {
        padding: 16px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


@media (max-width: 900px) {
    .hero, .info-grid, .card-grid, .stats {
        grid-template-columns: 1fr;
    }
    .hero {
        flex-direction: column;
    }
    .container {
        max-width: calc(100% - 20px);
    }
}
