/* Editor */
.editor-shell {
  padding-block: 44px 100px;
}

.editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.editor-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  background: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.editor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}

.calculation-panel {
  position: sticky;
  top: 88px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 33, 53, 0.96), rgba(8, 19, 31, 0.96));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.calc-row strong {
  color: var(--text);
  font-size: 0.88rem;
}

.calc-row--negative strong {
  color: var(--red);
}

.calc-row--highlight {
  margin: 10px -10px 4px;
  padding: 14px 10px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #eb531f);
}

.calc-row--highlight strong {
  color: #fff;
  font-size: 1rem;
}

.calc-divider {
  height: 1px;
  margin: 13px 0;
  background: var(--line);
}

.calc-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.5;
}

.form-sections {
  display: grid;
  gap: 22px;
}

.form-section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 24, 40, 0.76);
}

.form-section--source {
  border-color: rgba(43, 182, 255, 0.2);
  background: rgba(43, 182, 255, 0.055);
}

.source-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.source-meta-grid span {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(151, 188, 218, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.source-meta-grid small,
.source-meta-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-meta-grid small {
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 850;
}

.source-meta-grid strong {
  font-size: 0.8rem;
}

.form-section__heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.form-section__heading > span {
  display: grid;
  width: 42px;
  flex: 0 0 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  color: var(--orange);
  background: rgba(253, 105, 53, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
}

.form-section__heading h2,
.form-section__heading p {
  margin: 0;
}

.form-section__heading h2 {
  font-size: 1.14rem;
}

.form-section__heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field > span {
  color: #dce6ee;
  font-size: 0.76rem;
  font-weight: 800;
}

.form-field small {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(151, 188, 218, 0.17);
  border-radius: 12px;
  color: var(--text);
  background: rgba(4, 12, 22, 0.62);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 47px;
  padding: 0 13px;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
  padding: 13px;
  line-height: 1.52;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(43, 182, 255, 0.55);
  background: rgba(4, 12, 22, 0.9);
  box-shadow: 0 0 0 4px rgba(43, 182, 255, 0.07);
  outline: 0;
}

.editor-bottom-actions {
  justify-content: flex-end;
  padding-top: 10px;
}
