:root { font-family: system-ui, sans-serif; }
body { margin: 0; background: #f4f5f7; color: #1e293b; }
header { background: #2f3b4b; color: #fff; padding: .8rem 1.2rem; display: flex; align-items: baseline; gap: .8rem; }
header h1 { font-size: 1.1rem; margin: 0; }
#who { opacity: .7; font-size: .85rem; }
.card { background: #fff; border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { margin: 0 0 .6rem; font-size: 1rem; }
.toolbar { margin: 1rem 1rem 0; display: flex; gap: .5rem; }
button { border: 0; border-radius: 999px; padding: .4rem .9rem; background: #2f3b4b; color: #fff; cursor: pointer; }
button:hover { filter: brightness(1.1); }
input { display: block; margin: .4rem 0; padding: .5rem; width: 16rem; border: 1px solid #cbd5e1; border-radius: 8px; }
.error { color: #b91c1c; }
.hidden { display: none; }
.row { padding: .35rem 0; border-bottom: 1px solid #eef0f3; }
code { background: #f1f5f9; padding: .05rem .3rem; border-radius: 4px; font-size: .85em; }

/* Aktive Instanzen als Tabelle */
.table-wrap { overflow-x: auto; }
.inst-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.inst-table th, .inst-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.inst-table th { font-weight: 600; color: #475569; white-space: nowrap; background: #f8fafc; }
.inst-table input, .inst-table select { display: inline-block; width: auto; margin: 0; padding: .25rem .4rem; font-size: .82rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.inst-table input.lic-plan, .inst-table input.lic-features, .inst-table input.lic-notes { width: 8rem; }
.inst-table input.lic-seats { width: 4.5rem; }
.inst-table input.lic-valid-until { width: 9rem; }
.inst-table .muted { color: #94a3b8; font-size: .78rem; }
.inst-table .nowrap { white-space: nowrap; }
.inst-table .nowrap button { padding: .25rem .55rem; font-size: .78rem; margin: .05rem; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef9c3; color: #854d0e; }
.events-row > td { background: #f8fafc; }
.event-row { font-size: .8rem; color: #475569; padding: .1rem 0; }

/* Paket-Upload */
.hint { color: #94a3b8; font-size: .8rem; margin: .3rem 0 0; }
.pkg-upload { display: inline-flex; align-items: center; gap: .5rem; vertical-align: middle; }
.pkg-upload progress { width: 12rem; height: .9rem; }
#pkg-pct { font-size: .8rem; color: #475569; }
