.pgd-private-note-widget {
  display: inline-flex;
  align-items: center;
}

.pgd-private-note-btn__label.is-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pgd-private-note-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.pgd-private-note-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.pgd-private-note-btn.is-login-cta {
  opacity: .78;
}

.pgd-private-note-btn.is-login-cta:hover {
  opacity: 1;
}

.pgd-private-note-btn i {
  font-size: 14px;
}

.pgd-private-note-btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
}

.pgd-private-note-btn.is-filled {
  border-color: var(--gold-border);
  color: var(--gold-dark);
  background: rgba(232, 160, 32, .08);
}

.pgd-private-note-btn.is-filled .pgd-private-note-btn__dot {
  opacity: 1;
  background: #f5c242;
}

.pgd-private-note-btn.is-filled svg {
  fill: currentColor;
}

.pgd-private-note-btn.is-compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.pgd-private-note-btn.is-icon-only {
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  gap: 0;
}

.pgd-private-note-btn.is-icon-only .pgd-private-note-btn__dot {
  position: absolute;
  top: 6px;
  right: 6px;
}

.pgd-private-note-btn.is-icon-only i {
  font-size: 13px;
}

.pgd-private-note-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: 560px;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.pgd-private-note-dialog::backdrop {
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(3px);
}

.pgd-private-note-dialog__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: none;
  padding: 22px;
}

.pgd-private-note-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pgd-private-note-dialog__close:hover {
  border-color: var(--gold-border);
  color: var(--gold-dark);
}

.pgd-private-note-dialog__head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.pgd-private-note-dialog__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.pgd-private-note-dialog__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
}

.pgd-private-note-dialog__entity {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}

.pgd-private-note-dialog__help {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text3);
}

.pgd-private-note-form {
  display: grid;
  gap: 12px;
}

.pgd-private-note-form__field {
  display: grid;
  gap: 8px;
}

.pgd-private-note-form__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
}

.pgd-private-note-form textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  outline: none;
}

.pgd-private-note-form textarea:focus {
  border-color: var(--gold-border);
  box-shadow: none;
}

.pgd-private-note-form__status {
  min-height: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
}

.pgd-private-note-form__status.is-error {
  color: var(--red);
}

.pgd-private-note-form__status.is-success {
  color: var(--green);
}

.pgd-private-note-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pgd-private-note-form__ghost,
.pgd-private-note-form__submit {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pgd-private-note-form__ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text3);
}

.pgd-private-note-form__ghost:hover {
  border-color: var(--red-border);
  color: var(--red);
}

.pgd-private-note-form__submit {
  border: 0;
  background: var(--gold);
  color: var(--brand);
}

.pgd-private-note-form__submit:hover {
  background: var(--gold-dark);
  color: #fff;
}

.pgd-private-note-form [hidden] {
  display: none !important;
}

.pgd-inline-entity-note {
  flex: 0 0 auto;
}

/* Not rozeti: tek yorum balonu ikonu, çerçevesiz. Boş/takipte/dolu yalnızca
   renk ve balonun dolu/boş halinden (bkz. .is-filled svg) anlaşılır. */
.pgd-inline-entity-note__btn {
  min-width: 20px;
  min-height: 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text3);
  box-shadow: none;
  opacity: .5;
}

.pgd-inline-entity-note__btn .pgd-private-note-btn__dot,
.pgd-inline-entity-note__btn .pgd-private-note-btn__count {
  display: none;
}

.pgd-inline-entity-note__btn:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
  opacity: 1;
}

.pgd-inline-entity-note__btn.is-login-cta {
  opacity: .4;
}

.pgd-inline-entity-note__btn.is-login-cta:hover {
  opacity: .78;
}

.pgd-inline-entity-note__btn.is-tracked {
  color: var(--text2);
  opacity: .8;
}

.pgd-inline-entity-note__btn.is-tracked:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
  opacity: 1;
}

.pgd-inline-entity-note__btn.is-filled {
  background: transparent;
  color: var(--gold-dark);
  opacity: 1;
}

