.pgd-ak-page {
  --ak-ink: var(--text);
  --ak-muted: var(--text4);
  --ak-line: var(--border);
  --ak-soft: var(--surface2);
  --ak-panel: var(--surface);
  --ak-deep: var(--brand);
  --ak-deep-2: var(--text2);
  --ak-gold: var(--gold);
  --ak-gold-dark: var(--gold-dark);
  --ak-green: var(--green);
  --ak-red: var(--red);
  --ak-program-bg: #eef8f1;
  --ak-program-surface: #f8fcf9;
  --ak-program-line: #bfdcc8;
  --ak-program-accent: #26714b;
  --ak-ticket-bg: #ffffff;
  --ak-ticket-line: #e4d3bd;
  --ak-inspector-bg: #eef5ff;
  --ak-inspector-surface: #f8fbff;
  --ak-inspector-line: #bed3ea;
  --ak-inspector-accent: #315f96;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px 40px;
  color: var(--ak-ink);
  background: transparent;
}

.pgd-ak-toolbar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #deccb7;
  border-radius: 6px;
  background: #fffdf9;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(63, 45, 24, .05);
}

.pgd-ak-toolbar__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 128px;
  padding: 18px 16px;
  border-right: 1px solid #deccb7;
  background: linear-gradient(145deg, #fffaf1, #f7f1e7);
  color: var(--ak-ink);
}

.pgd-ak-kicker,
.pgd-ak-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pgd-ak-kicker {
  color: var(--ak-gold-dark);
}

.pgd-ak-toolbar h1,
.pgd-ak-section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
}

.pgd-ak-toolbar__title p {
  max-width: 180px;
  margin: 0;
  color: var(--ak-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.pgd-ak-form {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 280px) minmax(220px, 300px) minmax(146px, 1fr) 116px;
  gap: 10px;
  align-items: end;
  justify-content: stretch;
  padding: 14px;
  background: linear-gradient(180deg, #fffdf9, #fffaf4);
}

.pgd-ak-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pgd-ak-field span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #967757;
}

.pgd-ak-field select,
.pgd-ak-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #ddc8ae;
  border-radius: 6px;
  background: #fff;
  color: var(--ak-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  outline: none;
}

.pgd-ak-field select:focus,
.pgd-ak-field input:focus {
  border-color: var(--ak-gold);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, .18);
}

.pgd-ak-unit {
  display: grid;
  grid-template-columns: repeat(4, 58px) minmax(176px, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.pgd-ak-field--unit {
  grid-column: 4 / 6;
}

.pgd-ak-unit__quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  height: 40px;
  border: 1px solid #ddc8ae;
  border-radius: 6px;
  background: #fff;
  color: var(--ak-ink);
  padding: 0 9px;
  font-size: 13px;
  font-weight: 900;
  outline: none;
}

.pgd-ak-unit__quick span {
  font-size: 13px;
  font-weight: 900;
  opacity: .76;
}

.pgd-ak-unit__quick:hover,
.pgd-ak-unit__quick:focus,
.pgd-ak-unit__quick.is-active {
  border-color: var(--ak-gold);
  background: var(--ak-gold);
  color: #fff;
}

.pgd-ak-unit__quick:hover span,
.pgd-ak-unit__quick:focus span,
.pgd-ak-unit__quick.is-active span {
  color: #fff;
  opacity: 1;
}

.pgd-ak-unit__custom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  box-sizing: border-box;
  height: 40px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ddc8ae;
  border-radius: 6px;
  background: #fff;
  color: var(--ak-ink);
}

.pgd-ak-unit__custom:focus-within {
  border-color: var(--ak-gold);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, .18);
}

.pgd-ak-field .pgd-ak-unit__input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 12px;
  color: var(--ak-ink);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  outline: none;
}

.pgd-ak-field .pgd-ak-unit__input:hover,
.pgd-ak-field .pgd-ak-unit__input:focus {
  border: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.pgd-ak-field .pgd-ak-unit__input::placeholder {
  color: #9d8569;
  font-weight: 800;
}

.pgd-ak-unit__currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 100%;
  border-left: 1px solid #ead8c2;
  background: #fff8ed;
  color: #8c6a43;
  font-size: 15px;
  font-weight: 900;
}

.pgd-ak-strategy {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 1px solid #e1ccb2;
  border-radius: 6px;
  padding: 4px;
  background: #fbf4e8;
}

.pgd-ak-strategy__item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 6px 8px;
  color: var(--ak-muted);
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}

.pgd-ak-strategy__item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pgd-ak-strategy__item:hover {
  border-color: rgba(232, 160, 32, .28);
  background: rgba(255, 255, 255, .62);
}

.pgd-ak-strategy__item.is-active {
  border-color: rgba(232, 160, 32, .5);
  background: #fff;
  color: var(--ak-gold-dark);
  box-shadow: 0 5px 14px rgba(144, 94, 22, .08), inset 0 0 0 1px rgba(232, 160, 32, .14);
}

.pgd-ak-strategy__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: #9a7a55;
  font-size: 13px;
}

.pgd-ak-strategy__item.is-active .pgd-ak-strategy__icon {
  background: var(--ak-gold);
  color: #3d2b0e;
}

