.helper-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 24px 24px calc(40px + var(--ts-safe-bottom));
}

.helper-shell [hidden] { display: none !important; }
.helper-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 38px; }
.helper-brand { display: block; flex: 0 0 160px; width: 160px; line-height: 0; }
.helper-brand img { display: block; width: 100%; height: auto; }
.helper-brand .logo-dark { display: none; }
[data-ts-theme="dark"] .helper-brand .logo-light { display: none; }
[data-ts-theme="dark"] .helper-brand .logo-dark { display: block; }
.helper-header .ts-theme-toggle { width: auto; min-width: 76px; min-height: 44px; padding: 0 12px; gap: 6px; }
.helper-header .ts-theme-toggle [data-ts-theme-label] { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

.helper-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(370px, 1.14fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.helper-introduction { min-width: 0; padding-top: 10px; }
.helper-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ts-brand-text); font-size: 11px; line-height: 1.4; letter-spacing: .12em; font-weight: 800; }
.helper-eyebrow span { font-size: 9px; }
.helper-introduction h1 { max-width: 520px; margin: 18px 0 14px; font-size: clamp(34px, 4.5vw, 47px); line-height: 1.13; letter-spacing: -.045em; font-weight: 800; }
.helper-introduction h1 span { color: var(--ts-text-muted); }
.helper-introduction > p { max-width: 420px; margin: 0; color: var(--ts-text-muted); font-size: 16px; line-height: 1.65; }
.helper-assurance { display: flex; align-items: flex-start; gap: 12px; margin-top: 34px; }
.helper-assurance-icon, .helper-instruction-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ts-brand-soft); color: var(--ts-brand-text); font-weight: 800; }
.helper-assurance p { margin: 0; color: var(--ts-text-muted); font-size: 13px; line-height: 1.6; }
.helper-assurance strong { color: var(--ts-text); }

.helper-wizard { min-width: 0; padding: clamp(24px, 3vw, 32px); scroll-margin-top: 16px; }
.helper-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#helper-step-label { color: var(--ts-brand-text); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
#helper-step-caption { color: var(--ts-text-muted); font-size: 12px; font-weight: 700; }
.helper-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 26px; padding: 0; list-style: none; }
.helper-progress li { height: 4px; overflow: hidden; border-radius: 9px; background: var(--ts-border); }
.helper-progress li.is-reached { background: var(--ts-brand-gradient-horizontal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.helper-step-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; background: var(--ts-brand-soft); color: var(--ts-brand-text); font-size: 22px; font-weight: 800; }
.helper-step-icon svg { width: 22px; height: 22px; }
.helper-step-icon--success { background: var(--ts-success-bg); color: var(--ts-success); }
.helper-step h2 { margin: 0 0 10px; color: var(--ts-text); font-size: 22px; line-height: 1.25; letter-spacing: -.025em; font-weight: 800; }
.helper-step h2:focus { outline: none; }
.helper-step-copy { margin: 0 0 20px; color: var(--ts-text-muted); font-size: 15px; line-height: 1.65; }
.helper-wizard .ts-button { padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
.helper-wizard .ts-button--primary { background: linear-gradient(rgba(0, 0, 0, .20), rgba(0, 0, 0, .20)), var(--ts-brand-gradient); }
.helper-primary, .helper-secondary, .helper-upload { min-height: 52px; line-height: 1.3; }
.helper-primary { padding-top: 11px; padding-bottom: 11px; }
.helper-secondary { margin-top: 12px; }
.helper-instruction { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; }
.helper-instruction-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
.helper-instruction p { margin: 0; color: var(--ts-text-muted); font-size: 13px; line-height: 1.6; }
.helper-instruction strong { color: var(--ts-text); }
.helper-text-action, .helper-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ts-brand-text); font-size: 13px; line-height: 1.4; font-weight: 800; text-align: left; }
.helper-back { margin-top: 8px; color: var(--ts-text-muted); }

