.yeo-pt-admin {
  --yeo-navy: #123f5a;
  --yeo-blue: #20779c;
  --yeo-sky: #e8f5fa;
  --yeo-border: #d7e3e9;
  --yeo-text: #173247;
  color: var(--yeo-text);
}

.yeo-pt-page-title {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 18px 0;
}

.yeo-pt-page-title h1 {
  color: var(--yeo-navy);
  font-size: 28px;
  font-weight: 750;
  margin: 0 0 5px;
}

.yeo-pt-page-title p {
  color: #5a6d7a;
  margin: 0;
}

.yeo-pt-panel,
.yeo-pt-day {
  background: #fff;
  border: 1px solid var(--yeo-border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(18, 63, 90, 0.06);
  padding: 20px;
}

.yeo-pt-table-wrap {
  overflow-x: auto;
}

.yeo-pt-table th {
  color: var(--yeo-navy);
}

.yeo-pt-actions {
  text-align: right;
}

.yeo-pt-empty {
  padding: 36px 20px;
  text-align: center;
}

.yeo-pt-empty h2 {
  color: var(--yeo-navy);
  margin-top: 0;
}

.yeo-pt-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.yeo-pt-badge-draft {
  background: #eef1f3;
  color: #53626b;
}

.yeo-pt-badge-active {
  background: #e2f7e9;
  color: #176b3a;
}

.yeo-pt-badge-archived {
  background: #fff1dc;
  color: #8a5400;
}

.yeo-pt-program-basics {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  margin-bottom: 20px;
}

.yeo-pt-field {
  min-width: 0;
}

.yeo-pt-field label {
  color: var(--yeo-navy);
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
}

.yeo-pt-field input,
.yeo-pt-field select,
.yeo-pt-field textarea {
  border-color: #b7cad4;
  border-radius: 7px;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

.yeo-pt-field input,
.yeo-pt-field select {
  min-height: 40px;
}

.yeo-pt-field input:disabled {
  background: #edf2f4;
  color: #5f6f78;
}

.yeo-pt-days {
  display: grid;
  gap: 20px;
}

.yeo-pt-weekly-editor {
  border-top: 4px solid #43b78f;
  margin-top: 20px;
}

.yeo-pt-weekly-editor-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.yeo-pt-weekly-editor-row {
  background: #f7fafb;
  border: 1px solid #d7e3e9;
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 12px;
}

.yeo-pt-weekly-editor-row.is-training {
  background: #f2fbf7;
  border-color: #a9dec9;
}

.yeo-pt-weekly-editor-day {
  align-items: center;
  align-self: stretch;
  background: #e8eef1;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 8px 5px;
  text-align: center;
}

.yeo-pt-weekly-editor-row.is-training .yeo-pt-weekly-editor-day {
  background: #d9f4e9;
}

.yeo-pt-weekly-editor-day strong {
  color: var(--yeo-navy);
  font-size: 11px;
  line-height: 1.2;
}

.yeo-pt-weekly-editor-day span {
  color: #627884;
  display: none;
  font-size: 11px;
  font-weight: 800;
}

.yeo-pt-weekly-editor-row .yeo-pt-field label {
  font-size: 11px;
}

.yeo-pt-weekly-day-field {
  grid-column: 2;
}

.yeo-pt-weekly-editor-row.is-off .yeo-pt-weekly-day-field {
  opacity: 0.55;
}

.yeo-pt-plan-sections {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.yeo-pt-guidance-panel {
  border-top: 4px solid #2c9a78;
}

.yeo-pt-guidance-supplements {
  border-top-color: #d99a32;
}

.yeo-pt-guidance-cardio {
  border-top-color: #20779c;
}

.yeo-pt-guidance-abs {
  border-top-color: #7359b8;
}

.yeo-pt-guidance-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.yeo-pt-guidance-header h2 {
  color: var(--yeo-navy);
  font-size: 21px;
  margin: 3px 0 5px;
}

.yeo-pt-guidance-header p {
  color: #5a6d7a;
  margin: 0;
}

.yeo-pt-guidance-eyebrow {
  color: #2c8069;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yeo-pt-guidance-supplements .yeo-pt-guidance-eyebrow {
  color: #9a6418;
}

.yeo-pt-guidance-cardio .yeo-pt-guidance-eyebrow {
  color: #176886;
}

.yeo-pt-guidance-abs .yeo-pt-guidance-eyebrow {
  color: #6546a8;
}

.yeo-pt-guidance-count {
  background: #e5f5ef;
  border-radius: 999px;
  color: #226b57;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 10px;
}

.yeo-pt-guidance-supplements .yeo-pt-guidance-count {
  background: #fff1d8;
  color: #875814;
}

.yeo-pt-guidance-cardio .yeo-pt-guidance-count {
  background: #e4f4fa;
  color: #155f7d;
}

.yeo-pt-guidance-abs .yeo-pt-guidance-count {
  background: #eee9fb;
  color: #5d429b;
}

.yeo-pt-context-plan {
  background: #fffaf0;
  border: 1px solid #efd9aa;
  border-radius: 12px;
  margin-top: 22px;
  padding: 18px;
}

.yeo-pt-context-plan-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.yeo-pt-context-plan-header h3 {
  color: var(--yeo-navy);
  font-size: 18px;
  margin: 3px 0 5px;
}

.yeo-pt-context-plan-header p {
  color: #6d624d;
  margin: 0;
}

.yeo-pt-context-plan .yeo-pt-guidance-eyebrow {
  color: #9a6418;
}

.yeo-pt-context-plan .yeo-pt-guidance-count {
  background: #fff1d8;
  color: #875814;
}

.yeo-pt-plan-rows {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}

.yeo-pt-plan-row {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #dbe8ee;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.yeo-pt-plan-row.yeo-pt-plan-row-added {
  animation: yeo-pt-plan-row-added 1.5s ease both;
}

.yeo-pt-add-plan-row.yeo-pt-add-confirmed {
  background: #dff8ed;
  border-color: #43a77f;
  color: #176546;
}

@keyframes yeo-pt-plan-row-added {
  0% {
    border-color: #43d3a0;
    box-shadow: 0 0 0 5px rgba(67, 211, 160, 0.25);
    transform: translateY(8px);
  }

  100% {
    border-color: #dbe8ee;
    box-shadow: 0 0 0 0 rgba(67, 211, 160, 0);
    transform: translateY(0);
  }
}

.yeo-pt-plan-row-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.75fr) minmax(190px, 0.9fr) minmax(300px, 2fr);
}

.yeo-pt-supplement-fields {
  grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.55fr) minmax(190px, 1fr) minmax(260px, 1.5fr);
}

