:root {
  --s360tg-navy: #1e2e5f;
  --s360tg-navy-2: #27396f;
  --s360tg-green: #97bd3d;
  --s360tg-green-dark: #6f9624;
  --s360tg-bg: #f4f7fb;
  --s360tg-card: #ffffff;
  --s360tg-line: #dde5f1;
  --s360tg-soft: #687694;
  --s360tg-danger: #b42318;
  --s360tg-ok: #147a48;
}

html,
body.system360-tracking-generator-page {
  margin: 0;
  min-height: 100%;
  background: var(--s360tg-bg);
}

body.system360-tracking-generator-page {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  color: var(--s360tg-navy);
}

#system360-tracking-generator {
  min-height: 100dvh;
}

.s360tg-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 8% 12%, rgba(151, 189, 61, .18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef3f9 54%, #f6f8fb 100%);
}

.s360tg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px clamp(16px, 5vw, 46px);
  border-bottom: 1px solid rgba(30, 46, 95, .08);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
}

.s360tg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.s360tg-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.s360tg-my-base-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--s360tg-navy);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(30, 46, 95, .16);
}

.s360tg-logo {
  width: min(188px, 62vw);
  height: auto;
  display: block;
}

.s360tg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(151, 189, 61, .42);
  border-radius: 999px;
  background: rgba(151, 189, 61, .13);
  color: var(--s360tg-green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.s360tg-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--s360tg-green);
}

.s360tg-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) 0;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(340px, 1.12fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}

.s360tg-intro {
  padding-top: 12px;
}

.s360tg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--s360tg-green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.s360tg-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--s360tg-green);
}

.s360tg-intro h1 {
  margin: 0;
  max-width: 680px;
  color: var(--s360tg-navy);
  font-size: clamp(34px, 6vw, 68px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: 0;
}

.s360tg-intro p {
  max-width: 560px;
  margin: 22px 0 0;
  color: #46557b;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 650;
}

.s360tg-trust {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.s360tg-trust span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--s360tg-navy);
  font-size: 13px;
  font-weight: 850;
}

.s360tg-trust i {
  width: 28px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--s360tg-green);
  color: var(--s360tg-navy);
  font-style: normal;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .04em;
  flex: 0 0 28px;
}

.s360tg-card {
  background: var(--s360tg-card);
  border: 1px solid var(--s360tg-line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(30, 46, 95, .14);
  overflow: hidden;
}

.s360tg-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #eef3f9;
  border-bottom: 1px solid #dde5f1;
}

.s360tg-tab {
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #53617f;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
}

.s360tg-tab.is-active {
  background: var(--s360tg-navy);
  color: #fff;
  border-color: rgba(30, 46, 95, .2);
  box-shadow: 0 10px 22px rgba(30, 46, 95, .16);
}

.s360tg-panel {
  display: none;
}

.s360tg-panel.is-active {
  display: block;
}

.s360tg-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
}

.s360tg-card-head h2 {
  margin: 0;
  color: var(--s360tg-navy);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 950;
}

.s360tg-card-head p {
  margin: 7px 0 0;
  color: var(--s360tg-soft);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.s360tg-step {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--s360tg-navy);
  color: #fff;
  font-weight: 950;
  flex: 0 0 42px;
}

.s360tg-payment-head {
  align-items: flex-start;
}

.s360tg-copy-picker {
  width: min(260px, 100%);
  display: grid;
  gap: 8px;
  flex: 0 0 260px;
}

