:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #192c56;
    background: #eff4fc;
    line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { background: #fff; border-top: 6px solid #29367e; border-bottom: 1px solid #d7e1f3; }
.header-inner, .layout, .site-footer { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.header-inner { display: flex; justify-content: center; padding-block: clamp(12px, 2.5vw, 24px); }
.brand { display: block; width: min(100%, 680px); }
.brand img { display: block; width: 100%; height: auto; }
.layout { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 8vw, 100px); align-items: start; padding-block: clamp(50px, 10vw, 130px); }
.intro { padding-top: 24px; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.055em; margin: 0; }
.intro p { max-width: 400px; margin: 24px 0 0; color: #415478; font-size: 1.1rem; }
.card { padding: clamp(22px, 4vw, 36px); background: #fff; border: 1px solid #d7e1f3; border-radius: 20px; box-shadow: 0 14px 35px #1b377012; }
h2 { font-size: 1.45rem; margin: 0 0 22px; }
label { display: block; margin: 16px 0 6px; font-weight: 650; }
input { display: block; width: 100%; min-height: 48px; border: 1px solid #9caecc; border-radius: 8px; padding: 10px 12px; background: #f9fbff; color: inherit; font: inherit; }
small { display: block; margin-top: 5px; color: #415478; }
.button { display: block; width: 100%; border: 0; border-radius: 8px; padding: 12px 16px; color: #fff; background: #293e95; text-align: center; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
form .button { margin-top: 22px; }
.button:hover { background: #1b2d73; }
.button-secondary { color: #293e95; background: #fff; border: 1px solid #9caecc; }
.button-secondary:hover { background: #eff4fc; }
:focus-visible { outline: 3px solid #416cc7; outline-offset: 3px; }
.notice { padding: 14px; border-radius: 8px; margin: 0 0 18px; }
.notice p { margin: 2px 0 12px; overflow-wrap: anywhere; }
.error { background: #fff0ed; color: #862e24; }
.success { background: #e7efff; }
.site-footer { color: #415478; border-top: 1px solid #d7e1f3; padding-block: 20px; font-size: .9rem; }
.site-footer a { color: #293e95; }
.site-footer a:not(:first-child) { margin-inline-start: 1rem; }
.admin-layout { flex: 1; width: min(980px, calc(100% - 48px)); margin-inline: auto; padding-block: clamp(32px, 6vw, 64px); }
.admin-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.admin-heading h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.admin-heading .button { margin-top: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.admin-grid h2, .admin-login h2 { margin-bottom: 10px; }
.admin-grid .card > a { color: #293e95; font-weight: 650; }
.admin-login { max-width: 440px; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 54px; }
.password-toggle { position: absolute; inset-inline-end: 3px; inset-block-start: 50%; transform: translateY(-50%); width: 44px; height: 42px; border: 0; border-radius: 6px; background: transparent; color: #293e95; cursor: pointer; }
.password-toggle:hover { background: #e7efff; }
.password-toggle svg { display: block; margin: auto; }
.password-toggle[aria-pressed="false"] .password-eye-slash { display: none; }
.admin-errors { padding-inline-start: 34px; overflow-wrap: anywhere; }
.upload-list { margin-top: 24px; }
.upload-list h2 { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; }
.upload-list table { width: 100%; border-collapse: collapse; text-align: left; }
.upload-list th, .upload-list td { padding: 10px 12px; border-bottom: 1px solid #d7e1f3; vertical-align: top; }
.upload-list th { background: #eff4fc; }
.upload-list td:nth-child(4) { white-space: nowrap; }
.upload-list td:last-child { overflow-wrap: anywhere; }
.upload-list th label { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.upload-list input[type="checkbox"] { display: inline-block; width: 1rem; min-height: 1rem; margin: 0; }
.upload-list .button-danger { width: auto; background: #a12829; }
.upload-list .button-danger:hover { background: #7a1e1f; }
.upload-list .button-danger:disabled { opacity: .55; cursor: default; }
.upload-list a { color: #293e95; }
input[type="file"] { max-width: 100%; }

@media (max-width: 730px) {
    .layout { grid-template-columns: 1fr; padding-block: 40px; }
    .intro { padding-top: 0; }
    .intro p { margin-top: 16px; }
    .admin-grid { grid-template-columns: 1fr; }
}
