:root {
    --bg-1: #07172d;
    --bg-2: #123d68;
    --panel: rgba(255, 255, 255, 0.95);
    --panel-soft: rgba(255, 255, 255, 0.82);
    --text: #18324d;
    --muted: #587188;
    --border: rgba(24, 50, 77, 0.1);
    --high: #c93c2d;
    --medium: #de8b25;
    --low: #2f9d63;
    --accent: #246bdb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 25%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(8, 19, 36, 0.18);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 20px;
    padding: 30px 32px;
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
}

h2 {
    font-size: 1.4rem;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 64ch;
    margin: 16px 0 0;
}

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

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.action.primary {
    background: linear-gradient(135deg, #417cf2, #6e5cf5);
    color: #fff;
}

.action.secondary {
    background: rgba(36, 107, 219, 0.08);
    border-color: rgba(36, 107, 219, 0.18);
}

.hero-note {
    display: grid;
    gap: 12px;
}

.note-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.98));
    border-radius: 18px;
    border: 1px solid rgba(36, 107, 219, 0.12);
    padding: 18px;
}

.note-label,
.demo-label {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.note-value {
    font-size: 1rem;
    font-weight: 700;
}

.announcement {
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #34506d;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,244,251,0.96));
}

.controls {
    display: grid;
    grid-template-columns: 220px 220px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.notice {
    display: none;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
}

.notice.visible {
    display: block;
}

.notice.info {
    background: rgba(36, 107, 219, 0.12);
    border-color: rgba(36, 107, 219, 0.22);
    color: #11468e;
}

.notice.success {
    background: rgba(47, 157, 99, 0.14);
    border-color: rgba(47, 157, 99, 0.24);
    color: #1f7348;
}

.notice.error {
    background: rgba(201, 60, 45, 0.14);
    border-color: rgba(201, 60, 45, 0.24);
    color: #8b251c;
}

select,
input {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(36, 107, 219, 0.16);
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    font-size: 0.96rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 22px;
    min-height: 136px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 14px;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.reports-panel,
.side-panel {
    padding: 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.count-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(36, 107, 219, 0.08);
    color: var(--accent);
    font-weight: 700;
}

.report-list {
    display: grid;
    gap: 16px;
}

.report-card {
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,255,0.98));
    border: 1px solid var(--border);
    border-left: 6px solid #c7d4e3;
}

.report-card.high { border-left-color: var(--high); }
.report-card.medium { border-left-color: var(--medium); }
.report-card.low { border-left-color: var(--low); }

.report-top,
.report-grid {
    display: grid;
    gap: 12px;
}

.report-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 14px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf4fb;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge.urgency-high {
    background: rgba(201, 60, 45, 0.14);
    color: var(--high);
}

.badge.urgency-medium {
    background: rgba(222, 139, 37, 0.14);
    color: #8f5600;
}

.badge.urgency-low {
    background: rgba(47, 157, 99, 0.14);
    color: #1f7348;
}

.report-id {
    color: var(--muted);
    font-size: 0.8rem;
}

.report-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.location-share-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f9d68, #149e9b);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(20, 158, 155, 0.2);
}

.location-share-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    background: linear-gradient(135deg, #7f90a3, #9ca8b5);
    box-shadow: none;
}

.report-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 14px;
}

.detail {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(24, 50, 77, 0.08);
    padding: 12px 14px;
}

.detail-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-size: 0.71rem;
    margin-bottom: 6px;
}

.detail-value {
    font-weight: 700;
    word-break: break-word;
}

.message-box {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(24, 50, 77, 0.08);
    padding: 14px;
}

.message-text {
    line-height: 1.55;
    color: #2d4356;
    white-space: pre-wrap;
}

.report-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: right;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    color: #2d4356;
    line-height: 1.7;
}

.demo-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,245,252,0.96));
    border: 1px solid rgba(36, 107, 219, 0.12);
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 52px 16px;
}

@media (max-width: 1100px) {
    .hero,
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 1380px);
        padding-top: 16px;
    }

    .hero,
    .reports-panel,
    .side-panel {
        padding: 20px;
    }

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

    .report-top {
        grid-template-columns: 1fr;
    }
}
