/* =========================================================
 * TinyUI Upload – Shared styles
 * (Survivor inside / Survivor outside / Witness)
 * =======================================================*/

/* =========================================================
 * 0) Theme variables
 * =======================================================*/
:root {
  --border-colour: #d0d4d7;
  --accent: #ff0046;

  --text-dark: #686868;
  --bg-soft: #f8f8f8;
  --danger-text: #c01832;
}

/* =========================================================
 * 1) Base / page layout
 * =======================================================*/
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-dark);

  background-repeat: no-repeat;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 60%,
      rgba(255, 255, 255, 1) 90%
    ),
    url(/assets/background_ga.png);
  background-size: contain;
}

@media (min-width: 3500px) {
  body {

     background-size: cover;
  }
}
.page {
  max-width: 960px;
  margin: 32px auto 40px auto;
  padding: 1rem 1rem;
  background: #ffffffd6;
}

@media (max-width: 720px) {
  .page { margin: 0 auto 40px auto; }
}

h1, h2 {
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
  color: #111;
}

p.lead {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.small-note {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.section {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* =========================================================
 * 2) Blocks (Olivero-ish)
 * =======================================================*/
.block {
  border: 1px solid var(--border-colour);
  border-radius: 3px;
  background: #ffffffd6;
  margin-bottom: 50px;
  overflow: hidden;
}

.block-header {
  background: #6868689e;
  color: #fff;
  padding: 8px 12px;
  font-size: 1.2rem;
  font-weight: 400;
}

.block-header--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.block-body {
  padding: 1.5rem;
}

/* =========================================================
 * 3) Identity tag + intro video
 * =======================================================*/
.identity-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.intro-video {
  margin-top: 12px;
  border-radius: 3px;
  border: 1px solid var(--border-colour);
  overflow: hidden;
  background: #000;
}

.intro-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
 * 4) Forms: labels + inputs
 * =======================================================*/
.field-group .field {
  margin-bottom: 14px;
}

label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.required-label::after {
  content: " *";
  color: var(--accent);
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px 11px;
  border: 1px solid #c3c8cc;
  border-radius: 3px;
  box-sizing: border-box;
  font-size: 1rem;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 0, 70, 0.2);
}

#consent_agree {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
}
.tinyui-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================================
 * 5) Accordion questions (details/qbox)
 * =======================================================*/
.qbox {
  border: 1px solid var(--border-colour);
  border-radius: 3px;
  padding: 0;
  margin-bottom: 30px;
  background: #fff;
  overflow: hidden;
}

.qbox summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  font-size: 1.2rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ff00461a;
}

.qbox summary::-webkit-details-marker {
  display: none;
}

.qbox summary .label {
  flex: 1;
  margin-right: 8px;
}

.qbox summary .chevron {
  font-size: 0.7rem;
  opacity: 0.65;
  transition: transform 0.15s ease;
}

details[open] > summary .chevron {
  transform: rotate(90deg);
}

.qbox-inner {
  padding: 0 12px 12px 12px;
  border-top: 1px solid var(--border-colour);
}

.qbox-inner p {
  margin: 10px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.qbox-question {
font-size: 1.2rem;
    margin: 1rem 0;
}

/* =========================================================
 * 6) Uppy tweaks
 * =======================================================*/
.uppy-Dashboard-inner {
  max-height: 260px;
}

.uppy-DashboardContent-bar {
  padding: 4px 8px;
}

.uppy-Dashboard-AddFiles {
  padding: 8px;
}

.uppy-size--lg .uppy-Dashboard-Item-preview {
  height: 90px;
}
.uppy-Dashboard-inner {
  background-color: #e3e3e3bf;
  border: 2px solid #c3c3c3;
}
 .uppy-size--md .uppy-Dashboard-AddFiles-title , .uppy-Dashboard-AddFiles-title {
  font-size:0.9rem;
}
/* =========================================================
 * 7) Privacy toggles (Bootstrap switch)
 * =======================================================*/
.audio-row {
  margin-top: 10px;
  font-size: 0.88rem;
}

.blur-switch-label {
  font-weight: 500;
  margin-bottom: 2px;
}

.blur-switch-wrapper .form-check {
  margin-bottom: 4px;
}

.form-check-input {
  cursor: pointer;
  vertical-align: middle;
}

.form-check-label {
  cursor: pointer;
  display: inline;
  vertical-align: middle;
}

/* Accent for switches (global + per-question) */
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(255, 0, 70, 0.30);
}

