* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f6f8; color: #141c2d; -webkit-text-size-adjust: 100%; }
header { background: #141c2d; color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
header h1 { font-size: 18px; margin: 0; font-weight: 600; }
.env-badge { background: #f59e0b; color: #141c2d; font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 700; text-transform: uppercase; }
main { padding: 12px; max-width: 1200px; margin: 0 auto; }

.card { background: #fff; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.card h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }

label { display: block; font-size: 12px; color: #55617a; margin-top: 8px; }
input { width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d8dce6; border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff; min-height: 44px; }
input:focus { outline: none; border-color: #3b82f6; }
input[readonly] { background: #f5f6f8; }

button { background: #141c2d; color: #fff; border: 0; padding: 11px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; min-height: 44px; min-width: 44px; }
button:hover { background: #2a344d; }
button:active { transform: translateY(1px); }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
button.mini { padding: 4px 8px; font-size: 11px; font-weight: 400; min-height: 0; min-width: 0; background: transparent; color: #55617a; border: 1px solid #d8dce6; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.row > input { flex: 1 1 200px; }
.hint { font-size: 12px; color: #55617a; }

details { margin-top: 10px; border-top: 1px solid #eef0f4; padding-top: 8px; }
details:first-of-type { border-top: 0; padding-top: 0; }
summary { font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0; }

.form-grid { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.form-grid button { margin-top: 10px; }

pre { background: #0b1020; color: #d6deeb; padding: 12px; border-radius: 6px; font-size: 12px; line-height: 1.4; overflow-x: auto; white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow-y: auto; }

.log { max-height: 420px; overflow-y: auto; font-size: 12px; }
.wh-item { border: 1px solid #eef0f4; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; background: #fafbfc; }
.wh-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.wh-topic { font-weight: 600; color: #1d4ed8; }
.wh-time { color: #55617a; }
.wh-body { margin: 6px 0 0; background: #0b1020; color: #d6deeb; padding: 8px; border-radius: 4px; font-size: 11px; line-height: 1.35; overflow-x: auto; max-height: 200px; overflow-y: auto; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 900px) {
  main { padding: 20px; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px 22px; }
}

@media (max-width: 480px) {
  header h1 { font-size: 16px; }
  main { padding: 8px; }
  .card { padding: 12px; }
  button { font-size: 13px; padding: 10px 12px; }
}
