* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

header h1 { font-size: 20px; margin: 0; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
}

th { font-weight: 600; font-size: 13px; color: #555; }

.btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
}

.btn:hover { background: #f0f0f0; }

.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }

.btn-danger { color: #b91c1c; border-color: #f0b0b0; }
.btn-danger:hover { background: #fee2e2; }

form { max-width: 480px; }

form.bot-form { max-width: 100%; }

.grid-2 {
  columns: 2;
  column-gap: 16px;
}

.grid-2 > fieldset {
  break-inside: avoid-column;
}

@media (max-width: 720px) {
  .grid-2 { columns: 1; }
}

fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
}

legend { font-size: 13px; color: #555; padding: 0 6px; }

label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-top: 10px;
  margin-bottom: 4px;
}

input, select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.hint { font-size: 12px; color: #888; margin-top: 2px; }

.error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.actions { margin-top: 20px; display: flex; gap: 8px; }
