/* Herald · Teleprompter — app tweaks. Base in glass-core.css. */

.tp-preview {
  flex-shrink: 0;
  max-height: 150px;
  overflow: hidden;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  border-radius: var(--r-md);
  background: var(--iri), var(--frost-1);
  border: 1px solid var(--frost-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--frost-inset), var(--frost-shadow);
}
.tp-section-label {
  margin: 12px 2px 4px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tp-count {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tp-step {
  width: 50px;
  height: 50px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--frost-1);
  border: 1px solid var(--frost-border);
  border-radius: 50%;
}
.tp-step:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--focus-ring);
}
.tp-count-n {
  min-width: 44px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.tp-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.tp-btn {
  flex: 1;
  min-height: 54px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-secondary);
  background: var(--frost-1);
  border: 1px solid var(--frost-border);
  border-radius: 980px;
}
.tp-btn.primary {
  color: #1a1205;
  background: linear-gradient(135deg, #ffce75, #f3a73c);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(243, 167, 60, 0.32);
}
.tp-btn:focus {
  outline: none;
  border-color: var(--focus-ring);
  color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--focus-ring);
}
.tp-btn.primary:focus {
  color: #1a1205;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--focus-ring), 0 12px 28px rgba(243, 167, 60, 0.46);
}
.tp-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Reading view — full-bleed, the line marker sits at vertical centre. */
#read { padding: 0; }
.tp-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.tp-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  padding: 0 48px;
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.tp-line { margin: 0 0 0.25em; }
.tp-marker {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 167, 60, 0.7), transparent);
  pointer-events: none;
}
.tp-hud {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffce75;
  background: var(--frost-1);
}
