:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #203044; background: #eef3f7; }
* { box-sizing: border-box; }
body { margin: 0; }
.site-header { min-height: 64px; padding: 14px 24px; background: #0d416b; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.phase-label { margin-left: 16px; padding: 4px 8px; background: #fff2b6; color: #4d3a00; border-radius: 4px; font-size: 12px; }
.user-strip { display: flex; align-items: center; gap: 10px; }
.container { max-width: 1180px; margin: 24px auto; padding: 0 16px 48px; }
.panel, .login-card { background: #fff; border: 1px solid #d5dfe8; border-radius: 8px; padding: 20px; margin-bottom: 18px; box-shadow: 0 2px 7px rgb(29 61 89 / 8%); }
.login-card { max-width: 430px; margin: 60px auto; }
.panel-title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.warning-banner { background: #fff7d6; border: 1px solid #e7c95a; border-radius: 6px; padding: 12px; margin-bottom: 18px; }
.editing-status { background: #e7f4ff; border-left: 4px solid #2a76ad; padding: 10px 12px; margin-bottom: 15px; }
label { display: grid; gap: 5px; font-weight: 600; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; padding: 9px; border: 1px solid #b9c8d5; border-radius: 4px; background: #fff; }
textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; }
button, .button { display: inline-block; padding: 8px 13px; border: 1px solid #7890a4; border-radius: 4px; background: #fff; color: #18354c; cursor: pointer; text-decoration: none; }
button.primary, .button.primary { background: #126ba8; color: white; border-color: #126ba8; }
button.danger { color: #a01e23; border-color: #c76468; }
.link-button { padding: 0; border: 0; background: transparent; color: #fff; text-decoration: underline; }
.inline-form { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.help { color: #607286; font-size: 13px; font-weight: 400; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #dbe3ea; vertical-align: top; }
th { background: #f3f6f9; }
.notice-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.notice { border-top: 1px solid #dbe3ea; padding: 12px 0; }
.new-badge { display: inline-block; margin-right: 6px; padding: 2px 6px; color: #fff; background: #db3138; border-radius: 3px; font-size: 12px; font-weight: 700; }
.flash { padding: 11px 13px; margin-bottom: 14px; border-radius: 5px; }
.flash.success { background: #e7f7eb; border: 1px solid #72bd82; }
.flash.error { background: #fff0f0; border: 1px solid #d98282; }
.image-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px; }
.image-grid figure { margin: 0; border: 1px solid #cad6df; padding: 8px; }
.image-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f5f7f9; }
.image-grid figcaption { overflow-wrap: anywhere; font-size: 12px; }
.upload-row { display: flex; gap: 10px; align-items: end; }
.danger-zone { border-color: #d99a9d; }
@media (max-width: 760px) {
    .site-header, .notice-grid { display: block; }
    .user-strip { margin-top: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .wide { grid-column: auto; }
    .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