/* Optional extra glow used in your file */
.form-switch .form-check-input {
  box-shadow: 0 0 0 .25rem rgba(255, 0, 70, 0.48);
}

.blur-switch-per-question-note {
  font-size: 0.82rem;
  color: var(--danger-text);
}

.blur-global-notice {
  font-size: 0.86rem;
  color: var(--danger-text);
  margin: 8px 0 6px 0;
}

.hidden {
  display: none !important;
}

/* =========================================================
 * 8) Buttons, status, JSON preview
 * =======================================================*/
.btn-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 3px;
  border: 1px solid #333;
  background: #454545;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  box-shadow: 0 3px 10px rgba(255, 0, 70, 0.3);
}

.status {
  margin-top: 10px;
  font-size: 0.88rem;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  margin-top: 8px;
  background: #f4f4f4;
  padding: 8px;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
}

/* =========================================================
 * 9) Global TinyUI header
 * =======================================================*/
.tinyui-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffd6;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tinyui-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tinyui-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.tinyui-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tinyui-logo-project {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

.tinyui-logo-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.tinyui-logo-img {
  height: 75px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.tinyui-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tinyui-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #111827;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tinyui-nav-link i {
  font-size: 1rem;
}

.tinyui-nav-link--secondary {
  color: #111827;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.9);
}

.tinyui-nav-link--secondary:hover {
  background: rgba(241, 245, 249, 0.9);
}

.tinyui-nav-link--ghost {
  color: #4b5563;
  border-color: transparent;
  background: transparent;
}

.tinyui-nav-link:hover {
  text-decoration: underline;
}

.tinyui-header-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.tinyui-header-toggle i {
  font-size: 1.3rem;
}

@media (max-width: 720px) {
  .tinyui-header-inner { padding-inline: 0.75rem; }

  .tinyui-logo-project { font-size: 0.9rem; }
  .tinyui-logo-subtitle { font-size: 0.7rem; }

  .tinyui-logo-img { height: 40px; }

  .tinyui-header-toggle { display: inline-flex; }

  .tinyui-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.4rem 0.75rem 0.55rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: none;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .tinyui-header--nav-open .tinyui-nav {
    display: flex;
  }
  .tinyui-header.tinyui-header--nav-open .tinyui-nav {
    display: flex !important;
  }
}

/* =========================================================
 * 10) Saved clip cards
 * =======================================================*/
.tinyui-saved-clips-wrapper {
  margin-top: 0.75rem;
}

.tinyui-saved-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tinyui-saved-clips {
  margin-top: 0.25rem;
}

.tinyui-saved-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #e0e0e0;
  background: #19875429;
  margin-bottom: 0.75rem;
}

.tinyui-saved-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tinyui-saved-icon {
  font-size: 1.6rem;
  color: #16a34a;
}

.tinyui-saved-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tinyui-saved-filename {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.tinyui-saved-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tinyui-saved-title-label {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  display:none;
}

.tinyui-saved-title-input {
  width: 100%;
  font-size: 0.9rem;
}

.tinyui-saved-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
}

