:root {
  --ink: #092f29;
  --green: #006b54;
  --deep: #00463b;
  --lime: #b9dc20;
  --paper: #f4f8f4;
  --line: #dce7e1;
  --muted: #60766f;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 12% 0%, #e5f4c9 0, transparent 30rem), var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-header { height: 76px; max-width: 1360px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(9,47,41,.12); }
.brand { color: var(--ink); display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: #dcf0e8; border-radius: 12px; }
.brand-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .brand small { display: block; line-height: 1.05; letter-spacing: .035em; }
.brand strong { font-size: .96rem; }
.brand small { margin-top: 5px; font-size: .64rem; color: var(--muted); letter-spacing: .13em; }
.privacy { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.privacy i { width: 8px; height: 8px; border-radius: 50%; background: #22a368; box-shadow: 0 0 0 4px #d9eee3; }
main { max-width: 1360px; margin: auto; padding: 48px 28px 70px; }
.intro { max-width: 850px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-weight: 800; font-size: .76rem; letter-spacing: .17em; }
.intro h1 { margin: 0; max-width: 780px; font-size: clamp(2.15rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.05em; }
.intro h1 em { color: var(--green); font-style: normal; }
.intro > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; }
.workspace { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(500px, 1.22fr); gap: 22px; align-items: start; }
.panel { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 55px rgba(14,52,42,.08); }
.form-panel, .preview-panel { padding: 26px; }
.panel-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 24px; }
.panel-head .step { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: white; font-weight: 800; font-size: .82rem; }
.panel-head h2 { margin: 0 0 4px; font-size: 1.1rem; letter-spacing: -.015em; }
.panel-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.field { margin-top: 18px; }
.field > label { display: block; font-size: .83rem; font-weight: 750; margin-bottom: 8px; }
.field > label span { color: #e35542; }
.field input, .field select { width: 100%; height: 49px; border: 1px solid #cbd9d2; border-radius: 12px; padding: 0 14px; color: var(--ink); background: #fff; outline: none; font-size: 1rem; transition: .2s ease; }
.field select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%); background-position: calc(100% - 18px) 21px,calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,107,84,.1); }
.two-col { display: grid; grid-template-columns: .75fr 1.25fr; gap: 12px; }
.upload-box { width: 100%; min-height: 82px; border: 1.5px dashed #9ab7aa; border-radius: 15px; background: #f7fbf8; color: var(--ink); display: flex; align-items: center; gap: 13px; padding: 14px; text-align: left; }
.upload-box:hover { border-color: var(--green); background: #eff8f3; }
.upload-box.has-photo { border-style: solid; border-color: #72b996; background: #eaf7ef; }
.upload-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #d9eee3; color: var(--green); }
.upload-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upload-box strong, .upload-box small { display: block; }
.upload-box strong { font-size: .9rem; }
.upload-box small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.remove-option { display: flex; align-items: flex-start; gap: 11px; margin-top: 17px; padding: 13px 14px; border-radius: 13px; background: #f0f7f3; }
.remove-option input { width: 19px; height: 19px; flex: none; margin: 2px 0 0; accent-color: var(--green); }
.remove-option strong, .remove-option small { display: block; }
.remove-option strong { font-size: .81rem; }
.remove-option small { color: var(--muted); font-size: .7rem; margin-top: 3px; line-height: 1.35; }
.remove-option.processing { background: #fff9df; }
.remove-option.done { background: #e8f6ed; }
.fee-input { display: flex; align-items: center; border: 1px solid #cbd9d2; border-radius: 12px; background: white; overflow: hidden; }
.fee-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,107,84,.1); }
.fee-input input { flex: 1; min-width: 0; border: 0; box-shadow: none!important; }
.fee-input span { flex: none; border-left: 1px solid var(--line); padding: 0 12px; color: var(--muted); font-size: .76rem; }
.crop-controls { margin-top: 14px; padding: 16px; border-radius: 15px; background: #eff6f1; }
.crop-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; font-size: .84rem; }
.crop-title button { border: 0; background: transparent; color: var(--green); font-size: .75rem; font-weight: 700; }
.crop-help { margin: -4px 0 12px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.crop-controls label { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; margin-top: 8px; color: var(--muted); font-size: .75rem; }
.crop-controls input { accent-color: var(--green); width: 100%; }
.preview-panel { position: sticky; top: 16px; }
.poster-wrap { border-radius: 18px; overflow: hidden; background: #dbe9e1; box-shadow: 0 13px 34px rgba(4,52,42,.15); }
#poster { width: 100%; height: auto; display: block; aspect-ratio: 1; }
.poster-wrap.editable #poster { cursor: grab; touch-action: none; }
.poster-wrap.dragging #poster { cursor: grabbing; }
.download { width: 100%; height: 56px; margin-top: 18px; border: 0; border-radius: 14px; background: var(--lime); color: #12392f; font-weight: 850; font-size: 1rem; display: flex; justify-content: center; align-items: center; gap: 9px; box-shadow: 0 8px 22px rgba(150,183,15,.23); }
.download:hover { filter: brightness(.96); transform: translateY(-1px); }
.download:active { transform: translateY(1px); }
.download svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.download-secondary { height: 48px; margin-top: 10px; background: #eef5f1; color: var(--green); border: 1px solid #d4e4dc; box-shadow: none; font-size: .88rem; }
.download-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .74rem; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 100px); opacity: 0; padding: 13px 18px; border-radius: 999px; color: white; background: #0b3c33; box-shadow: 0 10px 35px rgba(0,0,0,.18); font-size: .85rem; transition: .3s ease; pointer-events: none; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 920px) {
  main { padding-top: 34px; }
  .workspace { grid-template-columns: 1fr; }
  .preview-panel { position: static; order: -1; }
}
@media (max-width: 560px) {
  .site-header { height: 66px; padding: 0 16px; }
  .privacy { display: none; }
  main { padding: 28px 14px 48px; }
  .intro { margin-bottom: 24px; }
  .intro h1 { font-size: 2.35rem; }
  .intro > p:last-child { font-size: .9rem; margin-top: 13px; }
  .form-panel, .preview-panel { padding: 16px; border-radius: 19px; }
  .preview-panel { padding-bottom: 18px; }
  .panel-head { margin-bottom: 17px; }
  .field { margin-top: 15px; }
  .two-col { grid-template-columns: .72fr 1.28fr; gap: 9px; }
  .fee-input span { padding: 0 8px; font-size: .69rem; }
  .toast { max-width: calc(100% - 28px); text-align: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto!important; transition: none!important; } }
