/* Editorial workspace, deliberately separate from the public cinematic layout. */
.cms-admin {
  background: #e9edf5;
  color: #13213a;
  min-height: 75vh;
  padding: 36px max(24px, calc((100vw - 1320px) / 2)) 90px;
  font-family: LuraBody, Arial, sans-serif;
}
.cms-account {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
  padding-bottom: 25px;
  flex-wrap: wrap;
}
.cms-account a {
  text-decoration: underline;
}
.cms-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.cms-heading h1 {
  font-family: LuraDisplay, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  margin: 12px 0;
}
.cms-heading p {
  max-width: 620px;
  line-height: 1.7;
}
.cms-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.cms-toolbar > [data-slot='select-trigger'] {
  min-width: 260px;
  flex: 1;
  max-width: 620px;
}
.cms-admin :is([data-slot='input'], [data-slot='textarea'], [data-slot='select-trigger']) {
  background: #fff;
  color: #13213a;
  border: 1px solid #a5b5cf;
  border-radius: 3px;
  min-height: 44px;
  font-size: 16px;
  width: 100%;
}
.cms-admin [data-slot='button'] {
  min-height: 43px;
  font-size: 14px;
  white-space: normal;
}
.cms-admin [data-slot='button']:not([data-variant='outline']) {
  background: #233e82;
  color: #fff;
}
.cms-admin [data-slot='button'][data-variant='outline'] {
  color: #182d52;
  background: #fff;
  border-color: #9dacca;
}
.cms-savebar {
  position: sticky;
  top: 80px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #e9edf5f5;
  backdrop-filter: blur(14px);
  border-block: 1px solid #b9c5d9;
  padding: 18px 0;
  margin: 20px 0 30px;
}
.cms-savebar > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cms-savebar strong {
  font-size: 15px;
  display: block;
}
.cms-savebar small {
  font-size: 13px;
  color: #586c8b;
  display: block;
  margin-top: 6px;
}
.cms-preview {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid #9dacca;
  border-radius: 3px;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
}
.cms-preview.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cms-editor {
  border: 0;
  padding: 0;
  min-width: 0;
}
.cms-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 22px 0;
}
.cms-field > label,
.cms-field > span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.cms-field small,
.cms-help {
  font-size: 14px;
  line-height: 1.7;
  color: #536889;
}
.cms-field textarea {
  line-height: 1.6;
  min-height: 65px;
}
.cms-groups [data-slot='accordion-trigger'] {
  font-size: 18px;
  padding: 22px 0;
}
.cms-groups [data-slot='accordion-content'] {
  padding-bottom: 22px;
}
.cms-groups [data-slot='accordion-item'] {
  border-color: #a5b5cf;
}
.cms-image-preview {
  width: 220px;
  max-height: 140px;
  object-fit: contain;
  object-position: left center;
  background: #16213a;
  border-radius: 3px;
}
.cms-upload {
  font-size: 14px;
  color: #445d89;
  line-height: 1.6;
}
.cms-upload input {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  max-width: 100%;
}
.cms-error,
.cms-notice {
  padding: 17px 20px;
  border: 1px solid #ac4955;
  background: #fff0f1;
  border-radius: 3px;
  line-height: 1.7;
  margin: 20px 0;
  color: #742a35;
}
.cms-notice {
  background: #e1eaf8;
  border-color: #8ba4ce;
  color: #21395f;
}
.cms-collection {
  border: 1px solid #b8c5d9;
  padding: 12px 24px 24px;
  margin: 28px 0;
  min-width: 0;
}
.cms-collection legend {
  padding: 0 10px;
  font-weight: 600;
}
.cms-collection [data-slot='accordion-trigger'] {
  font-size: 15px;
  text-align: left;
}
.cms-object {
  min-width: 0;
}
.cms-row-actions {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.cms-object > .cms-object,
.cms-collection .cms-collection {
  margin-inline: 0;
}
.cms-history {
  border-top: 1px solid #9dacca;
  margin-top: 40px;
  padding: 25px 0;
}
.cms-history summary {
  cursor: pointer;
  font-size: 18px;
}
.cms-history p {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.7;
}
.cms-history > div {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid #c6d0df;
  font-size: 14px;
}
.cms-preview-banner {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: #233e82;
  color: white;
  font-size: 14px;
}
.cms-preview-banner a {
  text-decoration: underline;
}
.cms-preview-page > .cms-preview-banner + .site-header {
  position: relative;
}
.admin-content-link {
  margin: 24px 0;
}
.knowledge-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 15px;
}
.knowledge-pagination a {
  border: 1px solid #9aacca;
  padding: 12px 17px;
  border-radius: 3px;
}
.knowledge-pagination span {
  font-size: 14px;
  color: #697c99;
}
@media (max-width: 900px) {
  .cms-savebar {
    top: 74px;
    flex-direction: column;
    align-items: start;
  }
  .cms-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .cms-toolbar {
    gap: 15px;
  }
  .cms-toolbar > [data-slot='select-trigger'] {
    min-width: 220px;
  }
}
@media (max-width: 600px) {
  .cms-savebar {
    position: relative;
    top: auto;
  }
  .cms-admin {
    padding: 25px 20px 60px;
  }
  .cms-account {
    justify-content: start;
    font-size: 12px;
    gap: 15px;
  }
  .cms-heading h1 {
    font-size: 39px;
  }
  .cms-collection {
    padding: 10px 14px 20px;
  }
  .cms-history > div {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .cms-preview-banner {
    flex-direction: column;
    gap: 8px;
  }
  .knowledge-pagination {
    flex-wrap: wrap;
    font-size: 14px;
  }
}

.cms-assistant-dialog {
  width: min(1120px, 95vw);
  max-width: 1120px !important;
  max-height: 90svh;
  overflow-y: auto;
  background: #111a2b;
  color: #eef2fa;
  border-color: #33435d;
}
.cms-assistant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}
.cms-assistant-grid section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}
.cms-assistant-grid h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.cms-assistant-grid label {
  font-size: 14px;
}
.cms-assistant-grid textarea {
  font-size: 14px;
}
.cms-assistant-grid .cms-help {
  font-size: 14px;
  color: #b2bed3;
  line-height: 1.6;
}
.cms-assistant-grid details summary {
  cursor: pointer;
  font-size: 14px;
  margin-block: 8px;
}
.cms-assistant-review {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 8px;
}
.cms-assistant-review label {
  line-height: 1.5;
}
@media (max-width: 760px) {
  .cms-assistant-grid {
    grid-template-columns: 1fr;
  }
}
