:root {
  --page-max: 1440px;
  --page-half: 720px;
  --page-gutter: 17px;
  --bg: #0b0d12;
  --panel: rgba(18, 21, 30, .88);
  --panel2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --text: #f5f7fb;
  --muted: #aeb6c8;
  --orange: #f28c28;
  --orange2: #ffb15f;
  --red: #ff5d5d;
  --green: #41d17d;
  --blue: #66a6ff;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
.wrap { width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2))); margin: 0 auto; }
.nav,
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 14px max(var(--page-gutter), calc(50vw - var(--page-half)));
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: rgba(11, 13, 18, .82);
  box-shadow: 0 20px 60px rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  margin-top: 0;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .4px; }
.logo-mark {
  width: 58px; height: 58px; border-radius: 0;
  display: grid; place-items: center;
  background: transparent;
  color: #1a1008; font-weight: 1000;
  box-shadow: none;
}
.logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.nav a, .actions a, .btn, button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 11px 15px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: .15s transform, .15s background, .15s border-color;
}
.nav a:hover, .actions a:hover, .btn:hover, button:hover { transform: translateY(-1px); border-color: rgba(242,140,40,.5); }
.btn-primary, button.primary { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1b1008; border: 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
h1 { font-size: clamp(34px, 5vw, 66px); line-height: .95; margin: 18px 0; letter-spacing: -2px; }
p { color: var(--muted); line-height: 1.65; }
.side { padding: 26px; }
.side h2, .card h2 { margin: 0 0 12px; }
.list { display: grid; gap: 12px; margin-top: 18px; }
.item { padding: 15px; background: var(--panel2); border: 1px solid var(--border); border-radius: 18px; }
.form-section { padding: 28px 0 56px; }
.card { padding: 28px; }
.grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
label { display: grid; gap: 8px; color: #dfe5f2; font-weight: 800; font-size: 14px; }
.required-mark { color: var(--red); }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); background: #0f131b;
  color: var(--text); border-radius: 15px; padding: 13px 14px; outline: none;
  font: inherit;
  font-weight: 400;
  color-scheme: dark;
}
select option {
  background: #0f131b;
  color: #f5f7fb;
  font-weight: 400;
}
select option:checked,
select option:focus,
select option:active {
  background: #0f131b !important;
  color: #fff;
}
select option:hover {
  background: #181d27;
  color: #fff;
}
input::placeholder, textarea::placeholder {
  color: #fff;
  opacity: 1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f7fb;
  box-shadow: 0 0 0 1000px #20242f inset;
  caret-color: #f5f7fb;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(242,140,40,.75); box-shadow: 0 0 0 4px rgba(242,140,40,.12); }
.full { grid-column: 1 / -1; }
.rank-notice {
  color: #fff;
  font-weight: 400;
}
.alert { padding: 14px 16px; border-radius: 16px; margin: 14px 0; border: 1px solid var(--border); }
.alert.ok { background: rgba(65,209,125,.12); border-color: rgba(65,209,125,.35); }
.alert.err { background: rgba(255,93,93,.12); border-color: rgba(255,93,93,.35); }
.generated-password code {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
}
.small { color: var(--muted); font-size: 13px; }
.admin-layout { padding: 0 0 60px; }
.topbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.table-wrap { overflow:auto; border-radius: 20px; border: 1px solid var(--border); }
table { width:100%; border-collapse: collapse; min-width: 860px; background: rgba(18,21,30,.86); }
th, td { text-align:left; padding: 14px; border-bottom:1px solid var(--border); vertical-align: top; }
th { color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.06em; }
.status { display:inline-block; padding:7px 10px; border-radius:999px; font-weight:900; font-size:12px; }
.status.Nowe { background:rgba(102,166,255,.16); color:#9dc2ff; }
.status.Sprawdzane { background:rgba(242,140,40,.16); color:#ffc487; }
.status.Przyjete { background:rgba(65,209,125,.16); color:#80e5aa; }
.status.Odrzucone { background:rgba(255,93,93,.16); color:#ff9b9b; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.actions form { margin:0; }
.management-card { margin-bottom:18px; }
.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.status-actions {
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
}
.status-actions .status {
  white-space: nowrap;
}
.compact-grid {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.compact-grid button {
  min-height: 48px;
}
.recruitment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.chip-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
}
.chip-label {
  color: #fff;
  padding: 0 4px;
}
.admin-user-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.admin-user-item,
.admin-reset-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-user-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel2);
}
.admin-user-item form {
  margin: 0;
}
.admin-reset-form {
  flex: 1 1 360px;
}
.admin-reset-form label {
  flex: 1 1 220px;
}
.small-button {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.question-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.question-form {
  grid-template-columns: minmax(260px, 1fr) 170px 170px 140px auto;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel2);
}
.question-form:first-of-type {
  margin-top: 12px;
}
.question-text {
  min-width: 0;
}
.check-label {
  align-self: center;
}
.check-label span {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #fff;
}
.danger { background: rgba(255,93,93,.14); color:#ffb1b1; }
pre.details { white-space: pre-wrap; font-family: inherit; color: var(--muted); margin: 0; }
.footer { text-align:center; color:var(--muted); padding: 22px 0 32px; }
.disabled-recruitment {
  min-height: calc(100vh - 118px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
}
.disabled-logo {
  width: clamp(120px, 22vw, 220px);
  height: auto;
}
.disabled-recruitment p {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width: 980px) { .question-form { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .grid, .compact-grid { grid-template-columns: 1fr; } .status-card { align-items: flex-start; flex-direction: column; } }
