* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #000;
  color: #e5e7eb;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  width: 100%;
  min-height: 100vh;
}

.header {
  width: 100%;
  padding: 42px 20px 30px;
  text-align: center;
}

.brand-title {
  color: #f5f5f5;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  margin-top: 10px;
  color: #8b8b8b;
  font-size: 14px;
}

.main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 50px;
}

.card {
  width: 100%;
  background: #080808;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card + .card {
  margin-top: 18px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.card-header h2 {
  margin: 0;
  color: #f2f2f2;
  font-size: 18px;
  font-weight: 650;
}

.card-header p {
  margin: 7px 0 0;
  color: #777;
  font-size: 13px;
}

.form-group {
  margin-bottom: 21px;
}

.form-group > label {
  display: block;
  margin-bottom: 8px;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  height: 42px;
  padding: 0 13px;

  color: #eeeeee;
  background: #101010;

  border: 1px solid #303030;
  border-radius: 7px;

  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

input::placeholder {
  color: #555;
}

input:focus,
select:focus {
  border-color: #666;
  background: #121212;
}

select {
  appearance: auto;
}

select:disabled,
input:disabled {
  color: #666;
  cursor: not-allowed;
  opacity: 0.8;
}

.token-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.token-row input {
  flex: 1;
  min-width: 0;
}

.verify-btn {
  width: 105px;
  flex: 0 0 105px;
}

.help {
  margin-top: 7px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.choice-group {
  display: flex;
  gap: 9px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 120px;
  height: 40px;
  padding: 0 18px;

  color: #aaa;
  background: #101010;

  border: 1px solid #2c2c2c;
  border-radius: 7px;

  cursor: pointer;
  user-select: none;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.choice:hover {
  border-color: #4a4a4a;
  color: #ddd;
}

.choice.active {
  color: #eee;
  background: #171717;
  border-color: #686868;
}

.choice input {
  display: none;
}

.input-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-action input {
  flex: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;

  color: #cfcfcf;
  background: #151515;

  border: 1px solid #303030;
  border-radius: 7px;

  font-size: 19px;
  line-height: 1;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.icon-btn:hover {
  background: #202020;
  border-color: #555;
}

.domain-box {
  margin-top: 9px;
}

.hidden {
  display: none !important;
}

.advanced {
  margin-top: 6px;
  border-top: 1px solid #202020;
}

.advanced summary {
  padding: 17px 0;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.advanced summary:hover {
  color: #ddd;
}

.advanced-content {
  padding-top: 4px;
}

.deploy-area {
  margin-top: 28px;
  padding-top: 22px;

  border-top: 1px solid #202020;

  display: flex;
  justify-content: left;
}

.btn {
  height: 40px;
  padding: 0 18px;

  color: #ddd;
  background: #171717;

  border: 1px solid #343434;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 500;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: #222;
  border-color: #555;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-deploy {
  width: 220px;
  height: 44px;

  color: #071006;
  background: #35d05f;
  border-color: #35d05f;

  font-size: 14px;
  font-weight: 650;
}

.btn-deploy:hover:not(:disabled) {
  background: #49df70;
  border-color: #49df70;
}

.btn-small {
  height: 32px;
  padding: 0 12px;
  color: #888;
  font-size: 12px;
}

.log-card {
  padding-bottom: 20px;
}

.log-header {
  margin-bottom: 18px;
}

.log-header p {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}

.logs {
  min-height: 190px;
  max-height: 480px;

  padding: 14px;

  overflow-y: auto;

  background: #020402;
  border: 1px solid #1c2a1d;
  border-radius: 8px;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 12px;
  line-height: 1.7;
}

.log-empty {
  color: #4e694f;
}

.log-line {
  display: flex;
  gap: 10px;
  word-break: break-word;
}

.log-time {
  flex: 0 0 auto;
  color: #416b45;
}

.log-message {
  color: #9bd59f;
}

.log-success .log-message {
  color: #55f26f;
}

.log-warning .log-message {
  color: #f0c85c;
}

.log-error .log-message {
  color: #ff6868;
}

.log-info .log-message {
  color: #a4d6aa;
}







.footer {
  padding: 0 20px 35px;
  color: #444;
  text-align: center;
  font-size: 11px;
}

.status-success {
  color: #54ed6e !important;
}

.status-warning {
  color: #e9bd51 !important;
}

.status-error {
  color: #ff6666 !important;
}

.status-info {
  color: #888 !important;
}

@media (max-width: 640px) {
  .header {
    padding-top: 30px;
    padding-bottom: 22px;
  }

  .brand-title {
    font-size: 25px;
  }

  .main {
    width: calc(100% - 20px);
  }

  .card {
    padding: 19px;
    border-radius: 10px;
  }

  .token-row {
    flex-direction: column;
  }

  .verify-btn {
    width: 100%;
    flex-basis: auto;
  }

  .choice-group {
    flex-direction: column;
  }

  .choice {
    width: 100%;
  }

  .log-line {
    display: block;
  }

  .log-time {
    display: inline-block;
    margin-right: 7px;
  }

}


.log-message a {
  color: inherit;
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.log-message a:hover {
  text-decoration: underline;
}