.tinyui-saved-delete {
  border: none;
  background: transparent;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.tinyui-saved-delete .bi {
  font-size: 1rem;
}

.tinyui-clip-count {
  font-size: 0.8rem;
  margin-inline-start: 0.5rem;
  opacity: 0.75;
}

.tinyui-total-clip-count {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.tinyui-saved-time-toggle {
  padding: 5px;
  border: 1px solid #ff0046;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: #ff0046;
  margin: 0.4rem 0;
}


.tinyui-saved-time-outer { margin-top: .5rem; }
.tinyui-saved-time-wrap { margin-top: .4rem; }
.tinyui-saved-time-inputs { display: flex; gap: .5rem; align-items: flex-start; }
.tinyui-saved-time-group { display: flex; flex-direction: column; }
.tinyui-saved-year-start, .tinyui-saved-year-end { max-width: 10rem; }




@media (max-width: 600px) {
  .tinyui-saved-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tinyui-saved-actions {
    align-items: flex-end;
  }
}

/* =========================================================
 * 11) Feeder page (upload home) layout
 * =======================================================*/
.tinyui-main {
  max-width: 980px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.feeder-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.feeder-hero-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.feeder-hero-lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 0.85rem;
}

.feeder-time-estimate {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0.9rem 0;
}

.feeder-time-estimate i {
  margin-top: 0.08rem;
}

.tinyui-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem 2.1rem;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 1rem 0;
}

.tinyui-primary-btn:hover {
  background: #e1003e;
}

.feeder-small-note {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.feeder-hero-video {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feeder-video-frame {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #ecddea;
}

.feeder-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;


}

.feeder-video-caption {
  font-size: 0.8rem;
  color: #6b7280;
}

.feeder-section + .feeder-section {
  margin-top: 1.5rem;
}

.feeder-safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.feeder-safety-item {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.8);
}

.feeder-safety-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  background: rgba(255, 0, 70, 0.06);
}

.feeder-safety-icon i {
  font-size: 1.1rem;
  color: var(--accent);
}

.feeder-safety-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feeder-safety-item p {
  font-size: 0.85rem;
  color: #4b5563;
}

.feeder-footer-block .feeder-small-print {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Feeder role overlay */
.feeder-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.feeder-overlay--open {
  display: block;
}

.feeder-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.feeder-overlay-dialog {
  position: relative;
  max-width: 720px;
  margin: 10vh auto;
  padding: 1.1rem 1.2rem 1.1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.feeder-overlay-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 999px;
}

.feeder-overlay-close i {
  font-size: 1rem;
}

.feeder-overlay-dialog h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.feeder-overlay-intro {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.8rem;
}

.feeder-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.feeder-role-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.95);
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
      box-shadow: 2px 2px 2px #e9e9e9;
}

.feeder-role-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 0, 70, 0.25);
}

.feeder-role-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 70, 0.06);
}

.feeder-role-icon i {
  font-size: 1.1rem;
  color: var(--accent);
}

.feeder-role-card h3 {
  font-size: 0.95rem;
  margin: 0;
}

.feeder-role-card p {
  font-size: 0.8rem;
  color: #4b5563;
  margin: 0;
}

.feeder-overlay-note {
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 900px) {
  .feeder-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .feeder-hero-video { order: -1; }
  .feeder-safety-grid,
  .feeder-role-grid { grid-template-columns: minmax(0, 1fr); }
  .feeder-overlay-dialog { margin: 8vh 1rem; }
}

@media (max-width: 720px) {
  .tinyui-main { margin-top: 1rem; }
  .feeder-hero-title { font-size: 1.4rem; }
}

/* =========================================================
 * 12) Before (Step 2) static page
 * =======================================================*/
.before-main {
  max-width: 980px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.before-section + .before-section {
  margin-top: 1.3rem;
}

.before-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.before-lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.before-lead.secondary {
  font-size: 0.92rem;
  color: #4b5563;
}

.before-list {
  margin: 0.25rem 0 0.35rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: #374151;
}

.before-list li + li {
  margin-top: 0.15rem;
}

.before-list--ordered {
  list-style-type: decimal;
}

.before-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

.before-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.3rem;
}

.before-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.before-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.8rem 0.9rem;
  background: #ffffff;
}

.before-card--soft {
  background: rgba(248, 250, 252, 0.9);
}

.before-card h2 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.before-card h2 i {
  font-size: 1.1rem;
  color: var(--accent);
}

.before-card p,
.before-card ul {
  font-size: 0.87rem;
  color: #4b5563;
}

.before-section--cta {
  margin-top: 1.7rem;
}

.before-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.before-cta-btn {
  margin-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .before-grid,
  .before-grid--two,
  .before-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .before-main { margin-top: 1rem; }
  .before-title { font-size: 1.4rem; }
}

/* =========================================================
 * 13) Overlay cards ("Before you start" modal)
 * =======================================================*/
.before-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.before-overlay.is-open {
  display: block;
}

.before-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.before-overlay__panel {
  position: relative;
  max-width: 720px;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  outline: none;
}

@media (max-width: 768px) {
  .before-overlay__panel {
    margin: 4vh 14px 0;
    padding: 16px;
  }
}

