* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
}

#sidebar {
    width: 300px;
    min-width: 300px;
    padding: 20px;
    background: #f5f5f5;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: -10px;
}

.controls label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.controls select {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.9rem;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.layer-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.layer-checkboxes label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    cursor: pointer;
}

.hint {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
}

.bounds-info h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.bounds-info table {
    width: 100%;
    font-size: 0.8rem;
}

.bounds-info td {
    padding: 2px 4px;
}

.bounds-info td:first-child {
    font-weight: 600;
    width: 50px;
}

.bounds-info td:last-child {
    font-family: monospace;
}

#btn-generate {
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#btn-generate:hover:not(:disabled) {
    background: #1d4ed8;
}

#btn-generate:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.status {
    font-size: 0.82rem;
    line-height: 1.4;
    min-height: 20px;
}

.status.error {
    color: #dc2626;
}

.status.success {
    color: #16a34a;
}

.status.loading {
    color: #2563eb;
}

#map {
    flex: 1;
}
