* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f5f6f8; color: #1f2937; }
a { color: inherit; text-decoration: none; }
header { height: 64px; background: #111827; color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
header nav { display: flex; gap: 16px; }
.container { max-width: 1000px; margin: 32px auto; padding: 0 20px; }
.narrow { max-width: 700px; }
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: 360px; background: white; padding: 32px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
label { display: block; margin: 14px 0 6px; font-weight: bold; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; }
button { margin-top: 18px; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #2563eb; color: white; font-weight: bold; cursor: pointer; }
button:hover { background: #1d4ed8; }
.mail-list { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.mail-row { display: grid; grid-template-columns: 240px 1fr 220px; gap: 16px; padding: 16px; border-bottom: 1px solid #eef0f3; }
.mail-row:hover { background: #f9fafb; }
.mail-row.unread strong { font-weight: 800; }
.mail-row small { color: #6b7280; text-align: right; }
.message { background: white; padding: 28px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
pre { white-space: pre-wrap; font-family: inherit; line-height: 1.5; }
.error { color: #b91c1c; }
.notice { background: #ecfdf5; color: #047857; padding: 12px; border-radius: 8px; }
.compose-form { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
@media (max-width: 700px) {
  .mail-row { grid-template-columns: 1fr; }
  .mail-row small { text-align: left; }
}