.before-overlay__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.before-overlay__dots {
  display: inline-flex;
  gap: 6px;
}

.before-overlay__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}

.before-overlay__dot.is-active {
  background: rgba(0,0,0,0.75);
}

.before-overlay__content h2 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.before-overlay__content p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.before-overlay__figure {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.05);
}


.before-overlay__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.before-overlay__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.before-overlay__actions-left,
.before-overlay__actions-right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.before-overlay__actions-left { justify-content: flex-start; }
.before-overlay__actions-right { justify-content: flex-end; }

/* Button base */
.before-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

/* Back: subtle grey */
.before-btn--back {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.75);
}

.before-btn--back:hover,
.before-btn--back:focus {
  background: rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

/* Next / Start: pink on right */
.before-btn--next {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.before-btn--next:hover,
.before-btn--next:focus {
  transform: translateY(-1px);
}

/* Keep space on first card so Next never shifts */
.before-btn.is-inert {
    pointer-events: none;
}

/* If you're using the 3-column grid actions layout, keep it here (single source of truth) */
.before-overlay__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.before-overlay__actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.before-overlay__remember {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.before-overlay__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.before-overlay__close:hover,
.before-overlay__close:focus {
  opacity: 1;
}

body.tinyui--locked {
  overflow: hidden;
}

/* =========================================================
 * 14) Tips UI (reset link, tip line, bubbles, icons)
 * =======================================================*/
.tinyui-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 6px 8px;
  border-radius: 999px;
}

.tinyui-reset-link i {
  font-size: 1rem;
}

.tinyui-reset-link:hover,
.tinyui-reset-link:focus {
  color: rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.05);
}
.tinyui-tipline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px;
  margin-bottom: 20px;
}
.tinyui-tipline__row {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: start;
  margin: 0.3rem;
}

.tinyui-tipline__iconstack {
  position: relative;
  width: 34px;
  height: 24px; /* controls the icon area height */
  line-height: 1;
}

.tinyui-tipline__icon {
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
}

/* Base icon */
.tinyui-tipline__icon--base {
  position: absolute;
  left: 0;
  top: 0;
}

/* Overlapping icon: slightly right + slightly down, on top */
.tinyui-tipline__icon--over {
  position: absolute;
  left: 8px;  /* tweak to taste */
  top: 12px;    /* tweak to taste */
  z-index: 2;
}

.tinyui-tipline__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(0,0,0,0.82);
}

.tinyui-tipline__text p {
  margin: 0;
}


.tinyui-help-btn i {
  font-size: 1.05rem;
}

.tinyui-help-btn:hover,
.tinyui-help-btn:focus {
  border-color: rgba(0,0,0,0.22);
}

.tinyui-help-btn--pink {
  border-color: rgba(255, 0, 70, 0.28);
  background: rgba(255, 0, 70, 0.08);
  color: var(--accent);
}



/* ============================================================
   TinyUI bubbles (help tooltips)
   - Default: floating bubble (desktop / legacy)
   - Inline: full-width panel inside a block (mobile-friendly)
   ============================================================ */

/* ---- Base bubble (shared) ---- */

.tinyui-bubble {
  right: auto;
  top: auto;
  z-index: 10000;
}

/* Title / text / media (shared) */

.tinyui-bubble__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.tinyui-bubble__close:hover,
.tinyui-bubble__close:focus {
  opacity: 1;
}

.tinyui-bubble__title {
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 6px;
  padding-right: 36px; /* room for close button */
}

.tinyui-bubble__text {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.98;
}

.tinyui-bubble__media {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.tinyui-bubble__media img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #fff;
}

/* ---- Theme ---- */

.tinyui-bubble--pink {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   Floating bubble variant (positioned by JS)
   Keep this for any bubbles that still "float" near a button.
   ============================================================ */

.tinyui-bubble:not(.tinyui-bubble--inline) {
  position: absolute; /* JS positions it */
  border-radius: 8px;
  padding: 1rem;
  width: 25rem;
  max-width: calc(100vw - 24px);
}

/* (Optional) subtle entrance for floating bubbles only */
@keyframes tinyuiBubbleIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(-6px); }
}

.tinyui-bubble:not(.tinyui-bubble--inline):not([hidden]) {
  animation: tinyuiBubbleIn 140ms ease-out;
}

