:root { color-scheme: light; font-family: system-ui, -apple-system, Segoe UI, sans-serif; }
body { margin: 0; background: #f5f6f8; color: #111827; }
a { color: #2563eb; text-decoration: none; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.card { background: white; border-radius: 18px; padding: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.login-card { width: 100%; max-width: 380px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: white; border-bottom: 1px solid #e5e7eb; }
.muted { color: #6b7280; }
label { display: block; margin: 16px 0; font-weight: 600; }
input { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
button { width: 100%; border: 0; border-radius: 10px; background: #111827; color: white; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.alert { border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.alert.error { background: #fee2e2; color: #991b1b; }
.history-list { display: grid; gap: 18px; }
.history-item { border-top: 1px solid #e5e7eb; padding-top: 18px; }
.history-meta { display: flex; gap: 12px; flex-wrap: wrap; color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.answer-box { line-height: 1.65; }
.answer-box pre { overflow: auto; background: #111827; color: white; padding: 16px; border-radius: 12px; }
.answer-box code { background: #f3f4f6; padding: 2px 4px; border-radius: 4px; }
.answer-box pre code { background: transparent; padding: 0; }
.alert.success{background:#dcfce7;color:#14532d;border:1px solid #86efac;}
textarea{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:10px;padding:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;}
