/* Free online teleprompter (teleprompter.html) */
.tp_intro { padding-bottom: 60px; }
.tp_tool { padding: 64px 0 56px; position: relative; }
.tp_grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }

/* editor */
.tp_bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.tp_btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #fff; font-size: 14px; cursor: pointer; margin: 0; transition: background .15s, border-color .15s; }
.tp_btn:hover, .tp_btn:focus-within { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.tp_btn i { color: #f26b2a; }
.tp_stats { margin-left: auto; font-size: 14px; color: #a8a7ad; }
.tp_editor textarea { display: block; width: 100%; min-height: 470px; resize: vertical; padding: 22px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #19171c; color: #f1eff3; font: 19px/1.65 var(--bodyFont, Verdana, sans-serif); outline: none; transition: border-color .15s, box-shadow .15s; }
.tp_editor textarea::placeholder { color: #77727e; }
.tp_editor textarea:focus { border-color: #f26b2a; box-shadow: 0 0 0 3px rgba(242,107,42,.18); }
.tp_editor textarea.is_drop { border-style: dashed; border-color: #f26b2a; background: #221d1f; }
.tp_hint { margin: 10px 2px 0; font-size: 14px; }
.tp_hint i { color: #f26b2a; margin-right: 6px; }

/* settings */
.tp_panel { background: #f7f4ef; color: #111013; border-radius: 16px; padding: 24px 22px 20px; position: sticky; top: 110px; }
.tp_panel h2 { color: #111013 !important; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.tp_row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 62px; align-items: center; gap: 10px; margin-bottom: 10px; }
.tp_row label { font-size: 14px; font-weight: 600; margin: 0; }
.tp_row output { font-size: 13px; color: #5d5962; text-align: right; font-variant-numeric: tabular-nums; }
.tp_row input[type=range] { width: 100%; accent-color: var(--colorPrimary); }
.tp_row_sel { grid-template-columns: 104px minmax(0, 1fr); }
.tp_row select { width: 100%; height: 38px; border: 1.5px solid #d6cfc4; border-radius: 9px; background: #fff; color: #111013; padding: 0 10px; font-size: 14px; }
.tp_chks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0 18px; }
.tp_chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; cursor: pointer; }
.tp_chk input { width: 18px; height: 18px; accent-color: var(--colorPrimary); flex: none; }
.tp_chk:first-child { grid-column: 1 / -1; }
.tp_start { width: 100%; justify-content: center; border: 0; cursor: pointer; padding: 16px 20px; }
.tp_keys { margin-top: 14px; font-size: 14px; }
.tp_keys summary { cursor: pointer; font-weight: 600; list-style: none; }
.tp_keys summary::-webkit-details-marker { display: none; }
.tp_keys summary i { color: var(--colorPrimary); margin-right: 6px; }
.tp_keys ul { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 6px; }
.tp_keys li { display: flex; justify-content: space-between; gap: 10px; }
.tp_keys kbd { background: #111013; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-family: inherit; white-space: nowrap; }
.tp_keys li span { color: #5d5962; text-align: right; }

/* info below the tool */
.tp_rip { margin-top: -1px; }
.tp_info { padding: 40px 0 100px; }
.tp_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 80px; }
.tp_card { border-top: 3px solid var(--colorPrimary); padding-top: 22px; }
.tp_card i { font-size: 30px; color: var(--colorPrimary); }
.tp_card h3 { font-size: 22px; font-weight: 700; margin: 14px 0 8px; }
.tp_card p { margin: 0; line-height: 1.65; }
.tp_faq { display: grid; gap: 10px; margin-top: 24px; }
.tp_q { background: #fff; border: 1px solid rgba(17,16,19,.1); }
.tp_q summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--headingFont); font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--colorBlack); }
.tp_q summary::-webkit-details-marker { display: none; }
.tp_q summary i { color: var(--colorPrimary); transition: transform .25s; }
.tp_q[open] summary i { transform: rotate(45deg); }
.tp_q p { padding: 0 22px 20px; margin: 0; line-height: 1.7; }
.tp_cta { background: var(--colorBlack); color: #c9c8cd; padding: 36px 32px; margin-top: 70px; }
.tp_cta_k { color: #f26b2a; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tp_cta h3 { color: #fff; font-size: 34px; font-weight: 700; margin: 10px 0 12px; line-height: 1.1; }
.tp_cta p { color: #a8a7ad; line-height: 1.7; }
.tp_cta_btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tp_cta .ad_btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.5); }

/* ---------- the prompter itself ---------- */
html.tp_lock, html.tp_lock body { overflow: hidden !important; }
.tp_stage { position: fixed; inset: 0; z-index: 100000; background: #000; color: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.tp_stage[hidden] { display: none; }
.tp_stage[data-theme=yb] { color: #ffd84d; }
.tp_stage[data-theme=bw] { background: #fff; color: #111; }
.tp_view { position: absolute; inset: 0; overflow: hidden; }
.tp_text { position: absolute; top: 0; left: 0; right: 0; will-change: transform; font-weight: 600; letter-spacing: .005em; }
.tp_text p { margin: 0 0 .75em; }
.tp_cue { color: #f26b2a; font-weight: 400; font-style: italic; font-size: .7em; }
.tp_stage[data-theme=bw] .tp_cue { color: #c2410c; }
.tp_cue_p { margin-bottom: .5em !important; }
.tp_marker { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid rgba(242,107,42,.45); pointer-events: none; }
.tp_marker[hidden] { display: none; }
.tp_marker i { position: absolute; top: -14px; width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.tp_marker i:first-child { left: 0; border-left: 22px solid #f26b2a; }
.tp_marker i:last-child { right: 0; border-right: 22px solid #f26b2a; }
.tp_count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 min(38vw, 60vh)/1 var(--headingFont, sans-serif); color: #f26b2a; background: rgba(0,0,0,.55); pointer-events: none; }
.tp_count[hidden], .tp_end[hidden] { display: none; }
.tp_end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border: 2px solid #f26b2a; border-radius: 999px; font-size: 22px; font-weight: 700; background: rgba(0,0,0,.7); color: #fff; letter-spacing: .04em; pointer-events: none; }
.tp_progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); pointer-events: none; }
.tp_progress i { display: block; height: 100%; width: 0; background: #f26b2a; }
.tp_hud { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: rgba(24,22,27,.92); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: opacity .3s, transform .3s; max-width: calc(100vw - 20px); font-family: var(--bodyFont, sans-serif); color: #fff; }
.tp_stage.hud_off { cursor: none; }
.tp_stage.hud_off .tp_hud { opacity: 0; transform: translateX(-50%) translateY(14px); pointer-events: none; }
.tp_hud button { position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.tp_hud button:hover, .tp_hud button:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.tp_hud button small { position: absolute; right: 6px; bottom: 6px; font-size: 13px; font-weight: 700; color: #f26b2a; }
.tp_hud .tp_play { width: 54px; height: 54px; background: var(--colorPrimary); font-size: 20px; }
.tp_hud .tp_play:hover { background: var(--colorPrimary); filter: brightness(1.12); }
.tp_hud_wpm { min-width: 74px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp_hud_sep { width: 1px; height: 26px; background: rgba(255,255,255,.18); margin: 0 4px; }
.tp_hud_time { padding: 0 10px 0 6px; font-size: 13px; color: #b9b5bf; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp_flash { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(24,22,27,.9); color: #fff; font: 700 15px/1 var(--bodyFont, sans-serif); opacity: 0; transition: opacity .2s; pointer-events: none; }
.tp_flash.on { opacity: 1; }

@media (max-width: 1199.98px) {
  .tp_grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 991.98px) {
  .tp_grid { grid-template-columns: 1fr; }
  .tp_panel { position: static; }
  .tp_editor textarea { min-height: 340px; }
  .tp_cards { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
}
@media (max-width: 767.98px) {
  .tp_tool { padding: 36px 0 40px; }
  .tp_stats { margin-left: 0; width: 100%; }
  .tp_editor textarea { font-size: 17px; padding: 16px; }
  .tp_hud { gap: 0; padding: 6px; }
  .tp_hud button { width: 38px; height: 38px; font-size: 16px; }
  .tp_hud .tp_play { width: 46px; height: 46px; }
  .tp_hud_wpm { min-width: 58px; font-size: 12px; }
  .tp_hud_time, .tp_hud_sep, .tp_hud [data-tp-act=full] { display: none; }
  .tp_marker i { top: -10px; border-top-width: 9px; border-bottom-width: 9px; }
  .tp_marker i:first-child { border-left-width: 15px; }
  .tp_marker i:last-child { border-right-width: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tp_hud, .tp_flash { transition: none; } }

/* theme overrides: the site's p / label rules must not leak into the tool */
.tp_text p { font-size: inherit !important; line-height: inherit !important; color: inherit !important; font-weight: inherit !important; font-family: inherit !important; letter-spacing: inherit !important; }
.tp_panel label, .tp_panel .tp_chk span, .tp_btn, .tp_keys summary, .tp_keys li { letter-spacing: normal !important; text-transform: none !important; font-family: var(--bodyFont, Verdana, sans-serif) !important; }
.tp_btn { font-weight: 400 !important; font-size: 14px !important; }
.tp_row { grid-template-columns: 112px minmax(0, 1fr) 62px; }
.tp_row_sel { grid-template-columns: 112px minmax(0, 1fr); }
.tp_chk span { font-size: 14px !important; font-weight: 400; line-height: 1.3; }
.tp_hud button.tp_play, .tp_hud button.tp_play:focus-visible, .tp_hud button.tp_play:hover { background: var(--colorPrimary); }
.tp_hud button.tp_play:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.tp_start_m { display: none; }
@media (max-width: 991.98px) {
  .tp_start_m { display: inline-flex; background: var(--colorPrimary); border-color: var(--colorPrimary); font-weight: 700 !important; }
  .tp_start_m i { color: #fff; }
}
