/* Meridian installer — self-contained styles, matches the app's luxury palette. */
:root {
    --ink: #12151b;
    --ink-2: #1b1f27;
    --gold: #c6a15b;
    --gold-deep: #9c7c3e;
    --paper: #f7f5f0;
    --card: #ffffff;
    --text: #201f1c;
    --muted: #6b6459;
    --border: #e6e1d6;
    --success: #3f6b4a;
    --danger: #8c3a3a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Inter, Arial, sans-serif;
    background: var(--paper);
    color: var(--text);
}
.install-shell { display: flex; min-height: 100vh; }
.install-aside {
    width: 260px;
    background: var(--ink);
    color: #ece7da;
    padding: 40px 28px;
    flex-shrink: 0;
}
.install-brand { font-size: 22px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.install-tagline { font-size: 13px; color: #a9a396; margin: 4px 0 36px; }
.install-steps { list-style: none; margin: 0; padding: 0; }
.install-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #8b8578;
    font-size: 14px;
}
.install-steps li.is-current { color: #fff; font-weight: 600; }
.install-steps li.is-done { color: var(--gold); }
.install-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid #3a3f49;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.install-steps li.is-current .install-step-num { border-color: var(--gold); color: var(--gold); }
.install-steps li.is-done .install-step-num { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.install-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.install-card { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.install-card h1 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.install-card > p { color: var(--muted); font-size: 14px; margin: 0 0 24px; line-height: 1.6; }
.install-form { display: flex; flex-direction: column; gap: 16px; }
.install-form label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.install-form input, .install-form select {
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
}
.install-form input:focus, .install-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,0.18); }
.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--gold);
    border: 1px solid var(--ink);
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin-top: 4px;
}
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.req-list { list-style: none; margin: 0 0 24px; padding: 0; }
.req-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.req-list li:last-child { border-bottom: none; }
.req-icon { width: 20px; text-align: center; font-weight: 700; }
.req-pass .req-icon { color: var(--success); }
.req-fail .req-icon { color: var(--danger); }
.req-label { flex: 1; }
.req-detail { color: var(--muted); font-size: 12px; }
.req-warning { color: var(--danger); font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; }
.alert-danger { background: #f7e9e9; color: var(--danger); border: 1px solid #e6c9c9; }
code { background: #f1ede3; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 6px; color: var(--muted); cursor: pointer; padding: 0;
}
.password-toggle:hover { color: var(--text); background: var(--paper); }
.password-toggle svg { width: 17px; height: 17px; }

.file-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-picker-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.file-picker-name { font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
    .install-shell { flex-direction: column; }
    .install-aside { width: 100%; padding: 24px; }
    .install-steps { display: flex; flex-wrap: wrap; gap: 12px; }
    .install-steps li { padding: 0; }
}
