:root {
    --bg: #f8f7f4;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-muted: #636e72;
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --accent: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --border: #dfe6e9;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #b2bec3; }

.btn-option {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-option:hover { border-color: var(--primary); background: #f0effc; }
.btn-option.selected { border-color: var(--primary); background: #f0effc; }

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 1rem 0;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.severity-minimal { color: var(--accent); }
.severity-mild { color: var(--warning); }
.severity-moderate { color: var(--danger); }
.severity-severe { color: #d63031; }

.chat-container { display: flex; flex-direction: column; gap: 1rem; }
.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
}
.chat-assistant {
    background: var(--bg-card);
    border: 1px solid var(--border);
    align-self: flex-start;
}
.chat-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}
.chat-input:focus { border-color: var(--primary); }

h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }

.safety-alert {
    background: #ffeaa7;
    border: 2px solid var(--warning);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1rem 0;
}
.safety-alert h3 { color: #d63031; margin-bottom: 0.5rem; }
.safety-alert ul { margin-left: 1.5rem; }
