html.main-runtime-pending body,
html.main-runtime-shell body {
  margin: 0;
  min-height: 100vh;
  background: #f7fbff;
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

.free-card-page {
  min-height: 100vh;
  padding: 8px 10px 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(22, 119, 255, .10), transparent 210px),
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.free-card-shell {
  width: min(520px, 100%);
  margin: 0 auto;
}

.free-card-panel {
  padding: 12px 10px;
  border: 1px solid rgba(28, 78, 150, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(28, 78, 150, .08);
}

.free-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0 0 8px;
}

.free-card-head > div {
  min-width: 0;
}

.free-card-head h1 {
  margin: 2px 0 0;
  color: #122033;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 950;
}

.free-card-head > div > span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f7ff;
  color: #0572cf;
  font-size: .72rem;
  font-weight: 950;
}

.free-card-head p {
  flex: 0 0 104px;
  margin: 0;
  color: #5e6b7c;
  text-align: right;
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 800;
}

.free-card-quota {
  display: grid;
  gap: 0;
  margin: 8px 0 12px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(100, 116, 139, .18);
  overflow: hidden;
}

.free-card-quota h2 {
  margin: 0;
  padding: 14px 18px 6px;
  color: #079ad7;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 950;
}

.free-card-quota-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
}

.free-card-quota-row + .free-card-quota-row {
  border-top: 1px solid rgba(100, 116, 139, .14);
}

.free-card-quota-row span {
  padding-left: 12px;
  color: #5f6877;
  font-size: .88rem;
  font-weight: 950;
}

.free-card-quota-row strong {
  min-width: 0;
  padding: 0 12px;
  color: #172033;
  text-align: right;
  font-size: .9rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.quota-badge {
  justify-self: end;
  margin-right: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #b87900;
  text-align: right;
  font-size: .9rem;
  font-weight: 900;
}

.quota-badge.is-empty {
  color: #986311;
}

.free-card-submit-panel {
  position: relative;
  margin-top: 10px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(20, 184, 116, .15);
  border-top: 4px solid #20d58d;
  border-radius: 8px;
  background: #fff;
}

.free-card-submit-panel h2 {
  position: relative;
  margin: 0 0 10px;
  padding-left: 12px;
  color: #111827;
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 950;
}

.free-card-submit-panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 5px;
  border-radius: 999px;
  background: #0585ff;
}

.free-card-form {
  display: grid;
  gap: 12px;
}

.free-card-input-row {
  display: block;
}

.free-card-input-stack {
  min-width: 0;
}

.free-card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.free-card-method-note {
  margin: -2px 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fbff;
  color: #5f6877;
  font-size: .84rem;
  line-height: 1.55;
  font-weight: 850;
}

.free-card-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #eef7ff;
  color: #0572cf;
  font: 950 .9rem/1 inherit;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  cursor: pointer;
}

.free-card-tab.is-active {
  background: linear-gradient(135deg, #ff9d00, #ff4d22);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 108, 36, .26);
}

.free-card-input {
  width: 100%;
  min-height: 136px;
  box-sizing: border-box;
  resize: vertical;
  border: 2px solid rgba(6, 104, 223, .34);
  border-radius: 8px;
  padding: 13px;
  background: #fbfdff;
  color: #172033;
  font: 850 1rem/1.55 inherit;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 24px rgba(6, 104, 223, .10);
}

.free-card-input::placeholder {
  color: #8b97a8;
  font-weight: 850;
}

.free-card-input:focus {
  border-color: #0668df;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .16), 0 10px 26px rgba(6, 104, 223, .14);
}

.free-card-actions {
  display: block;
}

.free-card-btn {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 12px;
  background: #0668df;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(22, 119, 255, .20);
  cursor: pointer;
}

.free-card-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.free-card-upload {
  border: 0;
}

.free-card-upload input {
  display: none;
}

.free-card-upload-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 14px 0 12px;
}

.free-card-upload-preview[hidden] {
  display: none;
}

.free-card-upload-preview img {
  display: block;
  max-width: min(190px, 72%);
  max-height: 260px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.free-card-upload-preview p {
  margin: 0;
  color: #b91c1c;
  font-size: .94rem;
  font-weight: 950;
  line-height: 1.5;
  text-align: center;
}

.free-card-upload-preview[data-type="ok"] p {
  color: #16a064;
}

.free-card-upload-preview[data-type="error"] p {
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7f7;
}

.free-card-status {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  color: #526070;
  font-size: .86rem;
  line-height: 1.48;
  font-weight: 800;
}

.free-card-status strong {
  display: block;
  margin-bottom: 3px;
  color: #172033;
}

.free-card-submitted-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .70);
  color: #185aa8;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 900;
  word-break: break-all;
}

