*{box-sizing:border-box}
:root{--bg:#F6F6F3;--ink:#16181D;--muted:#5A606B;--line:#E4E4DF;--accent:#0F6B4F;--accent-d:#0A4F3A;--soft:#E6EEEA}
body{margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.5}
a{color:var(--accent)}a:hover{color:var(--accent-d)}
h1{font-size:24px;margin:0 0 4px}h2{font-size:17px;margin:0 0 12px}
.app{display:flex;flex-wrap:wrap;min-height:100vh;align-items:flex-start}
.side{flex:1 1 210px;max-width:240px;padding:24px 16px;display:flex;flex-direction:column;gap:2px}
.side .brand{font-weight:700;font-size:17px;padding:0 10px 20px}
.side a{text-decoration:none;color:#3D424B;padding:9px 10px;border-radius:8px;display:flex;justify-content:space-between}
.side a.on{background:var(--soft);color:#0F3D2E;font-weight:600}
.side .count{background:#fff;border-radius:999px;padding:0 8px;font-size:12px;font-weight:600}
.side form{margin-top:18px}
.main{flex:999 1 560px;min-width:0;padding:24px 28px 48px;display:flex;flex-direction:column;gap:18px}
.sub{color:var(--muted);margin:0}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}
.kpi .l{color:var(--muted);font-size:13px}.kpi .v{font-size:26px;font-weight:700;margin-top:4px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.between{justify-content:space-between}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--accent);color:#fff;padding:10px 16px;border-radius:10px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;min-height:40px}
.btn:hover{background:var(--accent-d);color:#fff}
.btn.sec{background:#fff;color:var(--ink);border:1px solid #D5D7D2}
.btn.sec:hover{background:#F1F1ED;color:var(--ink)}
.btn.warn{background:#fff;color:#8A2A1B;border:1px solid #E5C7C1}
.btn.small{padding:6px 10px;min-height:32px;font-size:13px}
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#EEEEEA;color:#3D424B;white-space:nowrap}
.s-vorschlag{background:#EEEEEA;color:#3D424B}.s-warteschlange{background:#EEF2FB;color:#1F3270}.s-freigabe{background:#FCF0DC;color:#7A4A06}
.s-gesendet{background:#E7EEF8;color:#1F4C86}.s-angesehen{background:#FFF3D6;color:#6B4A00}.s-angenommen{background:#E8F0FB;color:#2B3F9E}
.s-live{background:#E2F1EA;color:#0F5A41}.s-verloren{background:#F6E5E2;color:#8A2A1B}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid #D5D7D2;background:#fff;color:#3D424B;padding:6px 12px;border-radius:999px;text-decoration:none;font-size:13px}
.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:8px 10px;border-bottom:1px solid var(--line)}
td{padding:10px;border-bottom:1px solid #EEEEEA;vertical-align:top}
tr:hover td{background:#FAFAF8}
.scroll{overflow-x:auto}
label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
input,select,textarea{font:inherit;font-weight:400;border:1px solid #D5D7D2;border-radius:9px;padding:9px 11px;background:#fff;color:var(--ink);width:100%}
textarea{min-height:120px;resize:vertical}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.flash{padding:12px 14px;border-radius:10px;font-weight:500}
.flash.ok{background:#E2F1EA;color:#0F5A41}.flash.err{background:#F6E5E2;color:#8A2A1B}.flash.warn{background:#FCF0DC;color:#7A4A06}
.muted{color:var(--muted)}.small{font-size:12px}
.leads{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.lead{display:flex;flex-direction:column;gap:9px}
.tag{font-size:12px;border-radius:999px;padding:2px 9px;font-weight:600}
.banner{background:#EEF2FB;border:1px solid #D3DCF2;border-radius:12px;padding:12px 16px;color:#1F3270}
iframe.preview{width:100%;height:560px;border:1px solid #D5D7D2;border-radius:10px;background:#fff}
.timeline div{padding:6px 0;border-bottom:1px solid #EEEEEA;font-size:13px}
code{background:#F1F1ED;padding:2px 6px;border-radius:6px;font-size:12px;word-break:break-all}
.login{max-width:380px;margin:12vh auto;padding:0 20px}
pre{white-space:pre-wrap;font-size:12px;background:#F6F6F3;padding:12px;border-radius:8px;max-height:320px;overflow:auto}
