.as-page {
  max-width: 1080px;
}
.as-page h1 {
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 12px 0 20px;
}
.as-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #596579;
  max-width: 650px;
}
.as-status,
.as-summary {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #cbdcfb;
  border-radius: 24px;
  background: #edf4ff;
  margin: 28px 0;
}
.as-status p,
.as-summary p {
  color: #4f6078;
  line-height: 1.65;
  margin: 9px 0;
}
.as-status strong {
  font-size: 1.2rem;
}
.as-spark {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  height: 50px;
  background: #2166e8;
  color: white;
  border-radius: 16px;
  font-size: 28px;
}
.as-status small {
  display: block;
  line-height: 1.5;
  color: #4d607b;
}
.as-summary h2 {
  margin: 8px 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.as-summary .button {
  margin-top: 12px;
}
.as-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 36px 0 18px;
  flex-wrap: wrap;
}
.as-section-head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin: 0;
}
.as-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  border-radius: 12px;
  font-size: 1rem;
  padding: 5px 8px;
  background: #e7efff;
  color: #1959c7;
  vertical-align: middle;
}
.as-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.as-suggestion {
  padding: 22px;
  border: 1px solid #e1e6ee;
  border-radius: 20px;
  background: white;
  display: flex;
  gap: 14px;
}
.as-suggestion.is-priority {
  background: #f1f9ee;
  border-color: #d5e7cd;
}
.as-step {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf0f6;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.as-suggestion h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}
.as-suggestion p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a6574;
}
.as-queue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.as-editor {
  border: 1px solid #d4e0f5;
  border-top: 5px solid #246ce8;
  background: white;
  border-radius: 24px;
  padding: 26px;
}
.as-editor h3 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 12px 0 18px;
}
.as-type {
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #175dce;
}
.as-type.sensitive {
  color: #916113;
}
.as-editor blockquote {
  margin: 0 0 22px;
  padding: 18px;
  background: #f5f7fa;
  border-radius: 14px;
  border: 0;
}
.as-editor blockquote p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.as-editor textarea {
  line-height: 1.7;
  resize: vertical;
}
.as-editor .button {
  width: 100%;
  margin-top: 4px;
}
.as-editor .text-button {
  margin: 16px 0 8px;
}
.as-waiting {
  display: grid;
  gap: 10px;
}
.as-waiting > button {
  border: 1px solid #e1e6ee;
  background: white;
  text-align: left;
  border-radius: 16px;
  padding: 17px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #233249;
}
.as-waiting > button[aria-current] {
  border-color: #427ee6;
  background: #edf4ff;
}
.as-waiting strong {
  font-size: 0.9rem;
  line-height: 1.45;
  display: block;
}
.as-waiting small {
  display: block;
  color: #617085;
  line-height: 1.6;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.as-empty {
  padding: 30px;
  background: white;
  border: 1px solid #e0e6ef;
  border-radius: 22px;
}
.as-empty > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #e9f6df;
  border-radius: 50%;
  color: #367723;
}
.as-empty h3 {
  font-size: 1.3rem;
}
.as-empty p {
  line-height: 1.65;
  color: #536278;
  max-width: 660px;
}
.as-preferences {
  border: 1px solid #dae2ed;
  padding: 24px;
  border-radius: 22px;
  background: white;
  margin-top: 32px;
}
.as-preferences summary {
  font-size: 1.06rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 26px;
}
.as-preferences p {
  color: #596579;
  line-height: 1.65;
}
.as-preferences .text-button {
  display: block;
  margin-top: 20px;
}
.as-back {
  display: inline-block;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #466078;
}
.as-page input[type="datetime-local"] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.as-page button:focus-visible,
.as-page summary:focus-visible {
  outline: 3px solid #80abff;
  outline-offset: 3px;
}
.as-page .consent {
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
}
.as-page .consent input {
  flex-shrink: 0;
}
.as-page section {
  min-width: 0;
}
@media (max-width: 700px) {
  .as-queue-layout,
  .as-suggestions {
    grid-template-columns: 1fr;
  }
  .as-waiting {
    grid-template-columns: 1fr 1fr;
  }
  .as-waiting > p {
    grid-column: 1/-1;
  }
  .as-waiting .as-step {
    display: none;
  }
  .as-status,
  .as-summary {
    padding: 21px;
    gap: 14px;
  }
  .as-status .as-spark {
    display: none;
  }
  .as-editor {
    padding: 20px;
  }
  .as-suggestion {
    padding: 18px;
  }
  .as-section-head {
    margin-top: 30px;
  }
  .as-preferences {
    padding: 20px;
  }
}
@media (max-width: 360px) {
  .as-summary {
    display: block;
  }
  .as-summary .as-spark {
    margin-bottom: 16px;
  }
  .as-waiting {
    grid-template-columns: 1fr;
  }
  .as-editor {
    padding: 16px;
  }
}

.as-suggestions {
  grid-template-columns: 1fr;
}
.as-more {
  border: 1px solid #e1e6ee;
  border-radius: 18px;
  background: white;
  padding: 18px 22px;
}
.as-more > summary {
  font-weight: 750;
  cursor: pointer;
  font-size: 0.92rem;
  color: #385478;
  min-height: 24px;
}
.as-more > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.as-more .as-suggestion {
  background: #f7f9fc;
}
.as-suggestion.is-priority {
  padding: 24px;
}
.as-suggestion.is-priority h3 {
  font-size: 1.15rem;
}
@media (max-width: 700px) {
  .as-more {
    padding: 16px;
  }
  .as-more > div {
    grid-template-columns: 1fr;
  }
  .as-suggestion.is-priority {
    padding: 20px;
  }
}
