:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #f1f6f7; color: #173b45; }
header { padding: 22px max(20px, calc((100% - 1100px) / 2)); background: #0e4653; color: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header h1 { margin: 0; font-size: 1.25rem; }
header a { color: white; }
main { width: min(1100px, calc(100% - 32px)); margin: 32px auto 64px; }
.card { background: white; border-radius: 14px; padding: 24px; box-shadow: 0 5px 24px #173b4512; margin-bottom: 22px; }
.narrow { max-width: 560px; margin: 60px auto; }
h2 { margin-top: 0; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #b8c9ce; border-radius: 8px; font: inherit; background: white; }
textarea { min-height: 82px; resize: vertical; }
button { border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 700; color: white; background: #147287; cursor: pointer; }
button.danger { background: #a83838; }
.inline { display: flex; align-items: center; gap: 10px; }
.inline input[type=checkbox] { width: auto; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.item { border-top: 1px solid #dce6e9; padding: 18px 0; }
.item:first-child { border-top: 0; }
.message { padding: 12px 15px; border-radius: 8px; margin-bottom: 18px; background: #dff3e8; color: #185d38; }
.message.error { background: #fae4e4; color: #872d2d; }
.hint { color: #587078; font-size: .9rem; line-height: 1.7; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #dce6e9; padding: 12px 0; }
.user-row form { margin: 0; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } header { align-items: flex-start; flex-direction: column; } }
