:root {
  --pscs-green: #0b5a43;
  --pscs-burgundy: #9e1b32;
  --pscs-gold: #d4af37;
  --pscs-text: #111;
}

.pscs26-wrap {
  margin: 14px 0 22px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--pscs-text);
}

.pscs26-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.pscs26-toolbar__group {
  display: inline-flex;
  border: 1px solid #cfd7d3;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.pscs26-scoring-btn,
.pscs26-print-btn,
.pscs26-preview-btn {
  text-decoration: none;
  font-weight: 800;
}

.pscs26-scoring-btn {
  color: var(--pscs-green);
  padding: 8px 14px;
  font-size: 13px;
  background: #fff;
}

.pscs26-scoring-btn + .pscs26-scoring-btn {
  border-left: 1px solid #e0e5e3;
}

.pscs26-scoring-btn.is-active {
  background: var(--pscs-green);
  color: #fff;
}

.pscs26-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pscs-green);
  background: #fff;
  color: var(--pscs-green);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
}

.pscs26-preview-btn:hover,
.pscs26-preview-btn:focus {
  background: #f3f8f6;
  color: var(--pscs-green);
}

.pscs26-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pscs-burgundy);
  background: var(--pscs-burgundy);
  color: #fff;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
}

.pscs26-print-hint {
  font-size: 12px;
  color: #666;
}

.pscs26-wrap--launcher {
  margin-bottom: 0;
}

.pscs26-sheet {
  width: 100%;
  max-width: 1632px;
  aspect-ratio: 17 / 11;
  background: #fff;
  border: 1px solid #d7d7d7;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 12px 16px 10px;
  overflow: hidden;
}

.pscs26-sheet--overall,
.pscs26-sheet--position {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto;
  row-gap: 10px;
}

.pscs26-header {
  display: grid;
  grid-template-columns: 150px 1fr 180px;
  column-gap: 14px;
  align-items: start;
  min-width: 0;
}

.pscs26-header__logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pscs26-header__logo img {
  width: 110px;
  max-width: 100%;
  height: auto;
  display: block;
}

.pscs26-brand {
  color: var(--pscs-burgundy);
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 23px;
  line-height: 1;
}

.pscs26-header h1 {
  margin: 1px 0 4px;
  color: var(--pscs-green);
  font-size: 54px;
  line-height: .95;
  letter-spacing: .3px;
  font-weight: 950;
  white-space: nowrap;
}

.pscs26-subtitle {
  color: var(--pscs-green);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.pscs26-tagline {
  margin-top: 4px;
  color: var(--pscs-burgundy);
  font-size: 14px;
  font-style: italic;
  font-weight: 800;
}

.pscs26-updated {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  padding-top: 30px;
  white-space: nowrap;
}

.pscs26-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
  min-width: 24px;
  padding: 3px 4px;
  font-size: .9em;
}

