[hidden] {
  display: none !important;
}

.coach-demo-note {
  max-width: 72ch;
  margin: 0 0 1.35rem;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--sky);
  background: var(--pale);
  color: var(--ink);
}

.section-heading .button {
  margin-top: .5rem;
}

.drill-card__visual img,
.dialog-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drill-card__visual--diagram img { object-fit: contain; }
.diagram-pending { height: 100%; display: grid; place-items: center; padding: 1rem; color: white; font-weight: 700; text-align: center; }

.member-links { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.member-links .button { margin-bottom: .75rem; }
.member-links p { font-size: .94rem; margin-bottom: 1rem; }
.member-links h4 { color: var(--navy); font-size: 1rem; margin: 1.25rem 0 .5rem; }
.member-links ul { margin: 0; padding-left: 1.2rem; }
.member-links li { margin: .4rem 0; }

.tag--coach {
  background: #d9edf9;
  color: var(--navy);
}
.tag--draft {
  background: #fff1c7;
  color: #5d4300;
}
.saved-plans {
  margin: 1.2rem 0;
}
.saved-plans select {
  width: 100%;
  max-width: 34rem;
}
#planner-status:not(:empty) {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-left: 4px solid var(--sky);
  background: var(--pale);
}

.drill-card__edit {
  align-self: flex-start;
  margin-top: .6rem;
  padding: .2rem 0;
  font-size: .84rem;
}

.planner-aside h4 {
  margin: 1.8rem 0 .6rem;
  color: white;
}

.planner-aside .button--light {
  border-color: white;
  background: white;
  color: var(--navy);
}

.planner-aside .button--light:hover {
  border-color: #b6e4fb;
  background: #b6e4fb;
  color: var(--navy);
}

.worked-example {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--sky);
  background: var(--pale);
}

.worked-example h3,
.worked-example p {
  margin: 0 0 .4rem;
}

.diagram-notes {
  margin-top: 1rem;
}

.media-placeholder .button {
  margin-top: .4rem;
}

.editor-dialog {
  width: min(840px, calc(100% - 24px));
}

.editor-dialog .dialog-shell {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.editor-dialog h2 {
  margin: .35rem 2.5rem .7rem;
}

.editor-intro {
  max-width: 65ch;
}

.editor-dialog form > label,
.editor-grid label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 750;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.editor-dialog input,
.editor-dialog select,
.editor-dialog textarea {
  max-width: none;
}

.editor-dialog input[type=file] {
  height: auto;
}

.editor-dialog .editor-checkbox {
  flex-direction: row;
  align-items: center;
}

.editor-checkbox input {
  width: 1.2rem;
  min-height: 1.2rem;
  height: 1.2rem;
}

.editor-image-preview {
  max-width: 360px;
  margin-top: .8rem;
}

.editor-image-preview img {
  display: block;
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
}

.pitch-editor {
  margin-top: 1.35rem;
  padding: 1rem;
  border: 1px solid #bbd4e8;
  border-radius: 12px;
  background: #edf7fd;
}

.pitch-editor h3 { margin: 0 0 .35rem; }
.pitch-editor p { margin: 0 0 .8rem; }
.pitch-editor__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.pitch-tool { padding: .5rem .75rem; border: 1px solid #a8c4dc; border-radius: 8px; background: #fff; color: var(--navy); font: inherit; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.pitch-tool:hover { border-color: #2978aa; background: #f4fbff; }
.pitch-tool:focus-visible, #editor-pitch:focus-visible { outline: 3px solid #0b8bd5; outline-offset: 2px; }
.pitch-tool.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.pitch-tool.is-active:hover { background: #124174; }
.pitch-tool--blue { border-color: #0758c5; color: #0758c5; }
.pitch-tool--red { border-color: #c7343a; color: #9a2027; }
#clear-pitch { margin-left: auto; }
#editor-pitch { display: block; width: 100%; max-width: 720px; height: auto; border: 4px solid #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(7,55,94,.14); cursor: crosshair; touch-action: none; }
#editor-pitch.is-moving { cursor: grab; }
#editor-pitch.is-dragging { cursor: grabbing; }
.pitch-editor__direction { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; max-width: 720px; margin-bottom: .5rem; color: var(--navy); font-weight: 750; }
.pitch-editor__direction select { width: auto; min-width: 190px; }
.pitch-editor__status { max-width: 720px; min-height: 2.8rem; font-size: .88rem; font-weight: 700; color: var(--navy); }
.coach-pitch-image { display: block; width: min(100%, 720px); height: auto; margin-top: .7rem; border-radius: 8px; }
.pitch-editor__notes { display: flex; flex-direction: column; gap: .35rem; max-width: 720px; margin-top: .9rem; color: var(--navy); font-weight: 750; }
.pitch-editor__add { margin-top: .75rem; }
.pitch-editor__add:disabled { opacity: .55; cursor: not-allowed; }
.pitch-editor__list h4 { margin: 1.35rem 0 .7rem; color: var(--navy); }
.pitch-editor__saved, .pitch-sequence__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.pitch-editor__saved figure, .pitch-sequence figure { margin: 0; padding: .6rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.pitch-editor__saved img, .pitch-sequence img { display: block; width: 100%; aspect-ratio: 7 / 5; object-fit: contain; border-radius: 5px; background: #e9f2f8; }
.pitch-editor__saved figcaption, .pitch-sequence figcaption { display: grid; gap: .2rem; padding: .45rem .15rem .1rem; color: var(--ink); font-size: .88rem; }
.pitch-editor__saved figcaption strong, .pitch-sequence figcaption strong { color: var(--navy); }
.pitch-editor__saved .text-button { justify-self: start; padding: .2rem 0; }
.pitch-sequence { margin-top: 1.5rem; }
.pitch-sequence h3 { margin-bottom: .7rem; }

.editor-error {
  padding: .8rem 1rem;
  border-left: 4px solid #af283b;
  background: #fff0f2;
  color: #7d1725;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

@media (max-width: 600px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .pitch-editor__saved, .pitch-sequence__grid { grid-template-columns: 1fr; }
}
.dialog-close {
  display: grid;
  place-items: center;
  padding: 0;
}

.dialog-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}
