* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f4f2;
  color: #1a1a1a;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }
.wrap.narrow { max-width: 560px; }
h1 { font-size: 1.6rem; margin-bottom: 4px; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.card { background: #fff; border: 1px solid #e3e2df; border-radius: 10px; padding: 20px 24px; margin: 20px 0; }
.hint { color: #666; font-size: 0.92rem; }
.error { color: #b00020; font-weight: 600; }
.notice { color: #0a6b2b; font-weight: 600; }
label { display: block; margin: 12px 0; font-size: 0.9rem; font-weight: 600; }
input[type=text], input[type=password], input[type=file], select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 1px solid #c9c8c4; border-radius: 6px; font-size: 1rem; font-weight: normal;
}
.inline-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.inline-form label { flex: 1; min-width: 180px; }
button, .btn-secondary {
  background: #1a1a1a; color: #fff; border: none; padding: 10px 18px; border-radius: 6px;
  font-size: 0.95rem; cursor: pointer; text-decoration: none; display: inline-block;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #666; }
.btn-danger-small {
  background: #fff; color: #b00020; border: 1px solid #b00020; padding: 4px 10px;
  font-size: 0.8rem; border-radius: 5px; cursor: pointer;
}
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; font-size: 0.92rem; }
code { background: #f0f0ee; padding: 2px 5px; border-radius: 4px; font-size: 0.88em; }
.badge { padding: 2px 8px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge.ok { background: #e2f5e8; color: #0a6b2b; }
.badge.missing { background: #fdeeee; color: #b00020; }
.progress-bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.progress-bar > div { height: 100%; background: #1a1a1a; width: 0%; transition: width .2s; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
a { color: #1a1a1a; }
