/* ================================================================
   PayStubCheck Saved Profiles Workspace v2
   Presentation and launcher layout only. Payment, calculation,
   checkout, PDF, and fulfillment systems are outside this file.
   ================================================================ */

.workspace-page {
  overflow-x: clip;
  background:
    radial-gradient(circle at 90% 4%, rgba(217, 194, 143, 0.14), transparent 26rem),
    var(--bg);
}

.workspace-page #workspace-root {
  width: 90%;
  max-width: 1200px;
  padding-top: 66px;
}

.workspace-page .psc-program-hero {
  padding: 82px 0 48px;
  text-align: left;
}

.workspace-page .psc-program-hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.052em;
}

.workspace-page .psc-program-lead {
  max-width: 790px;
  margin: 22px 0 0;
}

.workspace-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.workspace-page .psc-local-data-note,
.workspace-page .psc-program-notice {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.workspace-page .psc-local-data-note {
  margin-top: 32px;
}

.workspace-page .psc-workspace-status {
  position: sticky;
  z-index: 30;
  top: 75px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.workspace-page .psc-workspace-status:not(:empty) {
  padding: 9px 14px;
  border: 1px solid #F1E8D8;
  background: rgba(246, 241, 233, 0.97);
  box-shadow: 0 8px 24px rgba(27, 53, 84, 0.1);
}

.workspace-launcher {
  position: relative;
  margin: 10px 0 78px;
  padding: clamp(25px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 27px;
  color: #F6F1E9;
  background:
    radial-gradient(circle at 96% -10%, rgba(217, 194, 143, 0.3), transparent 24rem),
    #0E1E33;
  box-shadow: 0 28px 70px rgba(14, 30, 51, 0.2);
}

.workspace-launcher::after {
  position: absolute;
  right: -85px;
  bottom: -135px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(217, 194, 143, 0.17);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.workspace-launcher-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}

.workspace-launcher .psc-program-kicker {
  color: #D9C28F;
}

.workspace-launcher-heading h2 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 4vw, 43px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.workspace-launcher-heading p:not(.psc-program-kicker) {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(246, 241, 233, 0.68);
  font-size: 14px;
}

.workspace-local-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(217, 194, 143, 0.33);
  border-radius: 999px;
  color: #F1E8D8;
  background: rgba(217, 194, 143, 0.08);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-launcher-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-launcher-product {
  grid-column: auto;
}

.workspace-launcher .psc-form-field label {
  color: rgba(255, 255, 255, 0.76);
}

.workspace-launcher .psc-form-field input,
.workspace-launcher .psc-form-field select {
  border-color: rgba(255, 255, 255, 0.16);
  color: #0E1E33;
  background: #fff;
}

.workspace-launcher .psc-form-field input:focus,
.workspace-launcher .psc-form-field select:focus {
  outline: none;
  border-color: #D9C28F;
  box-shadow: 0 0 0 4px rgba(217, 194, 143, 0.17);
}

.workspace-optional {
  color: rgba(255, 255, 255, 0.46);
  font-weight: 500;
}

.workspace-launcher-review {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.workspace-launcher-review strong,
.workspace-launcher-review span {
  display: block;
}

.workspace-launcher-review strong {
  color: #fff;
  font-size: 14px;
}

.workspace-launcher-review span {
  margin-top: 3px;
  color: rgba(246, 241, 233, 0.62);
  font-size: 11px;
}

.workspace-launch-button {
  flex: 0 0 auto;
  background: #A98245;
  box-shadow: 0 10px 25px rgba(169, 130, 69, 0.25);
}

.workspace-launch-button:hover {
  background: #A98245;
}

.workspace-launcher-boundary {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: rgba(246, 241, 233, 0.52);
  font-size: 10.5px;
  line-height: 1.6;
}

.workspace-section-heading {
  margin: 0 0 27px;
}

.workspace-section-heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(29px, 4vw, 43px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.workspace-section-heading > p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-2);
}

.workspace-page .psc-workspace-layout {
  gap: 20px;
  margin-bottom: 22px;
}

.workspace-page .psc-workspace-section {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.workspace-page .psc-workspace-section h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.03em;
}

.workspace-page .psc-profile-row,
.workspace-page .psc-run-row,
.workspace-page .psc-run-worker {
  min-width: 0;
}

.workspace-page .psc-profile-row > span:first-child {
  min-width: 0;
}

.workspace-page .psc-profile-row strong,
.workspace-page .psc-profile-row small {
  overflow-wrap: anywhere;
}

.workspace-page .psc-profile-row small {
  display: block;
  margin-top: 3px;
}

.workspace-page .psc-inline-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-page .psc-inline-actions .workspace-use-profile {
  border-color: #D9C28F;
  color: #fff;
  background: var(--green);
}

.workspace-page .psc-inline-actions .workspace-use-profile:hover {
  background: var(--green-dark);
}

.workspace-page #pay-run-heading::before {
  display: block;
  margin-bottom: 8px;
  color: #D9C28F;
  content: "ADVANCED REPEAT WORKFLOW";
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.workspace-page .workspace-pay-run {
  position: relative;
  margin-top: 22px;
  padding: clamp(25px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 27px;
  color: #F6F1E9;
  background:
    radial-gradient(circle at 96% -10%, rgba(217, 194, 143, 0.3), transparent 24rem),
    #0E1E33;
  box-shadow: 0 28px 70px rgba(14, 30, 51, 0.2);
}

.workspace-page .workspace-pay-run::after {
  position: absolute;
  right: -85px;
  bottom: -135px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(217, 194, 143, 0.17);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.workspace-page .workspace-pay-run > * {
  position: relative;
  z-index: 1;
}

.workspace-page .workspace-pay-run > h2 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 43px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.workspace-page .workspace-pay-run > p {
  max-width: 920px;
  margin: 12px 0 27px;
  color: rgba(246, 241, 233, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.workspace-page .workspace-pay-run .psc-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-page .workspace-pay-run .psc-form-field label,
.workspace-page .workspace-pay-run .psc-run-workers > strong {
  color: rgba(255, 255, 255, 0.76);
}

.workspace-page .workspace-pay-run .psc-form-field input,
.workspace-page .workspace-pay-run .psc-form-field select {
  border-color: rgba(255, 255, 255, 0.16);
  color: #0E1E33;
  background: #fff;
}

.workspace-page .workspace-pay-run .psc-form-field input:focus,
.workspace-page .workspace-pay-run .psc-form-field select:focus {
  outline: none;
  border-color: #D9C28F;
  box-shadow: 0 0 0 4px rgba(217, 194, 143, 0.17);
}

.workspace-page .workspace-pay-run .psc-run-workers {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.workspace-page .workspace-pay-run .psc-run-worker,
.workspace-page .workspace-pay-run .psc-run-row,
.workspace-page .workspace-pay-run .psc-profile-row {
  border-color: rgba(255, 255, 255, 0.13);
  color: #F6F1E9;
  background: rgba(255, 255, 255, 0.075);
}

.workspace-page .workspace-pay-run .psc-run-worker small,
.workspace-page .workspace-pay-run .psc-run-row small,
.workspace-page .workspace-pay-run .psc-profile-row small {
  color: rgba(246, 241, 233, 0.62);
}

.workspace-page .workspace-pay-run input[type="checkbox"] {
  accent-color: #D9C28F;
}

.workspace-page .workspace-pay-run .psc-workspace-empty {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(246, 241, 233, 0.66);
  background: rgba(255, 255, 255, 0.045);
}

.workspace-page .workspace-pay-run .psc-form-actions .psc-button {
  background: #A98245;
  box-shadow: 0 10px 25px rgba(169, 130, 69, 0.25);
}

.workspace-page .workspace-pay-run .psc-form-actions .psc-button:hover {
  background: #A98245;
}

.workspace-page .workspace-pay-run .psc-inline-actions button,
.workspace-page .workspace-pay-run .psc-inline-actions a {
  border-color: rgba(255, 255, 255, 0.2);
  color: #F6F1E9;
  background: rgba(255, 255, 255, 0.09);
}

.workspace-page .workspace-pay-run .psc-inline-actions button:hover,
.workspace-page .workspace-pay-run .psc-inline-actions a:hover {
  border-color: #D9C28F;
  color: #0E1E33;
  background: #D9C28F;
}

.workspace-page .psc-workspace-data-controls {
  margin-bottom: 82px;
}

.workspace-page footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .workspace-launcher-grid,
  .workspace-page .workspace-pay-run .psc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-launcher-product {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .workspace-page #workspace-root {
    width: calc(100% - 28px);
  }

  .workspace-page .psc-program-hero {
    padding-top: 58px;
  }

  .workspace-launcher {
    margin-bottom: 62px;
    border-radius: 22px;
  }

  .workspace-page .workspace-pay-run {
    border-radius: 22px;
  }

  .workspace-launcher-heading,
  .workspace-launcher-review {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-local-badge {
    align-self: flex-start;
  }

  .workspace-launch-button {
    width: 100%;
  }

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

@media (max-width: 520px) {
  .workspace-page #workspace-root {
    width: calc(100% - 22px);
  }

  .workspace-launcher-grid,
  .workspace-page .workspace-pay-run .psc-form-grid {
    grid-template-columns: 1fr;
  }

  .workspace-launcher-product {
    grid-column: auto;
  }

  .workspace-page .psc-profile-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-page .workspace-pay-run .psc-form-actions .psc-button {
    width: 100%;
  }
}
