:root { color-scheme: light; font-family: "Space Mono", monospace; background: #fff; color: #111; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; line-height: 1.55; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.maillayout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.sidebar .sidebox { margin-bottom: 12px; }
.folderlist { list-style: none; margin: 8px 0 0; padding: 0; }
.folderlist li { padding: 4px 0; border-bottom: 1px solid #eee; }
.folderlist li:last-child { border-bottom: 0; }
.mailmain { min-width: 0; }
@media (max-width: 760px) { .maillayout { grid-template-columns: minmax(0, 1fr); } }
.center { text-align: center; }
.muted { color: #444; } .small { font-size: 12px; } .mono { font-family: monospace; }
h1 { font-size: 22px; }
.heroimg { display: block; max-width: 280px; width: 100%; height: auto; margin: 4px auto 12px; }
.topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 2px solid #111; margin-bottom: 12px; }
.topbar a { color: #000; }
.inline-form { display: inline; margin: 0; }
.linklike { border: 0; background: none; color: #0000c4; padding: 0; cursor: pointer; text-decoration: underline; font-size: inherit; }
.card { border: 1px solid #bbb; padding: 14px; margin: 0 0 14px; background: #fff; }
.card > :first-child { margin-top: 0; } .card > :last-child { margin-bottom: 0; }
.rowline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ddd; }
.rowline:last-child { border: 0; }
.btn { display: inline-block; border: 1px solid #999; background: #fff; color: #0000c4; padding: 7px 12px; cursor: pointer; text-decoration: underline; text-align: center; }
.btn:hover { border-color: #0000c4; } .btn-primary { font-weight: bold; }
.btn-danger, .btn-danger:visited { color: #8b1717; border-color: #8b1717; }
.btn-block { display: block; width: 100%; } .btn-sm { padding: 6px 10px; } .btn-lg { padding: 8px 14px; }
.field { margin-bottom: 16px; } .label { display: block; margin-bottom: 5px; font-weight: bold; }
.input, .textarea { display: block; width: 100%; border: 1px solid #999; background: #fff; padding: 8px; color: inherit; }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 8px; text-align: left; border-bottom: 1px solid #ddd; }
tr.unread td { font-weight: bold; }
.note { border: 1px solid #111; padding: 10px; margin: 0 0 14px; }
.note.err { border-color: #8b1717; color: #8b1717; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.login-stage { position: relative; margin-bottom: 70px; }
.login-card { position: relative; z-index: 1; }
.peek-big { position: absolute; right: -70px; bottom: -40px; z-index: 0; pointer-events: none; width: clamp(140px, 30vw, 220px); height: auto; }
@media (max-width: 700px) { .login-stage { margin-bottom: 60px; } .peek-big { right: 8px; bottom: -14px; max-width: 45%; } }
