:root {
    color-scheme: dark;
    --bg: #0c0f12;
    --panel: #151a1f;
    --panel-2: #1b2229;
    --text: #edf1f3;
    --muted: #9aa6af;
    --line: #2b343d;
    --accent: #d76b2c;
    --accent-2: #f18b46;
    --danger: #d9534f;
    --success: #4fb477;
    --warning: #c79b46;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent-2); }
code { padding: 2px 5px; border-radius: 5px; background: #0b0f12; overflow-wrap: anywhere; }
.shell { width: min(980px, calc(100% - 32px)); margin: 48px auto; }
.shell.wide { width: min(1380px, calc(100% - 32px)); }
.brand { margin-bottom: 22px; }
.brand h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); letter-spacing: .02em; }
.brand p { margin: 6px 0 0; color: var(--muted); }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.two-col { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(320px,.75fr); gap:18px; align-items:start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 650; margin-bottom: 6px; }
input, textarea, select {
    width: 100%;
    background: #0f1418;
    color: var(--text);
    border: 1px solid #36414b;
    border-radius: 8px;
    padding: 11px 12px;
    outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.help { color: var(--muted); font-size: 13px; margin-top: 5px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.top-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover { background: var(--accent-2); }
.btn.secondary { background: #2a333b; }
.btn.danger { background: var(--danger); }
.notice { border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 12px 14px; margin: 14px 0; }
.notice.error { border-color: #713b3a; }
.notice.success { border-color: #356a4a; }
.steps { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.step { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.step.active { color: white; border-color: var(--accent); }
.meta { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.section-heading h2, .map-card h3 { margin-top:0; }
.section-heading p { margin-bottom:0; }
.stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.stat { background:var(--panel-2); border:1px solid var(--line); border-radius:10px; padding:18px; }
.stat strong { display:block; font-size:30px; }
.stat span { color:var(--muted); }
.map-cards { display:grid; gap:12px; }
.map-card { display:flex; align-items:center; justify-content:space-between; gap:18px; background:var(--panel-2); border:1px solid var(--line); border-radius:10px; padding:18px; }
.map-card h3 { margin-bottom:4px; }
.map-card p { margin:0 0 10px; }
.badges { display:flex; flex-wrap:wrap; gap:7px; }
.badge { display:inline-block; border:1px solid var(--line); color:var(--muted); border-radius:999px; padding:4px 8px; font-size:12px; }
.badge.ok { color:#a7e5c0; border-color:#356a4a; }
.badge.warn { color:#f3d18d; border-color:#765e30; }
.check-row { display:flex; gap:22px; flex-wrap:wrap; margin-top:20px; }
.check-row.vertical { flex-direction:column; gap:8px; }
.check { display:flex; align-items:center; gap:8px; margin:0; font-weight:600; }
.check input { width:auto; margin:0; }
.form-stack { display:grid; gap:16px; }
.divider { border:0; border-top:1px solid var(--line); margin:24px 0; }
.empty-state { text-align:center; padding:38px 16px; background:var(--panel-2); border-radius:10px; border:1px dashed var(--line); }
.dcl-map { height:640px; background:#0a0d10; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.coordinate-bar { margin-top:10px; padding:10px 12px; border-radius:8px; background:var(--panel-2); color:var(--muted); }
.coordinate-bar strong { color:var(--text); }
.dcl-placeholder-marker > div { width:230px; padding:10px 12px; text-align:center; background:rgba(12,15,18,.92); border:1px solid #4b5863; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.3); }
.dcl-placeholder-marker strong, .dcl-placeholder-marker span { display:block; }
.dcl-placeholder-marker span { color:var(--muted); font-size:12px; margin-top:2px; }
.map-page { overflow:hidden; }
.public-map-header { height:64px; padding:10px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--panel); border-bottom:1px solid var(--line); }
.public-map-header div { display:flex; flex-direction:column; }
.public-map-header span { color:var(--muted); font-size:13px; }
.fullscreen-map { height:calc(100vh - 64px); border:0; border-radius:0; }
.map-warning { position:absolute; top:76px; left:50%; transform:translateX(-50%); z-index:900; background:#33291a; border:1px solid #765e30; border-radius:8px; padding:8px 12px; }
.floating-coordinate { position:fixed; z-index:900; left:12px; bottom:12px; background:rgba(12,15,18,.9); border:1px solid var(--line); border-radius:8px; padding:8px 10px; }
@media (max-width:700px) {
    .shell { width:min(100% - 20px, 980px); margin:20px auto; }
    .topbar, .section-heading, .map-card { align-items:stretch; flex-direction:column; }
    .top-actions { justify-content:flex-start; }
    .stat-grid { grid-template-columns:1fr; }
    .dcl-map { height:520px; }
}
