* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f5f5f7;
  color: #1c1c1e;
  padding: 16px;
  padding-bottom: 60px;
  -webkit-text-size-adjust: 100%;
}

header h1 { font-size: 20px; margin-bottom: 6px; }
header .ua { font-size: 11px; color: #8e8e93; word-break: break-all; margin-bottom: 12px; }

main { max-width: 560px; margin: 0 auto; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card h2 { font-size: 15px; margin-bottom: 10px; color: #3a3a3c; }

button {
  display: block;
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
button:active { opacity: 0.7; }
button.primary { background: #007aff; color: #fff; }
button.secondary { background: #e9e9eb; color: #1c1c1e; }
button.warn { background: #ff3b30; color: #fff; }
button.plain { background: #e9e9eb; color: #1c1c1e; }

.hint { font-size: 11px; color: #8e8e93; margin-top: 4px; }
.hint code { background: #f0f0f2; padding: 1px 4px; border-radius: 4px; }

.preview img { width: 100%; border-radius: 8px; }
.preview p { color: #8e8e93; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
table td { padding: 5px 0; border-bottom: 1px solid #f0f0f2; word-break: break-all; }
table td:first-child { width: 38%; color: #8e8e93; }

.log pre {
  background: #1c1c1e;
  color: #d4d4d4;
  font-size: 11px;
  border-radius: 8px;
  padding: 10px;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.actions button { margin-bottom: 0; }
.actions button + button { margin-top: 8px; }

footer p { text-align: center; font-size: 11px; color: #8e8e93; margin-top: 8px; }
