/* PhilosophIA — minimaliste */
* { box-sizing: border-box; }
body { font-family: Georgia, "Times New Roman", serif; margin: 0; background: #faf7f2; color: #2d2a26; }
.container { max-width: 980px; margin: 0 auto; padding: 30px 24px 80px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: #fff; border-bottom: 1px solid #e2dcd0; font-size: 13px; }
header.top a { color: #2d2a26; text-decoration: none; margin-right: 14px; }
header.top a:hover { text-decoration: underline; }
h1 { font-weight: normal; margin-bottom: 6px; letter-spacing: 0.5px; }
.subtitle { color: #6b6258; margin-top: 0; margin-bottom: 24px; font-size: 14px; font-style: italic; }
.box { background: #fff; border: 1px solid #e2dcd0; border-radius: 6px; padding: 16px 20px; margin-bottom: 18px; }
.btn { display: inline-block; padding: 8px 16px; background: #2d2a26; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 14px; }
.btn:hover { background: #4a463f; }
.btn-secondary { background: #fff; color: #2d2a26; border: 1px solid #2d2a26; }
.btn-secondary:hover { background: #f0ebe2; }
.btn-ghost { background: transparent; color: #6b6258; border: 1px solid #d6cfc2; }
.btn-ghost:hover { background: #faf7f2; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
label { display: block; font-size: 13px; color: #4a463f; margin: 10px 0 4px; }
input[type="text"], input[type="number"], textarea, select { width: 100%; padding: 8px 10px; border: 1px solid #d6cfc2; border-radius: 4px; font-family: inherit; font-size: 14px; background: #fdfbf7; }
textarea { resize: vertical; min-height: 70px; }
.muted { color: #6b6258; font-size: 13px; }
.avatar { display: inline-block; width: 48px; height: 48px; border-radius: 50%; vertical-align: middle; }
.avatar-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.avatar-card { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 6px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; width: 100px; transition: all 0.15s; }
.avatar-card:hover { background: #f0ebe2; }
.avatar-card.selected { border-color: #2d2a26; background: #fff; }
.avatar-card svg { width: 64px; height: 64px; }
.avatar-card .name { font-size: 12px; text-align: center; margin-top: 4px; line-height: 1.2; }
.message { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0ebe2; }
.message:last-child { border-bottom: 0; }
.message .avatar { flex-shrink: 0; width: 56px; height: 56px; }
.message .body { flex: 1; }
.message .body .who { font-weight: bold; margin-bottom: 4px; }
.message .body .content { white-space: pre-wrap; line-height: 1.5; }
.message.streaming .content::after { content: "▍"; display: inline-block; margin-left: 2px; animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.turn { margin-bottom: 30px; }
.turn-header { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #e2dcd0; }
.turn-header .num { color: #6b6258; font-size: 13px; }
.turn-header .question { font-size: 18px; font-style: italic; margin: 4px 0; }
.turn-header .note { font-size: 13px; color: #6b6258; background: #fdf6e3; padding: 6px 10px; border-left: 3px solid #d4a72c; margin-top: 4px; }
.error { color: #b00020; font-weight: 600; }
.ok { color: #0a7a30; font-weight: 600; }
.center { text-align: center; }
.row-rooms a.room-link { display: block; padding: 10px 14px; margin-bottom: 8px; background: #fff; border: 1px solid #e2dcd0; border-radius: 4px; color: #2d2a26; text-decoration: none; }
.row-rooms a.room-link:hover { background: #f0ebe2; }
