:root {
  --background: #080f1e;
  --panel: #121f35;
  --line: #293950;
  --text: #f7f8fc;
  --muted: #aab7cc;
  --accent: #ff7da8;
  --brand-blue: #011d4d;
  --brand-pink: #dc1e5d;
}
body[data-view="editor"] {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  background: var(--brand-blue);
  background-image: radial-gradient(
    ellipse at 0 100%,
    #0c3d6b 0,
    transparent 55%
  );
}
.brand {
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 105px;
  height: 56px;
  object-fit: contain;
}
.flow-wordmark {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -3px;
  text-decoration: none;
  color: white;
  font-style: italic;
  line-height: 1;
}
.flow-wordmark span {
  color: var(--brand-pink);
  font-size: 28px;
  margin-left: 5px;
}
.topbar {
  margin: 0 auto;
  width: min(1300px, calc(100% - 80px));
  height: 98px;
  gap: 25px;
}
.episode-heading {
  flex: 1;
  overflow: hidden;
}
#document-title {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
}
body[data-view="editor"] .top-actions,
body[data-view="editor"] .episode-heading {
  display: none;
}
body[data-view="editor"] .flow-wordmark {
  margin-left: auto;
}
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 68px;
  width: min(1230px, calc(100% - 100px));
  margin: 56px auto 0;
  align-items: start;
}
.intro {
  padding-top: 20px;
}
.product-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-label span {
  height: 6px;
  width: 6px;
  background: #4bd5d4;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #4bd5d415;
}
.intro h1 {
  font-size: clamp(64px, 7.1vw, 102px);
  font-weight: 750;
  letter-spacing: -6px;
  line-height: 1.04;
  margin: 29px 0 25px;
}
.intro h1 em {
  color: #ff6c9e;
  font-style: italic;
}
.intro-description {
  font-size: 18px;
  line-height: 1.7;
  color: #c7d3e9;
  margin: 0;
}
.arabic-signature {
  font:
    27px/1.6 Tahoma,
    Arial,
    sans-serif;
  color: #54d6d0;
  text-align: left;
  margin: 14px 0 24px;
}
.benefits {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.benefits span {
  border: 1px solid #ffffff30;
  background: #ffffff06;
  border-radius: 25px;
  padding: 7px 12px;
  font-size: 11px;
  color: #e7edf8;
}
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  color: #e3eaf6;
  font-size: 13px;
}
.steps span {
  color: #89a1c7;
  font-size: 10px;
  letter-spacing: 1px;
  display: inline-block;
  width: 35px;
}
.privacy-note {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9fb6d6;
}
.privacy-note > span {
  color: #54d6d0;
  font-size: 25px;
}
.privacy-note p {
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
}
.composer {
  background: #ffffff;
  color: #122745;
  padding: 30px;
  border-radius: 22px;
  box-shadow: 0 15px 70px #0002;
}
.composer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.composer-heading h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
  margin: 0;
}
.composer-link {
  color: #405a7d;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 10px;
  white-space: nowrap;
  line-height: 1.6;
}
.composer-link:hover {
  color: var(--brand-pink);
  text-decoration: underline;
}
.composer-heading .composer-link {
  color: #b50f47;
  font-size: 10px;
  padding-top: 3px;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.field-label span {
  color: #8290a4;
  font-weight: 400;
  margin-left: 5px;
}
.title-input {
  width: 100%;
  padding: 12px 13px;
  background: #f3f5f9;
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  color: #122745;
  margin: 8px 0 20px;
  font-size: 12px;
  color-scheme: light;
}
.title-input::placeholder,
#draft-text::placeholder {
  color: #8c99ae;
}
.editor-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}
#draft-count {
  font-size: 10px;
  color: #687c97;
}
#draft-text {
  height: 245px;
  min-height: 150px;
  max-height: 600px;
  background: #f7f8fb;
  border: 1px solid #dce2ec;
  color: #122745;
  font:
    17px/1.8 Tahoma,
    Arial,
    sans-serif;
  padding: 17px;
  border-radius: 9px;
  color-scheme: light;
}
.composer-tools {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 11px;
}
#clear-button {
  margin-left: auto;
}
.draft-help {
  font-size: 10px;
  line-height: 1.6;
  color: #6b7d95;
  margin: 17px 0;
}
.remember {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b5373;
  cursor: pointer;
}
.remember input {
  accent-color: var(--brand-pink);
  width: 15px;
  height: 15px;
  margin: 0;
  color-scheme: light;
}
.draft-error {
  font-size: 11px;
  line-height: 1.5;
  color: #b40b42;
  min-height: 0;
  margin: 0;
}
.draft-error:not(:empty) {
  margin-top: 12px;
}
.launch-button {
  width: 100%;
  background: var(--brand-pink);
  border: 1px solid var(--brand-pink);
  color: white;
  border-radius: 9px;
  padding: 17px 20px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.launch-button span {
  font-size: 22px;
  font-weight: 400;
  line-height: 0.8;
}
.launch-button:disabled {
  opacity: 1;
  background: #edf0f6;
  border-color: #edf0f6;
  color: #929eb1;
}
.launch-button:not(:disabled):hover {
  background: #c71852;
}
.composer-footnote {
  text-align: center;
  color: #8190a7;
  font-size: 9px;
  margin: 13px 0 0;
  letter-spacing: 0.3px;
}
.welcome-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 22px 0 27px;
  border-top: 1px solid #ffffff1c;
  color: #8ea6cc;
  font-size: 10px;
  margin-top: -36px;
}
.welcome-bottom a {
  color: #bccce5;
  text-decoration: none;
}
.welcome-bottom a:hover {
  color: white;
}
.play-button {
  background: var(--brand-pink);
  color: white;
  border-color: var(--brand-pink);
}
.play-button:hover {
  background: #ed3976;
  border-color: #ed3976;
}
.controls {
  border-color: #2e3d55;
}
.option-button {
  border-color: #3e4e68;
}
.countdown {
  background: #080f1eee;
}
dialog {
  background: #111e34;
  border-color: #405272;
}
.section-link {
  background: #1a2b46;
  border-color: #304564;
}
.notice {
  background: #213756;
  border-color: #647c9e;
}
.show-controls {
  background: #19283df0;
  border-color: #486180;
}
.reader:focus-visible {
  outline-color: #ff7da840;
}
@media (max-width: 1100px) {
  .welcome {
    gap: 38px;
    width: calc(100% - 70px);
  }
  .composer {
    padding: 24px;
  }
  .composer-heading {
    flex-direction: column;
    gap: 8px;
  }
  .intro h1 {
    font-size: 76px;
  }
}
@media (max-width: 820px) {
  .topbar {
    width: calc(100% - 36px);
    height: 80px;
  }
  .brand img {
    width: 85px;
    height: 45px;
  }
  .flow-wordmark {
    font-size: 34px;
  }
  .welcome {
    width: min(590px, calc(100% - 36px));
    grid-template-columns: 1fr;
    margin-top: 28px;
    gap: 30px;
  }
  .intro {
    padding-top: 0;
  }
  .intro h1 {
    font-size: 66px;
    letter-spacing: -4px;
    margin: 20px 0 18px;
  }
  .intro h1 br {
    display: none;
  }
  .intro-description {
    font-size: 15px;
  }
  .intro-description br {
    display: none;
  }
  .product-label {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .arabic-signature {
    font-size: 22px;
    margin: 8px 0 14px;
  }
  .steps {
    display: none;
  }
  .privacy-note {
    margin-top: 20px;
  }
  .privacy-note p br {
    display: none;
  }
  .composer-heading {
    flex-direction: row;
  }
  .welcome-bottom {
    margin: 0;
    gap: 20px;
    padding-top: 20px;
  }
  body[data-view="reader"] .topbar {
    gap: 13px;
  }
  body[data-view="reader"] .brand img {
    width: 65px;
    height: 35px;
  }
  body[data-view="reader"] .flow-wordmark {
    font-size: 28px;
  }
  body[data-view="reader"] .flow-wordmark span {
    display: none;
  }
  body[data-view="reader"] .episode-heading {
    display: none;
  }
}
@media (max-width: 440px) {
  .intro h1 {
    font-size: 53px;
    letter-spacing: -3.5px;
  }
  .composer {
    padding: 21px;
    border-radius: 16px;
  }
  .composer-heading {
    flex-direction: column;
  }
  .composer-tools {
    gap: 12px;
  }
  .composer-link {
    font-size: 9px;
  }
  #draft-text {
    font-size: 16px;
  }
  .welcome-bottom {
    font-size: 9px;
  }
}
@media (max-height: 550px) and (max-width: 720px) {
  body[data-view="reader"] .topbar {
    height: 43px;
  }
  body[data-view="reader"] .brand img {
    height: 30px;
  }
}
