.ss-page .sw-nav {
  width: min(720px, 100%);
  justify-content: space-between;
}

.ss-page .sw-nav .sw-nav__cta {
  display: inline-flex;
}

.ss-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ss-page .sw-home__inner {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.ss-hero {
  width: min(640px, 100%);
  padding: 48px 0 24px;
  text-align: center;
}

.ss-title {
  margin: 16px 0 8px;
  color: var(--sw-text);
  font-family: var(--sw-heading);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
}

.ss-lead {
  margin: 0;
  color: var(--sw-text-2);
  font-size: 15px;
  line-height: 1.7;
}

.ss-card,
.ss-toolbar {
  width: min(640px, 100%);
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  align-self: center;
}

.ss-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
}

.ss-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}

.ss-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.ss-form input[type="text"] {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  flex: 0 0 44px;
  align-self: stretch;
  padding: 12px 14px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  background: var(--sw-surface);
  color: var(--sw-text);
  font-size: 15px;
}

.ss-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.ss-form .ss-captcha-row input[type="text"] {
  flex: 1 1 120px;
  width: auto;
  min-width: 120px;
  max-width: none;
}

.ss-captcha-row .ss-captcha,
.ss-captcha-row .ss-btn-ghost {
  flex: 0 0 auto;
}

.ss-captcha {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  background: var(--sw-surface);
}

.ss-submit {
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

.ss-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.ss-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e8b4b4;
  border-radius: 10px;
  background: #fdf2f2;
  color: #8a2b2b;
  font-size: 13px;
}

.hidden,
[hidden] {
  display: none !important;
}

.ss-fill:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
}

.ss-toolbar {
  gap: 12px;
}

.ss-progress-meta,
.ss-progress-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--sw-muted);
  font-size: 13px;
}

.ss-tts {
  padding: 6px 12px;
  border: 1px solid var(--sw-border);
  border-radius: 9999px;
  background: #fff;
  color: var(--sw-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ss-tts[aria-pressed="false"] {
  color: var(--sw-muted);
}

.ss-kicker {
  margin: 0 0 8px;
  color: var(--sw-muted);
  font-size: 13px;
  font-weight: 600;
}

.ss-q {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.ss-q-line {
  margin-top: 10px;
}

.ss-q-id {
  font-weight: 700;
  color: var(--sw-accent, #2d5e3a);
  letter-spacing: 0.02em;
}

.ss-q-id-sep {
  font-weight: 700;
  color: var(--sw-accent, #2d5e3a);
}

.ss-q-line-text {
  font-weight: 600;
}

.ss-help {
  margin: 10px 0 0;
  color: var(--sw-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.ss-help + .ss-q {
  margin-top: 8px;
}

.ss-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.ss-option,
.ss-scale button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  background: transparent;
  color: var(--sw-text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.ss-option.is-on,
.ss-scale button.is-on {
  background: var(--sw-surface-2);
  border-color: var(--sw-accent);
}

.ss-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}

.ss-scale button {
  justify-content: center;
  padding: 10px 0;
}

.ss-nav {
  display: flex;
  gap: 12px;
  width: min(640px, 100%);
}

.ss-nav .sw-btn,
.ss-nav .ss-btn-ghost {
  flex: 1;
}

.ss-btn-ghost {
  padding: 12px 16px;
  border: 1px solid var(--sw-border);
  border-radius: 9999px;
  background: #fff;
  color: var(--sw-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ss-btn-ghost:disabled {
  opacity: 0.4;
}

.ss-text {
  width: 100%;
  min-height: 120px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  background: var(--sw-surface);
  color: var(--sw-text);
  font-size: 15px;
  line-height: 1.6;
}

.ss-file {
  margin-top: 16px;
}

.ss-support {
  color: var(--sw-text-2);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .ss-scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
