.tbsw-footer-cta {
  margin: 1rem 0;
}

.tbsw-footer-cta .tbsw-footer-link,
.tbsw-footer-link:hover,
.tbsw-footer-link:focus {
  display: inline-block !important;
  padding: 0.7rem 1rem !important;
  border: 2px solid #ffffff !important;
  border-radius: 4px !important;
  background: #1f4f59 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.tbsw-page {
  --tbsw-ink: #172126;
  --tbsw-muted: #55646b;
  --tbsw-border: #cfd8dc;
  --tbsw-border-strong: #849399;
  --tbsw-surface: #ffffff;
  --tbsw-surface-muted: #f4f7f6;
  --tbsw-primary: #12614f;
  --tbsw-primary-dark: #0a493b;
  --tbsw-focus: #d39b00;
  --tbsw-danger: #a52820;
  box-sizing: border-box;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto 3rem;
  padding: 2rem 1rem 3rem;
  color: var(--tbsw-ink);
  font-size: 1rem;
  line-height: 1.5;
}

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

.tbsw-page-header {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.tbsw-header-accent {
  flex: 0 0 0.35rem;
  min-height: 3.25rem;
  border-radius: 2px;
  background: var(--tbsw-primary);
}

.tbsw-page h1 {
  align-self: center;
  margin: 0;
  color: var(--tbsw-ink);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.tbsw-panel {
  overflow: hidden;
  border: 1px solid var(--tbsw-border);
  border-top: 4px solid var(--tbsw-primary);
  border-radius: 6px;
  background: var(--tbsw-surface);
  box-shadow: 0 12px 30px rgba(28, 43, 49, 0.09);
}

.tbsw-alert {
  margin: 1.5rem 1.75rem 0;
  padding: 1rem 1.125rem;
  border: 1px solid #e3b8b4;
  border-left: 4px solid var(--tbsw-danger);
  border-radius: 4px;
  background: #fff6f5;
  color: #4f1f1b;
}

.tbsw-alert h2 {
  margin: 0 0 0.5rem;
  color: #4f1f1b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.tbsw-alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.tbsw-alert li + li {
  margin-top: 0.3rem;
}

.tbsw-form {
  margin: 0;
}

.tbsw-form-content {
  padding: 1.75rem;
}

.tbsw-alert + .tbsw-form .tbsw-form-content {
  padding-top: 1.25rem;
}

.tbsw-field {
  min-width: 0;
  margin: 0 0 1.5rem;
}

.tbsw-field-last,
.tbsw-field-compact {
  margin-bottom: 0;
}

.tbsw-field label,
.tbsw-fieldset legend {
  display: block;
  margin: 0 0 0.5rem;
  color: #26343a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.tbsw-required {
  margin-left: 0.15rem;
  color: var(--tbsw-danger);
  font-weight: 700;
}

.tbsw-field input,
.tbsw-field textarea,
.tbsw-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--tbsw-border-strong);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(23, 33, 38, 0.06);
  color: var(--tbsw-ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tbsw-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.tbsw-field select {
  cursor: pointer;
}

.tbsw-field input:hover,
.tbsw-field textarea:hover,
.tbsw-field select:hover {
  border-color: #5f6f76;
}

.tbsw-field input:focus,
.tbsw-field textarea:focus,
.tbsw-field select:focus {
  border-color: var(--tbsw-primary);
  outline: 3px solid rgba(18, 97, 79, 0.2);
  outline-offset: 1px;
  box-shadow: none;
}

.tbsw-field input[aria-invalid="true"],
.tbsw-field textarea[aria-invalid="true"],
.tbsw-field select[aria-invalid="true"] {
  border-color: var(--tbsw-danger);
  background: #fffafa;
}

.tbsw-fieldset {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  border: 1px solid #c9d5d1;
  border-radius: 5px;
  background: var(--tbsw-surface-muted);
}

.tbsw-fieldset legend {
  float: none;
  width: auto;
  max-width: calc(100% - 1rem);
  margin: 0;
  padding: 0 0.45rem;
  border: 0;
  background: var(--tbsw-surface);
  white-space: normal;
}

.tbsw-partial-field {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #d5ddda;
}

.tbsw-partial-field[hidden] {
  display: none !important;
}

.tbsw-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;
}

.tbsw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--tbsw-border);
  background: #f3f6f7;
}

