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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a2e;
    color: #eee;
}

header h1 { margin-bottom: 20px; color: #fff; }

section { margin-bottom: 24px; padding: 16px; background: #16213e; border-radius: 8px; }
section h2 { margin-bottom: 12px; font-size: 1.1em; color: #aaa; }

#drop-zone {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
#drop-zone:hover, #drop-zone.dragover { border-color: #0f3460; background: #0f3460; }
#drop-zone label { color: #e94560; cursor: pointer; text-decoration: underline; }

#tools-list { display: flex; gap: 12px; flex-wrap: wrap; }
.tool { padding: 4px 10px; border-radius: 4px; font-size: 0.9em; }
.tool.found { background: #1b4332; color: #95d5b2; }
.tool.missing { background: #6b2020; color: #fca5a5; }
.tool.optional { background: #4a3800; color: #fcd34d; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #333; }
th { color: #aaa; font-weight: 500; }

.btn { padding: 4px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 0.85em; }
.btn-danger { background: #e94560; color: #fff; }
.btn-danger:hover { background: #c73e54; }
.btn-restyle { background: #0f3460; color: #fff; margin-left: 12px; font-size: 0.8em; vertical-align: middle; }
.btn-restyle:hover { background: #1a4980; }
.btn-restyle:disabled { opacity: 0.5; cursor: not-allowed; }

#active-job { padding: 8px; }
.progress-bar { height: 8px; background: #333; border-radius: 4px; margin-top: 8px; }
.progress-bar-fill { height: 100%; background: #e94560; border-radius: 4px; transition: width 0.3s; }

.status { padding: 2px 8px; border-radius: 4px; font-size: 0.85em; }
.status-complete { background: #1b4332; color: #95d5b2; }
.status-incomplete { background: #4a3800; color: #fcd34d; }
.status-none { background: #6b2020; color: #fca5a5; }

.map-preview { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; vertical-align: middle; }
.map-preview-placeholder { display: inline-block; width: 48px; height: 48px; border-radius: 4px; background: #333; }
#preview-popup { display: none; position: fixed; width: 256px; height: 256px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 20px rgba(0,0,0,0.6); z-index: 10; pointer-events: none; }

#no-maps { color: #666; font-style: italic; }
