:root { font-family: 'Segoe UI', system-ui, sans-serif; color: #24352b; background: #f5f6f4; font-synthesis: none; --green: #24633f; --line: #d7dfd8; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 6px; padding: 11px 18px; font-weight: 600; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.93); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary, .button.secondary { background: #fff; color: var(--green); border-color: var(--line); }
button.danger { background: #fff; color: #9c3535; border-color: #e4c8c8; }
:focus-visible { outline: 3px solid #6b9cde; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header { border-bottom: 1px solid var(--line); background: #fff; padding: 22px max(24px, calc((100vw - 1100px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: #24352b; text-decoration: none; font-weight: 750; font-size: 25px; letter-spacing: -1px; }
.brand-dot { color: #4a9365; }
#header-actions { display: flex; align-items: center; gap: 12px; }
#app { max-width: 1100px; margin: 42px auto 80px; padding: 0 24px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 650; letter-spacing: -.035em; margin: 12px 0 18px; }
h2 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 10px; }
p { line-height: 1.6; }
.muted, .help { color: #627067; }
.help { font-size: 14px; line-height: 1.5; }
.narrow { max-width: 600px; margin: 64px auto; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 22px 0; }
.stack { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-weight: 600; }
.field input, .field textarea, .field select, .link-row input { background: #fff; color: inherit; padding: 11px 12px; border: 1px solid #b5c3b9; border-radius: 5px; width: 100%; min-width: 0; font-weight: 400; }
.field textarea { resize: vertical; min-height: 85px; }
.check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.check input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--green); margin-top: 3px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.between { justify-content: space-between; }
.event-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.event-row p { margin: 6px 0 0; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.link-row { display: flex; gap: 8px; margin: 8px 0 20px; }
.link-row input { font-size: 13px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tabs button[aria-pressed=true] { background: var(--green); color: white; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.photo-card img { display: block; width: 100%; height: 210px; object-fit: contain; background: #e9ede9; }
.photo-body { padding: 15px; }
.photo-body p { overflow-wrap: anywhere; font-size: 13px; margin: 0 0 12px; }
.photo-body button { padding: 8px 12px; font-size: 14px; }
.drop-zone { display: grid; gap: 12px; padding: 28px; border: 2px dashed #a8c2af; border-radius: 8px; background: #f6faf7; text-align: center; }
.drop-zone input { width: 100%; }
.drop-zone input::file-selector-button { background: var(--green); color: #fff; border: 0; border-radius: 4px; padding: 10px; margin-right: 12px; font: inherit; cursor: pointer; }
.upload-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.upload-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.upload-row div { min-width: 0; flex: 1; }
.upload-row span { overflow-wrap: anywhere; font-size: 14px; }
.upload-row small { display: block; margin-top: 6px; }
progress { width: 100%; accent-color: var(--green); height: 10px; }
.error { color: #a12e2e; }
.success { color: #24633f; }
.upload-success { text-align: center; padding: 44px 28px; }
.upload-success h2 { font-size: 30px; margin: 18px 0 8px; }
.upload-success p { color: #627067; margin: 0 0 24px; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: #e0f2e6; color: var(--green); font-size: 40px; font-weight: 700; }
#notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 14px 20px; background: #24352b; color: #fff; border-radius: 8px; z-index: 5; box-shadow: 0 4px 20px #0002; }
.empty { padding: 45px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.edition-title { color: var(--green); font-size: 18px; margin-top: -4px; }
.poster-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
#poster-preview canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 4px 18px #0001; }
.guest-logo { display: block; max-width: min(100%, 280px); max-height: 140px; object-fit: contain; margin-bottom: 24px; }
.source-row { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 22px; }
.source-code { padding: 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #f2f5f2; border-radius: 6px; font-size: 13px; }
@media(max-width: 800px) { .poster-layout { grid-template-columns: 1fr; } #poster-preview { width: min(100%, 340px); margin: auto; } }
@media(max-width: 650px) { .header { padding: 18px 20px; } #app { margin-top: 25px; padding: 0 20px; } .narrow { margin: 32px auto; } .panel { padding: 20px; } .columns { grid-template-columns: 1fr; gap: 0; } .event-row { align-items: flex-start; } .link-row { flex-wrap: wrap; } .link-row input { flex-basis: 100%; } .header button { padding: 8px 10px; } }
