:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; color: #332d25; background: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #ffffff; }
button, input, textarea { font: inherit; }
.app-shell { width: min(1080px, calc(100% - 32px)); margin: 28px auto; background: #ffffff; border: 1px solid rgba(80,61,39,.1); box-shadow: 0 25px 70px rgba(57,44,29,.10); }
.topbar { height: 80px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd5ca; }
.brand { display: flex; align-items: baseline; gap: 14px; font-family: "Songti SC", STSong, serif; }
.brand span { font-size: 28px; letter-spacing: .18em; }
.brand small { color: #978c7d; letter-spacing: .16em; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.language-button { min-width: 36px; padding: 5px 8px; border: 1px solid #c8bbaa; background: transparent; color: #7f7467; cursor: pointer; font-size: 11px; letter-spacing: .08em; }
.quiet-button { border: 0; background: none; color: #7f7467; cursor: pointer; }
.workspace { display: grid; grid-template-columns: minmax(300px, 440px) minmax(320px, 1fr); gap: 62px; padding: 42px 58px 48px; }
.preview-panel { text-align: center; }
.poster-wrap { width: min(100%, 390px); aspect-ratio: 3/4; margin: auto; position: relative; overflow: hidden; background: #d4c8b7; box-shadow: 0 18px 40px rgba(40,30,19,.18); }
#posterCanvas { display: block; width: 100%; height: 100%; }
.upload-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fffaf0; background: linear-gradient(145deg, #aa957a, #5d6653); cursor: pointer; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.upload-empty[hidden] { display: none; }
.upload-empty input, .upload-button input { display: none; }
.upload-plus { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; font-size: 28px; line-height: 45px; }
.upload-empty strong { font-family: "Songti SC", STSong, serif; font-size: 18px; font-weight: 500; letter-spacing: .08em; }
.upload-empty small { opacity: .74; }
.size-note { color: #9d9285; font-size: 12px; letter-spacing: .08em; }
.editor-panel { padding-top: 3px; }
.step-label { color: #9b7655; font-size: 12px; letter-spacing: .18em; margin-bottom: 18px; }
.step-label.second { margin-top: 32px; }
.field-label, .two-fields span { display: block; margin-bottom: 8px; color: #796f64; font-size: 13px; }
textarea, .two-fields input { width: 100%; border: 0; border-bottom: 1px solid #cfc6ba; background: transparent; color: #383129; outline: none; font-family: "Songti SC", STSong, serif; }
textarea { resize: none; padding: 10px 0; font-size: 19px; line-height: 1.8; }
textarea:focus, .two-fields input:focus { border-color: #98724f; }
.count { text-align: right; margin-top: 5px; color: #aaa095; font-size: 11px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 16px; }
.two-fields input { padding: 7px 0; }
.filter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.filter { border: 0; padding: 0; background: transparent; color: #84796d; cursor: pointer; }
.filter i { display: block; height: 54px; margin-bottom: 7px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(48,38,28,.1); }
.filter.active i { border-color: #946d49; }
.filter span { font-size: 12px; }
.sunset { background: linear-gradient(145deg,#dfbd91,#705c48); }.paper { background: linear-gradient(145deg,#d3c3a2,#8d7451); }.mono { background: linear-gradient(145deg,#ddd,#555); }.mist { background: linear-gradient(145deg,#b8c3be,#5e7475); }
.range-label { display: flex; justify-content: space-between; margin-top: 24px; font-size: 12px; color: #71675d; }
.range-label output { color: #a39382; }
input[type="range"] { width: 100%; accent-color: #92704f; }
.button-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 35px; }
.upload-button, .save-button { height: 48px; display: grid; place-items: center; border: 1px solid #9a8065; cursor: pointer; }
.upload-button { color: #735f4c; }.save-button { border-color: #6d5540; background: #6d5540; color: white; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 15px); padding: 10px 18px; background: #332d25; color: white; border-radius: 3px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 780px) { .app-shell { width: 100%; margin: 0; }.workspace { grid-template-columns: 1fr; padding: 28px 22px 38px; gap: 28px; }.poster-wrap { width: min(84vw, 390px); }.topbar { padding: 0 20px; }.brand small { display:none; } }
