.weekly-editor::before { display: none; }
.editor-shell {
  width: min(100% - 28px, 980px);
  margin: 24px auto 60px;
}
.editor-header { padding: 10px max(14px, calc((100vw - 980px) / 2)); border-bottom: 1px solid var(--line); }
.editor-header a { color: var(--text); font: 700 23px var(--display); }
.editor-shell h1 { font-size: clamp(40px, 8vw, 64px); margin-bottom: 8px; }
.editor-shell h2 { margin: 0; font: 700 32px var(--display); }
.editor-toolbar, .editor-review, .editor-day-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.editor-toolbar { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.editor-shell label { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 700; }
.editor-shell textarea, .editor-shell input, .editor-shell select {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.35 var(--sans);
}
.editor-shell textarea { resize: vertical; }
.editor-file { max-width: 210px; }
.editor-file input { font-size: 13px; }
.editor-shell button:not(.primary-button) {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  font-size: 13px;
}
.editor-shell button:focus-visible, .editor-shell :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.editor-shell button:disabled { opacity: .6; cursor: default; }
.editor-status { min-height: 22px; max-height: 180px; overflow: auto; white-space: pre-wrap; color: var(--muted); }
.editor-status[data-error="true"] { color: var(--red); }
.editor-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.editor-days button { display: grid; text-align: left; }
.editor-days button[aria-current="date"] { border-color: var(--green); }
.editor-days small, #editor-day-progress { color: var(--muted); }
.editor-day-header { justify-content: space-between; align-items: center; margin: 20px 0 12px; }
#editor-day-progress { margin: 3px 0 0; }
.editor-holes { display: grid; gap: 13px; }
.editor-hole { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.editor-hole legend { padding-inline: 6px; font: 700 22px var(--display); }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.editor-fields .field-wide { grid-column: 1 / -1; }
.editor-fields small { color: var(--muted); font-weight: 400; }
.editor-review { margin-top: 16px; }
@media (max-width: 600px) {
  .editor-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .editor-fields { grid-template-columns: 1fr; }
}

.editor-review-note { flex: 1 0 100%; }
.source-preview { color: var(--green); font-size: 12px; justify-self: start; }
