:root {
  color-scheme: light;
  --ink: #f5f5f7;
  --ink-soft: #ffffff;
  --paper: #1d1d1f;
  --paper-strong: #000000;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --gold: #0071e3;
  --gold-strong: #0071e3;
  --violet: #0071e3;
  --teal: #34a17a;
  --danger: #ff8077;
  --success: #64dfc4;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); color: var(--paper); }
button, input, select { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

body::before { display: none; }

.page-shell { width: min(1280px, 100%); margin: 0 auto; padding: 22px clamp(18px, 4vw, 56px) 30px; }
.brand-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.brand-bar img, .admin-header img { width: 152px; height: auto; display: block; border-radius: 8px; }
.brand-bar span { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.event-layout { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(450px, 1.08fr); min-height: 720px; gap: 24px; }
.poster-panel { align-self: start; display: grid; grid-template-rows: auto auto; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 30px; background: #fff; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.poster-main { overflow: hidden; border-radius: 23px; background: #f5d726; }
.poster-main img { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.poster-secondary { min-height: 0; display: flex; align-items: center; gap: 10px; padding: 16px 10px 9px; }
.poster-secondary figure { flex: 0 0 52px; width: 52px; height: 52px; min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.poster-secondary img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-mark-card img { object-position: center; }
.event-date-card img { object-position: center 23%; }
.event-facts { min-width: 0; display: grid; gap: 3px; margin-left: 4px; }
.event-facts strong { font-size: .95rem; color: #1d1d1f; }
.event-facts span { color: #6e6e73; font-size: .82rem; }

.upload-panel { padding: clamp(30px, 5vw, 62px); border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.eyebrow { margin: 0 0 16px; color: #86868b; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.intro h1 { margin: 0; max-width: 730px; font-size: clamp(2.55rem, 5vw, 4.65rem); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.instruction { display: inline-flex; margin: 28px 0 14px; padding: 9px 13px; border: 0; border-radius: 999px; color: #1d1d1f; font-size: .95rem; font-weight: 650; background: #f0f0f2; }
.helper { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.optional-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.optional-grid label, .admin-access label { display: grid; gap: 8px; }
.optional-grid label > span, .admin-access label > span { color: #1d1d1f; font-size: .88rem; font-weight: 650; }
.optional-grid small { color: #8f93a1; font-weight: 500; }
input, select { width: 100%; min-height: 52px; border: 1px solid transparent; border-radius: 12px; padding: 0 15px; color: var(--paper); background: #f5f5f7; outline: none; }
input::placeholder { color: #777b89; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,179,108,.12); }

.drop-zone { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1.5px dashed #c7c7cc; border-radius: 20px; padding: 24px; text-align: center; background: #f5f5f7; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone--dragging { border-color: #0071e3; background: #f0f7ff; }
.drop-zone--selected { display: none; }
.camera-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #e8e8ed; }
.camera-icon svg { width: 24px; fill: #1d1d1f; }
.drop-zone strong { font-size: 1.13rem; }
.drop-zone > span:not(.camera-icon):not(.choose-chip) { color: var(--muted); font-size: .92rem; }
.choose-chip { margin-top: 8px; padding: 8px 13px; border-radius: 999px; color: #fff; background: #0071e3; font-size: .82rem; font-weight: 650; }

.file-summary { align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); }
.file-summary:not([hidden]) { display: flex; }
.file-summary div { min-width: 0; display: grid; gap: 3px; }
.file-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.file-summary small { color: var(--muted); }
.file-summary button, .upload-item button { border: 0; color: var(--gold-strong); background: transparent; font-weight: 800; }

.progress-region { margin-top: 18px; }
.progress-copy { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; font-size: .91rem; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--teal)); transition: width .18s linear; }
.progress-region > small { display: block; margin-top: 8px; color: var(--muted); }

.status-message { align-items: center; gap: 12px; margin-top: 16px; border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.status-message:not([hidden]) { display: flex; }
.status-message > span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; font-weight: 900; }
.status-message div { display: grid; gap: 2px; }
.status-message small { line-height: 1.4; }
.status-message--success { border: 1px solid #8edfcf; background: #e9f9f5; color: #075844; }
.status-message--success > span { background: #32c7a7; color: #062f26; }
.status-message--error { border: 1px solid #ffb3b8; background: #fff0f1; color: #8a101b; }
.status-message--error > span { background: #d70015; color: #fff; }

.submit-button { width: 100%; min-height: 58px; margin-top: 16px; border: 0; border-radius: 14px; color: #fff; background: #1d1d1f; box-shadow: none; font-size: 1.03rem; font-weight: 700; }
.submit-button:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.submit-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.privacy-note { display: flex; gap: 11px; margin-top: 20px; color: #9397a5; font-size: .85rem; line-height: 1.55; }
.privacy-note svg { flex: 0 0 21px; width: 21px; fill: var(--teal); }
.privacy-note p { margin: 0; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 5px 0; color: #6e6e73; font-size: .9rem; }
footer p { margin: 0; }
footer strong { color: var(--paper); }
footer a { color: var(--gold-strong); text-underline-offset: 4px; }

.admin-body { padding: 30px 18px 60px; }
.admin-shell { width: min(1040px, 100%); margin: 0 auto; }
.admin-header { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
.admin-header h1 { margin: 0; font-family: inherit; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.045em; }
.admin-access { display: grid; grid-template-columns: 1fr 1.6fr .8fr; align-items: end; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-soft); }
.admin-access .submit-button { margin: 0; min-height: 52px; }
.admin-filters { display: grid; grid-template-columns: 1fr 1.25fr auto; align-items: end; gap: 14px; margin-top: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-filters label { display: grid; gap: 7px; }
.admin-filters label > span { color: #1d1d1f; font-size: .82rem; font-weight: 650; }
.admin-filters button { min-height: 52px; border: 0; padding: 0 18px; border-radius: 12px; color: #0071e3; background: #eef6ff; font-weight: 650; }
.uploads-list { display: grid; gap: 12px; margin-top: 22px; }
.uploads-date-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 18px 2px 2px; }
.uploads-date-heading:first-child { margin-top: 0; }
.uploads-date-heading h2 { margin: 0; color: #1d1d1f; font-size: 1.25rem; letter-spacing: -.025em; }
.uploads-date-heading span { color: #6e6e73; font-size: .85rem; }
.upload-item, .admin-empty { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-soft); }
.upload-item__icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-strong); background: rgba(217,179,108,.11); }
.upload-item__copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.upload-item__copy span, .upload-item__copy small, .admin-empty p { color: var(--muted); }
.upload-item__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item button { padding: 10px 12px; }
.admin-empty { min-height: 180px; display: grid; place-items: center; align-content: center; text-align: center; }
.admin-empty p { margin: 4px 0 0; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .page-shell { padding: 18px 14px 24px; }
  .brand-bar { margin-bottom: 16px; }
  .brand-bar img { width: 142px; }
  .brand-bar span { font-size: .68rem; }
  .event-layout { grid-template-columns: 1fr; border-radius: 20px; gap: 16px; }
  .poster-panel { min-height: 0; max-height: none; grid-template-rows: auto auto; border-radius: 22px; }
  .poster-main img { aspect-ratio: 4 / 3; object-position: center; }
  .poster-secondary { display: flex; padding: 13px 7px 7px; }
  .event-date-card img { object-position: center 27%; }
  .upload-panel { padding: 32px 20px; border-radius: 22px; }
  .intro h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .optional-grid { grid-template-columns: 1fr; }
  .drop-zone { min-height: 190px; }
  footer { align-items: flex-start; flex-direction: column; }
  .admin-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .admin-access { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr; }
  .upload-item { align-items: flex-start; flex-wrap: wrap; }
  .upload-item button { margin-left: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