/* ============================================================
   Inline bubble variant (full width, expands down)
   Use: add class .tinyui-bubble--inline to the bubble element
   ============================================================ */

.tinyui-bubble--inline {
  position: static !important;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem 0;
  border-radius: 5px;

  /* start collapsed */
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  /* padding animates in */
  padding: 0 14px;

  transform-origin: top;
  transition:
    max-height 220ms ease,
    opacity 160ms ease,
    padding 220ms ease;
}

/* when shown (hidden removed), expand */
.tinyui-bubble--inline:not([hidden]) {
  max-height: 520px; /* increase if your GIF/text is taller */
  opacity: 1;
  padding: 14px 14px 12px;
}

/* inline close button: make it bigger + tappable */
.tinyui-bubble--inline .tinyui-bubble__close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.tinyui-bubble--inline .tinyui-bubble__close:hover,
.tinyui-bubble--inline .tinyui-bubble__close:focus {
  background: rgba(255, 255, 255, 0.32);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tinyui-bubble--inline,
  .tinyui-bubble:not(.tinyui-bubble--inline):not([hidden]) {
    transition: none;
    animation: none;
  }
}



/*Question title icons + hierarchy */
.qbox-icon {
  color: var(--accent);
  font-size: 2rem;
  vertical-align: middle;
  margin: 0 1rem 0 0;
}

/* =========================================================
 * 15) (Optional) Older helpers (keep if still referenced)
 * =======================================================*/
.tinyui-info-box,
.tinyui-link-btn,
.tinyui-hint {
  /* If these aren’t used anymore, delete this whole block later */
}



/* ===== Conditions overlay ===== */

.tinyui-conditions {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
}

.tinyui-conditions.is-open {
  display: block;
}

.tinyui-conditions__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.tinyui-conditions__panel {
  position: relative;
  width: min(960px, calc(100vw - 28px)); /* matches form width */
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  outline: none;
  display: flex;
  flex-direction: column;
}

.tinyui-conditions__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.tinyui-conditions__close:hover,
.tinyui-conditions__close:focus {
  opacity: 1;
}

.tinyui-conditions__header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tinyui-conditions__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.tinyui-conditions__body {
  padding: 14px 16px 18px;
  overflow: auto; /* scrollable body */
  -webkit-overflow-scrolling: touch;
}

.tinyui-conditions__download {
  white-space: nowrap;
  margin: 0 55px 0 0;
}

body.tinyui--locked {
  overflow: hidden;
}



/* ===== Bottom save bar (friendly, full width of form) ===== */

.tinyui-savebar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 28px)); /* match .page max width */
  z-index: 10050;
  pointer-events:auto; /* only inner is clickable */
}

.tinyui-savebar__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 5px;
  background: rgba(255, 0, 70, 0.95);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}
.tinyui-savebar__inner,
.tinyui-savebar__close {
  pointer-events: auto;
}
.tinyui-savebar__icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.tinyui-savebar__text {
  flex: 1 1 auto;
  font-size: 0.95rem;
  line-height: 1.35;
}

.tinyui-savebar__text strong {
  display: inline-block;
  margin-right: 6px;
}

.tinyui-savebar__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  opacity: 0.9;
  cursor: pointer;
  padding: 0 6px;
}

.tinyui-savebar__close:hover,
.tinyui-savebar__close:focus {
  opacity: 1;
}

@media (max-width: 520px) {
  .tinyui-savebar__text { font-size: 0.9rem; }
}
/* ===== "View conditions" link ===== */

.tinyui-conditions-link {
  margin: 8px 0 0;
}

.tinyui-conditions-a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tinyui-conditions-a:hover,
.tinyui-conditions-a:focus {
  text-decoration-thickness: 2px;
}

/* --- Completion overlay --- */

/* Two-step grid */
.tinyui-complete__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 12px 0 6px;
  text-align: center;
}

/* Step cards */
.tinyui-complete__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  font-size: 0.85rem;
  opacity: 0.9;
}

.tinyui-complete__step i {
  font-size: 1.5rem;
  line-height: 1;
}

/* Arrow */
.tinyui-complete__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.tinyui-complete__arrow i {
  font-size: 1.25rem;
}

