:root {
  --pl-red: #8b0002;
  --pl-red-dark: #6d0001;
  --pl-red-soft: #f6e9e9;
  --navy: #1b1c20;
  --navy-soft: #2c2d31;
  --ink: #1b1c20;
  --muted: #69686d;
  --bg: #f4f4f5;
  --panel: #ffffff;
  --line: #dedee1;
  --line-strong: #aeafb3;
  --success: #1f6b45;
  --success-soft: #e9f2ed;
  --warning: #7a5a00;
  --warning-soft: #fbf3dd;
  --danger: #a3160f;
  --danger-soft: #f8e9e8;
  --shadow: 0 18px 45px rgba(27, 28, 32, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "ZapfHumanstPL", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
}

a {
  color: var(--pl-red);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pl-red-dark);
}

code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--pl-red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
  padding-top: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
}

.brand-divider {
  width: 1px;
  height: 40px;
  background: var(--line-strong);
}

.brand-text {
  display: grid;
  gap: 0.15rem;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.top-nav a {
  color: var(--navy);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--pl-red);
}

.nav-form {
  display: inline-flex;
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pl-red);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover {
  color: var(--pl-red-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 250px);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.auth-intro {
  max-width: 670px;
}

.eyebrow,
.card-kicker {
  margin-bottom: 0.65rem;
  color: var(--pl-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.accent {
  color: var(--pl-red);
}

.lead {
  max-width: 64ch;
  margin-bottom: 1.4rem;
  color: #3c3d41;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.lead--compact {
  margin-bottom: 0;
  font-size: 1rem;
}


.feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.8rem 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #3c3d41;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 2px;
  background: var(--pl-red);
  transform: rotate(45deg);
}

.auth-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.auth-card--wide {
  max-width: 780px;
  margin-inline: auto;
}

.auth-card h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.demo-banner {
  display: grid;
  gap: 0.15rem;
  margin: 1rem 0 1.2rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e8c76b;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #5b4300;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.demo-banner strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.form label {
  margin-top: 0.55rem;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.form input:focus {
  outline: none;
  border-color: var(--pl-red);
  box-shadow: 0 0 0 3px rgba(139, 0, 2, 0.14);
}

.form .btn {
  margin-top: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.link-button:focus-visible,
.top-nav a:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(139, 0, 2, 0.25);
  outline-offset: 2px;
}

.btn--primary {
  border-color: var(--pl-red);
  background: var(--pl-red);
  color: #fff;
}

.btn--primary:hover {
  border-color: var(--pl-red-dark);
  background: var(--pl-red-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  border-color: #84120c;
  background: #84120c;
  color: #fff;
}

.btn--success {
  border-color: #17603c;
  background: var(--success);
  color: #fff;
}

.btn--success:hover {
  border-color: #124b2f;
  background: #124b2f;
  color: #fff;
}

.btn--small {
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  font-size: 0.83rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  border-color: var(--line);
  background: #efeff0;
  color: #8d8d92;
  cursor: not-allowed;
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.form-note,
.security-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.security-note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.alert--success {
  border-color: #a8d9bd;
  background: var(--success-soft);
  color: #145536;
}

.alert--error {
  border-color: #f0b4ae;
  background: var(--danger-soft);
  color: #8c1a11;
}

.alert--warning {
  border-color: #e8c76b;
  background: var(--warning-soft);
  color: #664700;
}

.narrow-main {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.status-icon--mail {
  background: var(--pl-red);
  font-size: 1.7rem;
}

.status-icon--success {
  background: var(--success);
  font-size: 1rem;
}

.status-icon--error {
  background: var(--danger);
  font-size: 1rem;
}

.dashboard-main {
  padding-block: clamp(2.2rem, 5vw, 4rem);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.page-head h1 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.page-head .lead {
  max-width: none;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.3rem;
}

.dashboard-grid--single {
  grid-template-columns: 1fr;
}

.accounts-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.panel {
  padding: clamp(1.15rem, 2.4vw, 1.7rem);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.panel-head h2 {
  margin-bottom: 0;
}

.panel-copy {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-tag--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.panel-tag--success {
  background: var(--success-soft);
  color: var(--success);
}

.table-wrap {
  overflow-x: auto;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lab-table th,
.lab-table td {
  padding: 0.72rem 0.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.lab-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lab-table tbody th {
  font-weight: 600;
}

.panel--block .lab-table,
.panel--wikamp .lab-table {
  table-layout: fixed;
}

.panel--block .lab-table th:first-child,
.panel--block .lab-table td:first-child,
.panel--wikamp .lab-table th:first-child,
.panel--wikamp .lab-table td:first-child {
  width: 35%;
}

.panel--block .lab-table th:last-child,
.panel--block .lab-table td:last-child,
.panel--wikamp .lab-table th:last-child,
.panel--wikamp .lab-table td:last-child {
  width: 35%;
  text-align: right;
}

.panel--block .lab-table th:nth-child(2),
.panel--block .lab-table td:nth-child(2),
.panel--wikamp .lab-table th:nth-child(2),
.panel--wikamp .lab-table td:nth-child(2) {
  width: 30%;
  text-align: center;
}

.lab-code {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.lab-name {
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

.badge--blocked {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--unblocked {
  background: var(--success-soft);
  color: var(--success);
}

.badge--unknown {
  background: #efeff0;
  color: #69686d;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.shortcuts {
  margin-top: 0;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.shortcut {
  display: grid;
  gap: 0.18rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbfc;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.shortcut:hover {
  border-color: var(--pl-red);
  background: #fff;
  color: var(--navy);
  transform: translateY(-1px);
}

.shortcut--primary {
  border-color: var(--pl-red);
  background: var(--pl-red);
  color: #fff;
}

.shortcut--primary:hover {
  background: var(--pl-red-dark);
  color: #fff;
}

.shortcut-label {
  font-weight: 800;
}

.shortcut-url {
  color: var(--muted);
  font-size: 0.8rem;
}

.shortcut--primary .shortcut-url {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 3rem;
  border-top: 4px solid var(--pl-red);
  background: var(--panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: 2.2rem;
}

.footer-title {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-text a {
  color: var(--navy);
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--pl-red);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 920px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
  }

  .auth-intro {
    max-width: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding-block: 0.9rem;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-bottom: 0.2rem;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-divider {
    height: 34px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text span {
    display: none;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .shortcut-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }

  .lab-table th,
  .lab-table td {
    padding: 0.65rem 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.links-panel {
  margin-bottom: 1.3rem;
}

.link-groups {
  display: grid;
  gap: 1.5rem;
}

.link-group-title {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 0.7rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbfc;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.link-card:hover {
  border-color: var(--pl-red);
  background: #fff;
  color: var(--navy);
  transform: translateY(-1px);
}

.link-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f2f2f3;
}

.link-card-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.link-card-body {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.link-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.link-card-desc {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .link-grid {
    grid-template-columns: 1fr;
  }
}

.phone-toolbar {
  margin-bottom: 1rem;
}

.phone-search {
  width: 100%;
  max-width: 460px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.phone-search:focus {
  outline: none;
  border-color: var(--pl-red);
  box-shadow: 0 0 0 3px rgba(139, 0, 2, 0.14);
}

.phone-table td:first-child {
  width: 90px;
}

.phone-room {
  display: inline-flex;
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 7px;
  background: #f0f0f1;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accounts-form {
  max-width: none;
}

.email-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.email-chips:focus-within {
  border-color: var(--pl-red);
  box-shadow: 0 0 0 3px rgba(139, 0, 2, 0.14);
}

.email-chip-list {
  display: contents;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.28rem 0.3rem 0.28rem 0.6rem;
  border-radius: 999px;
  background: #f0f0f1;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.email-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-chip-remove {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(139, 0, 2, 0.08);
  color: var(--pl-red);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.email-chip-remove:hover,
.email-chip-remove:focus-visible {
  background: rgba(139, 0, 2, 0.12);
  color: var(--pl-red);
  outline: none;
}

.accounts-form .email-chip-input {
  flex: 1 1 12rem;
  width: auto;
  min-width: 9rem;
  padding: 0.3rem 0.15rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.accounts-form .email-chip-input:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-hint--error {
  color: #a11b1e;
  font-weight: 600;
}

.accounts-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  font-weight: 600;
}

.accounts-form .checkbox-row input {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--pl-red);
}

.job-log {
  min-height: 9rem;
  max-height: 32rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #111820;
  color: #e7edf5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.job-log:empty::before {
  content: 'Brak danych.';
  color: #8b97a6;
}

.accounts-status {
  position: sticky;
  top: 1rem;
}

.accounts-form .form-field {
  display: grid;
  gap: 0.35rem;
}

.accounts-form .form-field label,
.accounts-form .mode-card,
.accounts-form .mode-cards legend {
  margin-top: 0;
}

.required-mark {
  color: var(--danger);
}

.optional {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 400;
}

.callout {
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pl-red);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.callout strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy);
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.mode-cards {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-cards legend {
  padding: 0;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.accounts-form .mode-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.accounts-form .mode-card:hover {
  border-color: var(--line-strong);
}

.accounts-form .mode-card.is-active {
  border-color: var(--pl-red);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(139, 0, 2, 0.1);
}

.accounts-form .mode-card input[type="radio"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.18rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--pl-red);
}

.mode-card-body {
  display: grid;
  gap: 0.15rem;
}

.mode-card-body strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.mode-card-body small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
}

.form-summary {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7f8fa;
}

.form-summary-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#accounts-summary {
  color: var(--navy);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.form-actions .btn {
  margin-top: 0;
}

.job-empty {
  padding: 1.2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: var(--muted);
  text-align: center;
}

.job-empty strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy);
}

.job-empty p {
  margin: 0;
  font-size: 0.85rem;
}

.job-progress {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.job-progress-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.job-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.job-progress-bar {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: var(--pl-red);
  animation: job-progress 1.3s ease-in-out infinite;
}

@keyframes job-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.job-meta {
  margin: 0.5rem 0 0;
}

.accounts-status .job-log {
  min-height: 12rem;
  margin-top: 0.75rem;
  border-color: #2a3440;
  background: #0f1720;
}

.accounts-status .job-log:empty::before {
  content: 'Log pojawi się po uruchomieniu zadania.';
}

@media (max-width: 920px) {
  .accounts-status {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-progress-bar {
    width: 100%;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.email-field {
  position: relative;
}

.email-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 16rem;
  padding: 0.3rem;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
}

.email-suggestion {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.email-suggestion:hover,
.email-suggestion.is-active,
.email-suggestion:focus-visible {
  background: var(--pl-red-soft);
  outline: none;
}

.email-suggestion strong {
  color: var(--navy);
  font-size: 0.85rem;
  line-height: 1.3;
}

.email-suggestion small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}


.wizard {
  max-width: 58rem;
  margin: 0 auto;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  padding: 0;
  list-style: none;
}

.wizard-step {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.wizard-separator {
  flex: 0 1 3rem;
  height: 1px;
  min-width: 1.5rem;
  background: var(--line);
}

.wizard-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.wizard-step-label {
  white-space: nowrap;
}

.wizard-step.is-active .wizard-step-number {
  border-color: var(--pl-red);
  background: var(--pl-red);
  color: #fff;
}

.wizard-step.is-active .wizard-step-label {
  color: var(--navy);
}

.wizard-step.is-done .wizard-step-number {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.wizard-step.is-done .wizard-step-label {
  color: var(--success);
}

.wizard-step.is-error .wizard-step-number {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

#wizard-step-1 .callout,
#wizard-step-1 .accounts-form,
#wizard-step-1 .security-note {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

#wizard-step-1 .accounts-form {
  max-width: 31.5rem;
}

.wizard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.wizard-summary div {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.wizard-summary dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-summary dd {
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.wizard-actions .btn {
  margin-top: 0;
}

.wizard-details {
  margin-top: 1rem;
}

.wizard-details summary {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.wizard-details .job-log {
  margin-top: 0.6rem;
}

.wizard-success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 1.6rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .wizard-steps {
    gap: 0.8rem;
  }

  .wizard-separator {
    display: none;
  }

  .wizard-step {
    gap: 0.35rem;
    font-size: 0.75rem;
  }

  .wizard-step-number {
    flex-basis: 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.78rem;
  }

  .wizard-summary {
    grid-template-columns: 1fr;
  }
}

.lab-password-change-panel,
.lab-passwords-picker-panel,
.lab-passwords-panel {
  margin-bottom: 1.3rem;
}

.lab-passwords-picker,
.lab-password-form {
  max-width: 31.5rem;
  margin-inline: auto;
}

.form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form select:focus {
  outline: none;
  border-color: var(--pl-red);
  box-shadow: 0 0 0 3px rgba(139, 0, 2, 0.14);
}

#lab-passwords-table td code {
  font-size: 0.86rem;
}

.admin-group-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f0b4ae;
  border-left: 4px solid var(--pl-red);
  border-radius: var(--radius-sm);
  background: var(--pl-red-soft);
  color: var(--ink);
}

.admin-group-badge {
  display: grid;
  place-items: center;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--pl-red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.admin-group-body {
  min-width: 0;
}

.admin-group-title {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.admin-group-groups {
  display: inline;
  color: var(--pl-red-dark);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.admin-group-labs {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-group-labs strong {
  color: var(--navy);
}

.admin-group-labs .admin-group-user {
  color: var(--pl-red-dark);
  font-weight: 800;
}

.admin-group-labs .admin-group-names {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--pl-red-dark);
  font-weight: 800;
}

.upload-form {
  max-width: 31.5rem;
  margin-inline: auto;
}

.password-rules {
  max-width: 42rem;
  margin: 0 auto 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pl-red);
  border-radius: var(--radius-sm);
  background: #f8f8f9;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.65;
}

.password-form {
  max-width: 23.625rem;
  margin-inline: auto;
}

.account-field {
  display: flex;
  align-items: stretch;
}

.account-field input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.account-prefix {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.7rem;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #f7f8fa;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.password-note {
  max-width: 42rem;
  margin-inline: auto;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 5.2rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pl-red);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(139, 0, 2, 0.25);
  outline-offset: 1px;
}

.password-rules [data-rule] {
  color: var(--navy);
  font-weight: 600;
  transition: color 120ms ease;
}

.password-rules .is-met {
  color: var(--success);
  font-weight: 600;
}

.action-hint {
  max-width: 13rem;
  margin: 0.35rem 0 0 auto;
  white-space: normal;
  text-align: right;
}

.audit-filters {
  display: grid;
  grid-template-columns: minmax(10rem, 1.2fr) minmax(10rem, 1fr) minmax(8rem, 0.7fr) auto;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.audit-filters label {
  display: grid;
  gap: 0.3rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.audit-filters input,
.audit-filters select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audit-filter-actions .btn {
  margin-top: 0;
}

.audit-table {
  table-layout: fixed;
}

.audit-table th,
.audit-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 15%;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  width: 11%;
}

.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
  width: 12%;
}

.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
  width: 9%;
}

.audit-table th:nth-child(5),
.audit-table td:nth-child(5) {
  width: 6%;
}

.audit-table th:nth-child(6),
.audit-table td:nth-child(6) {
  width: 35%;
}

.audit-table th:nth-child(7),
.audit-table td:nth-child(7) {
  width: 12%;
}

.audit-time {
  color: var(--muted);
  font-size: 0.82rem;
}

.audit-detail {
  white-space: normal !important;
}

.audit-ip {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.audit-result {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.audit-result--success {
  background: var(--success-soft);
  color: var(--success);
}

.audit-result--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.audit-result--neutral {
  background: #efeff0;
  color: #69686d;
}

@media (max-width: 920px) {
  .audit-filters {
    grid-template-columns: 1fr;
  }
}

.confirm-dialog {
  width: min(30rem, calc(100% - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.28);
}

.confirm-dialog::backdrop {
  background: rgba(23, 32, 51, 0.55);
}

.confirm-dialog-body {
  padding: clamp(1.35rem, 3vw, 1.9rem);
}

.confirm-dialog h2 {
  margin-bottom: 0.55rem;
}

.confirm-dialog-text {
  margin-bottom: 1.4rem;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.confirm-field input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.confirm-hint {
  margin: 0.2rem 0 1.2rem;
}

.blocked-by {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: normal;
}

.auto-unblock {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: normal;
}

.schedule-edit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.schedule-edit-form input[name="unblockAt"] {
  width: 4.6rem;
  min-height: 32px;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.schedule-edit-form .time-picker-trigger {
  min-height: 32px;
  margin-top: 0;
}

.schedule-edit-form input[readonly] {
  background: #f8f8f9;
  cursor: default;
}


.time-hour-select,
.time-minute-select {
  width: 5.2rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
}

.confirm-field .time-hour-select,
.confirm-field .time-minute-select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
}

.schedule-edit-form .btn {
  min-height: 28px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
}

.time-picker-dialog {
  width: min(20rem, calc(100% - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.28);
}

.time-picker-dialog::backdrop {
  background: rgba(23, 32, 51, 0.55);
}

.time-picker-body {
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.time-picker-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.9rem 0;
}

.time-picker-columns h3 {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-picker-list {
  max-height: 10rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.time-picker-option {
  display: block;
  width: 100%;
  padding: 0.35rem 0.3rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}

.time-picker-option:hover,
.time-picker-option.is-selected {
  background: var(--pl-red);
  color: #fff;
}

.time-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.time-picker-trigger {
  margin-top: 0.35rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.time-picker-trigger:hover {
  border-color: var(--pl-red);
  color: var(--pl-red);
}

.confirm-field .time-picker-trigger {
  justify-self: center;
  width: auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

#block-unblock-at {
  border-color: var(--pl-red);
  background: #fffafa;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
}

.confirm-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.protocols-table {
  min-width: 0;
  table-layout: fixed;
}

.protocols-table td,
.protocols-table th {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.protocol-description {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.protocols-table .protocol-col-actions {
  text-align: center;
}

.protocols-table .license-actions {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.3rem;
}

.protocols-table .license-actions .btn {
  white-space: nowrap;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.protocol-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.content-link-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

.content-icon-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-icon-preview input[type="file"] {
  flex: 1 1 auto;
}

.license-form .form-field {
  display: grid;
  gap: 0.35rem;
}

.license-form .form-field label {
  margin-top: 0;
}

.license-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.license-form textarea:focus {
  outline: none;
  border-color: var(--pl-red);
  box-shadow: 0 0 0 3px rgba(139, 0, 2, 0.14);
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.license-table {
  min-width: 62rem;
}

.license-attachments-table {
  margin-top: 1rem;
}

.form input[type="file"] {
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.upload-file-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--navy);
  font-size: 0.88rem;
}

body.has-side-nav .site-header .container,
body.has-side-nav .site-footer .container {
  width: min(1169px, calc(100% - 2.5rem));
}

.panel-shell {
  display: flex;
  align-items: flex-start;
  width: min(1169px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.panel-shell > main.container {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.5rem);
}

.side-nav {
  position: sticky;
  top: 1rem;
  flex: 0 0 15rem;
  align-self: flex-start;
  max-height: calc(100vh - 2rem);
  margin: clamp(2.2rem, 5vw, 4rem) 0 1.5rem 1.25rem;
  padding: 0.9rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.side-nav-user {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.5rem 0.8rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.side-nav-user-name {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.side-nav-user-login {
  display: inline-flex;
  align-self: start;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--pl-red-soft);
  color: var(--pl-red-dark);
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.side-nav-user-login strong {
  font-weight: 800;
}

.side-nav-links {
  display: grid;
  gap: 0.15rem;
}

.side-nav-heading {
  margin: 0.65rem 0.5rem 0.15rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.side-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.side-nav-link:hover {
  background: var(--pl-red-soft);
  color: var(--pl-red-dark);
}

.side-nav-link.is-active {
  background: var(--pl-red);
  color: #fff;
}

.side-nav-logout {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.side-nav-logout-button {
  color: var(--pl-red);
}

@media (max-width: 920px) {
  .panel-shell {
    display: block;
    width: auto;
    margin: 0;
  }

  .panel-shell > main.container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.25rem;
  }

  .side-nav {
    position: static;
    width: auto;
    max-height: none;
    margin: 1rem 1.25rem 0;
    padding: 0.75rem;
    overflow: visible;
  }

  .side-nav-user {
    display: none;
  }

  .side-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .side-nav-heading {
    flex: 0 0 100%;
    margin: 0.5rem 0 0.1rem;
  }

  .side-nav-link {
    width: auto;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
  }

  .side-nav-logout {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }
}

@media (min-width: 921px) {
  body.audit-page .site-header .container,
  body.audit-page .site-footer .container,
  body.audit-page .panel-shell,
  body.licenses-page .site-header .container,
  body.licenses-page .site-footer .container,
  body.licenses-page .panel-shell {
    width: min(1480px, calc(100% - 2.5rem));
  }
}

.license-table.protocols-table {
  min-width: 0;
}

.protocols-table th.protocol-col-id,
.protocols-table td.protocol-col-id {
  width: 12%;
}

.protocols-table th.protocol-col-inventory,
.protocols-table td.protocol-col-inventory {
  width: 16%;
}

.protocols-table th.protocol-col-date,
.protocols-table td.protocol-col-date {
  width: 11%;
}

.protocols-table th.protocol-col-owner,
.protocols-table td.protocol-col-owner {
  width: 14%;
}

.protocols-table--admin th.protocol-col-description,
.protocols-table--admin td.protocol-col-description {
  width: 29%;
}

.protocols-table--admin th.protocol-col-actions,
.protocols-table--admin td.protocol-col-actions {
  width: 18%;
}

.protocols-table--user th.protocol-col-description,
.protocols-table--user td.protocol-col-description {
  width: 41%;
}

.protocols-table--user th.protocol-col-actions,
.protocols-table--user td.protocol-col-actions {
  width: 20%;
}