.s360tg-copy-picker > span {
  color: var(--s360tg-green-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.s360tg-copy-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dde5f1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.s360tg-copy-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.s360tg-copy-card.is-selected {
  border-color: rgba(151, 189, 61, .72);
  background: #fbfff2;
  box-shadow: 0 0 0 3px rgba(151, 189, 61, .12);
}

.s360tg-copy-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: var(--s360tg-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.s360tg-copy-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s360tg-copy-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.s360tg-copy-info strong,
.s360tg-copy-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s360tg-copy-info strong {
  color: var(--s360tg-navy);
  font-size: 12px;
  font-weight: 950;
}

.s360tg-copy-info small {
  color: var(--s360tg-soft);
  font-size: 10px;
  font-weight: 750;
}

.s360tg-form {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.s360tg-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  color: var(--s360tg-green-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.s360tg-section-title::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--s360tg-green);
}

.s360tg-field {
  display: grid;
  gap: 7px;
}

.s360tg-field label {
  color: #6a7595;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.s360tg-field input,
.s360tg-field select,
.s360tg-field textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--s360tg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--s360tg-navy);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.s360tg-field textarea {
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.s360tg-field.is-hidden {
  display: none;
}

.s360tg-field input:focus,
.s360tg-field select:focus,
.s360tg-field textarea:focus {
  border-color: var(--s360tg-green);
  box-shadow: 0 0 0 4px rgba(151, 189, 61, .16);
}

.s360tg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.s360tg-submit {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--s360tg-navy);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(30, 46, 95, .18);
}

.s360tg-payment-grid {
  align-items: end;
}

.s360tg-card-preview {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(151, 189, 61, .42);
  border-radius: 12px;
  background: linear-gradient(135deg, #1e2e5f 0%, #2b3d75 100%);
  color: #fff;
  box-sizing: border-box;
}

.s360tg-card-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.s360tg-card-preview span {
  color: rgba(255, 255, 255, .74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.s360tg-card-preview img {
  width: auto;
  max-width: 74px;
  height: 24px;
  object-fit: contain;
  display: block;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
}

.s360tg-card-preview img.is-hidden {
  display: none;
}

.s360tg-card-preview strong {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .02em;
}

.s360tg-payment-note {
  padding: 13px 14px;
  border-radius: 12px;
  background: #f7f9fd;
  border: 1px solid #e1e7f3;
  color: #4d5d7f;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 750;
}

.s360tg-agent-copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .8fr);
  gap: 12px;
  align-items: stretch;
}

.s360tg-agent-copy-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(30, 46, 95, .12);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  color: var(--s360tg-navy);
}

.s360tg-agent-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(151, 189, 61, .16);
  color: var(--s360tg-green-dark);
  font-weight: 950;
}

.s360tg-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s360tg-agent-copy-preview strong,
.s360tg-agent-copy-preview small {
  display: block;
  min-width: 0;
}

.s360tg-agent-copy-preview strong {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.s360tg-agent-copy-preview small {
  margin-top: 4px;
  color: var(--s360tg-soft);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.s360tg-quote-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(151, 189, 61, .42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(151, 189, 61, .12) 0%, rgba(255, 255, 255, .92) 42%),
    #fff;
}

.s360tg-quote-summary > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.s360tg-quote-summary span {
  color: var(--s360tg-green-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.s360tg-quote-summary strong {
  color: var(--s360tg-navy);
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1;
  font-weight: 950;
}

.s360tg-quote-summary small {
  color: var(--s360tg-soft);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
}

.s360tg-quote-badges {
  display: grid;
  gap: 7px;
  flex: 0 0 auto;
}

.s360tg-quote-badges b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 46, 95, .08);
  color: var(--s360tg-navy);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.s360tg-quote-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.s360tg-quote-actions .s360tg-copy {
  min-height: 52px;
  border-radius: 12px;
  padding: 0 16px;
}

.s360tg-quote-actions .s360tg-copy:disabled {
  cursor: wait;
  opacity: .74;
}

.s360tg-payment-link-preview {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(151, 189, 61, .38);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfff2 0%, #fff 100%);
}

.s360tg-payment-link-preview span {
  color: var(--s360tg-green-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.s360tg-payment-link-preview strong {
  color: var(--s360tg-navy);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}

.s360tg-payment-link-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--s360tg-soft);
  font-size: 11px;
  font-weight: 750;
}

.s360tg-message-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.s360tg-message-actions .s360tg-copy {
  min-height: 52px;
  border-radius: 12px;
  padding: 0 16px;
}

.s360tg-payment-only.is-hidden {
  display: none !important;
}

.s360tg-refund-only {
  display: none;
}

.s360tg-refund-only.is-visible {
  display: grid;
}

.s360tg-step2-only {
  display: none;
}

.s360tg-step2-only.is-visible {
  display: grid;
}

.s360tg-submit:disabled {
  cursor: wait;
  opacity: .74;
}

.s360tg-message {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.s360tg-message.is-visible {
  display: block;
}

.s360tg-message.is-error {
  color: var(--s360tg-danger);
  background: #fff2f0;
  border: 1px solid #ffd1cc;
}

.s360tg-message.is-ok {
  color: var(--s360tg-ok);
  background: #effaf3;
  border: 1px solid #cbeed7;
}

.s360tg-result {
  display: none;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(151, 189, 61, .36);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfff2 0%, #ffffff 100%);
}

.s360tg-result.is-visible {
  display: grid;
}

.s360tg-result-label {
  color: var(--s360tg-green-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.s360tg-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.s360tg-link-box input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--s360tg-line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--s360tg-navy);
  font-size: 12px;
  font-weight: 750;
}

.s360tg-copy,
.s360tg-open {
  min-height: 44px;
  border: 1px solid var(--s360tg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--s360tg-navy);
  padding: 0 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s360tg-open {
  border-color: var(--s360tg-green);
  background: var(--s360tg-green);
}

.s360tg-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--s360tg-soft);
  font-size: 11px;
  font-weight: 850;
}

.s360tg-link-history {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.s360tg-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.s360tg-history-head h3 {
  margin: 0;
  color: var(--s360tg-navy);
  font-size: 17px;
  font-weight: 950;
}

.s360tg-history-head p {
  margin: 3px 0 0;
  color: var(--s360tg-soft);
  font-size: 11px;
  font-weight: 750;
}

.s360tg-mini-action,
.s360tg-row-action {
  min-height: 36px;
  border: 1px solid var(--s360tg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--s360tg-navy);
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.s360tg-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.s360tg-row-danger {
  border-color: #ffd1cc;
  color: var(--s360tg-danger);
  background: #fff7f6;
}

.s360tg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--s360tg-line);
  border-radius: 14px;
}

.s360tg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
}

.s360tg-table th,
.s360tg-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  color: var(--s360tg-navy);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.s360tg-table th {
  color: #6a7595;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f8fafd;
}

.s360tg-table td strong,
.s360tg-table td small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s360tg-table td small {
  margin-top: 3px;
  color: var(--s360tg-soft);
  font-size: 10px;
}

.s360tg-empty-cell {
  text-align: center !important;
  color: var(--s360tg-soft) !important;
}

.s360tg-progress-pill {
  display: inline-flex;
  min-width: 42px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(151, 189, 61, .16);
  color: var(--s360tg-green-dark);
  font-size: 11px;
  font-weight: 950;
}

.s360tg-history-message {
  color: var(--s360tg-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.s360tg-history-message.is-error {
  color: var(--s360tg-danger);
}

.s360tg-seller-panel {
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(151, 189, 61, .36);
  border-radius: 14px;
  background: #fbfff2;
}

.s360tg-seller-panel.is-visible {
  display: grid;
}

.s360tg-seller-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.s360tg-seller-panel-head strong,
.s360tg-seller-panel-head span {
  display: block;
}

.s360tg-seller-panel-head strong {
  color: var(--s360tg-navy);
  font-size: 14px;
  font-weight: 950;
}

.s360tg-seller-panel-head span {
  margin-top: 3px;
  color: var(--s360tg-soft);
  font-size: 10px;
  font-weight: 800;
}

.s360tg-seller-panel-head a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--s360tg-navy);
  color: #fff;
  padding: 0 12px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 950;
}

.s360tg-seller-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.s360tg-seller-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe8c8;
  border-radius: 10px;
  background: #fff;
  color: var(--s360tg-navy);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.s360tg-seller-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--s360tg-green);
  flex: 0 0 auto;
}

.s360tg-seller-check span {
  min-width: 0;
  line-height: 1.25;
}

@media (max-width: 860px) {
  .s360tg-main {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .s360tg-intro h1 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .s360tg-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .s360tg-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .s360tg-status-pill {
    display: none;
  }

  .s360tg-main {
    width: calc(100% - 24px);
    padding: 12px 0 24px;
    gap: 12px;
  }

  .s360tg-intro {
    display: none;
  }

  .s360tg-card {
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(30, 46, 95, .12);
  }

  .s360tg-card-head,
  .s360tg-form,
  .s360tg-link-history {
    padding: 14px;
  }

  .s360tg-card-head {
    align-items: center;
    gap: 10px;
  }

  .s360tg-card-head h2 {
    font-size: 18px;
  }

  .s360tg-card-head p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
  }

  .s360tg-step {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-basis: 34px;
    font-size: 13px;
  }

  .s360tg-form {
    gap: 11px;
    background: #fbfdff;
  }

  .s360tg-section-title {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: .08em;
  }

  .s360tg-section-title::before {
    width: 20px;
  }

  .s360tg-field {
    gap: 5px;
    min-width: 0;
  }

  .s360tg-field label {
    font-size: 9.5px;
    letter-spacing: .06em;
  }

  .s360tg-field input,
  .s360tg-field select,
  .s360tg-field textarea {
    min-height: 42px;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 12px;
  }

  .s360tg-field textarea {
    min-height: 86px;
    padding: 10px 12px;
  }

  .s360tg-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #d8e1ef;
    background: #eef3f9;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .s360tg-tabs::-webkit-scrollbar {
    display: none;
  }

  .s360tg-tab {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    border: 1px solid #d8e1ef;
    border-bottom-color: transparent;
    border-radius: 13px 13px 0 0;
    background: #f8fbff;
    padding: 0 14px;
    color: var(--s360tg-navy);
    box-shadow: none;
  }

  .s360tg-tab.is-active {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--s360tg-navy);
    border-color: #d8e1ef;
    border-bottom-color: #fff;
    box-shadow: 0 -5px 14px rgba(30, 46, 95, .08);
  }

  .s360tg-panel.is-active {
    margin-top: -1px;
    border-top: 1px solid #fff;
  }

  .s360tg-payment-head {
    display: grid;
  }

  .s360tg-copy-picker {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    flex-basis: auto;
  }

  .s360tg-copy-picker > span {
    grid-column: 1 / -1;
    font-size: 9px;
  }

  .s360tg-copy-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
    border-radius: 10px;
  }

  .s360tg-copy-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
  }

  .s360tg-copy-info strong {
    font-size: 10.5px;
  }

  .s360tg-copy-info small {
    font-size: 9px;
  }

  .s360tg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .s360tg-field:has(input[type="email"]),
  .s360tg-field:has(input[type="url"]),
  .s360tg-field:has(textarea),
  .s360tg-field:has(#s360tg-name),
  .s360tg-field:has(#s360tg-quote-name),
  .s360tg-payment-link-field {
    grid-column: 1 / -1;
  }

  .s360tg-link-box,
  .s360tg-quote-actions,
  .s360tg-agent-copy-box,
  .s360tg-message-actions {
    grid-template-columns: 1fr;
  }

  .s360tg-submit,
  .s360tg-copy,
  .s360tg-open,
  .s360tg-quote-actions .s360tg-copy,
  .s360tg-message-actions .s360tg-copy {
    min-height: 44px;
    border-radius: 10px;
    font-size: 11px;
  }

  .s360tg-payment-note,
  .s360tg-payment-link-preview,
  .s360tg-result {
    padding: 11px;
    border-radius: 12px;
  }

  .s360tg-card-preview {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 10px;
  }

  .s360tg-card-preview strong {
    font-size: 13px;
  }

  .s360tg-payment-grid {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr);
    align-items: end;
  }

  .s360tg-quote-summary {
    display: grid;
  }

  .s360tg-quote-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s360tg-history-head,
  .s360tg-seller-panel-head {
    align-items: stretch;
    display: grid;
  }

  .s360tg-seller-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .s360tg-card-head h2 {
    font-size: 19px;
  }

  .s360tg-card-head,
  .s360tg-form,
  .s360tg-link-history {
    padding: 16px;
  }

  .s360tg-copy-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .s360tg-copy-avatar {
    width: 38px;
    height: 38px;
  }
}
