.content-studio { color: #503d58; }
.content-studio .page { max-width: 1160px; padding-bottom: 38px; }
.content-heading h1 { font-size: clamp(25px, 4vw, 39px); }
.content-heading > p { color: #6c5a74; margin-top: 5px; }
.studio-status {
  min-height: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin: 10px 0;
  color: #59436a;
}
.studio-status > p:empty { display: none; }
.studio-status .error { color: #962c45; }
.type-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.type-nav button {
  padding: 9px 15px;
  border-radius: 20px;
  border: 1px solid #e6d9eb;
  background: #fff;
  color: #62486d;
}
.type-nav button[aria-pressed="true"] { color: #fff; background: #775784; border-color: #775784; }
.content-columns { display: grid; grid-template-columns: minmax(240px, 33fr) minmax(0, 67fr); gap: 17px; align-items: start; }
.content-list-panel, .content-editor {
  padding: clamp(15px, 2.2vw, 25px);
  border: 1px solid #ebe0ee;
  border-radius: 18px;
  background: #fff;
  min-width: 0;
}
.content-list-heading { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.content-list-heading h2, #editor-title { font-size: clamp(17px, 2vw, 23px); font-weight: 650; }
.content-list { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; max-height: 410px; overflow-y: auto; scrollbar-gutter: stable; }
.content-list button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ede4ef;
  border-radius: 8px;
  background: #fdf9fc;
  overflow-wrap: anywhere;
}
.content-list button[aria-pressed="true"] { background: #f1e6f3; border-color: #c5a6cf; }
.content-list button:focus-visible { outline-offset: -3px; }
.content-list button small { display: block; margin-top: 2px; color: #6d5579; }
.reload-list { color: #714f7c; text-decoration: underline; text-underline-offset: 3px; margin-top: 5px; }
.content-studio .soft-button { color: #64436f; border-color: #dac8e2; }
.content-studio .primary-button { background: #775784; }
.content-studio .primary-button:hover { background: #634772; }
.content-studio button:disabled { cursor: default; }
#content-fields { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
#content-fields label { display: grid; gap: 5px; margin-top: 12px; color: #5d4568; font-weight: 550; }
#content-fields input, #content-fields textarea, #content-fields select {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #dfd2e5;
  border-radius: 9px;
  background: #fff;
  color: #503d58;
  font-weight: 400;
  font-size: 14px;
}
#content-fields select { padding-right: 14px; }
#content-fields .field-note, .editor-state { color: #6d5579; margin: 5px 0 0; font-size: 13px; }
.editor-state:empty, .field-note:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 9px; }
#editor-image { padding: 5px; max-width: min(100%, 250px); max-height: 150px; margin: 8px 0 0; background: #f3e7f5; border-radius: 9px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.editor-actions button { min-height: 42px; }
.content-history { display: flex; gap: 8px; align-items: end; border-top: 1px solid #eee4ed; margin-top: 17px; }
.content-history label { flex: 1; min-width: 0; }
.content-history button { white-space: nowrap; min-height: 43px; }

@media (max-width: 640px) {
  .content-columns { grid-template-columns: 1fr; gap: 9px; }
  .content-list { max-height: 184px; }
  .type-nav { gap: 5px; margin-bottom: 9px; }
  .type-nav button, .content-studio .soft-button, .content-studio .primary-button { padding-inline: 11px; }
  #content-fields input, #content-fields select, #content-fields textarea { font-size: 16px; }
}
