.nes-wrap { --nes-accent: #E8650C; --nes-accent-dark: #B84E08; --nes-text: #1F1D1A; --nes-muted: #615D57; --nes-line: #E6E3DE; --nes-soft: #F6F5F3; max-width: 760px; margin: 0 auto; color: var(--nes-text); }
.nes-form { display: flex; flex-direction: column; gap: 28px; }
.nes-section { border: 1px solid var(--nes-line); border-radius: 16px; padding: 20px 24px 8px; margin: 0; min-width: 0; }
.nes-section legend { font-weight: 700; font-size: 1.1em; padding: 0 8px; }
.nes-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.nes-field label, .nes-label { font-weight: 700; font-size: 0.95em; }
.nes-field input[type=text], .nes-field select, .nes-field textarea, .nes-cast-name input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #CFCAC3; border-radius: 10px; font: inherit; background: #fff; color: var(--nes-text); }
.nes-field input:focus, .nes-field select:focus, .nes-field textarea:focus, .nes-cast-name input:focus { outline: 2px solid var(--nes-accent); outline-offset: 1px; border-color: var(--nes-accent); }
.nes-help { margin: 0; font-size: 0.85em; color: var(--nes-muted); }
.nes-center { text-align: center; }
.nes-req, .nes-opt { display: inline-block; font-size: 0.72em; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.nes-req { background: var(--nes-accent-dark); color: #fff; }
.nes-opt { background: var(--nes-soft); color: var(--nes-muted); border: 1px solid var(--nes-line); }
.nes-error { margin: 0; color: #B3261E; font-size: 0.88em; font-weight: 700; }
.has-error input[type=text], .has-error select, .has-error textarea { border-color: #B3261E; }
.nes-alert { background: #FCEBEA; color: #8C1D18; border-radius: 12px; padding: 14px 18px; font-weight: 700; }
.nes-done { background: #FFF4EB; border-radius: 16px; padding: 28px; text-align: center; font-weight: 700; line-height: 1.9; }
.nes-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.nes-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nes-previews img { display: block; max-width: 160px; max-height: 200px; border-radius: 10px; border: 1px solid var(--nes-line); }
.nes-previews--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; width: 100%; }
.nes-previews--grid:empty { display: none; }
.nes-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--nes-soft); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nes-thumb img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border: 0; border-radius: 0; }
.nes-thumb-label { font-size: 0.75em; color: var(--nes-muted); }
.nes-thumb-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.nes-file-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--nes-text); border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.9em; cursor: pointer; }
.nes-file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nes-file-btn:focus-within { outline: 2px solid var(--nes-accent); outline-offset: 2px; }
.nes-status { font-size: 0.85em; color: var(--nes-muted); }

.nes-cast-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.nes-cast-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: var(--nes-soft); border-radius: 12px; }
.nes-cast-row .nes-previews img { max-width: 70px; max-height: 100px; }
.nes-cast-name { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.9em; }
.nes-remove, .nes-add { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.9em; cursor: pointer; }
.nes-remove { border: 1px solid #CFCAC3; background: #fff; color: var(--nes-muted); }
.nes-add { border: 1px dashed var(--nes-accent-dark); background: #fff; color: var(--nes-accent-dark); margin-bottom: 16px; }

.nes-consent label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.nes-consent input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; }
.nes-submit { align-self: center; min-height: 52px; padding: 0 48px; border: 0; border-radius: 999px; background: var(--nes-accent); color: var(--nes-text); font: inherit; font-weight: 700; font-size: 1.05em; cursor: pointer; }
.nes-submit:disabled { opacity: .6; cursor: wait; }
.nes-notes { margin: 0 0 4px; padding: 14px 18px 14px 34px; background: var(--nes-soft); border-radius: 12px; font-size: 0.88em; color: #4A4640; display: flex; flex-direction: column; gap: 4px; }
.nes-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.nes-plan { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #CFCAC3; border-radius: 14px; padding: 14px 16px; cursor: pointer; background: #fff; }
.nes-plan:has(input:checked) { border: 2px solid var(--nes-accent); padding: 13px 15px; background: #FFF4EB; }
.nes-plan input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--nes-accent-dark); }
.nes-plan-body { display: flex; flex-direction: column; gap: 2px; }
.nes-plan-name { font-weight: 700; }
.nes-plan-desc { font-size: 0.85em; color: var(--nes-muted); line-height: 1.6; }
[data-nes-paid-only][hidden] { display: none !important; }
.nes-form[data-plan="free"] [data-nes-paid-only] { display: none !important; }
.nes-plan-banner { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 16px; background: var(--nes-soft); }
.nes-plan-banner--premium { background: #FFF4EB; border: 1px solid #F1DCCB; }
.nes-plan-banner .nes-plan-name { font-weight: 700; font-size: 1.1em; }
.nes-plan-banner .nes-plan-desc { font-size: 0.9em; color: var(--nes-muted); }
.nes-plan-banner a { color: var(--nes-accent-dark); font-weight: 700; }
.nes-alert-list { margin: 8px 0 0; padding-left: 1.4em; font-weight: 500; }
.nes-alert-list li { margin: 2px 0; }
.nes-counter { margin: 0; font-size: 0.85em; color: var(--nes-muted); text-align: right; }
.nes-counter.is-warn { color: var(--nes-accent-dark); font-weight: 700; }
.nes-counter.is-over { color: #B3261E; font-weight: 700; }
