.ql-demo-intro {
  max-width: 830px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ql-demo-eyebrow,
.ql-demo-step,
.ql-preview-kicker,
.ql-preview-label {
  color: #087f73;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ql-demo-intro h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: .5rem 0 1rem;
}

.ql-demo-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ql-demo-assurances li {
  background: #eaf7f4;
  border: 1px solid #b7ddd6;
  border-radius: 999px;
  color: #175c54;
  font-size: .86rem;
  padding: .45rem .8rem;
}

.ql-demo-shell {
  align-items: start;
  display: grid;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  margin: 2rem auto 3rem;
  max-width: 1180px;
}

.ql-demo-controls {
  display: grid;
  gap: 1rem;
}

.ql-demo-section {
  background: #fff;
  border: 1px solid #dce8e5;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(30, 58, 54, .07);
  padding: 1.2rem;
}

.ql-demo-section label {
  display: grid;
  font-size: .9rem;
  font-weight: 700;
  gap: .4rem;
  margin-top: .8rem;
}

.ql-demo-section input,
.ql-demo-section select,
.ql-demo-section textarea {
  background: #fbfdfc;
  border: 1px solid #bdd0cc;
  border-radius: 9px;
  color: #152926;
  font: inherit;
  padding: .72rem .8rem;
  width: 100%;
}

.ql-demo-section textarea {
  resize: vertical;
}

.ql-demo-local-note {
  color: #536b67;
  font-size: .82rem;
  margin: .65rem 0 0;
}

.ql-site-preview {
  --accent: #087f73;
  --accent-soft: #dff3ef;
  --ink: #17312d;
  background: #fcfdf9;
  border: 1px solid #cfdcd8;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(26, 48, 45, .16);
  color: var(--ink);
  min-height: 720px;
  overflow: hidden;
  position: sticky;
  top: 1.2rem;
}

.ql-site-preview[data-palette="ink"] {
  --accent: #225ee8;
  --accent-soft: #e2eaff;
  --ink: #121b2e;
}

.ql-site-preview[data-palette="forest"] {
  --accent: #39734f;
  --accent-soft: #e3efe4;
  --ink: #183321;
}

.ql-site-preview[data-palette="plum"] {
  --accent: #803f72;
  --accent-soft: #f4e4f0;
  --ink: #3a2134;
}

.ql-preview-browser {
  align-items: center;
  background: #edf1ef;
  color: #70817d;
  display: flex;
  font-size: .72rem;
  gap: .4rem;
  padding: .7rem 1rem;
}

.ql-preview-browser span {
  background: #bac6c2;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.ql-preview-browser strong {
  font-weight: 600;
  margin-left: .5rem;
}

.ql-preview-header {
  align-items: center;
  border-bottom: 1px solid #e0e9e6;
  display: flex;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 2.4rem);
}

.ql-preview-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin: 0;
  width: 42px;
}

.ql-preview-header nav {
  display: flex;
  flex-wrap: wrap;
  font-size: .75rem;
  gap: 1rem;
}

.ql-site-preview main {
  padding: clamp(2.1rem, 6vw, 4.5rem) clamp(1.3rem, 6vw, 4rem);
}

.ql-site-preview h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: .98;
  margin: .7rem 0 1rem;
}

.ql-preview-title {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: .25rem;
}

.ql-preview-institution {
  color: #5d706c;
  margin-top: 0;
}

.ql-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.7rem 0 3.5rem;
}

.ql-preview-actions span {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  padding: .65rem 1rem;
}

.ql-preview-actions span + span {
  background: var(--accent-soft);
  color: var(--accent);
}

.ql-preview-publications {
  border-top: 1px solid #dce6e3;
  padding-top: 1.6rem;
}

.ql-preview-publications h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  margin: .25rem 0 1rem;
}

.ql-preview-publications article {
  border-top: 1px solid #e1e9e7;
  padding: .85rem 0;
}

.ql-preview-publications article h4,
.ql-preview-publications article p {
  margin: 0;
}

.ql-preview-publications article p,
.ql-preview-empty {
  color: #60726e;
  font-size: .82rem;
  margin-top: .25rem;
}

.ql-site-preview footer {
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  font-size: .72rem;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding: .8rem 1.2rem;
}

.ql-demo-next {
  background: #143d38;
  border-radius: 22px;
  color: #f4fbf9;
  margin: 2rem auto 4rem;
  max-width: 900px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.ql-demo-next .ql-demo-step {
  color: #91ded1;
}

.ql-demo-save,
.ql-demo-reset {
  border-radius: 999px;
  display: inline-block;
  font: inherit;
  font-weight: 800;
  margin: .5rem .25rem 0;
  padding: .8rem 1.15rem;
}

.ql-demo-save {
  background: #66dac6;
  color: #0a302b;
  text-decoration: none;
}

.ql-demo-reset {
  background: transparent;
  border: 1px solid #8dbdb5;
  color: #edf9f7;
  cursor: pointer;
}

@media (max-width: 820px) {
  .ql-demo-shell {
    grid-template-columns: 1fr;
  }

  .ql-site-preview {
    min-height: 0;
    position: static;
  }

  .ql-preview-header nav span:nth-child(n+3) {
    display: none;
  }
}