.pscs26-pos--qb { background: #b81833; }
.pscs26-pos--rb { background: #087a4f; }
.pscs26-pos--wr { background: #e89b08; }
.pscs26-pos--te { background: #0c7182; }
.pscs26-pos--k { background: #6c6c6c; }
.pscs26-pos--td { background: #4f4f4f; }

.pscs26-rookie { color: #f2a100; font-weight: 900; margin-left: 3px; }
.pscs26-alert { color: #d11422; font-weight: 900; margin-left: 3px; font-size: .85em; }
.pscs26-trend-demo b,
.pscs26-trend--up { color: #07863d; font-style: normal; font-weight: 900; }
.pscs26-trend-demo i,
.pscs26-trend--down { color: #df1f2c; font-style: normal; font-weight: 900; }
.pscs26-trend--flat { color: #222; }

.pscs26-player {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pscs26-team,
.pscs26-bye,
.pscs26-trend,
.pscs26-rank {
  text-align: center;
  white-space: nowrap;
}

/* Overall sheet */
.pscs26-overall-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

.pscs26-overall-col {
  min-width: 0;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
}

.pscs26-overall-col h3 {
  margin: 0;
  background: var(--pscs-burgundy);
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  padding: 5px 2px 4px;
  font-weight: 900;
}

.pscs26-overall-head,
.pscs26-overall-row {
  display: grid;
  /* Use the full width of each 50-player column. The position pill keeps
     its approved breathing room, while PLAYER receives the flexible space
     needed for full names and TEAM/BYE/TREND stay compact at the right. */
  grid-template-columns: 20px 24px minmax(0, 1fr) 22px 15px 20px;
  column-gap: 0;
  align-items: center;
}

.pscs26-overall-head {
  font-size: 5.8px;
  font-weight: 900;
  padding: 4px 2px 2px;
}

.pscs26-overall-row {
  min-height: 14px;
  padding: 0 1px;
  font-size: 7px;
  line-height: 1;
}

.pscs26-overall-row .pscs26-pos {
  width: 18px;
  min-width: 0;
  padding: 2px 1px;
  border-radius: 2px;
  font-size: .72em;
}

.pscs26-overall-row .pscs26-player {
  font-size: 8.25px;
  font-weight: 800;
  padding-left: 3px;
  letter-spacing: 0;
}


.pscs26-sheet--overall .pscs26-team {
  text-align: left;
  padding-left: 1px;
}

.pscs26-meta-row--overall {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.pscs26-legend--overall {
  width: 860px;
}

.pscs26-legend--overall .pscs26-legend__content,
.pscs26-legend--position .pscs26-legend__content {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: start;
  padding: 10px 12px 10px;
}

.pscs26-legend--overall .pscs26-legend__positions,
.pscs26-legend--position .pscs26-legend__positions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}


.pscs26-legend {
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.pscs26-legend h2 {
  margin: 0;
  text-align: center;
  background: var(--pscs-green);
  color: #fff;
  font-size: 13px;
  padding: 6px 4px;
  font-weight: 900;
  line-height: 1;
}

/* Position sheet */
.pscs26-position-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pscs26-position-box {
  min-width: 0;
  border: 1px solid #ececec;
  border-radius: 2px;
  overflow: hidden;
  align-self: stretch;
}

.pscs26-position-box__head {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 24px 48px;
  align-items: center;
  color: #fff;
  min-height: 23px;
  font-size: 7px;
  line-height: 1;
  font-weight: 900;
}

.pscs26-position-box__head b {
  font-size: 1.65em;
  text-align: center;
}

.pscs26-position-box__head span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pscs26-position-box__head em,
.pscs26-position-box__head i {
  font-style: normal;
  text-align: center;
}

.pscs26-position-box--rb .pscs26-position-box__head { background: #0a6045; }
.pscs26-position-box--wr .pscs26-position-box__head { background: #ef9700; }
.pscs26-position-box--qb .pscs26-position-box__head { background: #aa1630; }
.pscs26-position-box--te .pscs26-position-box__head { background: #0b7180; }
.pscs26-position-box--k .pscs26-position-box__head,
.pscs26-position-box--td .pscs26-position-box__head { background: #555; }

.pscs26-position-row {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 26px 19px 41px;
  column-gap: 1px;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  font-size: 7px;
  line-height: 1;
}

.pscs26-position-row .pscs26-player {
  font-size: 8.2px;
  font-weight: 700;
}

.pscs26-trend-ovr {
  display: grid;
  grid-template-columns: 1fr 14px;
  gap: 1px;
  align-items: center;
  text-align: right;
}

.pscs26-ovr {
  color: #333;
  font-weight: 700;
  font-size: .9em;
}

.pscs26-position-stack {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.pscs26-position-stack .pscs26-position-row {
  min-height: 14px;
}

.pscs26-position-stack .pscs26-position-box__head {
  min-height: 21px;
}

.pscs26-meta-row--position {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.pscs26-legend--position {
  width: 860px;
}

.pscs26-legend--position .pscs26-legend__content {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: start;
  padding: 10px 12px 10px;
}

.pscs26-legend--position .pscs26-legend__positions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.pscs26-legend__chip,
.pscs26-legend__signal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  min-width: 0;
}

.pscs26-legend__signals {
  display: grid;
  gap: 8px;
  align-content: start;
}

.pscs26-footer {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: #e79600;
  padding: 0 10%;
  font-size: 15px;
}

.pscs26-footer i {
  height: 1px;
  background: #e79600;
}

.pscs26-footer strong {
  color: var(--pscs-burgundy);
  font-size: 24px;
  white-space: nowrap;
}

.pscs26-error {
  border: 1px solid #e0b4b4;
  background: #fff6f6;
  color: #7a1f1f;
  padding: 12px 14px;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .pscs26-sheet {
    min-width: 1400px;
  }
  .pscs26-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@page {
  size: 17in 11in;
  margin: .18in;
}

@media print {
  .pscs26-toolbar { display: none !important; }
  .pscs26-wrap { margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  .pscs26-sheet {
    width: 16.64in !important;
    height: 10.64in !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    padding: .08in .12in .06in .08in !important;
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .pscs26-header__logo img { width: 1.04in !important; }
  .pscs26-header { grid-template-columns: 1.35in 1fr 1.6in !important; }
  .pscs26-brand { font-size: 22px !important; }
  .pscs26-header h1 { font-size: 54px !important; }
  .pscs26-subtitle { font-size: 18px !important; }
  .pscs26-tagline { font-size: 14px !important; }
  .pscs26-updated { font-size: 11px !important; }
}
