.editorial {
  min-width: 0;
}
.ed-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 9px;
  align-items: end;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.ed-controls .field,
.ed-compare-head .field,
.ed-navigation .field,
.ed-focus-fields .field {
  margin: 0;
  min-width: 0;
}
.ed-controls .error {
  grid-column: 1/-1;
  margin: 0;
}
.ed-controls .error:empty {
  display: none;
}
.ed-controls input,
.ed-controls select,
.ed-navigation select,
.ed-compare-head select {
  width: 100%;
  min-width: 0;
}
.ed-grid,
.ed-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(222px, 100%), 1fr));
  gap: 13px;
  margin: 10px 0;
}
.ed-card,
.ed-format,
.ed-panel,
.ed-comparison {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.ed-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--soft);
}
.ed-card-image a,
.ed-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-card-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ed-card-body {
  padding: 11px 13px;
  display: grid;
  gap: 4px;
}
.ed-card-status,
.ed-tools,
.ed-actions,
.ed-heading-meta,
.ed-navigation,
.ed-compare-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ed-tools {
  margin: 10px 0;
  min-height: 4px;
}
.ed-heading-meta {
  margin: 0 0 13px;
  font-size: 13px;
}
.ed-navigation {
  justify-content: space-between;
  margin: 14px 0;
}
.ed-navigation .field {
  max-width: 100%;
}
.ed-pick,
.ed-best,
.ed-tag {
  position: absolute;
  padding: 4px 7px;
  border-radius: 4px;
  color: var(--surface);
  background: #171817eb;
  font-size: 11px;
  font-weight: 700;
}
.ed-pick {
  left: 7px;
  top: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  cursor: pointer;
}
.ed-pick input,
.ed-choice input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--link);
}
.ed-best {
  bottom: 7px;
  right: 7px;
  background: var(--accent-soft);
  color: var(--ink);
}
.ed-card-status {
  margin-top: 5px;
}
.ed-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 28%);
  gap: 14px;
  align-items: start;
}
.ed-main,
.ed-sidebar {
  min-width: 0;
}
.ed-panel {
  padding: 13px;
  margin-bottom: 10px;
}
.ed-panel .section-head {
  margin-bottom: 8px;
}
.ed-panel h2,
.ed-comparison h2 {
  font-size: 17px;
}
.ed-panel .facts {
  display: block;
}
.ed-panel .facts div {
  margin: 8px 0;
}
.ed-panel .facts dt {
  font-size: 11px;
}
.ed-panel .facts dd {
  font-size: 13px;
}
.ed-panel button,
.ed-panel .as-button {
  font-size: 12px;
  margin: 3px 3px 3px 0;
}
.ed-compare-head {
  justify-content: space-between;
  padding: 12px;
}
.ed-compare-head .field {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.ed-compare-head select {
  font-size: 13px;
}
.ed-wipe {
  position: relative;
  width: 100%;
  max-height: 72vh;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--rail);
  isolation: isolate;
  cursor: ew-resize;
}
.ed-wipe img,
.ed-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ed-wipe img {
  user-select: none;
  pointer-events: none;
}
.ed-after {
  clip-path: inset(0 0 0 var(--split));
}
.ed-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--surface);
  box-shadow: 0 0 3px #000;
}
.ed-edge:before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--control-line);
  border-radius: 100%;
  background: var(--surface);
  color: var(--ink);
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 27px;
}
.ed-tag {
  bottom: 9px;
  pointer-events: none;
}
.ed-tag.left {
  left: 9px;
}
.ed-tag.right {
  right: 9px;
}
.ed-comparison input[type="range"] {
  width: 100%;
  min-height: 30px;
  accent-color: var(--link);
}
.ed-comparison .ed-wipe + .field {
  padding: 7px 12px;
  margin: 0;
  font-size: 11px;
}
.ed-beside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--dark-panel);
}
.ed-beside figure,
.ed-format figure {
  margin: 0;
  min-width: 0;
}
.ed-beside img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--rail);
  display: block;
}
.ed-beside figcaption {
  background: var(--dark-panel);
  color: var(--surface);
  font-size: 11px;
  padding: 7px;
}
.ed-solo img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: var(--rail);
  display: block;
  border-radius: 8px;
}
.ed-solo p {
  margin-top: 5px;
}
.ed-release {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.ed-alert {
  padding: 8px 11px;
  border-left: 3px solid #a56d2b;
  background: #f7ecd6;
  color: #493520;
  font-size: 13px;
  line-height: 1.5;
}
.ed-format img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: contain;
  background: var(--soft);
}
.ed-format h3,
.ed-format details {
  margin: 9px 12px;
}
.ed-size summary,
.ed-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 670;
  padding-block: 4px;
}
.ed-size a {
  display: block;
  margin: 7px 0;
  font-size: 12px;
}
.ed-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ed-history li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ed-history p {
  margin: 3px 0;
}
.ed-history .sub {
  margin-left: 8px;
}
.ed-details {
  margin: 10px 0;
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.ed-details .field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0;
  font-size: 13px;
}
.ed-details .field input {
  width: 90px;
}
.ed-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
.ed-focus-body[hidden] {
  display: none;
}
.ed-focus-photo {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto;
}
.ed-focus-photo img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  cursor: crosshair;
  object-fit: contain;
}
.ed-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--surface);
  background: #171817db;
  border: 1px solid var(--surface);
  border-radius: 100%;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}
.ed-focus-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ed-summary {
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .ed-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ed-controls button {
    justify-self: start;
  }
}
@media (max-width: 820px) {
  .ed-workspace {
    display: block;
  }
  .ed-sidebar {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 8px;
    align-items: start;
  }
  .ed-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
  }
}
@media (max-width: 540px) {
  .ed-controls {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .ed-controls .field:first-child {
    grid-column: 1/-1;
  }
  .ed-compare-head {
    align-items: start;
  }
  .ed-compare-head .field {
    display: block;
  }
  .ed-compare-head h2 {
    align-self: center;
  }
  .ed-navigation {
    align-items: end;
  }
  .ed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .ed-card-body {
    padding: 7px;
  }
  .ed-card-name {
    font-size: 13px;
  }
  .ed-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ed-format img {
    height: 105px;
  }
  .ed-beside figcaption {
    font-size: 10px;
  }
  .ed-pick {
    min-height: 28px;
  }
  .ed-history .sub {
    display: block;
    margin: 2px 0;
  }
}
.ed-format-note {
  margin: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #644515;
}
.ed-upload-errors {
  font-size: 12px;
  color: #883b2b;
}
.ed-site-watermark {
  margin: 12px 0;
}

.ed-site-watermark img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 270px;
  margin-bottom: 10px;
  object-fit: contain;
}
