/* Logowanie i panel administratora: te same tokeny co aplikacja, jedna kolumna, duże CTA. */
html, body { height: auto; min-height: 100%; overflow: auto; }
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.auth-card .logo { height: 17px; width: auto; align-self: flex-start; margin-bottom: 20px; }
.auth-card h1 { font-size: var(--t-3xl); letter-spacing: -0.03em; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-2); font-size: var(--t-sm); }
.auth-card .field input, .adm .field input, .adm select {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--surface); width: 100%;
}
.auth-card .field input:focus, .adm .field input:focus { border-color: var(--ink); }
.auth-err { color: var(--danger); font-size: var(--t-sm); min-height: 1.2em; }
.cta { cursor: pointer; }

.adm { max-width: 1180px; margin: 0 auto; padding: 20px 16px 64px; display: flex; flex-direction: column; gap: 16px; }
.adm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-top img { height: 17px; width: auto; }
.adm-top .gap { flex: 1; }
.adm h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--rule); }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.bar .field { margin: 0; min-width: 130px; }
.bar .field input, .bar .field select { min-height: 40px; }
.card { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.t th, .t td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.t th { position: sticky; top: 0; background: var(--surface-2); font-weight: 500; color: var(--ink-2); }
.t th:first-child, .t td:first-child, .t th:nth-child(2), .t td:nth-child(2) { text-align: left; }
.t tr:last-child td { border-bottom: 0; }
.t tfoot td { font-weight: 500; background: var(--surface-2); }
.warn { color: var(--danger); font-weight: 500; white-space: normal; text-align: left; }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-3); font-size: var(--t-xs); }
.pill.bad { background: #fde8e6; color: var(--danger); }
.note { color: var(--ink-3); font-size: var(--t-sm); }
.invite-box { padding: 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--lime-soft); word-break: break-all; font-size: var(--t-sm); }
.row-btn { min-height: 32px; padding: 0 10px; font-size: var(--t-sm); }
@media (max-width: 640px) { .auth-card h1 { font-size: var(--t-2xl); } }
