.psbz-wrap,
.psbz-admin {
  --psbz-green: #027B32;
  --psbz-blue: #123D6A;
  --psbz-light: #F4F7F5;
  --psbz-border: #DCE3DD;
  --psbz-text: #1D2520;
  color: var(--psbz-text);
  font-family: inherit;
}

.psbz-wrap * ,
.psbz-admin * {
  box-sizing: border-box;
}

.psbz-hero {
  background: linear-gradient(135deg, var(--psbz-green), var(--psbz-blue));
  color: #fff;
  border-radius: 18px;
  padding: 34px;
  margin: 0 0 24px;
}

.psbz-hero h2 {
  color: #fff;
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.psbz-hero p {
  margin: 0;
  font-size: 17px;
}

.psbz-kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.psbz-section,
.psbz-card {
  background: #fff;
  border: 1px solid var(--psbz-border);
  border-radius: 16px;
  padding: 22px;
  margin: 0 0 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}

.psbz-card h2,
.psbz-card h3 {
  margin-top: 0;
}

.psbz-grid {
  display: grid;
  gap: 16px;
}

.psbz-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psbz-metric {
  background: var(--psbz-light);
  border: 1px solid var(--psbz-border);
  border-radius: 14px;
  padding: 18px;
}

.psbz-metric span {
  display: block;
  font-size: 13px;
  color: #526059;
  margin-bottom: 8px;
}

.psbz-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.psbz-form label,
.psbz-filter label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 10px;
}

.psbz-form input,
.psbz-form select,
.psbz-form textarea,
.psbz-filter input,
.psbz-filter select,
.psbz-status-form input,
.psbz-status-form select {
  width: 100%;
  border: 1px solid var(--psbz-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  margin-top: 6px;
}

.psbz-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.psbz-filter,
.psbz-inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.psbz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.psbz-btn,
.psbz-wrap button.psbz-btn,
.psbz-admin button.psbz-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--psbz-green);
  background: var(--psbz-green);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
}

.psbz-btn:hover,
.psbz-btn:focus {
  color: #fff;
  filter: brightness(.95);
}

.psbz-btn-secondary {
  background: var(--psbz-blue);
  border-color: var(--psbz-blue);
}

.psbz-btn-ghost {
  background: #fff;
  color: var(--psbz-green);
}

.psbz-btn-small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

.psbz-table-wrap {
  overflow-x: auto;
}