.free-card-status[data-type="ok"] {
  background: #effaf4;
  border-color: rgba(22, 113, 67, .16);
  color: #167143;
}

.free-card-status[data-type="warn"] {
  background: #fff7e8;
  border-color: rgba(188, 112, 16, .16);
  color: #986311;
}

.free-card-status[data-type="error"] {
  background: #fff1f1;
  border-color: rgba(220, 38, 38, .16);
  color: #b42318;
}

.free-card-refill {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(22, 119, 255, .14);
  border-radius: 8px;
  background: #f0f7ff;
}

.free-card-refill[hidden] {
  display: none;
}

.free-card-refill-btn {
  appearance: none;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-size: .94rem;
  font-weight: 900;
  cursor: pointer;
}

.free-card-refill-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.free-card-refill span {
  color: #5e6b7c;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.free-card-tutorial-image {
  margin-top: 12px;
}

.free-card-tutorial-image div {
  border: 1px solid rgba(28, 78, 150, .10);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(28, 78, 150, .06);
}

.free-card-tutorial-image img {
  display: block;
  width: 100%;
  height: auto;
}

.free-card-detail-card.free-card-tutorial-image {
  padding: 0;
  border-top-width: 1px;
  overflow: hidden;
}

.free-card-detail-card.free-card-tutorial-image img {
  display: block;
  width: 100%;
  height: auto;
}

.free-card-tutorial-text {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(22, 119, 255, .10);
  border-radius: 8px;
  background: #f8fbff;
}

.free-card-tutorial-text strong {
  display: block;
  margin-bottom: 6px;
  color: #087bff;
  font-size: .92rem;
  line-height: 1.25;
  font-weight: 950;
}

.free-card-tutorial-text ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.25rem;
  color: #5e6b7c;
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 850;
}

.free-card-tutorial-text li {
  padding-left: 2px;
}

.free-card-detail-card.free-card-tutorial-text {
  border-top-width: 1px;
}

.free-card-note {
  margin: 14px 0 0;
  color: #748094;
  font-size: .78rem;
  line-height: 1.5;
  font-weight: 700;
}

.free-card-success-view[hidden],
.free-card-order-view[hidden],
.free-card-entry-view[hidden] {
  display: none;
}

.free-card-success-view {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  background: #fff;
}

.free-card-success-center {
  width: 100%;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.free-card-success-mark {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eafaf2;
  color: #12834d;
  font-size: .86rem;
  font-weight: 950;
}

.free-card-success-center h1 {
  margin: 0;
  color: #088ff0;
  font-size: 1.72rem;
  line-height: 1.25;
  font-weight: 950;
}

.free-card-success-center p {
  margin: 0;
  color: #7b8492;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 850;
}

.free-card-primary-copy {
  appearance: none;
  width: min(100%, 460px);
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #0668df;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(6, 104, 223, .22);
}

.free-card-order-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #98a1ad;
  font-size: 1.06rem;
  font-weight: 850;
}

.free-card-order-view {
  display: grid;
  gap: 14px;
}

.free-card-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 6px;
}

.free-card-order-head h1 {
  margin: 0;
  min-width: 0;
  padding-left: 14px;
  border-left: 5px solid #08a8ff;
  color: #27130a;
  font-size: 1.42rem;
  line-height: 1.3;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.free-card-order-head button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #e7f7ff;
  color: #049be5;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(4, 155, 229, .10);
}

.free-card-order-head button::before {
  content: "↻";
  font-size: 1.12rem;
  line-height: 1;
}

.free-card-state-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border: 1px solid rgba(8, 168, 255, .15);
  border-radius: 8px;
  background: #f1f9ff;
}

.free-card-state-card div {
  min-width: 0;
}

.free-card-state-card span {
  display: block;
  margin-bottom: 4px;
  color: #0572cf;
  font-size: .88rem;
  font-weight: 950;
}

.free-card-state-card strong {
  display: block;
  color: #172033;
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 850;
}

.free-card-state-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #0668df;
  color: #fff;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 950;
}

.free-card-state-card[data-state="done"],
.free-card-state-card[data-state="supplement_done"] {
  background: #effaf4;
  border-color: rgba(22, 113, 67, .16);
}

.free-card-state-card[data-state="done"] span,
.free-card-state-card[data-state="supplement_done"] span {
  color: #12834d;
}

