:root {
  --online-navy: #071224;
  --online-blue: #2f7dff;
  --online-blue-soft: #eaf2ff;
  --online-line: #dce5f1;
  --online-copy: #56657a;
}

* {
  box-sizing: border-box;
}

.online-prompter-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0, rgba(47, 125, 255, 0.12), transparent 30%),
    #f7f9fc;
  color: var(--online-navy);
}

.online-prompter-page .site-header {
  position: sticky;
  border-bottom: 1px solid var(--online-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--online-navy);
  backdrop-filter: blur(18px);
}

.online-prompter-page .site-header .button-small {
  background: var(--online-navy);
  color: #fff;
}

.online-prompter-page .language-control select {
  border-color: var(--online-line);
  background: #fff;
}

.online-prompter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.online-prompter-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--online-navy);
  font-size: 19px;
  font-weight: 850;
  text-decoration: none;
}

.online-prompter-brand img {
  border-radius: 10px;
}

.online-prompter-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.online-prompter-header nav a {
  color: #33445a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.online-prompter-header nav a:last-child {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--online-navy);
  color: #fff;
  white-space: nowrap;
}

.online-language-control select {
  min-height: 38px;
  padding: 7px 30px 7px 12px;
  border: 1px solid var(--online-line);
  border-radius: 999px;
  background: #fff;
  color: #33445a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.online-prompter-setup {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.online-prompter-intro {
  max-width: 720px;
  margin-bottom: 36px;
}

.online-prompter-kicker {
  margin: 0 0 12px;
  color: var(--online-blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.online-prompter-intro h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.online-prompter-intro > p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--online-copy);
  font-size: 18px;
  line-height: 1.7;
}

#script-input {
  width: 100%;
  min-height: 350px;
  padding: 24px;
  border: 1px solid #cbd7e6;
  border-radius: 18px;
  outline: 0;
  background: #fbfcfe;
  color: #142238;
  font: 500 19px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  resize: vertical;
}

#script-input:focus {
  border-color: var(--online-blue);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.12);
}

.online-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #215fc7;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.online-prompter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.online-setting-panel {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--online-line);
  border-radius: 18px;
  background: #fff;
}

.online-setting-panel legend {
  padding: 0 8px;
  color: #1b2b42;
  font-size: 14px;
  font-weight: 850;
}

.online-setting-panel > label:not([hidden]) {
  display: block;
  margin-top: 18px;
}

.online-setting-panel > label:first-of-type {
  margin-top: 4px;
}

.online-prompter-options label > span:first-child:not(:only-child) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 750;
}

.online-prompter-options output {
  color: #728096;
  font-weight: 650;
}

.online-prompter-options input[type="range"] {
  width: 100%;
  accent-color: var(--online-blue);
}

.online-select-setting > span {
  display: block;
  margin-bottom: 8px;
  color: #33445a;
  font-size: 13px;
  font-weight: 750;
}

.online-select-setting select {
  width: 100%;
  min-height: 44px;
  padding: 9px 34px 9px 12px;
  border: 1px solid #cbd7e6;
  border-radius: 11px;
  background: #fbfcfe;
  color: #142238;
  font: inherit;
}

.online-setting-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.online-setting-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--online-line);
  color: #65758a;
  font-size: 13px;
}

.online-setting-summary strong {
  color: #173155;
  font-size: 16px;
}

.online-mirror-panel {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.online-prompter-options .online-prompter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: #33445a;
  font-size: 14px;
  font-weight: 750;
}

.online-prompter-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--online-blue);
}

.online-prompter-toggle span {
  margin: 0 !important;
}

.online-prompter-start-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.online-primary-button {
  min-width: 210px;
  padding: 16px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--online-blue);
  box-shadow: 0 14px 30px rgba(47, 125, 255, 0.22);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.online-primary-button:hover {
  background: #246de3;
}

.online-prompter-start-row p {
  margin: 0;
  color: #69778b;
  font-size: 14px;
  line-height: 1.55;
}

.online-prompter-help {
  margin-top: 50px;
  padding: 28px 32px;
  border-radius: 22px;
  background: var(--online-navy);
  color: #fff;
}

.online-prompter-help h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.online-prompter-help ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding-left: 22px;
  color: #c6d2e1;
  line-height: 1.6;
}

.online-prompter-shortcuts {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #aebed2;
  font-size: 13px;
  line-height: 1.6;
}

.online-prompter-shortcuts strong {
  color: #fff;
}

