/* docs/customizer.css — plain CSS, no framework/build step. */

:root {
    --bg: #f7f7f9;
    --panel: #ffffff;
    --text: #1c1c1e;
    --muted: #6b6b70;
    --border: #d9d9df;
    --accent: #3457d5;
    --accent-text: #ffffff;
    --error: #b3261e;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17181c;
        --panel: #202127;
        --text: #ececee;
        --muted: #a0a0a8;
        --border: #34353c;
        --accent: #6a8dff;
        --accent-text: #10111a;
        --error: #ff6b64;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.page-header p {
    color: var(--muted);
}

h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

code {
    background: var(--border);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.9em;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.module-category {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    padding: 0.75rem 1rem 1rem;
}

.module-category legend {
    padding: 0 0.4em;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.module-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.2rem 0.6rem;
}

.module-card + .module-card {
    margin-top: 0.25rem;
}

.module-card-disabled {
    opacity: 0.65;
}

.module-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0.2rem;
    cursor: pointer;
}

.module-row-disabled {
    cursor: default;
}

.module-row input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

.module-row small {
    display: block;
    color: var(--muted);
    font-weight: 400;
}

.module-features {
    margin: 0.1rem 0 0.5rem 2.3rem;
    padding: 0;
    list-style: disc;
    color: var(--muted);
    font-size: 0.88rem;
}

.module-features li {
    margin-bottom: 0.15rem;
}

.module-screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-left: 2.3rem;
}

.build-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
}

.status {
    flex-basis: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-error {
    color: var(--error);
}

.install-help ol {
    color: var(--muted);
    padding-left: 1.2rem;
}

.install-help a {
    color: var(--accent);
}
