:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #121722;
  --muted: #657085;
  --line: #dfe5ee;
  --blue: #0b3bbd;
  --blue-dark: #092b89;
  --soft-blue: #eef4ff;
  --danger: #b42318;
  --ok: #067647;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.create-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.create-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

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

.create-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.create-brand strong,
.create-brand small {
  display: block;
}

.create-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.create-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.create-nav a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #273246;
  font-weight: 800;
  font-size: 14px;
}

.create-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.create-panel,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(19, 34, 66, 0.08);
}

.create-panel {
  padding: 24px;
}

.quote-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.create-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.create-eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

.state-badge {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #4c5870;
  font-size: 12px;
  font-weight: 900;
}

.state-badge.is-ok {
  background: #ecfdf3;
  color: var(--ok);
}

.state-badge.is-error {
  background: #fff1f0;
  color: var(--danger);
}

.login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #ffd0ca;
  border-radius: 6px;
  background: #fff7f6;
  color: var(--danger);
  font-weight: 800;
}

.login-alert p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.create-form {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: #26334a;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.field input:disabled,
.field select:disabled {
  background: #f3f5f8;
  color: #8b94a5;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.primary-button:not(:disabled):hover {
  background: var(--blue-dark);
}

.pay-button {
  border: 1px solid #b8c7e4;
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.quote-empty {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #cbd4e4;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.quote-card {
  margin-top: 16px;
}

.quote-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quote-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 6px;
  background: #f7f9fd;
}

.quote-card dt {
  color: var(--muted);
  font-weight: 800;
}

.quote-card dd {
  margin: 0;
  color: #101828;
  font-weight: 900;
  text-align: right;
}

.quote-message {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.quote-message.is-error {
  color: var(--danger);
  font-weight: 900;
}

.result-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 6px;
  background: #ecfdf3;
  color: var(--ok);
  font-weight: 900;
  line-height: 1.7;
}

.result-box.is-error {
  background: #fff1f0;
  color: var(--danger);
}

.result-box a {
  display: inline-block;
  margin-right: 12px;
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .create-shell {
    width: min(100% - 24px, 720px);
    padding-top: 16px;
  }

  .create-topbar,
  .create-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .create-nav {
    justify-content: flex-start;
  }

  .create-main {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .create-shell {
    width: calc(100% - 20px);
  }

  .create-panel,
  .quote-panel {
    padding: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .form-actions button,
  .login-button {
    width: 100%;
  }
}