.online-prompter-seo {
  border-top: 1px solid var(--online-line);
  background: #fff;
}

.online-seo-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--online-line);
}

.online-seo-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.online-seo-section h2,
.online-seo-app h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.online-seo-card-grid,
.online-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.online-seo-card-grid article,
.online-mode-grid article {
  padding: 28px;
  border: 1px solid var(--online-line);
  border-radius: 22px;
  background: #f8faff;
}

.online-seo-card-grid h3,
.online-mode-grid h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.online-seo-card-grid p,
.online-mode-grid p,
.online-seo-split > div > p,
.online-seo-app p {
  margin: 0;
  color: var(--online-copy);
  line-height: 1.7;
}

.online-seo-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: start;
}

.online-seo-split > div > p:not(.online-prompter-kicker) {
  margin-top: 22px;
}

.online-mode-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.online-mode-grid article span {
  display: block;
  margin-bottom: 14px;
  color: var(--online-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.online-seo-workflow ol {
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--online-line);
}

.online-seo-workflow li {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  padding: 24px 0;
  border-bottom: 1px solid var(--online-line);
}

.online-seo-workflow li span {
  color: var(--online-copy);
  line-height: 1.65;
}

.online-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.online-related-links a {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--online-blue-soft);
  color: #1859bd;
  font-weight: 750;
  text-decoration: none;
}

.online-faq-list details {
  padding: 20px 0;
  border-bottom: 1px solid var(--online-line);
}

.online-faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.online-faq-list p {
  margin: 12px 0 0;
  color: var(--online-copy);
  line-height: 1.65;
}

.online-seo-app {
  padding: 76px 0;
  background: var(--online-navy);
  color: #fff;
}

.online-seo-app .online-seo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.online-seo-app p {
  max-width: 680px;
  margin-top: 18px;
  color: #b8c5d5;
}

.online-seo-app a {
  flex: 0 0 auto;
  padding: 15px 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--online-navy);
  font-weight: 850;
  text-decoration: none;
}

.online-prompter-viewport {
  position: absolute;
  inset: 0 0 92px;
  overflow: hidden;
  background: #03070d;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.online-prompter-viewport[data-theme="light"] {
  background: #f7f5ef;
}

.online-prompter-viewport[data-theme="contrast"] {
  background: #000;
}

.online-prompter-track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.online-prompter-text {
  width: var(--reader-width, 70%);
  margin: 0 auto;
  color: #f8fbff;
  font-size: var(--reader-font-size, 56px);
  font-weight: 720;
  line-height: var(--reader-line-height, 1.5);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transform: scale(var(--reader-scale-x, 1), var(--reader-scale-y, 1));
  transform-origin: center;
}

.online-prompter-viewport[data-theme="light"] .online-prompter-text {
  color: #101820;
}

.online-prompter-viewport[data-theme="contrast"] .online-prompter-text {
  color: #ffe34d;
}

.online-prompter-focus {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 4%;
  width: 92%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(72, 155, 255, 0.85) 18%, rgba(72, 155, 255, 0.85) 82%, transparent);
  pointer-events: none;
}

.online-prompter-focus::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #56a2ff;
  box-shadow: 0 0 0 8px rgba(47, 125, 255, 0.14);
  transform: translateX(-50%);
}

.online-prompter-status {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 18, 36, 0.78);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.online-prompter-status span {
  color: #91a4bc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.online-prompter-status .online-prompter-remaining {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: #91a4bc;
  letter-spacing: 0;
  text-transform: none;
}

.online-prompter-status .online-prompter-remaining strong {
  margin-left: 4px;
  color: #fff;
}

.online-prompter-progress {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.online-prompter-progress span {
  display: block;
  width: var(--reading-progress, 0%);
  height: 100%;
  background: #4c9cff;
  transition: width 100ms linear;
}

.online-prompter-countdown {
  position: absolute;
  z-index: 8;
  inset: 0 0 92px;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 13, 0.72);
  color: #fff;
  font-size: clamp(110px, 22vw, 260px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  backdrop-filter: blur(5px);
}

.online-prompter-countdown[hidden] {
  display: none;
}

.online-prompter-controls {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(14, 24, 39, 0.94);
  backdrop-filter: blur(18px);
}

.online-prompter-controls button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: #1d2b40;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.online-prompter-controls .online-play-button {
  min-width: 96px;
  border-color: transparent;
  background: var(--online-blue);
}

.online-prompter-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #b8c5d5;
  font-size: 12px;
  font-weight: 700;
}