.pgd-ak-strategy__text {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.pgd-ak-strategy__text strong,
.pgd-ak-strategy__text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-ak-strategy__text strong {
  color: var(--ak-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.pgd-ak-strategy__text small {
  color: var(--ak-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.pgd-ak-strategy__item.is-active .pgd-ak-strategy__text small {
  color: #8a611f;
}

.pgd-ak-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 116px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--ak-gold);
  color: #3d2b0e;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  justify-self: stretch;
  grid-column: 4 / 6;
  box-shadow: 0 8px 18px rgba(190, 119, 18, .18);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.pgd-ak-submit::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 48%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: pgd-ak-submit-shine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.pgd-ak-submit:hover,
.pgd-ak-submit:focus-visible {
  background: #f0aa24;
  box-shadow: 0 10px 22px rgba(190, 119, 18, .24);
  transform: translateY(-1px);
}

.pgd-ak-submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(190, 119, 18, .18);
}

.pgd-ak-submit:disabled,
.pgd-ak-form.is-loading-options .pgd-ak-submit {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.pgd-ak-form.is-loading-options select {
  cursor: wait;
  opacity: .72;
}

.pgd-ak-submit i,
.pgd-ak-submit span {
  position: relative;
  z-index: 1;
}

@keyframes pgd-ak-submit-shine {
  0%,
  48% {
    left: -55%;
  }
  72%,
  100% {
    left: 115%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pgd-ak-submit,
  .pgd-ak-submit::after {
    animation: none;
    transition: none;
  }
}

.pgd-ak-method {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 100%;
  border: 1px solid #e6d4bd;
  border-radius: 6px;
  background: #fffaf2;
  padding: 10px 12px;
}

.pgd-ak-method__copy {
  min-width: 0;
}

.pgd-ak-method__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ak-gold-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pgd-ak-method p {
  margin: 4px 0 0;
  color: var(--ak-deep-2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.pgd-ak-method__tags {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 620px;
}

.pgd-ak-method__tags span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border: 1px solid #e1ccb2;
  border-radius: 999px;
  background: #fff;
  color: #775c3d;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.pgd-ak-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  border: 0;
  background: transparent;
}

.pgd-ak-summary__item {
  flex: 0 1 auto;
  min-width: 0;
  border: 1px solid var(--ak-line);
  border-radius: 6px;
  background: var(--ak-panel);
  padding: 8px 10px;
}

.pgd-ak-summary__item:nth-child(1),
.pgd-ak-summary__item:nth-child(2) {
  min-width: 210px;
}

.pgd-ak-summary__item:nth-child(n+3) {
  min-width: 116px;
}

.pgd-ak-summary__item:last-child {
  border-right: 1px solid var(--ak-line);
}

.pgd-ak-summary__item span {
  display: block;
  margin-bottom: 4px;
  color: var(--ak-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pgd-ak-summary__item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.1;
}

.pgd-ak-ticket,
.pgd-ak-races,
.pgd-ak-empty {
  border: 1px solid var(--ak-line);
  border-radius: 6px;
  background: var(--ak-panel);
}

.pgd-ak-workbench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}

.pgd-ak-workbench__main {
  min-width: 0;
}

.pgd-ak-program-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--ak-program-line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ak-program-bg), var(--ak-program-surface));
  padding: 12px;
  box-shadow: inset 3px 0 0 rgba(38, 113, 75, .2);
}

.pgd-ak-program-panel__head {
  display: grid;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ak-program-line);
}

.pgd-ak-program-panel__head span,
.pgd-ak-program-facts span {
  color: var(--ak-program-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pgd-ak-program-panel__head strong {
  color: var(--ak-ink);
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pgd-ak-program-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pgd-ak-program-facts div {
  min-width: 0;
  border: 1px solid rgba(38, 113, 75, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .62);
  padding: 8px;
}

.pgd-ak-program-facts div.is-wide {
  grid-column: 1 / -1;
}

.pgd-ak-program-facts span,
.pgd-ak-program-facts strong {
  display: block;
}

.pgd-ak-program-facts strong {
  margin-top: 4px;
  color: var(--ak-ink);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pgd-ak-ticket {
  overflow: visible;
  border-color: var(--ak-ticket-line);
  background: var(--ak-ticket-bg);
}

.pgd-ak-ticket .pgd-ak-section-head,
.pgd-ak-ticket .pgd-ak-slip {
  background: var(--ak-ticket-bg);
}

.pgd-ak-empty,
.pgd-ak-races {
  margin-top: 14px;
}

.pgd-ak-inspector {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--ak-inspector-line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ak-inspector-bg), var(--ak-inspector-surface));
  padding: 12px;
  box-shadow: inset 3px 0 0 rgba(49, 95, 150, .18);
}

.pgd-ak-inspector__head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ak-inspector-line);
}

.pgd-ak-inspector__head span,
.pgd-ak-inspector__grid span,
.pgd-ak-inspector__foot span {
  color: var(--ak-inspector-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pgd-ak-inspector__head strong {
  color: var(--ak-ink);
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
}

.pgd-ak-inspector__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pgd-ak-inspector__grid div {
  min-width: 0;
  border: 1px solid rgba(49, 95, 150, .18);
  border-radius: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, .64);
}

.pgd-ak-inspector__grid span,
.pgd-ak-inspector__grid strong {
  display: block;
}

.pgd-ak-inspector__grid strong {
  margin-top: 4px;
  color: var(--ak-ink);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pgd-ak-inspector__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--ak-soft);
  overflow: hidden;
}

.pgd-ak-inspector__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ak-inspector-accent), var(--ak-gold));
}

.pgd-ak-inspector__estimate {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(49, 95, 150, .18);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
}

