:root { --bg: #06070a; --card: #0a0c11; --line: rgba(255,255,255,.08); --muted: rgba(255,255,255,.55); --accent: #67effc; --pink: #f500d1;
  --grad: linear-gradient(118deg, #f500d1 0%, #a82ae6 48%, #67effc 100%); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #fff; font: 14px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--accent); }
.loading { padding: 40px; color: var(--muted); }
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
aside { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
aside img { width: 130px; margin: 0 6px 18px; }
aside a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 10px; display: flex; justify-content: space-between; }
aside a:hover { color: #fff; background: rgba(255,255,255,.04); }
aside a.on { color: #fff; background: rgba(255,255,255,.07); }
aside .badge { background: var(--pink); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; }
aside .me { margin-top: auto; color: var(--muted); font-size: 12px; padding: 10px 12px; }
main { padding: 28px 32px 60px; max-width: 1200px; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.layout > aside { min-width: 0; }
h1 { font: 600 26px Sora, Inter, sans-serif; margin: 0 0 20px; letter-spacing: -.02em; }
h2 { font: 600 17px Sora, Inter, sans-serif; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card .k { color: var(--muted); font: 500 10px "JetBrains Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }
.card .v { font: 600 24px Sora, sans-serif; margin-top: 6px; }
.pos { color: var(--accent); } .neg { color: #ff6b8b; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bars .m { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bars .pair { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars .b { width: 12px; border-radius: 4px 4px 0 0; background: var(--accent); }
.bars .b.e { background: var(--pink); }
.bars small { color: var(--muted); font-size: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
input, select, textarea { background: #0e1118; color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); }
button { background: rgba(255,255,255,.07); color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 500 13px Inter, sans-serif; cursor: pointer; }
button:hover { background: rgba(255,255,255,.12); }
button.primary { background-image: var(--grad); border: 0; }
button.danger { color: #ff8aa5; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 500 11px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: rgba(255,255,255,.03); }
.pill { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; background: rgba(255,255,255,.08); }
.pill.neu, .pill.offen { background: rgba(245,0,209,.18); color: #ffb3f1; }
.pill.bezahlt, .pill.angenommen, .pill.erledigt { background: rgba(103,239,252,.15); color: var(--accent); }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.detail dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 0 0 14px; }
.detail dt { color: var(--muted); } .detail dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.muted { color: var(--muted); }
.login { max-width: 380px; margin: 12vh auto; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 12px; }
.login img { width: 150px; margin-bottom: 8px; }
.err { color: #ff8aa5; min-height: 1.2em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.grid2 label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.linkbox { word-break: break-all; background: #0e1118; border: 1px dashed var(--accent); padding: 10px; border-radius: 10px; margin-top: 10px; }
.login.wide { max-width: 460px; margin-top: 6vh; }
.login img.qr { width: 220px; height: 220px; margin: 4px auto; background: #fff; border-radius: 12px; padding: 6px; image-rendering: pixelated; }
.login code.linkbox { font: 600 14px "JetBrains Mono", monospace; letter-spacing: .08em; text-align: center; margin-top: 0; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes code { font: 600 15px "JetBrains Mono", monospace; background: #0e1118; border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; }
tr.warn td { background: rgba(255,107,139,.08); }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } aside { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  aside img { display: none; } main { padding: 18px; } .detail dl { grid-template-columns: 1fr; } table { font-size: 13px; } }
