
:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f2933; background: #f4f6f8; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #0f3554; color: #fff; padding: 0.75rem 1.25rem; }
.topbar .brand { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .user { font-size: 0.95rem; opacity: 0.9; }
main { max-width: 42rem; margin: 2rem auto; padding: 0 1rem; }
main.wide { max-width: 60rem; }
.card { background: #fff; border: 1px solid #d9e2ec; border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 1px 2px rgba(15, 53, 84, 0.08); margin-bottom: 1.5rem; }
.card-narrow { max-width: 28rem; margin: 2.5rem auto; }
h1 { margin: 0 0 0.75rem; font-size: 1.3rem; }
h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0 0 1rem; }
dt { font-weight: 600; color: #52606d; }
dd { margin: 0; word-break: break-all; }
label { display: block; font-weight: 600; margin: 1rem 0 0.25rem; }
a { color: #0f3554; }
input[type=email], input[type=text] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #9fb3c8; border-radius: 0.35rem; font-size: 1rem; }
button, .button { display: inline-block; margin-top: 1rem; padding: 0.55rem 1.1rem; border-radius: 0.35rem; border: 1px solid #0f3554; background: #0f3554; color: #fff; font-size: 1rem; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #16476c; }
.note { color: #52606d; font-size: 0.95rem; }
.error { border-left: 4px solid #c81e1e; padding: 0.25rem 0 0.25rem 1rem; color: #1f2933; }
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.75rem; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem; border-bottom: 1px solid #e3e8ee; }
th { color: #52606d; font-weight: 600; white-space: nowrap; }
td { word-break: break-word; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.78rem; border: 1px solid; white-space: nowrap; }
.badge-active { color: #1a7f37; border-color: #1a7f37; }
.badge-disabled { color: #9a6700; border-color: #9a6700; }
.badge-revoked { color: #c81e1e; border-color: #c81e1e; }
input[type=text] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #9fb3c8; border-radius: 0.35rem; font-size: 1rem; }
textarea { width: 100%; min-height: 5.5rem; padding: 0.5rem 0.75rem; border: 1px solid #9fb3c8; border-radius: 0.35rem; font: inherit; font-size: 0.95rem; resize: vertical; }
.fieldset { border: 1px solid #d9e2ec; border-radius: 0.35rem; margin: 1rem 0 0; padding: 0.35rem 0.75rem 0.6rem; }
.fieldset legend { font-weight: 600; font-size: 0.85rem; color: #52606d; padding: 0 0.35rem; }
.fieldset label { display: inline-block; font-weight: 400; margin: 0.35rem 1.1rem 0.15rem 0; }
.fieldset input[type=checkbox] { width: auto; margin: 0; vertical-align: middle; }
.key-box { width: 100%; min-height: 4.5rem; margin-top: 0.75rem; padding: 0.6rem 0.75rem; border: 2px solid #0f3554; border-radius: 0.35rem; background: #f7fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; resize: vertical; }
.field-label { margin: 0 0 0.5rem; }
.actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.actions .button { margin-top: 1rem; }
.button-secondary { background: #fff; color: #0f3554; }
.button-secondary:hover { background: #f0f4f8; }
/* Zużycie (karta 11): nawigacja miesięcy + wykres SVG + paski <meter>. */
.month-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; margin: 0 0 1rem; }
.month-nav .muted { color: #9fb3c8; }
.chart { display: block; width: 100%; height: auto; margin-top: 0.75rem; }
meter { width: 11rem; max-width: 100%; height: 1.05rem; vertical-align: middle; margin-right: 0.4rem; }
.over-quota { color: #c81e1e; font-weight: 600; }
.button-danger { background: #fff; color: #c81e1e; border-color: #c81e1e; }
.button-danger:hover { background: #fdeeee; }
.row-actions form { display: block; margin: 0; }
.row-actions button { margin: 0 0 0.3rem; padding: 0.2rem 0.6rem; font-size: 0.83rem; }
.row-actions .row-edit { display: block; margin-top: 0.4rem; font-size: 0.83rem; }
