.tsu {
  --tsu-brand: #3459db;
  --tsu-brand-strong: #2949c7;
  --tsu-brand-soft: #eef2ff;
  --tsu-ink: #10182d;
  --tsu-muted: #65758f;
  --tsu-border: #d7e0ef;
  --tsu-panel: #ffffff;
  --tsu-panel-muted: #f7f9fd;
  --tsu-danger: #d92d49;
  --tsu-success: #087a55;
  --tsu-shadow: 0 24px 70px rgba(26, 43, 81, 0.18);
  color: var(--tsu-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.tsu *,
.tsu *::before,
.tsu *::after {
  box-sizing: border-box;
}

.tsu button,
.tsu input,
.tsu select,
.tsu textarea {
  color: inherit;
  font: inherit;
}

.tsu button,
.tsu [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.tsu-shell {
  background: var(--tsu-panel);
  border: 1px solid var(--tsu-border);
  border-radius: 28px;
  box-shadow: var(--tsu-shadow);
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.tsu--public .tsu-shell {
  box-shadow: 0 30px 90px rgba(7, 27, 80, 0.28);
}

.tsu--public .tsu-shell--public-launch {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 360px;
  overflow: visible;
}

.tsu-body--public-launch {
  overflow: visible;
  padding: 6px 0 0;
}

.tsu-hero {
  color: #fff;
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
}

.tsu-hero h1 {
  color: inherit;
  font-size: clamp(2rem, 6vw, 3.45rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 14px;
}

.tsu-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  margin: 0 auto;
  max-width: 640px;
}

.tsu-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--tsu-border);
  display: flex;
  gap: 20px;
  height: auto !important;
  justify-content: space-between;
  min-height: 0 !important;
  padding: 28px 30px 22px;
}

.tsu-eyebrow {
  color: var(--tsu-brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.tsu-title {
  color: var(--tsu-ink);
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.tsu-subtitle {
  color: var(--tsu-muted);
  margin: 7px 0 0;
}

.tsu-icon-button {
  align-items: center;
  background: var(--tsu-panel-muted);
  border: 1px solid var(--tsu-border);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  padding: 0;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  width: 46px;
}

.tsu-icon-button:hover {
  background: #fff;
  border-color: #aebddd;
}

.tsu-icon-button:active { transform: scale(0.97); }
.tsu-icon-button svg { height: 21px; width: 21px; }

.tsu-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 18px 30px 0;
}

.tsu-step {
  align-items: center;
  color: #8b97ab;
  display: flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.tsu-step-number {
  align-items: center;
  background: #edf1f7;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.tsu-step.is-active { color: var(--tsu-brand); }
.tsu-step.is-active .tsu-step-number,
.tsu-step.is-complete .tsu-step-number { background: var(--tsu-brand); color: #fff; }

.tsu-body { padding: 26px 30px 30px; }

.tsu-dropzone {
  align-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(75, 112, 236, 0.11), transparent 46%),
    var(--tsu-panel-muted);
  border: 2px dashed #a8baf0;
  border-radius: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 36px 24px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tsu-dropzone:hover,
.tsu-dropzone.is-dragging {
  background-color: #f0f4ff;
  border-color: var(--tsu-brand);
  transform: translateY(-1px);
}

.tsu-drop-icon {
  align-items: center;
  background: var(--tsu-brand);
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(52, 89, 219, 0.3);
  color: #fff;
  display: flex;
  height: 62px;
  justify-content: center;
  margin-bottom: 20px;
  width: 62px;
}

.tsu-drop-icon svg { height: 30px; width: 30px; }
.tsu-dropzone strong { font-size: 1.15rem; }
.tsu-dropzone p { color: var(--tsu-muted); margin: 6px 0 0; }

.tsu-public-launch {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
  padding: 6px 34px 4px;
}

.tsu-public-dropzone {
  background: #f8fbff;
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.18),
    0 0 0 28px rgba(255, 255, 255, 0.1),
    0 26px 70px rgba(9, 18, 40, 0.32);
  color: #3459db;
  height: 232px;
  min-height: 232px;
  padding: 28px;
  width: 232px;
  animation: tsu-public-upload-ripple 2.8s ease-out infinite;
}

.tsu-public-dropzone:hover,
.tsu-public-dropzone.is-dragging {
  background: #fff;
  border-color: transparent;
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.22),
    0 0 0 34px rgba(255, 255, 255, 0.12),
    0 30px 78px rgba(9, 18, 40, 0.38);
  transform: translateY(-3px);
}

.tsu-public-drop-icon {
  align-items: center;
  background: var(--tsu-brand-soft);
  border-radius: 18px;
  color: var(--tsu-brand);
  display: flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 17px;
  width: 58px;
}

.tsu-public-drop-icon svg {
  height: 29px;
  width: 29px;
}

.tsu-public-dropzone strong {
  color: #1a2a47;
  font-size: 1.15rem;
  font-weight: 850;
}

.tsu-public-drop-tip {
  align-items: stretch;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(8, 17, 38, 0.24);
  color: #6d7b91;
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  padding: 14px 18px 15px;
  position: relative;
  text-align: center;
  width: 286px;
}

.tsu-public-drop-tip::before {
  border-bottom: 10px solid #fff;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  bottom: 100%;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.tsu-public-drop-tip strong {
  color: #2e3f5c;
  font-weight: 750;
}

.tsu-public-drop-divider {
  background: #edf1f7;
  display: block;
  height: 1px;
  margin: 11px 0 9px;
  width: 100%;
}

.tsu-public-drop-tip button {
  background: transparent;
  border: 0;
  color: var(--tsu-brand);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.tsu-public-drop-tip button:hover { color: var(--tsu-brand-strong); }

@keyframes tsu-public-upload-ripple {
  0%, 100% {
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.2),
      0 0 0 28px rgba(255, 255, 255, 0.12),
      0 26px 70px rgba(9, 18, 40, 0.32);
  }
  72% {
    box-shadow:
      0 0 0 17px rgba(255, 255, 255, 0.12),
      0 0 0 46px rgba(255, 255, 255, 0.02),
      0 26px 70px rgba(9, 18, 40, 0.32);
  }
}

.tsu-picker-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.tsu-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tsu-border);
  border-radius: 15px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 9px;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tsu-button:hover { border-color: #aebddd; }
.tsu-button:active { transform: translateY(1px); }
.tsu-button:focus-visible,
.tsu-icon-button:focus-visible,
.tsu-dropzone:focus-visible,
.tsu-segment button:focus-visible,
.tsu-delivery-tabs button:focus-visible,
.tsu-option-tool:focus-visible,
.tsu-add-grid button:focus-visible,
.tsu-file-card-summary button:focus-visible {
  outline: 3px solid rgba(52, 89, 219, 0.24);
  outline-offset: 2px;
}

.tsu-button svg { height: 20px; width: 20px; }
.tsu .tsu-button--primary {
  background: var(--tsu-brand);
  border-color: var(--tsu-brand);
  color: #fff;
}
.tsu .tsu-button--primary:hover {
  background: var(--tsu-brand-strong);
  border-color: var(--tsu-brand-strong);
  color: #fff;
}
.tsu .tsu-button--primary svg { color: currentColor; }
.tsu-button--danger { color: var(--tsu-danger); }
.tsu-button[disabled] { cursor: not-allowed; opacity: 0.52; transform: none; }

.tsu-shell--workspace,
.tsu--public .tsu-shell--workspace {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 940px;
  overflow: visible;
}

.tsu-body--workspace { padding: 0; }

.tsu-workspace-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 590px) minmax(280px, 334px);
  justify-content: center;
  position: relative;
}

.tsu-compose-card,
.tsu-file-card {
  background: var(--tsu-panel);
  border: 1px solid var(--tsu-border);
  box-shadow: 0 22px 65px rgba(7, 27, 80, 0.22);
  color: var(--tsu-ink);
}

.tsu-compose-card {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.tsu--manager .tsu-compose-card--option .tsu-option-editor-header {
  padding-right: 50px;
}

.tsu-compose-close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
}

.tsu-compose-topbar {
  align-items: stretch;
  background: var(--tsu-panel-muted);
  border-bottom: 1px solid var(--tsu-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tsu-compose-topbar .tsu-compose-close {
  align-self: center;
  margin: 8px 10px;
  position: static;
}

.tsu-delivery-tabs {
  background: var(--tsu-panel-muted);
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 62px;
}

.tsu-delivery-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tsu-muted);
  cursor: pointer;
  display: flex;
  font-weight: 780;
  gap: 9px;
  justify-content: center;
  min-width: 0;
  padding: 14px 18px;
  position: relative;
}

.tsu-delivery-tabs button:first-child { border-right: 1px solid var(--tsu-border); }
.tsu-delivery-tabs button.is-active { background: var(--tsu-panel); color: var(--tsu-ink); }
.tsu-delivery-tabs button.is-active::after {
  background: var(--tsu-brand);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 22%;
  position: absolute;
  right: 22%;
}
.tsu-delivery-tabs svg { color: var(--tsu-brand); height: 20px; width: 20px; }

.tsu-compose-stage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 276px;
  padding: 20px 22px;
}

.tsu-main-form { gap: 14px; }
.tsu-main-form .tsu-input { min-height: 46px; }
.tsu-main-form .tsu-textarea { min-height: 78px; }

.tsu-option-toolbar {
  background: var(--tsu-panel-muted);
  border-bottom: 1px solid var(--tsu-border);
  border-top: 1px solid var(--tsu-border);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tsu-option-tool {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tsu-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 76px;
  min-width: 0;
  padding: 8px 3px 7px;
  transition: background 150ms ease, color 150ms ease;
}

.tsu-option-tool + .tsu-option-tool { border-left: 1px solid var(--tsu-border); }
.tsu-option-tool:hover,
.tsu-option-tool.is-active { background: var(--tsu-brand-soft); color: var(--tsu-brand); }
.tsu-option-tool-icon { align-items: center; display: flex; justify-content: center; }
.tsu-option-tool-icon svg { height: 19px; width: 19px; }
.tsu-option-tool-label {
  color: var(--tsu-ink);
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tsu-option-tool-value { font-size: 0.62rem; font-weight: 720; line-height: 1.15; }

.tsu-compose-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  min-height: 76px;
  padding: 12px 18px;
}

.tsu-compose-footer .tsu-submit { margin-left: auto; min-width: 156px; }
.tsu-security-check { align-items: center; display: flex; gap: 10px; margin: 0; min-width: 0; }
.tsu-security-check > span { color: var(--tsu-muted); font-size: 0.75rem; font-weight: 720; }
.tsu-security-complete { align-items: center; color: var(--tsu-success); display: flex; font-size: 0.78rem; font-weight: 750; gap: 6px; }
.tsu-security-complete svg { height: 18px; width: 18px; }

.tsu-option-editor { display: grid; gap: 19px; width: 100%; }
.tsu-option-editor-header {
  align-items: flex-start;
  display: flex;
  gap: 13px;
  height: auto !important;
  min-height: 0 !important;
  position: static;
  width: auto;
}
.tsu-option-editor-header > span {
  align-items: center;
  background: var(--tsu-brand-soft);
  border-radius: 12px;
  color: var(--tsu-brand);
  display: flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.tsu-option-editor-header svg { height: 21px; width: 21px; }
.tsu-option-editor-header h3 { color: var(--tsu-ink); font-size: 1.04rem; margin: 0; }
.tsu-option-editor-header p { color: var(--tsu-muted); font-size: 0.83rem; margin: 3px 0 0; }
.tsu-option-editor-body { display: grid; gap: 14px; }
.tsu-option-help { color: var(--tsu-muted); font-size: 0.8rem; margin: 0; }

.tsu-switch {
  align-items: center;
  background: var(--tsu-panel-muted);
  border: 1px solid var(--tsu-border);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 13px 15px;
}
.tsu-switch span { display: grid; gap: 2px; }
.tsu-switch small { color: var(--tsu-muted); font-size: 0.76rem; line-height: 1.35; }
.tsu-switch input {
  accent-color: var(--tsu-brand);
  flex: 0 0 auto;
  height: 22px;
  width: 40px;
}
.tsu-check-list { display: grid; gap: 10px; }
.tsu-check { min-height: 28px; }
.tsu-check span { font-size: 0.86rem; }

.tsu-feature-callout {
  align-items: center;
  background: var(--tsu-brand-soft);
  border: 1px solid rgba(52, 89, 219, 0.18);
  border-radius: 13px;
  display: flex;
  font-size: 0.78rem;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}
.tsu-feature-callout > div { align-items: center; display: flex; gap: 9px; }
.tsu-feature-callout svg { color: var(--tsu-brand); flex: 0 0 auto; height: 18px; width: 18px; }
.tsu-feature-callout a { color: var(--tsu-brand); flex: 0 0 auto; font-weight: 780; text-decoration: none; }
.tsu-feature-callout a:hover { text-decoration: underline; }

.tsu-file-card {
  border-radius: 18px;
  overflow: hidden;
  padding: 14px;
}

.tsu-add-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.tsu-add-grid button {
  align-items: center;
  background: var(--tsu-panel-muted);
  border: 1.5px dashed #aebce0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 92px;
  padding: 10px 7px;
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.tsu-add-grid button:hover { background: var(--tsu-brand-soft); border-color: var(--tsu-brand); transform: translateY(-1px); }
.tsu-add-grid button > svg { color: var(--tsu-brand); height: 25px; width: 25px; }
.tsu-add-grid button span { display: grid; gap: 1px; }
.tsu-add-grid button strong { font-size: 0.78rem; }
.tsu-add-grid button small { color: var(--tsu-muted); font-size: 0.64rem; }

.tsu-file-card-summary {
  align-items: center;
  border-bottom: 1px solid var(--tsu-border);
  display: flex;
  justify-content: space-between;
  margin: 14px 0 0;
  padding: 0 2px 11px;
}
.tsu-file-card-summary > div { align-items: baseline; display: flex; gap: 8px; }
.tsu-file-card-summary strong { font-size: 0.88rem; }
.tsu-file-card-summary span { color: var(--tsu-muted); font-size: 0.76rem; }
.tsu-file-card-summary button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--tsu-muted);
  cursor: pointer;
  display: flex;
  padding: 6px;
}
.tsu-file-card-summary button:hover { background: #fff0f2; color: var(--tsu-danger); }
.tsu-file-card-summary svg { height: 17px; width: 17px; }
.tsu-file-card .tsu-file-list { border: 0; border-radius: 0; max-height: 336px; }
.tsu-file-card .tsu-file { gap: 8px; grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 56px; padding: 8px 2px; }
.tsu-file-card .tsu-file-icon { border-radius: 9px; height: 32px; width: 32px; }
.tsu-file-card .tsu-file-icon svg { height: 16px; width: 16px; }
.tsu-file-card .tsu-file-name { font-size: 0.78rem; }
.tsu-file-card .tsu-file-path { font-size: 0.66rem; }
.tsu-file-card .tsu-file-size { font-size: 0.72rem; }
.tsu-file-card .tsu-file-size { grid-column: 3; grid-row: 1; transition: opacity 120ms ease; }
.tsu-file-card .tsu-file-remove { grid-column: 3; grid-row: 1; height: 30px; opacity: 0; padding: 7px; transition: opacity 120ms ease; width: 30px; }
.tsu-file-card .tsu-file:hover .tsu-file-size,
.tsu-file-card .tsu-file:focus-within .tsu-file-size { opacity: 0; }
.tsu-file-card .tsu-file:hover .tsu-file-remove,
.tsu-file-card .tsu-file-remove:focus-visible { opacity: 1; }
.tsu-drop-hint { color: var(--tsu-muted); font-size: 0.69rem; margin: 11px 0 0; text-align: center; }

.tsu-workspace-drop-overlay {
  align-items: center;
  background: rgba(238, 242, 255, 0.96);
  border: 2px dashed var(--tsu-brand);
  border-radius: 20px;
  color: var(--tsu-brand);
  display: flex;
  flex-direction: column;
  gap: 12px;
  inset: -8px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(0.985);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 20;
}
.tsu-workspace-drop-overlay svg { height: 42px; width: 42px; }
.tsu-workspace-grid.is-dragging .tsu-workspace-drop-overlay { opacity: 1; transform: scale(1); }

.tsu-file-summary {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.tsu-file-summary h3 { font-size: 1rem; margin: 0; }
.tsu-file-summary p { color: var(--tsu-muted); margin: 2px 0 0; }

.tsu-file-list {
  border: 1px solid var(--tsu-border);
  border-radius: 18px;
  list-style: none;
  margin: 0;
  max-height: 275px;
  overflow: auto;
  padding: 0;
}

.tsu-file {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  min-height: 68px;
  padding: 10px 12px;
}

.tsu-file + .tsu-file { border-top: 1px solid var(--tsu-border); }
.tsu-file-icon { align-items: center; background: var(--tsu-brand-soft); border-radius: 12px; color: var(--tsu-brand); display: flex; height: 42px; justify-content: center; width: 42px; }
.tsu-file-icon svg { height: 20px; width: 20px; }
.tsu-file-name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsu-file-path { color: var(--tsu-muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsu-file-size { color: var(--tsu-muted); font-size: 0.87rem; white-space: nowrap; }
.tsu-file-remove { background: transparent; border: 0; border-radius: 10px; color: var(--tsu-muted); cursor: pointer; height: 38px; padding: 8px; width: 38px; }
.tsu-file-remove:hover { background: #fff0f2; color: var(--tsu-danger); }

.tsu-segment {
  background: #eef2f9;
  border: 1px solid var(--tsu-border);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  padding: 4px;
}

.tsu-segment button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  font-weight: 750;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
}

.tsu-segment button.is-active { background: #fff; box-shadow: 0 4px 14px rgba(41, 58, 94, 0.1); color: var(--tsu-brand); }

.tsu-form-grid { display: grid; gap: 17px; }
.tsu-form-grid--two { grid-template-columns: 1fr 1fr; }

.tsu-field { display: grid; gap: 7px; }
.tsu-field > span,
.tsu-field legend { font-size: 0.84rem; font-weight: 760; }
.tsu-field small { color: var(--tsu-muted); }

.tsu-input,
.tsu-select,
.tsu-textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #c9d5e8;
  border-radius: 13px;
  font-size: 16px;
  min-height: 50px;
  outline: none;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.tsu-textarea { min-height: 92px; resize: vertical; }
.tsu-input:focus,
.tsu-select:focus,
.tsu-textarea:focus { border-color: var(--tsu-brand); box-shadow: 0 0 0 4px rgba(52, 89, 219, 0.12); }

.tsu-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.tsu-option {
  background: var(--tsu-panel-muted);
  border: 1px solid var(--tsu-border);
  border-radius: 15px;
  overflow: hidden;
}

.tsu-option summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  list-style: none;
  min-height: 62px;
  padding: 10px 14px;
}

.tsu-option summary::-webkit-details-marker { display: none; }
.tsu-option-icon { align-items: center; background: #fff; border: 1px solid var(--tsu-border); border-radius: 10px; color: var(--tsu-brand); display: flex; height: 36px; justify-content: center; width: 36px; }
.tsu-option-icon svg { height: 18px; width: 18px; }
.tsu-option-title { font-weight: 760; }
.tsu-option-value { color: var(--tsu-brand); font-size: 0.84rem; font-weight: 720; }
.tsu-option-content { border-top: 1px solid var(--tsu-border); display: grid; gap: 14px; padding: 16px; }

.tsu-check {
  align-items: center;
  display: flex;
  gap: 10px;
}

.tsu-check input { accent-color: var(--tsu-brand); height: 20px; width: 20px; }
.tsu-security-check { margin-top: 20px; }

.tsu-actions {
  align-items: center;
  border-top: 1px solid var(--tsu-border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 22px;
}

.tsu-actions-right { display: flex; gap: 10px; margin-left: auto; }

.tsu-alert {
  background: #fff4f5;
  border: 1px solid #f4bdc6;
  border-radius: 13px;
  color: #9f1530;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.tsu-alert--info { background: #eff5ff; border-color: #bfd1f7; color: #264d9b; }

.tsu-progress-wrap { padding: 18px 0 4px; text-align: center; }
.tsu-progress-orb { align-items: center; display: flex; justify-content: center; margin: 0 auto 24px; position: relative; width: 190px; }
.tsu-progress-orb svg { height: 190px; transform: rotate(-90deg); width: 190px; }
.tsu-progress-orb circle { fill: none; stroke-width: 12; }
.tsu-progress-track { stroke: #e9edf4; }
.tsu-progress-value { stroke: var(--tsu-brand); stroke-linecap: round; transition: stroke-dashoffset 180ms linear; }
.tsu-progress-label { font-size: 2.5rem; font-weight: 780; left: 50%; letter-spacing: -0.05em; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.tsu-progress-title { font-size: 1.3rem; margin: 0 0 5px; }
.tsu-progress-copy { color: var(--tsu-muted); margin: 0; }

.tsu-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.tsu-metric { background: var(--tsu-panel-muted); border: 1px solid var(--tsu-border); border-radius: 14px; padding: 14px 10px; text-align: center; }
.tsu-metric strong { display: block; font-size: 1rem; }
.tsu-metric span { color: var(--tsu-muted); font-size: 0.76rem; }

.tsu-complete { padding: 12px 0 4px; text-align: center; }
.tsu-complete-icon { align-items: center; background: #e7f8f1; border-radius: 50%; color: var(--tsu-success); display: flex; height: 76px; justify-content: center; margin: 0 auto 20px; width: 76px; }
.tsu-complete-icon svg { height: 38px; width: 38px; }
.tsu-complete h3 { font-size: 1.75rem; margin: 0 0 8px; }
.tsu-complete > p { color: var(--tsu-muted); margin: 0 auto 24px; max-width: 460px; }
.tsu-link-box { align-items: center; background: var(--tsu-panel-muted); border: 1px solid var(--tsu-border); border-radius: 15px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; padding: 8px; text-align: left; }
.tsu-link-box code { color: #33435e; overflow: hidden; padding-left: 8px; text-overflow: ellipsis; white-space: nowrap; }

.tsu-hidden { display: none !important; }
.tsu-visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

#stats-show[hidden] { display: none !important; }

#file-upload .modal-dialog,
body.nk-body.npc-apps-files #file-upload .modal-dialog {
  margin-left: auto;
  margin-right: auto;
  max-width: 1020px !important;
  width: calc(100% - 32px) !important;
}

#file-upload .modal-content,
body.nk-body.npc-apps-files #file-upload .modal-content {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.dark-mode .tsu--manager,
[data-bs-theme="dark"] .tsu--manager,
.tsu[data-theme="dark"] {
  --tsu-ink: #f3f6ff;
  --tsu-muted: #9aa8c0;
  --tsu-border: #2d3a50;
  --tsu-panel: #111b2b;
  --tsu-panel-muted: #162236;
  --tsu-brand-soft: #1d2d5b;
  --tsu-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.dark-mode .tsu--manager .tsu-input,
.dark-mode .tsu--manager .tsu-select,
.dark-mode .tsu--manager .tsu-textarea,
[data-bs-theme="dark"] .tsu--manager .tsu-input,
[data-bs-theme="dark"] .tsu--manager .tsu-select,
[data-bs-theme="dark"] .tsu--manager .tsu-textarea,
.tsu[data-theme="dark"] .tsu-input,
.tsu[data-theme="dark"] .tsu-select,
.tsu[data-theme="dark"] .tsu-textarea { background: #111b2b; border-color: #394860; }

.dark-mode .tsu--manager .tsu-segment button.is-active,
.dark-mode .tsu--manager .tsu-button:not(.tsu-button--primary),
.dark-mode .tsu--manager .tsu-option-icon,
[data-bs-theme="dark"] .tsu--manager .tsu-segment button.is-active,
[data-bs-theme="dark"] .tsu--manager .tsu-button:not(.tsu-button--primary),
[data-bs-theme="dark"] .tsu--manager .tsu-option-icon,
.tsu[data-theme="dark"] .tsu-segment button.is-active,
.tsu[data-theme="dark"] .tsu-button:not(.tsu-button--primary),
.tsu[data-theme="dark"] .tsu-option-icon { background: #19263a; }

.dark-mode .tsu--manager .tsu-icon-button:hover,
.dark-mode .tsu--manager .tsu-add-grid button:hover,
.dark-mode .tsu--manager .tsu-dropzone:hover,
.dark-mode .tsu--manager .tsu-dropzone.is-dragging,
[data-bs-theme="dark"] .tsu--manager .tsu-icon-button:hover,
[data-bs-theme="dark"] .tsu--manager .tsu-add-grid button:hover,
[data-bs-theme="dark"] .tsu--manager .tsu-dropzone:hover,
[data-bs-theme="dark"] .tsu--manager .tsu-dropzone.is-dragging,
.tsu[data-theme="dark"] .tsu-icon-button:hover,
.tsu[data-theme="dark"] .tsu-add-grid button:hover,
.tsu[data-theme="dark"] .tsu-dropzone:hover,
.tsu[data-theme="dark"] .tsu-dropzone.is-dragging {
  background: #223149;
  border-color: #526583;
  color: #ffffff;
}

.dark-mode .tsu--manager .tsu-file-remove:hover,
.dark-mode .tsu--manager .tsu-file-card-summary button:hover,
[data-bs-theme="dark"] .tsu--manager .tsu-file-remove:hover,
[data-bs-theme="dark"] .tsu--manager .tsu-file-card-summary button:hover,
.tsu[data-theme="dark"] .tsu-file-remove:hover,
.tsu[data-theme="dark"] .tsu-file-card-summary button:hover {
  background: #3a2130;
  color: #ff8793;
}

.dark-mode .tsu--manager .tsu-workspace-drop-overlay,
[data-bs-theme="dark"] .tsu--manager .tsu-workspace-drop-overlay,
.tsu[data-theme="dark"] .tsu-workspace-drop-overlay { background: rgba(17, 27, 43, 0.96); }

@media (prefers-color-scheme: dark) {
  .tsu[data-theme="auto"] {
    --tsu-ink: #f3f6ff;
    --tsu-muted: #9aa8c0;
    --tsu-border: #2d3a50;
    --tsu-panel: #111b2b;
    --tsu-panel-muted: #162236;
    --tsu-brand-soft: #1d2d5b;
    --tsu-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  }

  .tsu[data-theme="auto"] .tsu-input,
  .tsu[data-theme="auto"] .tsu-select,
  .tsu[data-theme="auto"] .tsu-textarea { background: #111b2b; border-color: #394860; }

  .tsu[data-theme="auto"] .tsu-segment button.is-active,
  .dark-mode .tsu--manager .tsu-segment button.is-active,
  .tsu[data-theme="auto"] .tsu-button:not(.tsu-button--primary),
  .tsu[data-theme="auto"] .tsu-option-icon { background: #19263a; }

  .tsu[data-theme="auto"] .tsu-workspace-drop-overlay { background: rgba(17, 27, 43, 0.96); }
}

@media (max-width: 900px) {
  .tsu-shell--workspace,
  .tsu--public .tsu-shell--workspace { max-width: 610px; }
  .tsu-workspace-grid { grid-template-columns: minmax(0, 610px); }
  .tsu-file-card { width: 100%; }
  .tsu-file-card .tsu-file-list { max-height: 252px; }
}

@media (max-width: 640px) {
  #file-upload .modal-dialog,
  body.nk-body.npc-apps-files #file-upload .modal-dialog { margin: 8px auto; max-width: none !important; width: calc(100% - 16px) !important; }
  .tsu-shell { border-radius: 22px; max-height: calc(100dvh - 28px); overflow-y: auto; }
  .tsu--public .tsu-shell { border-radius: 20px; }
  .tsu--public .tsu-shell--public-launch { border-radius: 0; max-height: none; overflow: visible; }
  .tsu-shell--workspace,
  .tsu--public .tsu-shell--workspace { border-radius: 0; max-height: none; overflow: visible; }
  .tsu-body--public-launch { padding: 0; }
  .tsu-body--workspace { padding: 0; }
  .tsu-public-launch { gap: 21px; padding: 4px 30px 2px; }
  .tsu-public-dropzone { height: 196px; min-height: 196px; width: 196px; }
  .tsu-public-drop-icon { height: 52px; margin-bottom: 14px; width: 52px; }
  .tsu-public-drop-tip { width: 260px; }
  .tsu-header { padding: 22px 16px 18px; }
  .tsu-steps { padding: 14px 16px 0; }
  .tsu-step { font-size: 0.72rem; gap: 5px; }
  .tsu-step-number { height: 24px; width: 24px; }
  .tsu-body { padding: 20px 16px 22px; }
  .tsu-dropzone { min-height: 190px; padding: 28px 16px; }
  .tsu-picker-row { grid-template-columns: 1fr; }
  .tsu-form-grid--two { grid-template-columns: 1fr; }
  .tsu-file { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .tsu-file-size { display: none; }
  .tsu-metrics { grid-template-columns: 1fr 1fr; }
  .tsu-metric:first-child { grid-column: 1 / -1; }
  .tsu-actions { align-items: stretch; flex-direction: column-reverse; }
  .tsu-actions-right { display: grid; grid-template-columns: 1fr; margin-left: 0; width: 100%; }
  .tsu-actions > .tsu-button { width: 100%; }
  .tsu-link-box { grid-template-columns: 1fr; }
  .tsu-link-box .tsu-button { width: 100%; }
  .tsu-workspace-grid { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .tsu-compose-card,
  .tsu-file-card { border-radius: 16px; }
  .tsu-compose-card { min-height: 0; }
  .tsu-delivery-tabs { min-height: 58px; }
  .tsu-delivery-tabs button { gap: 7px; padding: 12px 8px; }
  .tsu-delivery-tabs svg { height: 18px; width: 18px; }
  .tsu-compose-stage { min-height: 252px; padding: 17px 15px; }
  .tsu-option-toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tsu-option-tool { min-height: 65px; padding: 7px 2px 6px; }
  .tsu-option-tool:nth-child(n + 5) { border-top: 1px solid var(--tsu-border); }
  .tsu-option-tool:nth-child(5) { border-left: 0; }
  .tsu-option-tool-label { font-size: 0.64rem; }
  .tsu-option-tool-value { font-size: 0.59rem; }
  .tsu-compose-footer { align-items: stretch; flex-wrap: wrap; min-height: 0; padding: 12px 14px 14px; }
  .tsu-compose-footer .tsu-security-check,
  .tsu-compose-footer .tsu-security-complete { flex: 1 0 100%; justify-content: center; }
  .tsu-compose-footer .tsu-submit { margin-left: 0; width: 100%; }
  .tsu-compose-footer > .tsu-button:not(.tsu-submit) { flex: 1 1 0; }
  .tsu-option-editor { gap: 16px; }
  .tsu-option-editor-header { gap: 10px; }
  .tsu-option-editor-header > span { height: 38px; width: 38px; }
  .tsu-option-editor-header h3 { font-size: 0.98rem; }
  .tsu-feature-callout { align-items: flex-start; flex-direction: column; }
  .tsu-file-card { padding: 12px; }
  .tsu-add-grid button { min-height: 82px; }
  .tsu-file-card .tsu-file-size { display: block; }
  .tsu-workspace-drop-overlay { inset: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .tsu *, .tsu *::before, .tsu *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