.pgd-inline-entity-note__btn.is-filled:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.pgd-at-ad-line .pgd-inline-entity-note,
.pgd-mobile-race-name-line .pgd-inline-entity-note,
.pgd-jokey-row .pgd-inline-entity-note,
.pgd-mobile-race-jokey-line .pgd-inline-entity-note {
  margin-left: 2px;
}

.pgd-jokey-row:has(.pgd-jokey-name-line) {
  align-items: flex-start;
}

.pgd-jokey-name-line {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.pgd-jokey-name-line .pgd-jokey-ad {
  flex: 1 1 auto;
  min-width: 0;
}

.pgd-jokey-name-line .pgd-inline-entity-note {
  flex-shrink: 0;
  margin-left: 0;
}

/* Yarış/Hipodrom notum: dar hap değil, kısa köşeli dikdörtgen. */
.pgd-race-head-note__btn {
  border-radius: 8px;
  padding: 6px 11px;
}

/* Mobil kart alt çubuğunda at/jokey notu, kıyaslama/galop/detay ile aynı
   kare-buton dilini paylaşsın; renk durumu (boş/takipte/dolu) ayrı kalır. */
.pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn {
  min-width: 24px;
  min-height: 24px;
  border: 1px solid rgba(214, 190, 156, 0.88);
  border-radius: 5px;
  background: #fffdfa;
  opacity: 1;
}

@media (max-width: 640px) {
  .pgd-private-note-btn__label {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pgd-private-note-dialog__panel {
    padding: 18px;
    border-radius: 18px;
  }

  .pgd-private-note-dialog__title {
    font-size: 20px;
  }

  .pgd-private-note-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pgd-private-note-form__ghost,
  .pgd-private-note-form__submit {
    justify-content: center;
    width: 100%;
  }

  /* Yarış/Hipodrom notum: dar ekranda etiketli hap yerine aynı çerçevesiz rozet. */
  .pgd-race-head-note__btn {
    min-width: 20px;
    min-height: 20px;
    border: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
  }

  .pgd-race-head-note__btn .pgd-private-note-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .pgd-race-head-note__btn .pgd-private-note-btn__dot,
  .pgd-race-head-note__btn .pgd-private-note-btn__count {
    display: none;
  }
}

/* Takip + not kısayolu: dolu kalp (Bootstrap Icons bi-heart-fill) */
.pgd-private-note-btn.pgd-inline-follow-note-heart,
.pgd-inline-entity-note__btn.pgd-inline-follow-note-heart {
  opacity: 1 !important;
  color: #e11d48 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
}

.pgd-inline-follow-note-heart i {
  font-size: 15px;
  line-height: 1;
}

.pgd-inline-entity-note__btn.pgd-inline-follow-note-heart:hover,
.pgd-inline-entity-note__btn.pgd-inline-follow-note-heart.is-filled:hover,
.pgd-private-note-btn.pgd-inline-follow-note-heart:hover {
  color: #be123c !important;
  background: rgba(225, 29, 72, 0.1) !important;
  border-radius: 6px;
  opacity: 1 !important;
}

.pgd-inline-follow-note-heart.is-filled .pgd-private-note-btn__dot {
  background: #f5c242;
  box-shadow: none;
}

/* Analiz Defteri: tarihçeli çalışma kayıtları */
.pgd-private-note-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #7e4a33;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.pgd-private-note-btn__count[hidden] {
  display: none !important;
}

.pgd-private-note-btn.is-icon-only .pgd-private-note-btn__count {
  position: absolute;
  top: -7px;
  right: -8px;
  border: 2px solid #fff;
}

.pgd-private-note-dialog__panel {
  max-height: min(760px, calc(100dvh - 34px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pgd-note-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid rgba(31, 41, 55, .09);
  border-radius: 13px;
  background: #f4f5f7;
}

.pgd-note-tab {
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pgd-note-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(126, 74, 51, .12);
  color: #7e4a33;
  font-size: 10px;
}

.pgd-note-tab.is-active {
  background: #fff;
  color: #38251f;
  box-shadow: 0 2px 9px rgba(31, 41, 55, .08);
}

.pgd-note-tab-panel[hidden] {
  display: none !important;
}

.pgd-notebook-quick-form,
.pgd-private-note-form {
  display: grid;
  gap: 13px;
}

.pgd-notebook-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 74, 51, .13);
  border-radius: 11px;
  background: rgba(126, 74, 51, .055);
  color: #6d3f2d;
  font-size: 12px;
  font-weight: 800;
}

.pgd-notebook-source small {
  min-width: 0;
  overflow: hidden;
  color: #78716c;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-note-tag-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 11px;
  border: 1px solid rgba(31, 41, 55, .15);
  border-radius: 10px;
  background: #fff;
  color: #292524;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.pgd-note-history {
  display: grid;
  gap: 10px;
}

.pgd-note-history__loading,
.pgd-note-history__empty {
  padding: 25px 16px;
  border: 1px dashed rgba(31, 41, 55, .16);
  border-radius: 12px;
  color: #78716c;
  font-size: 13px;
  text-align: center;
}

.pgd-note-entry {
  position: relative;
  padding: 13px 14px;
  border: 1px solid rgba(31, 41, 55, .1);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 41, 55, .045);
}

