:root {
    --bg-primary: #0f1216;
    --bg-secondary: #1a1d24;
    --bg-tertiary: #232730;
    --accent: #00bcd4;
    --accent-hover: #1de9ec;
    --text-primary: #ffffff;
    --text-secondary: #9ba0a8;
    --text-muted: #6b7080;
    --border: #2a2f3a;
    --danger: #e63946;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

header h1 a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-chip {
    background: var(--bg-tertiary);
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

main {
    flex: 1;
    padding: 2rem 0;
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h2 {
    font-size: 3rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.empty {
    color: var(--text-muted);
    margin-top: 1rem;
}

button, .btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

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

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 3px;
    text-decoration: none;
}

.auth-card {
    max-width: 360px;
    margin: 2rem auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
}

.auth-card h2 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-card label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-card input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
}

.flash {
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.flash-error { background: rgba(230, 57, 70, 0.15); border: 1px solid var(--danger); color: #ff8a92; }
.flash-success { background: rgba(0, 188, 212, 0.12); border: 1px solid var(--accent); color: var(--accent); }
