:root {
  --text: #172033;
  --muted: #5f6b7c;
  --line: #d7deea;
  --primary: #0f7b8f;
  --primary-hover: #0a6879;
  --secondary: #f3f6f9;
  --warn: #b42318;
  --success: #067647;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #828282;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 640px);
  padding: 32px;
  background: #d6d6d6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.copy-field {
  display: block;
  width: 100%;
}

input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  font: 14px/1.4 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
}

button,
.primary,
.secondary {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-grid;
  place-items: center;
  font: 700 15px/1.2 "Microsoft YaHei", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button,
.primary {
  border: 0;
  color: #fff;
  background: var(--primary);
}

button:hover,
.primary:hover {
  background: var(--primary-hover);
}

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

.secondary {
  color: var(--text);
  background: var(--secondary);
  border: 1px solid var(--line);
}

.status {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(6, 118, 71, 0.24);
  border-radius: 8px;
  color: var(--success);
  font-weight: 700;
}

.status.warn {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--warn);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fallbacks {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.fallbacks p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

@media (max-width: 520px) {
  .shell {
    align-items: start;
    padding: 16px;
  }

  .panel {
    padding: 22px;
  }

  h1 {
    font-size: 28px;
  }

  .actions,
  .actions button,
  .fallback-actions,
  .fallback-actions a {
    width: 100%;
  }
}
