:root { font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif; color: #172033; background: #f4f7fb; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; border: 1px solid #b8c6d9; border-radius: 6px; padding: 8px 13px; background: white; color: #172033; }
button.primary { border-color: #1769aa; background: #1769aa; color: white; }
button.danger { border-color: #b42318; color: #b42318; }
button:disabled { cursor: wait; opacity: .55; }
.shell { min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; color: white; background: #14213d; }
.brand { font-weight: 750; }
.topbar small { color: #c9d5eb; }
.content { max-width: 1280px; margin: 0 auto; padding: 28px; }
.toolbar, .panel, .stat, .login-card { background: white; border: 1px solid #d9e2ef; border-radius: 8px; box-shadow: 0 2px 8px rgba(20,33,61,.05); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 16px 20px; }
.toolbar h1 { margin: 0; font-size: 1.35rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat dt { color: #5f6f86; font-size: .82rem; }
.stat dd { margin: 4px 0 0; font-size: 1.8rem; font-weight: 750; }
.panel { margin-bottom: 20px; padding: 20px; }
.panel h2 { margin: 0 0 14px; font-size: 1rem; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 5px; color: #53627a; font-size: .82rem; }
input { width: 100%; border: 1px solid #b8c6d9; border-radius: 5px; padding: 9px 10px; color: #172033; background: white; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid #e6edf5; vertical-align: top; }
th { color: #53627a; background: #f8fafc; font-size: .8rem; font-weight: 650; }
.muted { color: #697991; }
.notice { margin-bottom: 16px; border-left: 4px solid #d97706; padding: 11px 14px; color: #713f12; background: #fff7ed; }
.error { border-left-color: #b42318; color: #7f1d1d; background: #fef2f2; }
.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 28px; }
.login-card h1 { margin-top: 0; font-size: 1.35rem; }
.login-card form { display: grid; gap: 14px; }
.login-card .primary { width: 100%; margin-top: 5px; }
.empty { padding: 28px; text-align: center; color: #697991; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.admin-grid > div { min-width: 0; }
.admin-grid table { min-width: 620px; }
.region-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.region-head h2 { margin: 0; }
.region-head label { min-width: 150px; }
.region-alert td { color: #9a3412; background: #fff7ed; font-weight: 650; }
@media (max-width: 800px) { .content { padding: 16px; } .topbar { padding: 14px 16px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .region-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 480px) { .stats, .filters { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } }
