:root {
  color: #0d1a33;
  font-synthesis: none;
  background: #f6f8fb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .5;
}

button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #97c0ff;
}

.shell {
  grid-template-columns: 225px 1fr;
  min-height: 100vh;
  display: grid;
}

aside {
  background: #fff;
  border-right: 1px solid #e0e7f0;
  flex-direction: column;
  padding: 34px 22px;
  display: flex;
}

.wordmark {
  letter-spacing: 2px;
  font-size: 23px;
  font-weight: 850;
}

.wordmark span {
  letter-spacing: 2px;
  color: #6d7f98;
  margin-top: 7px;
  font-size: 10px;
  display: block;
}

.product {
  border-top: 1px solid #e5eaf1;
  margin-top: 30px;
  padding-top: 28px;
  font-size: 23px;
  font-weight: 750;
}

.product span {
  color: #657691;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 400;
  display: block;
}

nav {
  gap: 7px;
  margin-top: 32px;
  display: grid;
}

nav button {
  color: #52647e;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  font-weight: 600;
}

nav button.active {
  color: #0962ed;
  background: #ecf3ff;
}

.aside-note {
  color: #70829b;
  margin-top: auto;
  padding-top: 50px;
  font-size: 13px;
  line-height: 1.7;
}

main {
  width: 100%;
  max-width: 1600px;
  padding: 20px 36px 25px;
}

.development {
  color: #52627c;
  background: #edf2f8;
  border-radius: 6px;
  margin-bottom: 28px;
  padding: 9px 12px;
  font-size: 12px;
}

header {
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  display: flex;
}

h1 {
  letter-spacing: -1px;
  margin: 10px 0 12px;
  font-size: 31px;
  line-height: 1.2;
}

header p {
  color: #657791;
  margin: 0;
  line-height: 1.6;
}

.eyebrow {
  letter-spacing: 1.8px;
  color: #7587a1;
  font-size: 10px;
  font-weight: 750;
}

h2 {
  letter-spacing: -.5px;
  margin: 12px 0;
  font-size: 23px;
}

h3 {
  margin: 12px 0;
  font-size: 18px;
  line-height: 1.35;
}

p, li {
  color: #5d6f88;
  line-height: 1.65;
}

.primary {
  color: #fff;
  white-space: nowrap;
  background: #0967fb;
  border: 1px solid #0967fb;
  border-radius: 7px;
  padding: 14px 21px;
  font-weight: 750;
  box-shadow: 0 3px 6px #0967fb12;
}

.secondary {
  color: #233c61;
  background: #fff;
  border: 1px solid #d5dfed;
  border-radius: 6px;
  padding: 11px 17px;
  font-weight: 600;
}

.text-button {
  color: #065fe1;
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 0;
  font-weight: 650;
}

.intro {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  grid-template-columns: 1fr 245px;
  margin-bottom: 30px;
  padding: 32px 35px;
  display: grid;
  overflow: hidden;
}

.intro p {
  max-width: 680px;
}

.section-title {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}

.section-title span {
  color: #6c7e96;
  font-size: 11px;
}

.campaign-list, .empty {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  overflow: hidden;
}

.empty {
  padding: 35px;
}

.campaign {
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 20px;
  display: flex;
}

.campaign:hover {
  background: #f4f8ff;
}

.campaign small {
  color: #73849b;
  margin-top: 8px;
  display: block;
}

.campaign > span:last-child {
  color: #6e809a;
  font-size: 12px;
}

.article-grid {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  display: grid;
}

.card {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  padding: 25px;
}

.form-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