.psbz-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.psbz-table th,
.psbz-table td {
  border-bottom: 1px solid var(--psbz-border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.psbz-table th {
  background: var(--psbz-light);
  font-weight: 800;
}

.psbz-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.psbz-status-green {
  background: #E2F4EA;
  color: #05642D;
}

.psbz-status-yellow {
  background: #FFF5D9;
  color: #745000;
}

.psbz-status-red {
  background: #FFE1E1;
  color: #931616;
}

.psbz-status-gray {
  background: #ECEFF1;
  color: #37474F;
}

.psbz-status-form {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.psbz-notice {
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid var(--psbz-border);
}

.psbz-notice-success {
  background: #E2F4EA;
  border-color: #B9E1C8;
}

.psbz-notice-error {
  background: #FFE1E1;
  border-color: #FFC2C2;
}

.psbz-login {
  max-width: 420px;
}

.psbz-login .login-username,
.psbz-login .login-password,
.psbz-login .login-remember,
.psbz-login .login-submit {
  margin: 0 0 14px;
}

.psbz-login input[type="text"],
.psbz-login input[type="password"] {
  width: 100%;
  border: 1px solid var(--psbz-border);
  border-radius: 10px;
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .psbz-grid-3,
  .psbz-form-grid,
  .psbz-filter,
  .psbz-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .psbz-hero,
  .psbz-section,
  .psbz-card {
    border-radius: 14px;
    padding: 18px;
  }

  .psbz-grid-3,
  .psbz-form-grid,
  .psbz-filter,
  .psbz-inline-form {
    grid-template-columns: 1fr;
  }

  .psbz-actions {
    flex-direction: column;
  }

  .psbz-btn,
  .psbz-wrap button.psbz-btn,
  .psbz-admin button.psbz-btn {
    width: 100%;
  }
}

.psbz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--psbz-border);
  border-radius: 14px;
}

.psbz-auth {
  width: 100%;
}

.psbz-auth-window {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--psbz-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
}

.psbz-auth-window-small {
  max-width: 720px;
  padding: 24px;
}

.psbz-auth-head {
  background: linear-gradient(135deg, var(--psbz-green), var(--psbz-blue));
  color: #fff;
  padding: 30px;
}

.psbz-auth-head h2 {
  color: #fff;
  margin: 6px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.psbz-auth-head p {
  margin: 0;
}

.psbz-auth-grid {
  display: grid;
  grid-template-columns: .85fr 1fr 1fr;
  gap: 0;
}

.psbz-auth-card {
  padding: 24px;
  border-left: 1px solid var(--psbz-border);
}

.psbz-auth-card:first-child {
  border-left: 0;
}

.psbz-auth-card h3 {
  margin: 0 0 16px;
}

.psbz-auth-card-login {
  background: var(--psbz-light);
}

.psbz-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psbz-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
}

.psbz-checkbox input {
  width: auto !important;
  margin: 0 !important;
}

.psbz-small {
  font-size: 13px;
  color: #526059;
  margin: 10px 0 0;
}

.psbz-code-card {
  display: grid;
  gap: 8px;
}

.psbz-code {
  display: inline-flex;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--psbz-light);
  border: 1px dashed var(--psbz-green);
  color: var(--psbz-green);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 1120px) {
  .psbz-auth-grid {
    grid-template-columns: 1fr;
  }

  .psbz-auth-card {
    border-left: 0;
    border-top: 1px solid var(--psbz-border);
  }

  .psbz-auth-card:first-child {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .psbz-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .psbz-auth-window {
    border-radius: 16px;
  }

  .psbz-auth-head,
  .psbz-auth-card,
  .psbz-auth-window-small {
    padding: 18px;
  }

  .psbz-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .psbz-code {
    width: 100%;
    justify-content: center;
    font-size: 22px;
  }
}

.psbz-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.psbz-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.psbz-live-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 16px; }
.psbz-live-status strong { font-size: clamp(28px, 6vw, 54px); color: var(--psbz-blue); line-height: 1; }
.psbz-btn-large { width: 100%; padding: 16px 20px; font-size: 18px; }
.psbz-btn-danger { background: #8F1D1D !important; color: #fff !important; }
.psbz-inline-post { display: inline-flex; margin: 0; }
.psbz-end-shift-form { margin-top: 16px; }
.psbz-calendar { overflow: hidden; }
.psbz-calendar-head,
.psbz-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.psbz-calendar-head span { font-size: 12px; font-weight: 800; text-align: center; color: var(--psbz-blue); }
.psbz-calendar-day,
.psbz-calendar-empty { min-height: 58px; border: 1px solid var(--psbz-border); border-radius: 12px; padding: 7px; background: #fff; display: flex; flex-direction: column; gap: 3px; }
.psbz-calendar-day b { font-size: 16px; }
.psbz-calendar-day small { font-size: 10px; line-height: 1.15; }
.psbz-calendar-day.psbz-status-green { background: #EAF7EF; border-color: #A7D9B8; }
.psbz-calendar-day.psbz-status-yellow { background: #FFF7E0; border-color: #E8CC7A; }
.psbz-calendar-day.psbz-status-red { background: #FBEAEA; border-color: #E6A4A4; }
.psbz-calendar-day.psbz-status-gray { background: #F3F5F7; color: #59636E; }
.psbz-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.psbz-tabs a { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--psbz-border); color: var(--psbz-blue); font-weight: 800; text-decoration: none; }
.psbz-tab-panel { scroll-margin-top: 120px; }
.psbz-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 10px 0; }
.psbz-table pre { white-space: pre-wrap; margin: 0; font-family: inherit; font-size: 12px; }
.psbz-auth-window-small { max-width: 780px; }
.psbz-terminal-form input[type="password"] { font-size: 28px; text-align: center; letter-spacing: 8px; }
.psbz-code-card .psbz-code { user-select: all; }

@media (max-width: 980px) {
  .psbz-grid-4,
  .psbz-dashboard-grid { grid-template-columns: 1fr; }
  .psbz-calendar-day,
  .psbz-calendar-empty { min-height: 50px; padding: 5px; }
  .psbz-calendar-day small { display: none; }
  .psbz-checklist { grid-template-columns: 1fr; }
  .psbz-status-form { align-items: stretch; }
  .psbz-status-form input,
  .psbz-status-form select,
  .psbz-status-form button { width: 100%; }
}
