:root{font:15px/1.45 -apple-system,BlinkMacSystemFont,"PingFang SC",Arial,sans-serif;color:#19333f;background:#e9f0f1;--ink:#19333f;--dim:#526b75;--edge:#d8e4e7;--teal:#067995;--paper:#fcfefe}*{box-sizing:border-box}body{margin:0}button,a,input,textarea{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button{background:none;border:none;padding:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #de388f;outline-offset:2px}button:disabled{cursor:default}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.17;letter-spacing:-.045em}h2{font-size:19px;letter-spacing:-.035em}h3{font-size:15px}.phone{position:relative;max-width:440px;margin:auto;background:var(--paper);display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:340px;box-shadow:0 0 0 1px #d8e2e4}.brand{height:53px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 19px;border-bottom:1px solid var(--edge)}.brand img{display:block;width:123px;height:auto}.text-action,.back,.inline-btn{display:inline-flex;align-items:center;gap:6px;color:#32606f;font-size:13px;font-weight:620;min-height:34px}svg.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}
#page{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:17px 18px 20px;outline:0}.title-row,.row,.switches,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.tabs{height:37px;padding:3px;background:#edf3f4;border-radius:9px;display:flex;gap:4px;margin:12px 0 17px}.tabs button{flex:1;border-radius:7px;color:#526974;font-weight:650;display:flex;align-items:center;justify-content:center;gap:6px}.tabs [aria-pressed=true]{background:#fff;color:#06627d;box-shadow:0 1px 4px #cad5d8}.small,.sub,.meta{color:var(--dim);font-size:12px;line-height:1.45}.film{display:block;font:italic 15px/1.35 Georgia,serif;color:#4b6974;margin-top:1px}.count{font-size:12px;color:#607780}.shelf{display:flex;gap:8px;overflow-x:auto;margin:8px -18px 0 0;padding:2px 18px 5px 2px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c6d6d9 transparent}.card{flex:0 0 29.2%;min-width:85px;text-align:left;scroll-snap-align:start}.cover{position:relative;display:block;width:100%;aspect-ratio:1/.99;border-radius:8px;overflow:hidden}.cover img{width:100%;height:100%;object-fit:cover;display:block}.card[aria-pressed=true] .cover{outline:2px solid var(--teal);outline-offset:-2px}.card-name{display:block;margin:4px 0 0;font-weight:630;font-size:12px;line-height:1.45}.card[aria-pressed=true] .card-name{color:#05647c}.pill,.tick,.play{display:inline-flex;align-items:center;justify-content:center;gap:2px;position:absolute;color:white;background:#223640db;line-height:1.2;font-weight:650;font-size:10px}.pill{bottom:6px;left:5px;padding:3px 5px;border-radius:4px}.pill.free{background:#f1ffff;color:#016079}.pill svg{width:11px;height:11px}.tick,.play{border-radius:50%;top:5px;width:18px;height:18px}.tick{right:5px;background:var(--teal)}.play{left:5px}.tick svg,.play svg{width:12px;height:12px}.context,.attach,.saved-draft{display:flex;align-items:center;gap:10px;border-radius:9px;padding:9px 11px;background:#eaf4f5;color:#245566;margin:0 0 12px;font-size:12px}.context img,.attach img,.saved-draft img{width:45px;height:45px;object-fit:cover;border-radius:5px}.context strong,.attach strong,.saved-draft strong{display:block;font-size:13px}.context .inline-btn,.attach .inline-btn{margin-left:auto}.upload-line{margin:9px 0 0;display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}.upload-button,.secondary,.dialog-actions button{border:1px solid #b8ced3;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:7px 11px;color:#285d6d;font-size:13px;font-weight:620;line-height:1.3}.upload-button{cursor:pointer;position:relative;overflow:hidden}.upload-button:focus-within{outline:2px solid #de388f}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font-size:0}.upload-help{margin:5px 0;color:var(--dim);font-size:11px}.attach{margin:6px 0}.field{margin-top:13px}.field label,.legend{font-size:15px;font-weight:650}.field .inline-btn,.upload-line .inline-btn{font-size:12px;min-height:29px}.field textarea,.chat-input{resize:vertical;width:100%;min-height:60px;max-height:160px;border:1px solid #c8d9dc;border-radius:8px;background:#fff;padding:9px 11px;line-height:1.45;font-size:14px;color:var(--ink)}.field textarea{margin-top:5px}textarea::placeholder{color:#758a92}.controls{display:flex;gap:14px;margin-top:10px}.controls .control{flex:1;min-width:0}.choices{display:flex;gap:5px;margin-top:5px}.choices button{height:31px;border:1px solid #d0dfe2;border-radius:6px;flex:1;color:#566d77;font-size:12px}.choices button[aria-pressed=true]{background:#e9f5f6;border:1.5px solid #087f99;color:#095b73;font-weight:650}.preset{border-top:1px solid var(--edge);margin-top:12px;padding:8px 0 3px}.preset summary{font-size:13px;font-weight:580;cursor:pointer}.fee{font-size:12px;color:#526a75;margin:10px 0 6px}.primary{border:0!important;color:#fff!important;background:var(--teal)!important;border-radius:7px;font-weight:650;font-size:15px;min-height:39px;padding:8px 14px}.wide{width:100%}.primary:disabled{background:#dfebed!important;color:#6a8088!important}.bottom{flex:none;display:flex;height:57px;padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid var(--edge);background:var(--paper)}.bottom a{display:flex;align-items:center;justify-content:center;flex:1;position:relative;flex-direction:column;font-weight:650;font-size:11px;color:#526b77;gap:2px}.bottom a>span{height:23px;width:28px}.bottom a[aria-current]{color:#19333f}.bottom a[aria-current]:before{content:"";position:absolute;top:0;height:3px;width:25px;background:#de388f;border-radius:2px}.bottom a[aria-current]>span{background:var(--teal);color:white;border-radius:7px}.bottom a[aria-current] svg{width:17px}
dialog{max-width:min(360px,92vw);border:none;border-radius:12px;color:var(--ink);padding:22px}dialog::backdrop{background:#172f3a72}dialog p{margin:10px 0}.dialog-actions{justify-content:flex-end;margin-top:17px}.dialog-actions .primary{font-size:13px;min-height:34px}#notice{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);max-width:min(380px,92vw);border-radius:7px;background:#263e4a;color:white;font-size:13px;text-align:center;z-index:10}#notice:not(:empty){padding:7px 12px}
.back{min-height:26px;margin-bottom:10px}.back svg{width:15px}.result-title{margin:0 0 12px}.stage{width:100%;max-height:55vh;position:relative;overflow:hidden;background:#173541;display:grid;place-items:center;border-radius:11px;margin:8px auto}.stage .visual{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.stage .portrait{position:absolute;bottom:12px;right:12px;width:23%;aspect-ratio:1;object-fit:cover;border:2px solid #fff;border-radius:8px}.stage-control{position:absolute;left:10px;bottom:10px;border-radius:20px;background:#172f3ae0;color:white;padding:6px 11px;font-size:12px}.result-copy{margin:12px 0}.result-copy h2{margin-bottom:3px}.sample-note{margin:-4px 0 10px;padding:7px 10px;border-radius:7px;background:#fff6e5;color:#7a5410;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.result-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.result-buttons>*{min-height:38px}.result-buttons .first{grid-column:1/-1}.empty{padding:44px 0;text-align:center}.empty p{margin:7px 0 13px;color:var(--dim)}.works-grid{margin-top:17px;display:grid;grid-template-columns:1fr 1fr;gap:15px 10px}.work-card{text-align:left}.work-card img{width:100%;aspect-ratio:4/3;border-radius:9px;object-fit:cover;display:block}.work-card b{display:block;margin-top:6px;font-size:14px}.work-card small{color:var(--dim)}.chat-head{display:flex;gap:9px;align-items:center}.chat-head img{width:42px;height:42px;object-fit:cover;border-radius:50%}.chat-head h1{font-size:21px}.chat-space{background:linear-gradient(transparent 38%,#18303c8a),url(companion-assets/alan.jpg) 50% 34%/cover;height:clamp(140px,29vh,290px);border-radius:10px;margin:12px 0}.chat-input{min-height:64px;margin:6px 0}.saved-draft{margin:6px 0}.saved-draft img{width:52px;height:52px}.saved-draft .caption{color:#4c6e7b}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(100%)}@media(max-width:360px){#page{padding-inline:13px}.shelf{margin-right:-13px}.card-name{font-size:11px}.choices{gap:3px}.bottom a{font-size:10px}.brand{padding-inline:13px}.upload-line{align-items:flex-start}}

.card-wrap{position:relative;flex:0 0 29.2%;min-width:85px;scroll-snap-align:start}.card-wrap .card{display:block;width:100%}.preview-button{position:absolute;top:3px;left:3px;display:grid;place-items:center;width:32px;height:32px;color:white;background:#1b3448cf;border-radius:50%;border:1px solid #fffa}.preview-button .icon{width:15px;height:15px}.preview-button path{fill:currentColor}.stage-label{position:absolute;left:10px;top:10px;background:#213942cf;color:white;border-radius:4px;padding:3px 7px;font-size:11px}#preview-picture{display:block;width:100%;height:auto;border-radius:8px}#preview{width:min(310px,88vw)}
/* 演示站：图片模式解锁弹层里的素材预览（1d） */
#unlock.with-picture{width:min(310px,88vw)}#unlock-picture{display:block;width:100%;height:auto;margin-top:12px;border-radius:8px}#unlock-picture[hidden]{display:none}
/* 4b：本次所需积分和余额；余额不够时变成提醒色 */
.fee.short{color:#b4235a;font-weight:620}
