:root {
  --psk-primary: var(--primary, #1f2a37);
  --psk-accent: var(--accent, #c1121f);
  --psk-text: var(--text, #1f2937);
  --psk-muted: var(--muted, #6b7280);
  --psk-line: var(--line, #d1d5db);
  --psk-bg: var(--bg, #f3f4f6);
  --psk-white: var(--white, #ffffff);
  --psk-radius: var(--radius, 6px);
  --psk-shadow: var(--shadow, 0 8px 24px rgba(17, 24, 39, 0.08));
}

.psk-header {
  background: var(--psk-white);
  color: var(--psk-text);
  border-bottom: 3px solid var(--psk-accent);
  box-shadow: var(--psk-shadow);
  padding: 18px 28px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 22px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.psk-header .app-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.psk-header .app-logo {
  width: 300px;
  height: 92px;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.psk-header .app-logo .logo {
  transform: scale(0.48);
  transform-origin: left center;
}

.psk-header .app-title-block {
  min-width: 230px;
  padding-left: 20px;
  border-left: 1px solid var(--psk-line);
}

.psk-header h1 {
  margin: 0;
  color: var(--psk-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.psk-header .app-subtitle {
  margin-top: 4px;
  color: var(--psk-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.psk-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

/* === Prosertek logo block (reused across apps) === */
.psk-header .logo {
  display: flex;
  align-items: center;
  gap: 24px;
}

.psk-header .icon {
  width: 130px;
  height: 130px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3e3e3e 0%, #111 30%, #000 55%, #040404 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
}

.psk-header .icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 46%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  border-radius: 19px 19px 65% 65%;
  z-index: 6;
}

.psk-header .shine-bottom {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  height: 46%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.04) 80%,
    transparent 100%
  );
  border-radius: 65% 65% 19px 19px;
  z-index: 6;
}

.psk-header .text-block {
  display: flex;
  flex-direction: column;
}

.psk-header .brand-name {
  font-family: Raleway, Arial, sans-serif;
  font-size: 76px;
  font-weight: 300;
  color: #0f0f0f;
  letter-spacing: -0.5px;
  line-height: 1;
}

.psk-header .red-line {
  height: 2.5px;
  background: #c8000a;
  margin: 7px 0 5px;
}

.psk-header .logo .subtitle {
  font-family: Raleway, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #0f0f0f;
  text-align: right;
}

@media (max-width: 900px) {
  .psk-header {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .psk-header .app-brand {
    align-items: flex-start;
  }

  .psk-header .app-logo {
    width: 180px;
    height: 62px;
  }

  .psk-header .app-logo .logo {
    transform: scale(0.31);
  }

  .psk-header .app-title-block {
    padding-left: 14px;
  }

  .psk-header h1 {
    font-size: 18px;
  }

  .psk-header .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .psk-header .app-brand {
    flex-direction: column;
    gap: 8px;
  }

  .psk-header .app-title-block {
    padding-left: 0;
    border-left: none;
  }
}