.pgd-ak-inspector__estimate span {
  color: var(--ak-inspector-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pgd-ak-inspector__estimate strong {
  color: var(--ak-ink);
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.pgd-ak-inspector__estimate small {
  color: var(--ak-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pgd-ak-inspector__estimate.is-muted {
  background: rgba(255, 255, 255, .58);
}

.pgd-ak-inspector__note,
.pgd-ak-inspector__warning {
  margin: 0;
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.pgd-ak-inspector__note {
  border: 1px solid rgba(49, 95, 150, .16);
  background: rgba(255, 255, 255, .58);
  color: var(--ak-deep-2);
}

.pgd-ak-inspector__warning {
  border: 1px solid rgba(232, 160, 32, .32);
  background: #fff8e8;
  color: var(--ak-gold-dark);
}

.pgd-ak-inspector__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.pgd-ak-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 11px 14px;
  background: var(--ak-soft);
  border-bottom: 1px solid var(--ak-line);
}

.pgd-ak-section-head--plain {
  background: var(--ak-panel);
}

.pgd-ak-section-kicker {
  margin-bottom: 3px;
  color: var(--ak-gold-dark);
}

.pgd-ak-section-head h2 {
  font-size: 20px;
}

.pgd-ak-section-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pgd-ak-section-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pgd-ak-transfer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid #e1ccb2;
  border-radius: 999px;
  background: #fffaf1;
  padding: 3px 4px 3px 8px;
  color: #5d4630;
}

.pgd-ak-transfer-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ak-gold);
  color: #fff;
  font-size: 11px;
}

.pgd-ak-transfer-box__text {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.pgd-ak-transfer-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  border: 1px solid var(--ak-gold);
  border-radius: 999px;
  background: var(--ak-gold);
  color: #fff;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.pgd-ak-transfer-box__button:hover,
.pgd-ak-transfer-box__button:focus-visible {
  background: #f0aa24;
  color: #fff;
}

.pgd-ak-transfer-box__button.is-login {
  min-width: 64px;
  background: #fff;
  color: var(--ak-gold-dark);
}

.pgd-ak-transfer-box__button.is-disabled {
  border-color: #e3d8c9;
  background: #f5efe6;
  color: var(--ak-muted);
}

.pgd-ak-section-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ak-line);
  border-radius: 6px;
  background: var(--ak-panel);
  color: var(--ak-muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.pgd-ak-slip {
  display: grid;
  gap: 0;
  padding: 6px 12px;
  background: var(--ak-panel);
}

.pgd-ak-slip-row {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(96px, 1fr) minmax(92px, max-content);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ak-line);
}

.pgd-ak-slip-row:last-child {
  border-bottom: 0;
}

.pgd-ak-slip-race {
  min-width: 0;
}

.pgd-ak-slip-race strong {
  display: block;
  color: var(--ak-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.pgd-ak-slip-race span {
  display: block;
  margin-top: 2px;
  color: var(--ak-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pgd-ak-slip-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.pgd-ak-slip-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--ak-line);
  border-radius: 50%;
  background: var(--ak-panel);
  color: var(--ak-ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: default;
  outline: none;
}

.pgd-ak-slip-pick.is-lead {
  border-color: var(--ak-gold);
  background: var(--ak-gold);
  color: #21180d;
}

.pgd-ak-slip-pick:hover,
.pgd-ak-slip-pick:focus {
  border-color: var(--ak-gold);
}

.pgd-ak-slip-pick::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border: 1px solid var(--ak-line);
  border-radius: 8px;
  background: var(--ak-ink);
  color: var(--ak-panel);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
}

.pgd-ak-slip-pick::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 21;
  width: 8px;
  height: 8px;
  background: var(--ak-ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity .12s ease, transform .12s ease;
}

.pgd-ak-slip-pick:hover::after,
.pgd-ak-slip-pick:focus::after,
.pgd-ak-slip-pick:hover::before,
.pgd-ak-slip-pick:focus::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pgd-ak-slip-score {
  display: grid;
  gap: 2px;
  justify-items: end;
  width: 100%;
  min-width: 0;
  color: var(--ak-muted);
  text-align: right;
}

.pgd-ak-slip-score strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ak-gold-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.pgd-ak-slip-score span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.pgd-ak-no-pick {
  color: var(--ak-muted);
  font-weight: 800;
}

.pgd-ak-races {
  padding-bottom: 12px;
  border-color: #e1ccb2;
  background: #fffdf9;
}

.pgd-ak-section-head--analysis {
  align-items: flex-start;
  background: #fffdf9;
  border-bottom-color: #e1ccb2;
}

.pgd-ak-section-head--analysis p {
  max-width: 520px;
  margin: 4px 0 0;
  color: var(--ak-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.pgd-ak-race-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: 12px;
}

.pgd-ak-race {
  min-width: 0;
  border: 1px solid #e4d3bd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(63, 45, 24, .04);
}

.pgd-ak-race__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(156px, auto);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #fffaf2, #fff);
  border-bottom: 1px solid #eadcc9;
}

.pgd-ak-race__identity {
  min-width: 0;
}

.pgd-ak-race__identity strong {
  display: block;
  color: var(--ak-ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.pgd-ak-race__identity span {
  display: block;
  margin-top: 4px;
  color: var(--ak-muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pgd-ak-race__forecast {
  min-width: 0;
  text-align: right;
}

.pgd-ak-race__forecast span {
  display: block;
  color: #967757;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.pgd-ak-race__forecast strong {
  display: block;
  margin-top: 5px;
  color: var(--ak-gold-dark);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pgd-ak-race__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 0;
  color: var(--ak-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pgd-ak-race__coverage {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  text-transform: none;
}

.pgd-ak-race__coverage.is-high {
  background: var(--green-bg);
  color: var(--ak-green);
}

.pgd-ak-race__coverage.is-mid {
  background: var(--amber-bg);
  color: var(--amber);
}

.pgd-ak-race__coverage.is-low {
  background: var(--red-bg);
  color: var(--ak-red);
}

.pgd-ak-race-scenario {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 12px 0;
}

.pgd-ak-race-scenario span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border: 1px solid #e7d9c6;
  border-radius: 999px;
  background: #fffaf2;
  color: #856641;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.pgd-ak-race-scenario i,
.pgd-ak-race-scenario strong {
  color: var(--ak-gold-dark);
}

.pgd-ak-race-picks {
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
}

.pgd-ak-race-pick {
  display: grid;
  grid-template-columns: 74px 34px minmax(0, 1fr) minmax(66px, max-content);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #eee2d2;
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
}

.pgd-ak-race-pick.is-lead {
  border-color: rgba(232, 160, 32, .38);
  background: #fff8e8;
}

.pgd-ak-race-pick__role {
  color: #8b6a43;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pgd-ak-race-pick.is-lead .pgd-ak-race-pick__role {
  color: var(--ak-gold-dark);
}

.pgd-ak-race-pick__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold-bg);
  color: #3a2b15;
  font-size: 13px;
  font-weight: 900;
}

.pgd-ak-race-pick.is-lead .pgd-ak-race-pick__no {
  background: var(--ak-gold);
}

.pgd-ak-race-pick__horse {
  min-width: 0;
}

.pgd-ak-race-pick__horse strong,
.pgd-ak-race-pick__horse small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-ak-race-pick__horse strong {
  color: var(--ak-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.pgd-ak-race-pick__horse small {
  margin-top: 2px;
  color: var(--ak-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.pgd-ak-race-pick__score {
  display: grid;
  gap: 1px;
  justify-items: end;
  min-width: 0;
  color: var(--ak-muted);
  text-align: right;
}

.pgd-ak-race-pick__score strong {
  color: var(--ak-deep-2);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.pgd-ak-race-pick__score small {
  font-size: 9px;
  font-weight: 800;
}

.pgd-ak-race-detail {
  border-top: 1px solid #eadcc9;
  background: #fff;
}

.pgd-ak-race-detail summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #82623f;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.pgd-ak-race-detail summary::-webkit-details-marker {
  display: none;
}

.pgd-ak-race-detail summary small {
  color: var(--ak-muted);
  font-size: 10px;
  font-weight: 900;
}

.pgd-ak-race-detail summary i {
  color: var(--ak-gold-dark);
  font-size: 12px;
  transition: transform .14s ease;
}

.pgd-ak-race-detail[open] summary i {
  transform: rotate(180deg);
}

.pgd-ak-rank-table {
  display: grid;
  border-top: 1px solid #f0e5d7;
}

.pgd-ak-rank-row {
  display: grid;
  grid-template-columns: 26px 30px minmax(0, 1fr) minmax(70px, max-content);
  gap: 5px 6px;
  align-items: center;
  min-height: 46px;
  padding: 7px 8px;
  border-top: 1px solid #f0e5d7;
}

.pgd-ak-rank-row:first-child {
  border-top: 0;
}

.pgd-ak-rank-row__rank,
.pgd-ak-rank-row__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 12px;
}

.pgd-ak-rank-row__rank {
  grid-column: 1;
  grid-row: 1 / 3;
}

.pgd-ak-rank-row__no {
  grid-column: 2;
  grid-row: 1 / 3;
}

.pgd-ak-rank-row__rank {
  background: var(--ak-soft);
  color: var(--ak-deep-2);
}

.pgd-ak-rank-row__no {
  background: var(--gold-bg);
  color: #3a2b15;
}

.pgd-ak-rank-row__horse {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.pgd-ak-rank-row__horse strong,
.pgd-ak-rank-row__horse small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pgd-ak-rank-row__horse strong {
  font-size: 11px;
  line-height: 1.12;
}

.pgd-ak-rank-row__horse small {
  margin-top: 2px;
  color: var(--ak-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.pgd-ak-rank-row__score {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  color: var(--ak-deep-2);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
}

.pgd-ak-rank-row__trust {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  min-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
  padding: 3px 5px;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.pgd-ak-rank-row__trust.is-high {
  background: var(--green-bg);
  color: var(--ak-green);
}

.pgd-ak-rank-row__trust.is-mid {
  background: var(--amber-bg);
  color: var(--amber);
}

.pgd-ak-rank-row__trust.is-low {
  background: var(--red-bg);
  color: var(--ak-red);
}

.pgd-ak-rank-row__signals {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
  max-height: 22px;
  overflow: hidden;
}

.pgd-ak-rank-row__signals em {
  border: 1px solid var(--ak-line);
  border-radius: 6px;
  padding: 2px 4px;
  color: var(--ak-muted);
  font-size: 8px;
  line-height: 1.1;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pgd-ak-empty,
.pgd-ak-race__empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 18px;
  color: var(--ak-muted);
  text-align: center;
  font-weight: 800;
}

.pgd-ak-empty i {
  color: var(--ak-gold);
  font-size: 32px;
}

.pgd-ak-empty strong {
  color: var(--ak-ink);
  font-size: 20px;
}

@media (max-width: 1500px) {
  .pgd-ak-race-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .pgd-ak-toolbar {
    grid-template-columns: 1fr;
  }

  .pgd-ak-workbench {
    grid-template-columns: 1fr;
  }

  .pgd-ak-program-panel {
    order: 1;
  }

  .pgd-ak-workbench__main {
    order: 2;
  }

  .pgd-ak-inspector {
    order: 3;
  }

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

  .pgd-ak-field--unit {
    grid-column: auto;
  }

  .pgd-ak-unit {
    grid-template-columns: repeat(4, minmax(54px, 1fr)) minmax(160px, 1.3fr);
  }

  .pgd-ak-toolbar__title {
    border-right: 0;
    border-bottom: 1px solid var(--ak-line);
  }

  .pgd-ak-strategy {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .pgd-ak-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pgd-ak-method {
    align-items: flex-start;
  }

  .pgd-ak-method__tags {
    justify-content: flex-start;
    max-width: none;
  }

  .pgd-ak-summary {
    gap: 8px;
  }

  .pgd-ak-summary__item {
    flex-basis: calc(33.333% - 8px);
  }

  .pgd-ak-race-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .pgd-ak-page {
    padding: 14px 16px 34px;
  }

  .pgd-ak-toolbar__title {
    min-height: auto;
    padding: 14px;
  }

  .pgd-ak-toolbar h1 {
    font-size: 22px;
  }

  .pgd-ak-toolbar__title p {
    max-width: none;
  }

  .pgd-ak-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pgd-ak-strategy {
    grid-template-columns: 1fr;
  }

  .pgd-ak-unit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-ak-unit__custom {
    grid-column: 1 / -1;
  }

  .pgd-ak-strategy__item {
    min-height: 44px;
  }

  .pgd-ak-method {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .pgd-ak-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-ak-submit {
    height: 38px;
  }

  .pgd-ak-section-head,
  .pgd-ak-race__head {
    align-items: flex-start;
  }

  .pgd-ak-section-head {
    flex-direction: column;
  }

  .pgd-ak-race__head {
    grid-template-columns: 1fr;
  }

  .pgd-ak-section-meta,
  .pgd-ak-race__forecast {
    justify-content: flex-start;
    text-align: left;
  }

  .pgd-ak-race-pick {
    grid-template-columns: 70px 30px minmax(0, 1fr) 52px;
    gap: 7px;
  }

  .pgd-ak-slip {
    padding: 6px 10px;
  }

  .pgd-ak-slip-row {
    grid-template-columns: 76px minmax(0, 1fr) 70px;
    gap: 8px;
    min-height: 44px;
    padding: 7px 0;
  }

  .pgd-ak-slip-race strong {
    font-size: 13px;
  }

  .pgd-ak-slip-race span {
    font-size: 9px;
  }

  .pgd-ak-slip-picks {
    gap: 5px;
  }

  .pgd-ak-slip-pick {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .pgd-ak-slip-score strong {
    font-size: 11px;
  }

  .pgd-ak-slip-score span {
    font-size: 9px;
  }

  .pgd-ak-race-list {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pgd-ak-rank-row {
    grid-template-columns: 30px 34px minmax(0, 1fr) 64px;
    gap: 7px;
    padding: 9px;
  }

  .pgd-ak-rank-row__rank,
  .pgd-ak-rank-row__no {
    width: 30px;
    height: 30px;
  }

  .pgd-ak-rank-row__score {
    font-size: 15px;
    text-align: right;
  }
}

/* Compact analysis coupon layout. */
.pgd-ak-page {
  padding: 10px 16px 32px;
}

.pgd-ak-toolbar {
  grid-template-columns: 180px minmax(0, 1fr);
}

.pgd-ak-toolbar__title {
  min-height: 92px;
  gap: 5px;
  padding: 12px;
}

.pgd-ak-toolbar h1,
.pgd-ak-section-head h2 {
  font-size: 20px;
}

.pgd-ak-toolbar__title p,
.pgd-ak-method p,
.pgd-ak-section-head--analysis p {
  font-size: 11px;
  line-height: 1.28;
}

.pgd-ak-form {
  grid-template-columns: minmax(150px, 190px) minmax(180px, 240px) minmax(180px, 240px) minmax(132px, 1fr) 98px;
  gap: 7px;
  padding: 9px;
}

.pgd-ak-field {
  gap: 4px;
}

.pgd-ak-field select,
.pgd-ak-field input,
.pgd-ak-unit__quick,
.pgd-ak-unit__custom {
  height: 34px;
  border-radius: 5px;
  font-size: 12px;
}

.pgd-ak-unit {
  grid-template-columns: repeat(4, 48px) minmax(132px, 1fr);
  gap: 5px;
}

.pgd-ak-strategy {
  gap: 4px;
  padding: 3px;
}

.pgd-ak-strategy__item {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  min-height: 38px;
  padding: 5px 6px;
}

.pgd-ak-strategy__icon {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.pgd-ak-strategy__text strong {
  font-size: 11px;
}

.pgd-ak-strategy__text small {
  font-size: 9px;
}

.pgd-ak-submit {
  min-width: 98px;
  height: 36px;
}

.pgd-ak-method {
  gap: 8px;
  padding: 7px 9px;
}

.pgd-ak-method__tags {
  gap: 4px;
}

.pgd-ak-method__tags span,
.pgd-ak-section-meta span {
  height: 20px;
  padding: 0 7px;
  font-size: 9px;
}

.pgd-ak-summary {
  gap: 6px;
  margin-top: 8px;
}

.pgd-ak-summary__item {
  padding: 6px 8px;
}

.pgd-ak-workbench {
  gap: 8px;
  margin-top: 10px;
}

.pgd-ak-program-panel,
.pgd-ak-inspector {
  gap: 8px;
  padding: 8px;
}

.pgd-ak-program-facts,
.pgd-ak-inspector__grid {
  gap: 5px;
}

.pgd-ak-program-facts div,
.pgd-ak-inspector__grid div,
.pgd-ak-inspector__estimate,
.pgd-ak-inspector__note,
.pgd-ak-inspector__warning {
  padding: 6px;
  border-radius: 5px;
}

.pgd-ak-section-head {
  min-height: 44px;
  padding: 8px 10px;
}

.pgd-ak-slip {
  padding: 4px 9px;
}

.pgd-ak-slip-row {
  grid-template-columns: 74px minmax(96px, 1fr) minmax(92px, max-content);
  gap: 6px;
  min-height: 34px;
  padding: 5px 0;
}

.pgd-ak-slip-picks {
  gap: 4px;
}

.pgd-ak-slip-pick {
  width: 21px;
  height: 21px;
  font-size: 10px;
}

.pgd-ak-slip-race strong,
.pgd-ak-race__identity strong {
  font-size: 12px;
}

.pgd-ak-slip-race span,
.pgd-ak-race__identity span {
  font-size: 9px;
}

.pgd-ak-race-list {
  gap: 8px;
  padding: 8px;
}

.pgd-ak-race {
  border-radius: 7px;
  box-shadow: none;
}

.pgd-ak-race__head {
  min-height: 46px;
  gap: 8px;
  padding: 8px 9px;
}

.pgd-ak-race__forecast strong {
  margin-top: 3px;
  font-size: 14px;
}

.pgd-ak-race__status {
  padding: 6px 9px 0;
}

.pgd-ak-race-picks {
  gap: 5px;
  padding: 7px 9px;
}

.pgd-ak-race-pick {
  grid-template-columns: 54px 26px minmax(0, 1fr) minmax(58px, max-content);
  gap: 5px;
  min-height: 34px;
  padding: 5px 6px;
  border-radius: 7px;
}

.pgd-ak-race-pick__no {
  width: 24px;
  height: 24px;
}

.pgd-ak-race-pick__horse strong {
  font-size: 11px;
}

.pgd-ak-race-pick__horse small,
.pgd-ak-race-pick__score small {
  font-size: 9px;
}

.pgd-ak-race-pick__score strong {
  font-size: 13px;
}

.pgd-ak-race-detail summary {
  min-height: 30px;
  padding: 6px 9px;
}

.pgd-ak-rank-table {
  padding: 6px 8px 8px;
}

.pgd-ak-rank-row {
  grid-template-columns: 25px 28px minmax(0, 1fr) minmax(58px, max-content);
  gap: 5px;
  padding: 6px;
  border-radius: 7px;
}

.pgd-ak-rank-row__rank,
.pgd-ak-rank-row__no {
  width: 25px;
  height: 25px;
  font-size: 10px;
}

.pgd-ak-rank-row__horse strong {
  font-size: 11px;
}

.pgd-ak-rank-row__horse small {
  font-size: 9px;
}

.pgd-ak-rank-row__score {
  font-size: 13px;
}

.pgd-ak-rank-row__trust {
  min-height: 18px;
  padding: 1px 6px;
  font-size: 8.5px;
}

.pgd-ak-rank-row__signals {
  max-height: 18px;
}

@media (max-width: 680px) {
  .pgd-ak-page {
    padding: 8px 7px 28px;
  }

  .pgd-ak-toolbar {
    border-radius: 5px;
  }

  .pgd-ak-toolbar__title {
    padding: 9px;
  }

  .pgd-ak-toolbar h1 {
    font-size: 19px;
  }

  .pgd-ak-form {
    gap: 6px;
    padding: 7px;
  }

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

  .pgd-ak-strategy__item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 34px;
    text-align: center;
  }

  .pgd-ak-strategy__text small {
    display: none;
  }

  .pgd-ak-method__copy p,
  .pgd-ak-inspector__note {
    display: none;
  }

  .pgd-ak-summary {
    gap: 5px;
  }

  .pgd-ak-summary__item {
    min-width: 0 !important;
  }

  .pgd-ak-section-head {
    gap: 6px;
    padding: 7px 8px;
  }

  .pgd-ak-slip-row {
    grid-template-columns: 66px minmax(86px, 1fr) minmax(82px, max-content);
    min-height: 32px;
  }

  .pgd-ak-race-list {
    gap: 7px;
    padding: 7px;
  }

  .pgd-ak-race__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .pgd-ak-race__forecast {
    text-align: right;
  }

  .pgd-ak-race-pick {
    grid-template-columns: 48px 24px minmax(0, 1fr) minmax(52px, max-content);
  }

  .pgd-ak-rank-row {
    grid-template-columns: 24px 26px minmax(0, 1fr) minmax(54px, max-content);
  }
}

/* Mobile reading pass for /analiz-kuponu. */
@media (max-width: 760px) {
  .pgd-ak-page {
    max-width: 100%;
    padding: 8px 7px 28px;
    overflow-x: hidden;
  }

  .pgd-ak-toolbar,
  .pgd-ak-ticket,
  .pgd-ak-races,
  .pgd-ak-program-panel,
  .pgd-ak-inspector,
  .pgd-ak-race {
    border-radius: 8px;
    box-shadow: none;
  }

  .pgd-ak-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .pgd-ak-toolbar__title {
    min-height: 0;
    gap: 4px;
    padding: 10px 11px;
    border-right: 0;
    border-bottom: 1px solid #deccb7;
  }

  .pgd-ak-toolbar h1 {
    font-size: 21px;
    font-weight: 700;
  }

  .pgd-ak-toolbar__title p {
    max-width: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.32;
  }

  .pgd-ak-kicker,
  .pgd-ak-section-kicker,
  .pgd-ak-field span {
    font-weight: 700;
    letter-spacing: .03em;
  }

  .pgd-ak-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .pgd-ak-field,
  .pgd-ak-field--unit,
  .pgd-ak-strategy,
  .pgd-ak-submit,
  .pgd-ak-method {
    grid-column: auto;
  }

  .pgd-ak-field select,
  .pgd-ak-field input {
    height: 42px;
    font-size: 14px;
    font-weight: 600;
  }

  .pgd-ak-unit {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .pgd-ak-unit__quick {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 4px;
    font-weight: 700;
  }

  .pgd-ak-unit__custom {
    grid-column: 1 / -1;
  }

  .pgd-ak-strategy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .pgd-ak-strategy__item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 44px;
    padding: 7px 5px;
    text-align: center;
  }

  .pgd-ak-strategy__text strong {
    font-size: 11px;
    font-weight: 700;
  }

  .pgd-ak-strategy__text small {
    display: none;
  }

  .pgd-ak-submit {
    min-width: 0;
    height: 44px;
    box-shadow: none;
    transform: none;
  }

  .pgd-ak-submit:hover,
  .pgd-ak-submit:focus-visible,
  .pgd-ak-submit:active {
    box-shadow: none;
    transform: none;
  }

  .pgd-ak-method {
    display: block;
    padding: 8px;
  }

  .pgd-ak-method__title {
    font-weight: 700;
  }

  .pgd-ak-method__copy p {
    display: none;
  }

  .pgd-ak-method__tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 5px;
    max-width: 100%;
    margin-top: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pgd-ak-method__tags::-webkit-scrollbar {
    display: none;
  }

  .pgd-ak-method__tags span {
    flex: 0 0 auto;
    height: 24px;
    font-weight: 600;
    white-space: nowrap;
  }

  .pgd-ak-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .pgd-ak-summary__item,
  .pgd-ak-summary__item:nth-child(1),
  .pgd-ak-summary__item:nth-child(2),
  .pgd-ak-summary__item:nth-child(n+3) {
    min-width: 0;
    padding: 7px 8px;
  }

  .pgd-ak-summary__item span,
  .pgd-ak-program-facts span,
  .pgd-ak-inspector__grid span,
  .pgd-ak-inspector__foot span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  .pgd-ak-summary__item strong,
  .pgd-ak-program-facts strong,
  .pgd-ak-inspector__grid strong {
    font-size: 13px;
    font-weight: 700;
  }

  .pgd-ak-workbench {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .pgd-ak-workbench__main {
    order: 1;
  }

  .pgd-ak-inspector {
    order: 2;
  }

  .pgd-ak-program-panel {
    order: 3;
  }

  .pgd-ak-program-panel__head,
  .pgd-ak-inspector__head {
    padding: 9px 10px;
  }

  .pgd-ak-program-facts,
  .pgd-ak-inspector__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .pgd-ak-program-facts div,
  .pgd-ak-inspector__grid div,
  .pgd-ak-inspector__estimate,
  .pgd-ak-inspector__warning {
    padding: 7px;
    border-radius: 6px;
  }

  .pgd-ak-program-facts div.is-wide {
    grid-column: 1 / -1;
  }

  .pgd-ak-inspector__note {
    display: none;
  }

  .pgd-ak-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    min-height: 0;
    padding: 9px 10px;
  }

  .pgd-ak-section-head h2 {
    font-size: 18px;
    font-weight: 700;
  }

  .pgd-ak-section-head--analysis p {
    max-width: none;
    font-size: 11px;
    font-weight: 600;
  }

  .pgd-ak-section-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
  }

  .pgd-ak-section-actions {
    justify-content: flex-start;
    gap: 6px;
  }

  .pgd-ak-transfer-box {
    min-height: 30px;
    max-width: 100%;
  }

  .pgd-ak-transfer-box__text {
    font-size: 9.5px;
  }

  .pgd-ak-section-meta span {
    height: 22px;
    font-weight: 600;
  }

  .pgd-ak-slip {
    padding: 5px 9px;
  }

  .pgd-ak-slip-row {
    grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
    grid-template-areas:
      "race score"
      "picks picks";
    align-items: start;
    gap: 6px 8px;
    min-height: 0;
    padding: 8px 0;
  }

  .pgd-ak-slip-race {
    grid-area: race;
  }

  .pgd-ak-slip-picks {
    grid-area: picks;
    gap: 5px;
  }

  .pgd-ak-slip-score {
    grid-area: score;
    justify-self: end;
    min-width: 92px;
    text-align: right;
  }

  .pgd-ak-slip-race strong,
  .pgd-ak-race__identity strong {
    font-size: 13px;
    font-weight: 700;
  }

  .pgd-ak-slip-race span,
  .pgd-ak-race__identity span {
    font-size: 10px;
    line-height: 1.25;
  }

  .pgd-ak-slip-score strong {
    font-size: 11px;
    font-weight: 700;
  }

  .pgd-ak-slip-score span {
    font-size: 9px;
  }

  .pgd-ak-slip-pick {
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
  }

  .pgd-ak-race-list {
    gap: 8px;
    padding: 7px;
  }

  .pgd-ak-race__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 9px;
  }

  .pgd-ak-race__forecast {
    justify-content: flex-start;
    text-align: left;
  }

  .pgd-ak-race__forecast span {
    font-size: 9px;
  }

  .pgd-ak-race__forecast strong {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
  }

  .pgd-ak-race__status,
  .pgd-ak-race-scenario {
    gap: 5px;
    padding-inline: 9px;
  }

  .pgd-ak-race__status span,
  .pgd-ak-race-scenario span {
    font-weight: 600;
  }

  .pgd-ak-race-picks {
    gap: 6px;
    padding: 7px 9px;
  }

  .pgd-ak-race-pick {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "no horse role"
      "no score score";
    align-items: center;
    gap: 5px 7px;
    min-height: 48px;
    padding: 7px 8px;
  }

  .pgd-ak-race-pick__role {
    grid-area: role;
    justify-self: end;
    width: auto;
    max-width: 100%;
    height: 19px;
    padding: 0 7px;
    border: 1px solid rgba(139, 106, 67, .18);
    border-radius: 999px;
    background: rgba(255, 250, 241, .82);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .pgd-ak-race-pick__no {
    grid-area: no;
    align-self: center;
    width: 26px;
    height: 26px;
    font-weight: 700;
  }

  .pgd-ak-race-pick__horse {
    grid-area: horse;
  }

  .pgd-ak-race-pick__horse strong {
    font-size: 12px;
    font-weight: 700;
  }

  .pgd-ak-race-pick__horse small,
  .pgd-ak-race-pick__score small {
    font-size: 9px;
    font-weight: 600;
  }

  .pgd-ak-race-pick__score strong {
    font-size: 14px;
    font-weight: 700;
  }

  .pgd-ak-race-pick__score {
    grid-area: score;
    justify-self: start;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-align: left;
  }

  .pgd-ak-race-detail summary {
    min-height: 36px;
    padding: 7px 9px;
  }

  .pgd-ak-rank-table {
    padding: 6px 7px 8px;
  }

  .pgd-ak-rank-row {
    grid-template-columns: 26px 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank no horse score"
      "rank no horse trust"
      ". . signals signals";
    gap: 5px 6px;
    padding: 7px;
  }

  .pgd-ak-rank-row__rank {
    grid-area: rank;
  }

  .pgd-ak-rank-row__no {
    grid-area: no;
  }

  .pgd-ak-rank-row__horse {
    grid-area: horse;
  }

  .pgd-ak-rank-row__score {
    grid-area: score;
    align-self: end;
    justify-self: end;
    font-size: 13px;
    font-weight: 700;
  }

  .pgd-ak-rank-row__trust {
    grid-area: trust;
    justify-self: end;
    font-weight: 600;
  }

  .pgd-ak-rank-row__signals {
    grid-area: signals;
    max-height: none;
    overflow: visible;
  }

  .pgd-ak-rank-row__signals em {
    font-size: 8.5px;
    font-weight: 600;
  }
}

@media (max-width: 430px) {
  .pgd-ak-page {
    padding-inline: 5px;
  }

  .pgd-ak-toolbar__title,
  .pgd-ak-form,
  .pgd-ak-section-head,
  .pgd-ak-program-panel__head,
  .pgd-ak-inspector__head {
    padding-inline: 8px;
  }

  .pgd-ak-toolbar h1 {
    font-size: 20px;
  }

  .pgd-ak-field select,
  .pgd-ak-field input {
    height: 40px;
  }

  .pgd-ak-unit {
    gap: 5px;
  }

  .pgd-ak-strategy {
    gap: 5px;
  }

  .pgd-ak-strategy__item {
    min-height: 40px;
    padding: 6px 3px;
  }

  .pgd-ak-strategy__icon {
    width: 21px;
    height: 21px;
  }

  .pgd-ak-strategy__text strong {
    font-size: 10px;
  }

  .pgd-ak-method__tags span,
  .pgd-ak-section-meta span {
    height: 22px;
    padding-inline: 7px;
  }

  .pgd-ak-transfer-box {
    width: 100%;
    justify-content: space-between;
    padding-left: 7px;
  }

  .pgd-ak-summary,
  .pgd-ak-program-facts,
  .pgd-ak-inspector__grid {
    gap: 5px;
  }

  .pgd-ak-summary__item,
  .pgd-ak-program-facts div,
  .pgd-ak-inspector__grid div {
    padding: 6px;
  }

  .pgd-ak-slip {
    padding-inline: 7px;
  }

  .pgd-ak-slip-pick {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .pgd-ak-race-pick {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "no role"
      "no horse"
      ". score";
    align-items: center;
  }

  .pgd-ak-race-pick__role {
    grid-area: role;
    justify-self: start;
    align-self: start;
    max-width: 100%;
    height: 18px;
    padding-inline: 6px;
    font-size: 8px;
    justify-content: flex-start;
  }

  .pgd-ak-race-pick__no {
    grid-area: no;
    align-self: center;
  }

  .pgd-ak-race-pick__horse {
    grid-area: horse;
  }

  .pgd-ak-race-pick__score {
    grid-area: score;
    justify-self: start;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .pgd-ak-rank-row {
    grid-template-columns: 24px 27px minmax(0, 1fr);
    grid-template-areas:
      "rank no horse"
      "rank no score"
      ". . trust"
      "signals signals signals";
  }

  .pgd-ak-rank-row__rank,
  .pgd-ak-rank-row__no {
    width: 24px;
    height: 24px;
  }

  .pgd-ak-rank-row__score,
  .pgd-ak-rank-row__trust {
    justify-self: start;
  }

  .pgd-ak-rank-row__signals {
    margin-top: 2px;
  }
}

/* Final race analysis pass: aligned rows, numeric scores only. */
.pgd-ak-entity-link {
  color: inherit;
  text-decoration: none;
}

.pgd-ak-entity-link:hover {
  color: var(--ak-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pgd-ak-race-pick__horse .pgd-ak-entity-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-ak-rank-row__horse .pgd-ak-entity-link {
  display: inline;
  min-width: 0;
  overflow-wrap: normal;
}

.pgd-ak-race__status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.pgd-ak-race__coverage {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  justify-content: end;
}

.pgd-ak-race__coverage strong {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pgd-ak-race-pick__score em {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #bd7b13;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .pgd-ak-race-pick {
    grid-template-columns: 82px 34px minmax(0, 1fr) 116px;
    grid-template-areas: none;
  }

  .pgd-ak-race-pick__role,
  .pgd-ak-race-pick__no,
  .pgd-ak-race-pick__horse,
  .pgd-ak-race-pick__score {
    grid-area: auto;
  }

  .pgd-ak-race-pick__role {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .pgd-ak-race-pick__score {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    min-width: 70px;
    text-align: right;
  }

  .pgd-ak-race-pick__score em {
    display: block;
  }
}

@media (max-width: 760px) {
  .pgd-ak-race__coverage {
    min-width: 118px;
  }

  .pgd-ak-race-pick__score {
    gap: 6px;
  }

  .pgd-ak-race-pick__score em {
    font-size: 12px;
  }
}

/* Compact detail candidates: one column on every viewport. */
.pgd-ak-rank-table {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid #f0e5d7;
}

.pgd-ak-rank-row,
.pgd-ak-rank-row:first-child {
  grid-template-columns: 24px 26px minmax(0, 1fr) auto;
  grid-template-areas: "rank no horse score";
  gap: 3px 6px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #f0e5d7;
  border-radius: 7px;
  background: #fffdfa;
}

.pgd-ak-rank-row__rank {
  grid-area: rank;
}

.pgd-ak-rank-row__no {
  grid-area: no;
}

.pgd-ak-rank-row__horse {
  grid-area: horse;
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.pgd-ak-rank-row__horse strong,
.pgd-ak-rank-row__horse small {
  display: inline;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-ak-rank-row__horse strong {
  flex: 0 1 auto;
  max-width: 54%;
  font-size: 11px;
  line-height: 1.1;
}

.pgd-ak-rank-row__horse small {
  flex: 1 1 auto;
  color: var(--ak-muted);
  font-size: 9px;
  line-height: 1.1;
}

.pgd-ak-rank-row__horse i {
  flex: 0 0 auto;
  color: #c7ab82;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.pgd-ak-rank-row__rank,
.pgd-ak-rank-row__no {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.pgd-ak-rank-row__score {
  grid-area: score;
  align-self: center;
  justify-self: end;
  font-size: 13px;
}

@media (max-width: 760px) {
  .pgd-ak-rank-table {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 7px;
  }

  .pgd-ak-rank-row,
  .pgd-ak-rank-row:first-child {
    grid-template-columns: 24px 26px minmax(0, 1fr) auto;
    padding: 7px;
  }
}

@media (max-width: 430px) {
  .pgd-ak-rank-row__horse {
    flex-wrap: wrap;
    gap: 1px 4px;
    white-space: normal;
  }

  .pgd-ak-rank-row__horse strong,
  .pgd-ak-rank-row__horse small {
    flex: 0 1 auto;
    max-width: 100%;
  }
}
