:root {
    --bg: #0d0d0d;
    --card-bg: #1a1a1a;
    --accent: #d4a017;
    --accent-dark: #b3870f;
    --text-main: #f5f5f5;
    --text-muted: #9e9e9e;
    --border: #2a2a2a;
    --ok: #4caf50;
    --warn: #ffb300;
    --na: #757575;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text-main);
    padding: 16px;
}

.app {
    max-width: 1100px;
    margin: 0 auto;
}

header {
    margin-bottom: 20px;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.card-title {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.card-title small {
    font-size: 12px;
    color: var(--text-muted);
}

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

@media (min-width: 600px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .row {
        grid-template-columns: repeat(3, 1fr);
    }
}

label {
    font-size: 13px;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 14px;
    background: #111;
    color: var(--text-main);
}

textarea {
    min-height: 70px;
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}

.checklist-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 600px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .checklist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.check-item {
    background: #111;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: 0.2s;
}

.check-item:hover {
    border-color: var(--accent);
}

.check-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-item-title {
    font-size: 14px;
    font-weight: 500;
}

.status-buttons {
    display: flex;
    gap: 4px;
}

.status-btn {
    border-radius: 999px;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #fff;
    opacity: 0.4;
    transition: 0.15s;
}

.status-btn.ok { background: var(--ok); }
.status-btn.warn { background: var(--warn); }
.status-btn.na { background: var(--na); }

.status-btn.active {
    opacity: 1;
}

.progress-wrap {
    margin-top: 12px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #333;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.2s ease;
}

.progress-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 12px 20px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.15s;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 10px 16px;
    background: #111;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.report-output {
    white-space: pre-wrap;
    font-size: 14px;
    margin-top: 12px;
}

.btn-danger {
    border-radius: 999px;
    border: 1px solid #7a1f1f;
    padding: 10px 16px;
    background: #b32626;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.15s;
}

.btn-danger:hover {
    background: #d93434;
    border-color: #a62828;
}