/* Mobile tightening */
@media (max-width: 420px) {
  .tinyui-complete__steps {
    gap: 0.5rem;
  }

  .tinyui-complete__step {
    font-size: 0.8rem;
    padding: 6px 2px;
  }

  .tinyui-complete__step i {
    font-size: 1.35rem;
  }

  .tinyui-complete__arrow i {
    font-size: 1.1rem;
  }
}




.tinyui-complete[hidden] {
  display: none !important;
}

.tinyui-complete {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* Backdrop */
.tinyui-complete__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

/* Panel */
.tinyui-complete__panel {
  position: relative;
  max-width: 540px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

@media (max-width: 480px) {
  .tinyui-complete__panel {
    margin: 6vh 12px 0;
    padding: 20px 16px 16px;
  }
}

/* Close (top-right X) */
.tinyui-complete__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
}

.tinyui-complete__close:hover,
.tinyui-complete__close:focus-visible {
  opacity: 1;
}

.tinyui-complete__close:focus-visible {
  outline: 2px solid rgba(255, 82, 155, .35);
  border-radius: 10px;
}

/* Icon */
.tinyui-complete__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 4px auto 10px;
  background: rgba(255, 82, 155, 0.12);
}

.tinyui-complete__icon svg {
  fill: currentColor;
}

/* Text */
.tinyui-complete__title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.tinyui-complete__lead {
  text-align: center;
  margin: 0 0 12px;
  opacity: .9;
}

/* Notice box */
.tinyui-complete__notice {
  border-radius: 14px;
  padding: 12px;
  margin: 0 0 14px;
  background: rgba(255, 82, 155, 0.10);
}

/* Optional email display */
.tinyui-complete__email {
  margin-top: 8px;
  font-size: .95rem;
  opacity: .85;
  word-break: break-word;
}

.tinyui-complete__email code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Actions */
.tinyui-complete__actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* Buttons */
.tinyui-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}

.tinyui-btn:focus-visible {
  outline: 2px solid rgba(255, 82, 155, .35);
}

/* Primary = safe next step */
.tinyui-btn--primary {
  background: rgb(255, 82, 155);
  color: #fff;
}

/* Demoted reset action (looks optional) */
.tinyui-btn--danger {
  background: transparent;
  color: rgba(0,0,0,.65);
  padding: 6px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: underline;
  width: auto;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tinyui-btn--danger:hover,
.tinyui-btn--danger:focus-visible {
  color: rgba(0,0,0,.9);
  background: rgba(0,0,0,.04);
  text-decoration-thickness: 2px;
}

/* Fine print */
.tinyui-complete__fineprint {
  margin: 10px auto 0;
  font-size: .92rem;
  opacity: .75;
  text-align: center;
  max-width: 46ch;
}





summary.outside-q {
  background-color: #6baed933;
}
summary.future-q {
  background-color: #07ff7f5c;

}
h5.q-break {
  margin: 2rem 0;
  font-weight: 600;
}



/* -------------------------------------------------
 *   Info blocks (upload page helpers)
 * -------------------------------------------------- */

.info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Image wrapper */
.info-block__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.25rem;
}

/* Text */
.info-block__content h3 {
  margin-top: 0;
}
.info-block__content li {
    margin: 1rem;
}
/* ---------------------------------------------
 *   Larger screens
 * ---------------------------------------------- */
@media (min-width: 768px) {
  .info-block {
    flex-direction: row;
    align-items: center; /* vertical centring */
  }

  .info-block__image,
  .info-block__content {
    flex: 1 1 50%;
  }

  /* Spacing tweaks */
  .info-block--image-left .info-block__image {
    margin-right: 2rem;
  }

  .info-block--image-right .info-block__image {
    order: 2;
    margin-left: 2rem;
  }

  .info-block--image-right .info-block__content {
    padding : 0 1rem;
    order: 1;
  }
}
span.toggle-text
{
  font-size: 0.7rem;
  margin: 0 0.3rem 0 0;
}

details.qbox > summary .toggle-text::before { content: "Open"; }
details.qbox[open] > summary .toggle-text::before { content: "Close"; }

details.qbox > summary .chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}
details.qbox[open] > summary .chevron {
  transform: rotate(90deg);
}
.exampleq {font-weight:600;}