.online-prompter-controls label > span {
  display: grid;
  min-width: 68px;
  gap: 2px;
}

.online-prompter-controls output {
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.online-prompter-controls input[type="range"] {
  width: 100px;
  accent-color: #5ba2ff;
}

@media (max-width: 760px) {
  .online-prompter-header {
    width: min(100% - 28px, 1180px);
  }

  .online-prompter-header nav a:first-child {
    display: none;
  }

  .online-prompter-header nav {
    gap: 10px;
  }

  .online-prompter-brand span {
    display: none;
  }

  .online-prompter-header nav a:last-child {
    padding: 9px 11px;
    font-size: 12px;
  }

  .online-language-control select {
    width: 118px;
    max-width: 118px;
  }

  .online-prompter-setup {
    width: min(100% - 28px, 980px);
    padding-top: 34px;
  }

  .online-prompter-options {
    grid-template-columns: 1fr;
  }

  .online-mirror-panel {
    grid-column: auto;
  }

  .online-setting-selects {
    grid-template-columns: 1fr;
  }

  .online-prompter-start-row {
    align-items: stretch;
    flex-direction: column;
  }

  .online-prompter-help ol {
    grid-template-columns: 1fr;
  }

  .online-seo-section {
    padding: 64px 0;
  }

  .online-seo-container {
    width: min(100% - 28px, 1120px);
  }

  .online-seo-card-grid,
  .online-seo-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .online-seo-workflow li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .online-seo-app .online-seo-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .online-prompter-viewport {
    bottom: 176px;
  }

  .online-prompter-countdown {
    bottom: 176px;
  }

  .online-prompter-controls {
    flex-wrap: wrap;
  }

  .online-prompter-controls label {
    flex: 1 1 42%;
  }

  .online-prompter-controls button {
    flex: 1 1 auto;
  }

  .online-prompter-controls input[type="range"] {
    width: min(22vw, 100px);
  }

  .online-prompter-text {
    width: min(var(--reader-width, 84%), 92%);
  }
}

@media (max-width: 480px) {
  .online-prompter-status {
    right: 12px;
    left: 12px;
    justify-content: space-between;
  }

  .online-prompter-status .online-prompter-remaining {
    margin-left: auto;
  }

  .online-prompter-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .online-prompter-controls label {
    flex-basis: 100%;
  }
}

/* Integrated editor and prompting workspace. The SEO sections remain ordinary page
   content below this component; only the workspace changes state. */
.online-prompter-setup {
  width: min(1120px, calc(100% - 40px));
  padding: 38px 0 82px;
}

.online-prompter-intro {
  max-width: 880px;
  margin-bottom: 24px;
}

.online-prompter-intro h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1;
}

.online-prompter-intro > p:last-child {
  max-width: 780px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
}

.online-prompter-workbench {
  position: relative;
  overflow: hidden;
  border: 1px solid #1d2d43;
  border-radius: 26px;
  background: #071224;
  box-shadow: 0 28px 80px rgba(7, 18, 36, 0.17);
}

.online-workbench-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 13px 18px 13px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
}

.online-workbench-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.online-workbench-toolbar strong {
  font-size: 15px;
}

.online-workbench-toolbar span {
  color: #91a4bc;
  font-size: 13px;
}

.online-workbench-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.online-workbench-toolbar .online-link-button {
  color: #9fc7ff;
}

.online-secondary-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: #15243a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.online-workbench-editor {
  padding: 18px;
}

.online-workbench-editor #script-input {
  display: block;
  width: 100%;
  height: clamp(260px, 38vh, 360px);
  min-height: 260px;
  max-height: 52vh;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  outline: 0;
  background:
    linear-gradient(90deg, transparent, rgba(72, 155, 255, 0.16) 48%, rgba(72, 155, 255, 0.16) 52%, transparent) 0 46% / 100% 2px no-repeat,
    #0b1729;
  color: #f8fbff;
  caret-color: #5ba2ff;
  font: 600 22px/1.72 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  resize: vertical;
}

.online-workbench-editor #script-input::placeholder,
.online-script-drawer textarea::placeholder {
  color: #71849d;
}

.online-workbench-editor #script-input:focus {
  border-color: #4d94ff;
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.18);
}

.online-prompter-start-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 16px;
  padding: 0 4px;
}

.online-reading-estimate {
  display: grid;
  gap: 3px;
  color: #91a4bc;
  font-size: 12px;
}

