:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #63706a;
  --line: #dce4df;
  --paper: #f4f7f5;
  --card: #ffffff;
  --green: #195f47;
  --green-2: #2f8b68;
  --amber: #b26914;
  --red: #a23b3b;
  --shadow: 0 16px 40px rgba(31, 57, 46, .09);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 11px; padding: .78rem 1rem; background: var(--green); color: white; font-weight: 750; cursor: pointer; }
button:hover { background: #104d39; }
.full { width: 100%; }
.ghost { background: transparent; color: var(--green); border: 1px solid var(--line); }
.danger { color: var(--red); }
.topbar { height: 70px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.topbar > div { display: flex; gap: .7rem; align-items: center; }
.brand-mark { width: 52px; height: 52px; border-radius: 16px; display: inline-grid; place-items: center; color: white; background: linear-gradient(145deg, var(--green-2), var(--green)); font-weight: 850; letter-spacing: -.04em; box-shadow: var(--shadow); }
.brand-mark.small { width: 36px; height: 36px; border-radius: 10px; font-size: .78rem; }
.page { width: min(1440px, 94vw); margin: 0 auto; padding: 2.5rem 0 5rem; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1rem 0 2rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.055em; margin-bottom: .7rem; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.eyebrow { color: var(--green-2); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .45rem; }
.muted { color: var(--muted); max-width: 65ch; }
.compact { font-size: .9rem; }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert.success { background: #dff3e9; color: #164d38; }
.alert.error, .inline-error { background: #fde8e6; color: #852d2d; }
.inline-error { padding: .6rem; border-radius: 8px; font-size: .8rem; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.stats a { color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; display: flex; justify-content: space-between; gap: .7rem; box-shadow: 0 5px 18px rgba(31,57,46,.04); }
.stats span { color: var(--muted); font-size: .85rem; }
.stats strong { font-size: 1.25rem; }
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr); gap: 1.2rem; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.link { color: var(--green); font-size: .85rem; font-weight: 700; }
.stack-side, .stack { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
input, select { width: 100%; padding: .78rem .85rem; border: 1px solid #cdd9d3; border-radius: 10px; color: var(--ink); background: white; }
input:focus, select:focus { outline: 3px solid rgba(47,139,104,.18); border-color: var(--green-2); }
.message { padding: 1.15rem .8rem 1.15rem 1rem; border-bottom: 1px solid var(--line); border-left: 4px solid #aebbb5; }
.message:last-child { border-bottom: 0; }
.message.bewerbung { border-left-color: #4277c4; }
.message.wichtig { border-left-color: var(--amber); }
.message.gewinn { border-left-color: #8a57b5; }
.message.verdachtig { border-left-color: var(--red); }
.message.werbung { opacity: .75; }
.message p { color: var(--muted); font-size: .9rem; margin-bottom: .55rem; }
.message .sender { color: var(--ink); font-weight: 650; }
.message .reasons { font-size: .78rem; }
.message-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .75rem 0; }
.message-actions form { margin: 0; }
.button-link { display: inline-flex; align-items: center; border-radius: 10px; padding: .68rem .85rem; background: var(--green); color: white; text-decoration: none; font-size: .85rem; font-weight: 750; }
.button-link:hover { background: #104d39; }
.message-reader { max-width: 920px; margin: 0 auto; }
.message-reader-head { border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.65; color: var(--ink); background: #f8faf9; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.email-html { white-space: normal; }
.email-html a { color: var(--green); overflow-wrap: anywhere; }
.email-html table { width: 100%; max-width: 100%; border-collapse: collapse; }
.email-html td, .email-html th { padding: .45rem; vertical-align: top; }
.email-html h1, .email-html h2, .email-html h3, .email-html h4 { letter-spacing: normal; line-height: 1.25; }
.email-html blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.message-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.badge { background: #e5efea; color: var(--green); padding: .28rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
time, small { color: var(--muted); font-size: .75rem; }
.empty { min-height: 280px; display: grid; place-content: center; text-align: center; gap: .4rem; color: var(--muted); }
.account { display: flex; justify-content: space-between; gap: .8rem; align-items: center; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1rem; }
.account div { display: grid; gap: .2rem; min-width: 0; }
.account strong { overflow: hidden; text-overflow: ellipsis; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 20% 15%, #dcefe5, transparent 35%), var(--paper); }
.login-card { width: min(440px, 100%); background: white; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 5vw, 2.5rem); box-shadow: var(--shadow); }
.login-card .brand-mark { margin-bottom: 1.3rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero { align-items: start; flex-direction: column; } .stats { grid-template-columns: 1fr; } .page { width: 92vw; padding-top: 1.5rem; } }
.push-test, .install-app, .push-status { margin-top: .7rem; }
