/* The editor is a work surface; give the document the space left by its inspector. */
.case-editor,
body:has(.case-editor) #topbar .bar {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 3.3vw, 100px);
}
body:has(.case-editor) {
  background: radial-gradient(ellipse at 0 5%, #eaf0f9, transparent 43%), #f4f5f8;
}
.case-editor {
  padding-block: clamp(22px, 3.5vh, 44px) 48px;
}
.case-editor .page-heading {
  margin: 10px 0 22px;
  align-items: center;
}
.case-editor h1 {
  font: 670 clamp(24px, 2.1vw, 42px) / 1.25 var(--sans);
  letter-spacing: -0.04em;
}
.case-editor .editor-grid {
  grid-template-columns: minmax(0, 1fr) clamp(298px, 23vw, 432px);
  gap: clamp(16px, 1.65vw, 36px);
}
.editor-paper,
.case-editor .editor-right,
.case-editor .discussion {
  min-width: 0;
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow:
    0 1px 3px #2c3f5910,
    0 12px 30px -19px #233c5b4a;
}
.editor-paper {
  overflow: hidden;
}
.editor-paper-head,
.editor-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.editor-paper-head {
  padding: 14px clamp(14px, 1.5vw, 25px);
  background: #ffffffeb;
}
.editor-paper-head h2,
.editor-setting h2,
.case-editor .share h2 {
  font: 640 17px/1.4 var(--sans);
}
.editor-tools .btn {
  min-height: 36px;
  white-space: nowrap;
}
.editor-paper .authoring {
  padding: 0 clamp(14px, 1.5vw, 25px) 18px;
}
.editor-paper .body-input {
  min-height: clamp(420px, 63dvh, 960px);
  background: #fafbfe;
}
.editor-paper .preview .html-frame {
  display: block;
  border: 0;
  border-radius: 0;
  width: 100%;
  height: clamp(480px, 75dvh, 1250px);
}
.editor-paper .preview > .help,
.preview-article {
  padding: 24px;
}
.case-editor .editor-right {
  display: block;
  padding: 20px clamp(16px, 1.35vw, 26px);
  align-self: start;
}
.editor-setting + .editor-setting,
.case-editor .share {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid #ebedf3;
}
.case-editor .share {
  padding-inline: 0;
  padding-bottom: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0;
}
.editor-setting > .field {
  margin-top: 12px;
}
.case-editor .field-name {
  font-size: 13px;
}
.case-editor :is(input, textarea, select):not([type='file']) {
  background-color: #f6f7fa;
  border: 1px solid transparent;
  border-radius: 9px;
}
.case-editor .pw-control {
  border: 1px solid transparent;
  background: #f6f7fa;
  border-radius: 9px;
}
.case-editor .pw-control input {
  background: transparent;
  border: none;
}
.case-editor .pw-control:focus-within,
.case-editor :is(input, textarea, select):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.case-editor .pw-control input:focus-visible {
  outline: 0;
}
.share-open {
  margin-top: 10px;
}
.case-editor .save-row {
  border-bottom: 0;
}
.case-editor .discussion {
  margin-top: 16px;
  padding: 20px clamp(16px, 2vw, 32px);
}
.preview-article {
  max-width: 880px;
  margin: auto;
}
.preview-article .prose {
  max-width: 100%;
}
body:has(.standalone-preview) #topbar {
  display: none;
}
.standalone-preview .html-frame {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
  border-radius: 0;
}
@media (max-width: 860px) {
  .case-editor .editor-grid {
    grid-template-columns: 1fr;
  }
  .case-editor .editor-right {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 18px;
  }
  .editor-setting + .editor-setting,
  .case-editor .share {
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }
  .editor-paper .preview .html-frame {
    height: 64dvh;
    min-height: 350px;
  }
}
@media (max-width: 560px) {
  .case-editor .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .case-editor .editor-right {
    grid-template-columns: 1fr;
  }
  .editor-paper-head {
    align-items: flex-start;
  }
  .editor-tools {
    gap: 4px;
  }
}
.journeys {
  max-width: 1500px;
}
.journeys .activity-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.journeys .activity-panel {
  border: none;
  border-radius: 18px;
  box-shadow: 0 6px 24px -16px #29395655;
}
.journey-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
}
.journey-note {
  margin: 18px 0;
}
.focus-tag {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 99px;
  margin-right: 6px;
  background: #efedff;
  color: #5341a8;
}
@media (max-width: 640px) {
  .journeys .activity-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.team-publisher {max-width:780px}.team-publisher .panel {border:0;border-radius:20px;padding:clamp(18px,4vw,34px);box-shadow:0 10px 32px -16px #233c5b40}.team-publisher input[type=file]{padding:18px;background:#f5f7fb;border-radius:12px}.team-publisher [aria-live] a{margin-right:14px}