.tbsw-turnstile {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.75rem 1.25rem;
  background: #ffffff;
}

.tbsw-turnstile > * {
  max-width: 100%;
}

.tbsw-actions-end {
  justify-content: flex-end;
}

.tbsw-actions-split {
  justify-content: space-between;
}

.tbsw-button {
  min-width: 10rem;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid #53646b;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(23, 33, 38, 0.08);
  color: #26343a;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.tbsw-button:hover {
  border-color: #26343a;
  background: #edf1f2;
}

.tbsw-button:focus,
.tbsw-footer-link:focus {
  outline: 3px solid var(--tbsw-focus, #d39b00);
  outline-offset: 3px;
}

.tbsw-button-primary {
  border-color: var(--tbsw-primary);
  background: var(--tbsw-primary);
  box-shadow: 0 2px 5px rgba(10, 73, 59, 0.2);
  color: #ffffff;
}

.tbsw-button-primary:hover,
.tbsw-button-primary:focus {
  border-color: var(--tbsw-primary-dark);
  background: var(--tbsw-primary-dark);
  color: #ffffff;
}

.tbsw-summary {
  margin: 0;
}

.tbsw-summary-row {
  display: grid;
  grid-template-columns: minmax(11rem, 32%) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid #e0e6e8;
}

.tbsw-summary-row:last-child {
  border-bottom: 0;
}

.tbsw-summary-row dt {
  margin: 0;
  color: var(--tbsw-muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.tbsw-summary-row dd {
  min-width: 0;
  margin: 0;
  color: var(--tbsw-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tbsw-summary-row-emphasis {
  border-left: 4px solid #7da696;
  background: #f3f8f5;
}

.tbsw-summary-row-reference dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.tbsw-preline {
  white-space: pre-line;
}

.tbsw-status {
  margin: 0;
  padding: 1rem 1.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.tbsw-status-warning {
  border-bottom: 1px solid #ead9a9;
  border-left: 4px solid #9a6700;
  background: #fff8e1;
  color: #4c3500;
}

.tbsw-status-success {
  border-top: 1px solid #bcd9cd;
  border-left: 4px solid var(--tbsw-primary);
  background: #edf7f2;
  color: #164637;
}

.tbsw-state {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--tbsw-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 43, 49, 0.09);
}

.tbsw-state-error {
  border-color: #e3b8b4;
  border-left: 5px solid var(--tbsw-danger);
  background: #fff8f7;
}

.tbsw-state-symbol {
  display: inline-flex;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--tbsw-danger);
  border-radius: 50%;
  color: var(--tbsw-danger);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.tbsw-state h1 {
  font-size: 1.5rem;
}

@media (max-width: 40rem) {
  .tbsw-page {
    margin-bottom: 2rem;
    padding: 1.25rem 0.75rem 2rem;
  }

  .tbsw-page-header {
    gap: 0.75rem;
    margin-bottom: 1.1rem;
  }

  .tbsw-header-accent {
    min-height: 2.8rem;
  }

  .tbsw-page h1 {
    font-size: 1.65rem;
  }

  .tbsw-panel {
    border-radius: 5px;
  }

  .tbsw-form-content {
    padding: 1.25rem;
  }

  .tbsw-alert {
    margin: 1.25rem 1.25rem 0;
  }

  .tbsw-fieldset {
    padding: 1rem;
  }

  .tbsw-actions,
  .tbsw-actions-end,
  .tbsw-actions-split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
  }

  .tbsw-button {
    width: 100%;
    min-width: 0;
  }

  .tbsw-turnstile {
    justify-content: center;
    padding: 0 1rem 1rem;
  }

  .tbsw-summary-row {
    display: block;
    padding: 1rem 1.25rem;
  }

  .tbsw-summary-row dt {
    margin-bottom: 0.3rem;
  }

  .tbsw-status {
    padding: 1rem 1.25rem;
  }

  .tbsw-state {
    align-items: flex-start;
    padding: 1.25rem;
  }
}
