:root {
    color-scheme: light;
    background: #f4f6fa;
    color: #16243a;
    font: 16px/1.6 system-ui, sans-serif;
}

body { margin: 0; }
main { width: min(920px, calc(100% - 36px)); margin: 44px auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px max(18px, calc((100% - 920px) / 2)); background: #fff; border-bottom: 1px solid #dfe6ee; }
.brand { color: #193b59; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
nav { display: flex; gap: 5px; align-items: center; }
nav a { padding: 7px 12px; color: #42536b; font-size: .9rem; font-weight: 650; text-decoration: none; border-radius: 7px; }
nav a[aria-current="page"] { background: #e7f0f7; color: #153d5d; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; }
h2 { font-size: 1.18rem; margin: 0; }
.panel { background: #fff; border: 1px solid #dfe6ee; border-radius: 14px; padding: clamp(18px, 4vw, 28px); margin-bottom: 18px; }
.section-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.section-heading { justify-content: space-between; }
.section-note, .file-field p { color: #4b5c70; margin: 5px 0 0; font-size: .9rem; }
.fields { display: grid; justify-items: start; align-items: start; gap: 10px; margin-top: 16px; }
.fields label { font-weight: 650; }
.cast-name { margin: 0; }
.cast-name strong { margin-inline-start: .6em; color: #153d5d; }
.file-field { display: grid; max-width: 100%; gap: 8px; width: 100%; box-sizing: border-box; background: #f6f9fc; border: 1px dashed #a9bfd0; border-radius: 10px; padding: 16px; margin: 6px 0; }
button, .download { font: inherit; font-weight: 650; }
button { border: 1px solid transparent; border-radius: 8px; padding: 8px 18px; color: white; background: #185376; cursor: pointer; }
button.secondary { border-color: #b4c5d3; color: #193b59; background: white; }
button:disabled { opacity: .58; cursor: wait; }
input { max-width: 100%; font: inherit; box-sizing: border-box; }
input[type="text"], input[type="password"] { width: min(100%, 330px); border: 1px solid #9fb1c2; border-radius: 7px; padding: 7px 10px; }
.download { color: #185376; text-underline-offset: .2em; }
#errors, .form-error { color: #9c2525; }
#errors { padding-inline-start: 24px; }
.photos { list-style: none; padding: 0; margin: 16px 0 0; }
.photos li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #e5eaf0; }
.photos img { width: 88px; height: 88px; display: block; object-fit: contain; border-radius: 7px; background: #f4f6fa; }
.photos div { min-width: 0; }
.photos strong { display: block; overflow-wrap: anywhere; }
.photos span { display: block; color: #4b5c70; font-size: .88rem; }
[hidden] { display: none; }
