:root { color-scheme: light; font-family: system-ui, Segoe UI, sans-serif; background: #f4f7fb; color: #1c2633; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }
.card { background: #fff; border: 1px solid #dbe3ef; border-radius: 14px; box-shadow: 0 8px 26px #1b35570d; padding: 24px; margin-bottom: 18px; }
h1 { margin: 0 0 8px; font-size: 1.55rem; }
h2 { margin-top: 26px; }
.muted { color: #66758a; }
label { display: grid; gap: 6px; font-weight: 600; margin: 12px 0; }
input { border: 1px solid #c9d4e3; border-radius: 8px; padding: 10px 11px; font-size: 1rem; }
button { border: 0; border-radius: 8px; padding: 10px 15px; background: #1769e0; color: #fff; font-weight: 700; cursor: pointer; }
button.secondary { background: #e8eef7; color: #1c2633; }
button.danger { background: #c83c4a; padding: 7px 10px; }
.topbar { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; align-items: end; }
.grid-form button { margin: 12px 0; }
.notice, .message { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eef6ff; color: #23527c; min-height: 20px; }
.message:empty { display: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e4eaf2; white-space: nowrap; }
th { color: #52647a; font-size: .88rem; }
.hidden { display: none !important; }
@media (max-width: 560px) { .topbar { display: block; } .topbar button { margin-top: 12px; } }