.helper-field-label { display: block; margin: 0 0 8px; color: var(--ts-text); font-size: 13px; font-weight: 800; }
.helper-textarea { display: block; min-height: 116px; margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.helper-textarea[aria-invalid="true"] { border-color: var(--ts-danger); }
.helper-field-hint, .helper-file-help { margin: 10px 0 0; color: var(--ts-text-muted); font-size: 12px; line-height: 1.55; }
#status, #session-download-status { margin: 0 0 12px; color: var(--ts-text-muted); font-size: 13px; line-height: 1.6; }
#status:empty, #session-download-status:empty { display: none; }
#status.is-error { padding: 12px; border: 1px solid var(--ts-danger-border); border-radius: 12px; background: var(--ts-danger-bg); color: var(--ts-text); }
.helper-security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--ts-border); border-radius: 14px; background: var(--ts-surface-soft); color: var(--ts-text-muted); }
.helper-security-note > span { flex: none; color: var(--ts-brand-text); font-size: 17px; line-height: 1.15; }
.helper-security-note p { margin: 0; font-size: 12px; line-height: 1.6; }

.helper-result-card, .helper-result-email { margin-top: 16px; }
.helper-result-card p, .helper-result-email p { margin: 0 0 12px; color: var(--ts-text-muted); font-size: 13px; line-height: 1.6; }
.helper-result-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ts-brand-text); font-size: 14px; line-height: 1.4; font-weight: 800; }
.helper-result-label span { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ts-brand-soft); letter-spacing: 0; }
.helper-result-value { min-width: 0; margin-bottom: 14px; padding: 14px; border: 1px solid var(--ts-border); border-radius: 14px; background: var(--ts-surface-soft); }
.helper-result-value > span { display: block; margin-bottom: 6px; color: var(--ts-text-muted); font-size: 11px; font-weight: 700; }
.helper-result-value pre { margin: 0; color: var(--ts-text); font-family: var(--ts-font-mono); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.helper-bot-link { margin-top: 12px; }
#bot-after-uid:not([hidden]) + .helper-manual-bot { display: none; }
.helper-result-email { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ts-border); }

.helper-file-option, .helper-help, .helper-alternatives, .helper-session-option { margin-top: 12px; }
.helper-file-option p, .helper-help p, .helper-alternatives p, .helper-session-option p { margin: 0 0 12px; color: var(--ts-text-muted); font-size: 13px; line-height: 1.6; }
.helper-file-option strong, .helper-help strong, .helper-alternatives strong, .helper-session-option strong { color: var(--ts-text); }
.helper-extra { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--ts-border); }
.helper-extra details { margin-top: 0; }
.helper-session-option { margin-top: 14px !important; padding-top: 4px; border-top: 1px solid var(--ts-border); }
.helper-shell summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--ts-text-muted); font-size: 13px; line-height: 1.4; font-weight: 800; cursor: pointer; list-style: none; }
.helper-shell summary::-webkit-details-marker { display: none; }
.helper-shell summary::after { content: "⌄"; flex: none; font-size: 18px; line-height: 1; }
.helper-shell details[open] > summary::after { transform: rotate(180deg); }
.helper-shell summary:focus-visible { outline: 2px solid var(--ts-border-focus); outline-offset: 3px; }
.helper-help a { color: var(--ts-brand-text); font-weight: 800; }
.helper-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.helper-file-input:focus-visible + .helper-upload { outline: 2px solid var(--ts-border-focus); outline-offset: 3px; }
.helper-upload { cursor: pointer; }
.helper-file-help { margin-top: 10px !important; }
.helper-footer { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 24px 0 0; color: var(--ts-text-muted); font-size: 12px; line-height: 1.5; font-weight: 700; text-align: center; }
.helper-footer span { color: var(--ts-brand-text); font-size: 18px; }

@media (max-width: 760px) {
  .helper-shell { max-width: 520px; padding: 16px 16px calc(32px + var(--ts-safe-bottom)); }
  .helper-header { margin-bottom: 24px; }
  .helper-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .helper-introduction { padding: 0 3px; }
  .helper-introduction h1 { margin: 12px 0 10px; font-size: clamp(29px, 8vw, 36px); }
  .helper-introduction > p { font-size: 14px; }
  .helper-assurance { display: none; }
  .helper-wizard { padding: 22px; }
}

@media (max-width: 360px) {
  .helper-shell { padding-inline: 12px; }
  .helper-wizard { padding: 19px; }
  .helper-step h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .helper-shell *, .helper-shell *::before, .helper-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