.free-card-state-card[data-state="done"] b,
.free-card-state-card[data-state="supplement_done"] b {
  background: #16a064;
}

.free-card-state-card[data-state="blocked"] {
  background: #fff1f1;
  border-color: rgba(220, 38, 38, .16);
}

.free-card-state-card[data-state="blocked"] span {
  color: #b42318;
}

.free-card-state-card[data-state="blocked"] b {
  background: #d92d20;
}

.free-card-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.free-card-progress-step {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid rgba(100, 116, 139, .12);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.free-card-progress-step i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2f7;
  color: #7a8492;
  font-style: normal;
  font-size: .78rem;
  font-weight: 950;
}

.free-card-progress-step strong {
  display: block;
  margin-top: 6px;
  color: #536173;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 950;
}

.free-card-progress-step span {
  display: block;
  margin-top: 3px;
  color: #8a95a5;
  font-size: .72rem;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.free-card-progress-step.is-active {
  border-color: rgba(6, 104, 223, .18);
  background: #f4f9ff;
}

.free-card-progress-step.is-active i {
  background: #0668df;
  color: #fff;
}

.free-card-progress-step.is-active strong {
  color: #0572cf;
}

.free-card-progress-step.is-error {
  border-color: rgba(220, 38, 38, .18);
  background: #fff6f6;
}

.free-card-progress-step.is-error i {
  background: #d92d20;
  color: #fff;
}

.free-card-progress-step.is-error strong {
  color: #b42318;
}

.free-card-detail-card {
  padding: 12px;
  border: 1px solid rgba(22, 119, 255, .12);
  border-top: 4px solid #08a8ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(28, 78, 150, .06);
}

.free-card-detail-card h2 {
  margin: 0 0 10px;
  color: #079ad7;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 950;
}

.free-card-detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(100, 116, 139, .12);
  border-bottom: 0;
  background: #fff;
}

.free-card-detail-row:last-child {
  border-bottom: 1px solid rgba(100, 116, 139, .12);
  border-radius: 0 0 8px 8px;
}

.free-card-detail-row:nth-of-type(1) {
  border-radius: 8px 8px 0 0;
}

.free-card-detail-row span {
  padding-left: 12px;
  color: #5f6877;
  font-size: .92rem;
  font-weight: 950;
}

.free-card-detail-row strong {
  min-width: 0;
  padding: 0 12px;
  text-align: right;
  color: #171717;
  font-size: .92rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.free-card-detail-row strong.is-blue {
  color: #087bff;
}

.free-card-order-tabs {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.free-card-order-tabs h2 {
  margin: 0;
}

.free-card-order-tabs button {
  appearance: none;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef7ff;
  color: #0572cf;
  font-size: .82rem;
  font-weight: 950;
}

.free-card-order-tabs button.is-hot {
  background: #fff4e7;
  color: #d45b08;
}

.free-card-order-tabs button[data-copy-tkl] {
  background: #e9f7ff;
  color: #0572cf;
}

.free-card-order-link-box {
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 8px;
  color: #171717;
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.free-card-order-note {
  margin: 12px 0 0;
  color: #787f8c;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.5;
}

.free-card-order-progress {
  margin: 12px 0 0;
  color: #a46722;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.free-card-refill-inline {
  appearance: none;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f00, #e82000);
  color: #fff;
  font-size: .98rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(232, 32, 0, .20);
}

.free-card-warm-card p {
  margin: 0 0 12px;
  color: #e11d48;
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.35;
}

.free-card-warm-card a {
  display: block;
  margin-top: 8px;
  color: #0070d9;
  font-size: .94rem;
  font-weight: 950;
}

.free-card-service-btn {
  float: right;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #eaf6ff;
  color: #fff;
  opacity: .75;
  font-weight: 950;
}

.free-card-detail-card > p {
  margin: 6px 0 0;
  color: #6d7480;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.65;
}

@media (max-width: 380px) {
  .free-card-page {
    padding-inline: 10px;
  }

  .free-card-panel {
    padding-inline: 10px;
  }

  .free-card-submit-panel {
    padding-inline: 9px;
  }

  .free-card-tabs {
    gap: 7px;
  }

  .free-card-tab {
    min-height: 38px;
    padding-inline: 11px;
    font-size: .88rem;
  }

  .free-card-order-tabs {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, .9fr) 48px;
    gap: 6px;
  }

  .free-card-order-tabs button {
    padding-inline: 8px;
    font-size: .8rem;
  }

  .free-card-state-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .free-card-state-card b {
    justify-self: start;
  }

  .free-card-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