.yeo-pt-cardio-fields {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.yeo-pt-abs-fields {
  grid-template-columns: minmax(210px, 1.5fr) minmax(180px, 1.1fr) repeat(4, minmax(90px, 0.55fr));
}

.yeo-pt-plan-row-actions {
  flex-direction: column;
}

.yeo-pt-plan-empty {
  background: #f7fafb;
  border: 1px dashed #b9ccd5;
  border-radius: 9px;
  color: #647984;
  margin: 18px 0 14px;
  padding: 18px;
  text-align: center;
}

.yeo-pt-editor-help {
  margin: -8px 0 14px;
}

.yeo-pt-day {
  border-top: 4px solid var(--yeo-blue);
}

.yeo-pt-day-header,
.yeo-pt-day-title-wrap,
.yeo-pt-order-buttons,
.yeo-pt-editor-footer {
  align-items: center;
  display: flex;
  gap: 8px;
}

.yeo-pt-day-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.yeo-pt-day-title-wrap {
  flex: 1;
}

.yeo-pt-day-title-wrap input {
  border: 0;
  border-bottom: 2px solid #c8dae3;
  border-radius: 0;
  color: var(--yeo-navy);
  font-size: 19px;
  font-weight: 750;
  max-width: 420px;
}

.yeo-pt-day-number {
  background: var(--yeo-navy);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  white-space: nowrap;
}

.yeo-pt-items {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.yeo-pt-item {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #dbe8ee;
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  padding: 14px;
}

.yeo-pt-item-preview {
  align-items: center;
  background: #e4eef3;
  border-radius: 8px;
  color: #708794;
  display: flex;
  font-weight: 800;
  height: 88px;
  justify-content: center;
  overflow: hidden;
  width: 88px;
}

.yeo-pt-item-preview img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.yeo-pt-item-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(250px, 2fr) repeat(5, minmax(92px, 0.55fr));
}

.yeo-pt-field-note {
  grid-column: 1 / -1;
}

.yeo-pt-item-actions {
  flex-direction: column;
}

.yeo-pt-editor-footer {
  justify-content: space-between;
  margin-top: 22px;
}

.yeo-pt-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.yeo-pt-exercise-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yeo-pt-exercise-card {
  align-items: center;
  border: 1px solid var(--yeo-border);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 12px;
}

.yeo-pt-exercise-thumb {
  align-items: center;
  background: #edf3f6;
  border-radius: 8px;
  color: #708794;
  display: flex;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.yeo-pt-exercise-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.yeo-pt-exercise-card h2 {
  color: var(--yeo-navy);
  font-size: 15px;
  margin: 5px 0;
}

.yeo-pt-category-label {
  color: var(--yeo-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yeo-pt-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
  max-width: 900px;
}

.yeo-pt-stat {
  background: var(--yeo-navy);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 4px;
  padding: 20px;
}

.yeo-pt-stat strong {
  font-size: 30px;
}

.yeo-pt-stat span {
  opacity: 0.84;
}

.yeo-pt-setup-card {
  max-width: 860px;
}

.yeo-pt-portal-status-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.yeo-pt-portal-status {
  align-items: center;
  background: #f7fafb;
  border: 1px solid #d8e5ea;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.yeo-pt-portal-status p {
  color: #526974;
  margin: 4px 0 0;
}

.yeo-pt-portal-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.yeo-pt-status-badge {
  background: #dff2e5;
  border-radius: 999px;
  color: #176032;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 9px;
}

.yeo-pt-status-badge.is-missing {
  background: #fff0d9;
  color: #80530d;
}

@media (max-width: 1280px) {
  .yeo-pt-program-basics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yeo-pt-item-fields {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(90px, 0.7fr));
  }

  .yeo-pt-exercise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yeo-pt-plan-row-fields,
  .yeo-pt-supplement-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yeo-pt-plan-content-field {
    grid-column: 1 / -1;
  }

  .yeo-pt-weekly-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .yeo-pt-page-title,
  .yeo-pt-day-header,
  .yeo-pt-editor-footer,
  .yeo-pt-guidance-header,
  .yeo-pt-context-plan-header {
    align-items: stretch;
    flex-direction: column;
  }

  .yeo-pt-program-basics,
  .yeo-pt-item-fields,
  .yeo-pt-exercise-grid,
  .yeo-pt-stat-grid {
    grid-template-columns: 1fr;
  }

  .yeo-pt-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .yeo-pt-item-preview {
    height: 68px;
    width: 68px;
  }

  .yeo-pt-item-actions {
    flex-direction: row;
    grid-column: 1 / -1;
  }

  .yeo-pt-plan-row {
    grid-template-columns: 1fr;
  }

  .yeo-pt-weekly-editor-grid {
    grid-template-columns: 1fr;
  }

  .yeo-pt-weekly-editor-row {
    grid-template-columns: 70px repeat(2, minmax(0, 1fr));
  }

  .yeo-pt-weekly-day-field {
    grid-column: auto;
  }

  .yeo-pt-plan-row-actions {
    flex-direction: row;
  }

  .yeo-pt-portal-status {
    align-items: stretch;
    flex-direction: column;
  }

  .yeo-pt-portal-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .yeo-pt-panel,
  .yeo-pt-day {
    padding: 14px;
  }

  .yeo-pt-item {
    grid-template-columns: 1fr;
  }

  .yeo-pt-plan-row-fields,
  .yeo-pt-supplement-fields {
    grid-template-columns: 1fr;
  }

  .yeo-pt-plan-content-field {
    grid-column: auto;
  }

  .yeo-pt-item-preview {
    height: 160px;
    width: 100%;
  }

  .yeo-pt-item-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .yeo-pt-plan-row-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .yeo-pt-add-plan-row {
    min-height: 46px;
    width: 100%;
  }

  .yeo-pt-context-plan {
    padding: 14px;
  }

  .yeo-pt-weekly-editor-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .yeo-pt-weekly-editor-day strong {
    display: none;
  }

  .yeo-pt-weekly-editor-day span {
    display: block;
  }

  .yeo-pt-weekly-day-field {
    grid-column: 2;
  }

  .yeo-pt-day-header .yeo-pt-order-buttons {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yeo-pt-plan-row.yeo-pt-plan-row-added {
    animation: none;
    border-color: #43d3a0;
    box-shadow: 0 0 0 3px rgba(67, 211, 160, 0.18);
  }
}