label {
  color: #334a69;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

label span {
  color: #7a8ca3;
  font-weight: 400;
}

input, textarea {
  color: #142c4e;
  background: #fff;
  border: 1px solid #d6dfec;
  border-radius: 5px;
  width: 100%;
  margin-top: 9px;
  padding: 11px 12px;
  display: block;
}

textarea {
  resize: vertical;
  min-height: 95px;
}

.title-input {
  font-size: 18px;
}

.body-label {
  color: #334a69;
  justify-content: space-between;
  margin: 15px 0 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.body-label span {
  color: #8290a6;
  font-weight: 400;
}

.editor {
  border: 1px solid #d6dfec;
  border-radius: 6px;
  overflow: hidden;
}

.toolbar {
  background: #f7f9fc;
  border-bottom: 1px solid #e1e7ef;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  display: flex;
}

.toolbar button {
  color: #314969;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 12px;
}

.tiptap {
  overflow-wrap: anywhere;
  outline: 0;
  min-height: 330px;
  padding: 20px;
  line-height: 1.65;
}

.tiptap p {
  color: #243b59;
  margin: 0 0 16px;
}

.tiptap p.is-editor-empty:first-child:before {
  content: attr(data-placeholder);
  float: left;
  color: #92a1b6;
  pointer-events: none;
  height: 0;
}

.tiptap blockquote {
  border-left: 3px solid #c0d6fb;
  margin-left: 0;
  padding-left: 18px;
}

.guidance {
  border-top: 1px solid #e5ebf4;
  border-bottom: 1px solid #e5ebf4;
  margin: 22px 0;
  padding: 15px 0;
}

.guidance summary {
  color: #586f8c;
  cursor: pointer;
  font-size: 13px;
}

.guidance[open] summary {
  margin-bottom: 20px;
}

.actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.fine {
  color: #7b8ba1;
  font-size: 11px;
  line-height: 1.6;
}

.article-aside {
  align-content: start;
  gap: 20px;
  display: grid;
}

.article-aside p, .article-aside li {
  font-size: 13px;
}

.article-aside ul {
  padding-left: 19px;
}

.article-aside li {
  margin: 9px 0;
}

.full {
  grid-column: 1 / -1;
}

.result {
  border-top: 1px solid #e2e8f1;
  margin-top: 18px;
  padding-top: 15px;
}

.result small {
  color: #7a8ba3;
  margin-top: 5px;
  display: block;
}

.message {
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 13px 17px;
  font-size: 13px;
}

.error {
  color: #a22722;
  background: #fff0ee;
}

.success {
  color: #226c48;
  background: #edf8f1;
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  display: grid;
}

.template-grid h2 {
  font-size: 20px;
}

.help {
  max-width: 900px;
}

.help h3 {
  margin-top: 30px;
}

footer {
  color: #8a98ad;
  padding-top: 40px;
  font-size: 11px;
}

@media (width <= 1050px) {
  .shell {
    grid-template-columns: 180px 1fr;
  }

  main {
    padding: 20px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-aside {
    grid-template-columns: 1fr 1fr;
  }

  .intro {
    grid-template-columns: 1fr 180px;
    padding: 25px;
  }

  .section-title span {
    display: none;
  }
}

@media (width <= 730px) {
  .shell {
    display: block;
  }

  aside {
    border-bottom: 1px solid #e0e7f0;
    border-right: 0;
    padding: 15px 20px;
  }

  .wordmark {
    font-size: 18px;
  }

  .wordmark span, .product, .aside-note {
    display: none;
  }

  nav {
    gap: 6px;
    margin-top: 15px;
    display: flex;
  }

  nav button {
    padding: 8px;
    font-size: 12px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header > .primary {
    align-self: flex-start;
  }

  h1 {
    font-size: 27px;
  }

  .intro, .form-row, .article-aside, .template-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .development {
    font-size: 10px;
  }
}

select, input[type="file"] {
  font: inherit;
  color: #243b59;
  background: #fff;
  border: 1px solid #d6dfec;
  border-radius: 6px;
  width: 100%;
  padding: 11px;
}

.preview-body {
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.preview-body p {
  color: #243b59;
  margin: 0 0 16px;
}

.history-pagination {
  margin-top: 24px;
}

.connection {
  margin-bottom: 22px;
}

.preview-body a {
  pointer-events: none;
}

.intro {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: stretch;
  padding: 0;
}

.intro > div:first-child {
  padding: 32px 35px;
}

.editorial-hero {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  min-height: 290px;
  display: block;
}

.publication-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
}

.publication-directory li {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  align-items: center;
  min-width: 0;
  padding-right: 14px;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
}

.publication-directory li:not(.locked):hover {
  border-color: #0967fb;
  box-shadow: 0 2px 10px #0967fb12;
}

.publication-select {
  text-align: left;
  color: #0d1a33;
  background: none;
  border: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  min-width: 0;
  padding: 18px;
  display: grid;
}

.publication-select strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  overflow: hidden;
}

.publication-select > span {
  color: #657791;
  font-size: 12px;
}

.publication-select .publication-access {
  color: #166239;
  font-size: 12px;
}

.publication-select .publication-arrow {
  color: #0967fb;
  font-size: 20px;
}

.publication-directory .locked {
  background: #f8fafc;
}

.publication-directory .locked .publication-access {
  color: #657791;
}

.publication-select:disabled {
  opacity: 1;
}

.publication-upgrade {
  white-space: nowrap;
  margin-right: 14px;
  font-size: 12px;
}

.chooser-toolbar {
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 2fr) minmax(150px, 1fr);
  align-items: end;
  gap: 18px;
  display: grid;
}

.chooser-toolbar label {
  margin: 0;
}

.chooser-toolbar input, .chooser-toolbar select {
  height: 44px;
}

.chooser-group > h2 {
  font-size: 19px;
}

.chooser-back {
  margin-top: 10px;
}

.info-button {
  color: #0967fb;
  background: #fff;
  border: 1px solid #c8d9ef;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: bold;
  display: grid;
}

.publication-info {
  flex-shrink: 0;
  display: inline-flex;
}

.publication-tooltip {
  z-index: 1000;
  color: #0d1a33;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #d5e0ee;
  border-radius: 10px;
  width: min(360px, 100vw - 24px);
  max-height: min(340px, 100vh - 24px);
  padding: 20px;
  font-size: 13px;
  line-height: 1.5;
  position: fixed;
  overflow: auto;
  box-shadow: 0 12px 40px #152b4c26;
}

.publication-tooltip > strong {
  font-size: 16px;
}

.publication-tooltip dl {
  margin: 16px 0 0;
}

.publication-tooltip dl > div {
  margin: 10px 0;
}

.publication-tooltip dt {
  color: #243b59;
  font-weight: 700;
}

.publication-tooltip dd {
  color: #5d6f88;
  white-space: pre-line;
  margin: 3px 0 0;
}

.selected-publication {
  border-bottom: 1px solid #e0e7f0;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 18px;
  display: flex;
}

.selected-publication-name {
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  font-size: 20px;
  display: flex;
}

.import-before-editor {
  background: #f8faff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  margin: 24px 0 14px !important;
  padding: 18px 20px !important;
}

.import-before-editor summary {
  color: #243b59;
  font-weight: 700;
}

.direct-entry-intro {
  margin: 16px 0 24px;
}

.direct-entry-intro > span {
  color: #7a8ba2;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.direct-entry-intro > strong {
  font-size: 15px;
}

.direct-entry-intro p {
  margin: 7px 0;
  font-size: 13px;
}

.personal-article .featured-editor {
  margin-bottom: 24px;
}

.chooser-empty {
  text-align: center;
  padding: 30px;
}

.info-button:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #97c0ff;
}

@media (width <= 1100px) {
  .publication-directory {
    grid-template-columns: 1fr;
  }

  .chooser-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .chooser-toolbar > label:nth-child(2) {
    grid-area: 1 / 1 / auto / -1;
  }
}

@media (width <= 730px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro > div:first-child {
    padding: 24px;
  }

  .editorial-hero {
    height: 210px;
    min-height: 0;
  }

  .chooser-toolbar {
    grid-template-columns: 1fr;
  }

  .chooser-toolbar > label:nth-child(2) {
    grid-column: auto;
  }

  .publication-select {
    padding: 14px;
  }

  .publication-upgrade {
    white-space: normal;
    max-width: 70px;
  }

  .selected-publication-name {
    font-size: 17px;
  }

  .selected-publication {
    gap: 12px;
  }
}

.preview-dialog {
  color: #0d1a33;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  width: min(900px, 94vw);
  max-height: 90vh;
  padding: 22px;
  box-shadow: 0 20px 80px #0d1a3340;
}

.preview-dialog::backdrop {
  background: #0d1a3366;
}

.preview-dialog-heading {
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  display: flex;
}

.preview-scroll {
  max-height: 55vh;
  padding-right: 12px;
  overflow: auto;
}

.preview-scroll img {
  object-fit: contain;
  max-width: 100%;
  max-height: 240px;
  margin: 18px 0;
  display: block;
}

.preview-dialog-actions {
  border-top: 1px solid #dce4ef;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 18px;
  display: flex;
}

.preview-dialog-actions .fine {
  max-width: 400px;
}

.preview-dialog-actions .primary {
  margin-left: auto;
}

.header-actions {
  align-items: center;
  gap: 16px;
  display: flex;
}

.notification-bell {
  position: relative;
}

.bell-button {
  color: #135fd1;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  position: relative;
}

.bell-count {
  color: #fff;
  background: #1167f5;
  border-radius: 20px;
  padding: 2px 6px;
  font-size: 11px;
  position: absolute;
  top: -5px;
  right: -6px;
}

.notification-panel {
  z-index: 20;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  width: min(400px, 80vw);
  max-height: 70vh;
  padding: 20px;
  position: absolute;
  top: 54px;
  right: 0;
  overflow: auto;
  box-shadow: 0 16px 45px #10203826;
}

.notification {
  border-top: 1px solid #e4eaf2;
  padding: 15px 0;
}

.notification.unread {
  border-left: 3px solid #1268f3;
  padding-left: 10px;
}

.notification p {
  font-size: 14px;
}

.personal-article .editor img {
  max-width: 100%;
  height: auto;
}

.featured-editor {
  border: 1px solid #dce5ee;
  border-radius: 10px;
  margin: 20px 0;
  padding: 18px;
}

.featured-thumbnail {
  object-fit: contain;
  max-width: 220px;
  max-height: 170px;
}

.inline-picker {
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 13px !important;
  display: flex !important;
}

.inline-picker input {
  max-width: 200px;
  font-size: 12px;
  padding: 3px !important;
}

.personal-article .requirements {
  color: #145dbd;
  cursor: help;
  align-self: center;
}

.personal-article > .body-label {
  margin-top: 20px;
}

.personal-article .form-row {
  align-items: end;
}

.personal-article .toolbar {
  flex-wrap: wrap;
}

:root {
  color: #17191c;
  background: #f7f8fa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

.primary {
  background: #146ef5;
  border-color: #146ef5;
}

.text-button {
  color: #146ef5;
}

.connection-start {
  max-width: 750px;
  margin: 5vh auto;
  padding: 32px;
}

.connection-start .wordmark {
  margin-bottom: 36px;
}

.shell > aside {
  background: #fff;
}

.shell > main {
  min-width: 0;
}

.header-actions > .primary {
  min-height: 48px;
  font-size: 15px;
}

.editorial-hero {
  filter: none;
}

nav {
  flex-wrap: wrap;
}