.pgd-note-entry.is-reviewed {
  opacity: .68;
  background: #fafaf9;
}

.pgd-note-entry__meta,
.pgd-note-entry__source,
.pgd-note-entry__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgd-note-entry__meta {
  justify-content: space-between;
}

.pgd-note-entry__meta time {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
}

.pgd-note-entry__tag {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
  font-weight: 850;
}

.pgd-note-entry__tag.is-olumlu { background: #ecfdf5; color: #047857; }
.pgd-note-entry__tag.is-olumsuz { background: #fff1f2; color: #be123c; }
.pgd-note-entry__tag.is-uygun_sart { background: #fffbeb; color: #a16207; }
.pgd-note-entry__tag.is-galop { background: #eff6ff; color: #1d4ed8; }
.pgd-note-entry__tag.is-yaris_ici { background: #f5f3ff; color: #6d28d9; }

.pgd-note-entry__text {
  margin: 10px 0;
  color: #292524;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pgd-note-entry__source {
  flex-wrap: wrap;
  color: #78716c;
  font-size: 11px;
}

.pgd-note-entry__context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -2px 0 9px;
}

.pgd-note-entry__context span {
  padding: 3px 6px;
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.pgd-note-entry__source a {
  color: #7e4a33;
  font-weight: 800;
  text-decoration: none;
}

.pgd-note-entry__source small::before {
  content: "·";
  margin-right: 8px;
}

.pgd-note-entry__actions {
  justify-content: flex-end;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 41, 55, .07);
}

.pgd-note-entry__actions button {
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: #78716c;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pgd-note-entry__delete:hover { color: #be123c; }
.pgd-note-entry__review:hover { color: #047857; }

.pgd-note-locked {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(180, 127, 37, .22);
  border-radius: 14px;
  background: #fffbeb;
  color: #78350f;
}

.pgd-note-locked > i { font-size: 21px; }
.pgd-note-locked strong,
.pgd-note-locked span { display: block; }
.pgd-note-locked span { margin-top: 3px; color: #92400e; font-size: 12px; }
.pgd-note-locked a {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 9px;
  background: #7e4a33;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.pgd-private-note-form__ghost.is-loading,
.pgd-private-note-form__submit.is-loading,
.pgd-note-entry__actions button.is-loading {
  cursor: wait;
  opacity: .55;
}

@media (max-width: 640px) {
  .pgd-private-note-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .pgd-private-note-dialog__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(86dvh, 760px);
    padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    animation: pgdNoteSheetIn .22s ease-out both;
  }

  .pgd-private-note-dialog__close {
    top: 12px;
    right: 12px;
  }

  .pgd-note-tabs { position: sticky; top: -22px; z-index: 3; }
  .pgd-notebook-source { align-items: flex-start; flex-direction: column; }
  .pgd-notebook-source small { max-width: 100%; }
}

@keyframes pgdNoteSheetIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Not çalışma alanı: uzun arşivlerde okunaklı ve dokunmatik düzen */
.pgd-private-note-dialog__panel {
  scrollbar-gutter: stable;
}

.pgd-note-tabs {
  gap: 7px;
  padding: 5px;
}

.pgd-note-tab {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12.5px;
}

.pgd-note-history {
  gap: 12px;
}

.pgd-note-entry {
  padding: 16px;
  border-radius: 14px;
  box-shadow: none;
}

.pgd-note-entry__meta time {
  font-size: 11px;
}

.pgd-note-entry__tag {
  padding: 5px 8px;
  font-size: 10.5px;
}

.pgd-note-entry__text {
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.7;
}

.pgd-note-entry__source {
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.pgd-note-entry__context {
  gap: 7px;
  margin-bottom: 11px;
}

.pgd-note-entry__context span {
  padding: 5px 7px;
  font-size: 10px;
}

.pgd-note-entry__actions {
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
}

.pgd-note-entry__actions button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(31, 41, 55, .11);
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
}

@media (max-width: 640px) {
  .pgd-private-note-dialog__panel {
    padding: 24px 17px calc(18px + env(safe-area-inset-bottom));
  }

  .pgd-note-tabs {
    top: -24px;
    margin-right: -2px;
    margin-left: -2px;
  }

  .pgd-note-tab {
    min-height: 46px;
    padding: 8px 7px;
    font-size: 11.5px;
  }

  .pgd-private-note-form textarea {
    min-height: 160px;
    font-size: 16px;
  }

  .pgd-note-entry {
    padding: 15px;
  }

  .pgd-note-entry__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pgd-note-entry__text {
    font-size: 14px;
  }

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

  .pgd-note-entry__actions button {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
  }
}

/* Program note actions: one compact icon system for the race header and card footer. */
.pgd-note-glyph {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none !important;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.pgd-program-head__meta .pgd-race-head-note {
  flex: 0 0 auto;
  margin: 0;
}

.pgd-program-head__meta .pgd-race-head-note__btn {
  position: relative;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  gap: 0;
  border: 1px solid rgba(95, 67, 30, .18);
  border-radius: 9px;
  background: #fffdf9;
  color: #725021;
}

.pgd-program-head__meta .pgd-race-head-note--race .pgd-race-head-note__btn {
  color: #9b5c0b;
}

.pgd-program-head__meta .pgd-race-head-note--hippodrome .pgd-race-head-note__btn {
  color: #376b70;
}

.pgd-program-head__meta .pgd-race-head-note__btn:hover {
  border-color: currentColor;
  background: #fff8eb;
}

.pgd-program-head__meta .pgd-race-head-note__btn .pgd-private-note-btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pgd-program-head__meta .pgd-race-head-note__btn .pgd-private-note-btn__dot,
.pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn .pgd-private-note-btn__dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
}

.pgd-program-head__meta .pgd-race-head-note__btn .pgd-private-note-btn__count,
.pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn .pgd-private-note-btn__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid #fff;
  font-size: 8px;
  line-height: 12px;
}

@media (max-width: 900px) {
  html body .pgd-page-program .pgd-program-head__meta > .pgd-race-head-note--race,
  html body .pgd-board-screen .pgd-program-head__meta > .pgd-race-head-note--race {
    order: 4 !important;
  }

  html body .pgd-page-program .pgd-program-head__meta > .pgd-race-head-note--hippodrome,
  html body .pgd-board-screen .pgd-program-head__meta > .pgd-race-head-note--hippodrome {
    order: 5 !important;
  }

  html body .pgd-page-program .pgd-program-head__detail-btn--inline.is-analysis,
  html body .pgd-board-screen .pgd-program-head__detail-btn--inline.is-analysis {
    order: 6 !important;
  }

  html body .pgd-page-program .pgd-program-head__detail-btn--inline,
  html body .pgd-board-screen .pgd-program-head__detail-btn--inline,
  html body .pgd-page-program .pgd-program-head__detail-btn--inline.is-analysis,
  html body .pgd-board-screen .pgd-program-head__detail-btn--inline.is-analysis,
  html body .pgd-page-program .pgd-program-head__meta .pgd-race-head-note__btn,
  html body .pgd-board-screen .pgd-program-head__meta .pgd-race-head-note__btn {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    border: 1px solid rgba(95, 67, 30, .16) !important;
    border-radius: 8px !important;
    background: #fffdf9 !important;
    box-shadow: none !important;
  }

  html body .pgd-page-program .pgd-program-head__detail-btn-label,
  html body .pgd-board-screen .pgd-program-head__detail-btn-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
  }

  html body .pgd-page-program .pgd-program-head__meta .pgd-race-head-note__btn .pgd-note-glyph,
  html body .pgd-board-screen .pgd-program-head__meta .pgd-race-head-note__btn .pgd-note-glyph {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  html body .pgd-page-program .pgd-lineup-mobile-bottombar,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body .pgd-page-program .pgd-lineup-mobile-bottombar-left,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar-left,
  html body .pgd-page-program .pgd-lineup-mobile-actions,
  html body .pgd-board-screen .pgd-lineup-mobile-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: auto !important;
  }

  html body .pgd-page-program .pgd-lineup-mobile-actions,
  html body .pgd-board-screen .pgd-lineup-mobile-actions {
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  html body .pgd-page-program .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn,
  html body .pgd-page-program .pgd-lineup-mobile-action,
  html body .pgd-board-screen .pgd-lineup-mobile-action,
  html body .pgd-page-program button.pgd-lineup-mobile-action,
  html body .pgd-board-screen button.pgd-lineup-mobile-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    border: 1px solid rgba(125, 91, 47, .22) !important;
    border-radius: 9px !important;
    background: #fffdfa !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  html body .pgd-page-program .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn {
    color: #885a18 !important;
  }

  html body .pgd-page-program .pgd-lineup-mobile-bottombar-left .is-type-jokey .pgd-inline-entity-note__btn,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar-left .is-type-jokey .pgd-inline-entity-note__btn {
    color: #53606d !important;
  }

  html body .pgd-page-program .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn .pgd-note-glyph,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn .pgd-note-glyph {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

@media (max-width: 360px) {
  html body .pgd-page-program .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn,
  html body .pgd-board-screen .pgd-lineup-mobile-bottombar-left .pgd-inline-entity-note__btn,
  html body .pgd-page-program .pgd-lineup-mobile-action,
  html body .pgd-board-screen .pgd-lineup-mobile-action,
  html body .pgd-page-program button.pgd-lineup-mobile-action,
  html body .pgd-board-screen button.pgd-lineup-mobile-action {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }
}

@media (max-width: 900px) {
  html body:not(.pgd-board-screen-body) .pgd-page-program .pgd-program-head__detail-btn--inline,
  html body:not(.pgd-board-screen-body) .pgd-page-program .pgd-program-head__detail-btn--inline.is-analysis {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    border: 1px solid rgba(95, 67, 30, .16) !important;
    border-radius: 8px !important;
    background: #fffdf9 !important;
  }

  html body:not(.pgd-board-screen-body) .pgd-page-program .pgd-program-head__detail-btn--inline.is-analysis {
    order: 6 !important;
  }

  html body:not(.pgd-board-screen-body) .pgd-page-program .pgd-lineup-mobile-action,
  html body:not(.pgd-board-screen-body) .pgd-page-program button.pgd-lineup-mobile-action {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    border: 1px solid rgba(125, 91, 47, .22) !important;
    border-radius: 9px !important;
    background: #fffdfa !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 360px) {
  html body:not(.pgd-board-screen-body) .pgd-page-program .pgd-lineup-mobile-action,
  html body:not(.pgd-board-screen-body) .pgd-page-program button.pgd-lineup-mobile-action {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }
}
