body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #fafafa; }
.page-wrapper { padding: 16px; }
.messages { list-style: none; margin: 0; padding: 10px 16px; }
.messages li { padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; background: #fff; border: 1px solid #eee; }

.container { max-width: 820px; margin: 0 auto; }
.card { background: #fff; border: 1px solid #e6e6e6; border-radius: 14px; padding: 16px; margin: 12px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.question { font-size: 32px; font-weight: 800; margin-bottom: 12px; }

.answer { font-size: 22px; padding: 10px; width: 180px; }
button { font-size: 16px; padding: 10px 14px; border-radius: 10px; border: 1px solid #d7d7d7; background: #f3f3f3; cursor: pointer; }
button.secondary { background: #fff; }

.actions { margin-top: 12px; }

.result { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid #ddd; }
.result.ok { background: #e8f5e9; border-color: #a5d6a7; }
.result.bad { background: #ffebee; border-color: #ef9a9a; }
.r-title { font-size: 20px; font-weight: 800; }
.r-given { margin-top: 8px; font-size: 18px; color: #555; }
.strike { text-decoration: line-through; }
.r-exp { margin-top: 8px; font-size: 18px; }
.exp { font-size: 24px; font-weight: 900; }

.footer-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: #444; border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }

.topbar { display:flex; justify-content:space-between; align-items:center; padding: 10px 14px; background:#fff; border:1px solid #e6e6e6; border-radius:14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);}
.brand { font-weight: 900; font-size: 18px; }
.topbar-actions { display:flex; gap: 10px; align-items:center; }
.tab { padding: 7px 12px; border: 1px solid #d7d7d7; border-radius: 10px; text-decoration:none; color:#111; background:#f3f3f3; }
.tab.active { background:#1e88e5; color:#fff; border-color:#1e88e5; }

.logout-form { margin:0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #eee; padding: 8px 4px; text-align: left; }
