:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0b0f1a;
    --muted: #5c6475;
    --accent: #3b82f6;
    --border: #e1e6f0;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

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

.subhead {
    margin: 0;
    color: var(--muted);
    max-width: 460px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-size: 12px;
    margin: 0;
}

.stats {
    display: flex;
    gap: 24px;
    text-align: center;
}

.stats h3 {
    margin: 0;
    font-size: 28px;
}

.stats p {
    margin: 4px 0 0;
    color: var(--muted);
}

.panel {
    margin-top: 28px;
    padding: 24px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.badge {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

select,
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

button {
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.list {
    display: grid;
    gap: 12px;
}

.list-item {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-item:hover,
.list-item.active {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.list-item h3 {
    margin: 0 0 4px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.details {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 16px;
}

.details.empty {
    color: var(--muted);
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    margin-right: 6px;
    font-size: 12px;
}

.map {
    margin-top: 16px;
}

.map-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.map-tools input {
    flex: 1;
}

.map-canvas {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #eef2ff;
}

.map-selected {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fafcff;
}

.map-selected.empty {
    color: var(--muted);
}

.map-placeholder {
    border-radius: 16px;
    border: 1px dashed var(--border);
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: #f8fafc;
}

.footer {
    text-align: center;
    color: var(--muted);
    margin-top: 32px;
}

.footer span {
    font-weight: 600;
    color: var(--text);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info img {
    display: none;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f8f8f8;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    margin: 0 0 0.5rem;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 14px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}