.online-reading-estimate strong {
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.online-prompter-start-row p {
  color: #a8b7ca;
}

.online-prompter-start-row p strong {
  color: #fff;
}

.online-prompter-start-row p a {
  color: #9fc7ff;
}

.online-prompter-start-row .online-primary-button {
  min-width: 190px;
}

.online-prompter-help {
  margin-top: 26px;
}

.online-workbench-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1100;
  width: min(430px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #dce5f1;
  background: #f7f9fc;
  color: var(--online-navy);
  box-shadow: -30px 0 80px rgba(3, 11, 24, 0.26);
}

.online-workbench-drawer[open] {
  display: flex;
  flex-direction: column;
}

.online-workbench-drawer::backdrop {
  background: rgba(2, 8, 17, 0.58);
  backdrop-filter: blur(3px);
}

.online-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 20px 14px 24px;
  border-bottom: 1px solid var(--online-line);
  background: #fff;
}

.online-drawer-header h2 {
  margin: 0;
  font-size: 20px;
}

.online-drawer-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--online-line);
  border-radius: 50%;
  background: #f7f9fc;
  color: #33445a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.online-workbench-drawer .online-prompter-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
}

.online-workbench-drawer .online-setting-panel {
  background: #fff;
}

.online-workbench-drawer .online-mirror-panel {
  display: grid;
  grid-column: auto;
}

.online-script-drawer {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.online-script-drawer textarea {
  flex: 1;
  width: calc(100% - 40px);
  min-height: 280px;
  margin: 20px;
  padding: 22px;
  border: 1px solid #cbd7e6;
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: #142238;
  font: 500 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  resize: none;
}

.online-script-drawer textarea:focus {
  border-color: var(--online-blue);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.12);
}

.online-drawer-done {
  margin: 0 20px;
}

.online-prompter-stage {
  position: relative;
  inset: auto;
  z-index: 1;
  display: none;
  height: clamp(560px, 72vh, 760px);
  min-height: 560px;
  background: #03070d;
  color: #fff;
}

.online-prompter-workbench.is-prompting .online-workbench-toolbar,
.online-prompter-workbench.is-prompting .online-workbench-editor {
  display: none;
}

.online-prompter-workbench.is-prompting .online-prompter-stage {
  display: block;
}

.online-stage-app {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(91, 162, 255, 0.35);
  border-radius: 999px;
  background: rgba(7, 18, 36, 0.78);
  color: #9fc7ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.online-prompter-workbench:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #03070d;
}

.online-prompter-workbench:fullscreen .online-prompter-stage {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.online-prompter-viewport {
  inset: 0 0 104px;
}

.online-prompter-countdown {
  inset: 0 0 104px;
}

.online-prompter-controls {
  flex-wrap: wrap;
  min-height: 74px;
}

@media (max-width: 760px) {
  .online-prompter-setup {
    width: min(100% - 28px, 1120px);
    padding-top: 28px;
  }

  .online-prompter-intro h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .online-workbench-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .online-workbench-actions {
    width: 100%;
  }

  .online-workbench-actions .online-secondary-button {
    margin-left: auto;
  }

  .online-workbench-editor {
    padding: 10px;
  }

  .online-workbench-editor #script-input {
    height: clamp(220px, 30vh, 280px);
    min-height: 220px;
    max-height: 38vh;
    padding: 18px;
    font-size: 18px;
  }

  .online-prompter-start-row {
    display: flex;
    gap: 14px;
    padding: 4px;
  }

  .online-reading-estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .online-prompter-start-row .online-primary-button {
    width: 100%;
  }

  .online-prompter-stage {
    height: min(760px, 82vh);
    min-height: 620px;
  }

  .online-prompter-viewport,
  .online-prompter-countdown {
    bottom: 188px;
  }

  .online-prompter-controls {
    min-height: 164px;
  }

  .online-workbench-drawer {
    inset: auto 0 0;
    width: 100%;
    height: min(82dvh, 760px);
    border-top: 1px solid #dce5f1;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 480px) {
  .online-workbench-actions {
    flex-wrap: wrap;
  }

  .online-workbench-actions .online-secondary-button {
    width: 100%;
    margin-left: 0;
  }

  .online-prompter-stage {
    min-height: 680px;
  }

  .online-prompter-controls {
    min-height: 192px;
  }

  .online-prompter-viewport,
  .online-prompter-countdown {
    bottom: 214px;
  }

  .online-stage-app {
    top: 62px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .online-primary-button {
    scroll-behavior: auto;
  }
}
