/* Minimal stylesheet for the v0 stub. The full lifeOS.html port will replace
   most of this with the CSS already inline at ~/Desktop/LifeOS/shared/code/lifeOS.html. */

:root {
    --bg: #0a0e14;
    --panel: #11161d;
    --border: #1c2430;
    --text: #d6dde6;
    --muted: #6c7785;
    --accent: #7dd3fc;
    --good: #4ade80;
    --warn: #fbbf24;
    --err: #f87171;
    --critical: #ef4444;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

body.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 600;
    font-size: 16px;
}

.brand .v {
    color: var(--muted);
    font-weight: 400;
    font-size: 11px;
    margin-left: 6px;
}

.user-badge {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

button {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}
button:hover { border-color: var(--accent); }
button[type=submit] { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 500; }

input, textarea, select {
    width: 100%;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

label { display: block; margin: 6px 0; }
label.inline { display: inline-flex; align-items: center; gap: 6px; }
label.inline input { width: auto; }

.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

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

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
}
.card h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.card h2 small { font-weight: 400; text-transform: none; letter-spacing: 0; }

.auth-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
}
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }

.gate { padding: 32px 16px; text-align: center; }
.gate a { color: var(--accent); }

.status { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.status.ok { color: var(--good); }
.status.err { color: var(--err); }

.list { display: flex; flex-direction: column; gap: 6px; }

.cap-row {
    display: grid;
    grid-template-columns: 110px 80px 1fr;
    gap: 10px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.cap-row:last-child { border-bottom: none; }
.cap-ts { color: var(--muted); font-family: 'SF Mono', Menlo, monospace; font-size: 11px; }
.cap-tag { color: var(--accent); font-size: 11px; font-weight: 500; }

pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.4;
    max-height: 320px;
}

.err pre { color: var(--err); }

details summary {
    cursor: pointer;
    color: var(--muted);
    margin-top: 16px;
    font-size: 12px;
}
