:root{font:15px Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:#0f172a;background:#f8fafc}*{box-sizing:border-box}body{margin:0}header{min-height:74px;background:white;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(20px,5vw,64px);gap:18px}a{color:#e9501c;text-decoration:none}a:hover{text-decoration:underline}header a{color:#334155;font-weight:600}header nav{display:flex;gap:22px}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:700;color:#0f172a}.brand img{object-fit:contain}.auth-card,.wide-card,.dashboard{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 12px 40px #0f172a0b}.auth-card{max-width:450px;margin:7vh auto;padding:36px}.wide-card{max-width:970px;margin:40px auto;padding:38px}.dashboard{max-width:1180px;margin:40px auto;padding:38px}.eyebrow{color:#e9501c;font:700 12px ui-monospace,monospace;letter-spacing:.16em}h1{font-size:32px;letter-spacing:-.04em;margin:12px 0 6px}h2{font-size:20px;margin:0 0 22px}.sub,.help,#displayEmail{color:#64748b;line-height:1.6}.help{text-align:center;margin:20px 0 0;font-size:14px}.tabs{display:flex;gap:6px;background:#f1f5f9;border-radius:10px;padding:5px;margin:28px 0 24px}.tabs button{flex:1;border:0;background:transparent}.tabs button.active{background:#e9501c;color:white;box-shadow:0 2px 8px #e9501c30}form{display:grid;gap:16px}label{display:grid;gap:7px;font-weight:600;font-size:14px}input{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:11px 13px;font:inherit;color:#0f172a;background:white}input[readonly]{background:#f8fafc;color:#64748b}button,.upload{border:1px solid #cbd5e1;border-radius:9px;background:white;color:#0f172a;padding:11px 16px;font:600 14px Arial,sans-serif;cursor:pointer}button:hover,.upload:hover{border-color:#e9501c}button:disabled{opacity:.5;cursor:wait}.primary{background:#e9501c;border-color:#e9501c;color:white}.primary:hover{background:#c63e13;color:white}form>.primary{margin-top:6px}button:focus-visible,a:focus-visible,input:focus-visible,.upload:focus-within{outline:3px solid #e9501c;outline-offset:2px}[hidden]{display:none!important}#message{min-height:22px;color:#c2410c;line-height:1.5}.profile-top{display:flex;align-items:center;gap:20px;margin:26px 0 34px}.avatar{width:82px;height:82px;border-radius:50%;background:#fff1eb;color:#e9501c;display:grid;place-items:center;font-size:38px;overflow:hidden;flex:none}.avatar img{width:100%;height:100%;object-fit:cover}.profile-top strong{font-size:18px}.profile-top p{margin:5px 0 12px}.upload{display:inline-block;padding:7px 12px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:48px;border-top:1px solid #e2e8f0;padding-top:32px}.columns section+section{border-left:1px solid #e2e8f0;padding-left:48px}.bottom-actions{display:flex;justify-content:center;margin-top:32px}.list-tools{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:18px 0}.list-tools input{max-width:340px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px;text-align:left}th,td{padding:13px 10px;border-bottom:1px solid #e2e8f0}th{font-size:12px;color:#64748b;text-transform:uppercase}td{font-size:14px}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:22px}@media(max-width:700px){.auth-card,.wide-card,.dashboard{margin:20px 14px;padding:22px}h1{font-size:27px}.columns{grid-template-columns:1fr;gap:30px}.columns section+section{border-left:0;border-top:1px solid #e2e8f0;padding:28px 0 0}.list-tools{align-items:stretch;flex-direction:column}.list-tools input{max-width:none}header nav{gap:10px;font-size:13px}}
.preview-action{display:inline-block;border:1px solid #fed7aa;background:#fff7ed;border-radius:7px;padding:7px 10px;font-weight:700;white-space:nowrap}.readonly-preview{max-width:1240px;margin:34px auto;padding:0 22px 40px}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.back-link{font-weight:700}.readonly-studio{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px}.preview-pages{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 220px);overflow:auto}.preview-page-button{display:flex;align-items:center;gap:10px;text-align:left;background:#fff;color:#334155}.preview-page-button.active{border-color:#e9501c;background:#fff7ed;color:#9a3412}.preview-page-button img{width:36px;height:52px;object-fit:cover;border-radius:4px;background:#f1f5f9}.preview-page-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-stage{min-width:0}.preview-bottom{display:flex;justify-content:space-between;align-items:center;color:#64748b;font-size:13px;padding:8px 4px 14px}.preview-canvas{width:min(100%,430px);margin:0 auto;background:#f1f5f9;aspect-ratio:9/16;overflow:hidden;border-radius:8px}.preview-canvas img{width:100%;height:100%;object-fit:contain}.preview-empty{padding:40px;text-align:center;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;color:#64748b}.preview-bottom{padding-top:14px}.preview-heading .sub{margin:8px 0 0}@media(max-width:700px){.readonly-preview{margin-top:20px;padding:0 12px 24px}.preview-heading{align-items:flex-start;flex-direction:column}.readonly-studio{grid-template-columns:1fr;padding:12px}.preview-pages{flex-direction:row;max-height:none;overflow-x:auto;padding-bottom:4px}.preview-page-button{min-width:140px}.preview-page-button img{width:30px;height:44px}.preview-canvas{width:min(100%,360px)}}

/* Authentication forms share the existing Drawnpage palette without changing account pages. */
.auth-icons{position:absolute;width:0;height:0;overflow:hidden}
body[data-page="login"],body[data-page="register"]{background:radial-gradient(circle at 50% 0,#fff4eb 0,#f8fafc 48%)}
.auth-card{position:relative;overflow:hidden;border-top:4px solid #e9501c;box-shadow:0 18px 55px #0f172a12}
.auth-card .sub{margin:8px 0 0}
.auth-card .tabs{margin:26px 0 22px}
.auth-card .tabs button{min-height:42px}
.auth-card form{gap:14px}
.auth-card .auth-field{display:grid;gap:7px;font-size:13px;color:#334155}
.auth-card .input-shell{position:relative;display:flex;align-items:center}
.auth-card .input-shell input{height:46px;padding:11px 52px 11px 43px;border-color:#cbd5e1;transition:border-color .18s,box-shadow .18s}
.auth-card .input-shell:not(:has(.password-toggle)) input{padding-right:13px}
.auth-card .input-shell:focus-within input{border-color:#e9501c;box-shadow:0 0 0 3px #e9501c20;outline:none}
.auth-card .field-icon{position:absolute;left:13px;width:18px;height:18px;fill:none;stroke:#94a3b8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.auth-card .input-shell:focus-within .field-icon{stroke:#e9501c}
.auth-card .password-toggle{position:absolute;right:5px;min-width:43px;border:0;background:transparent;color:#475569;padding:8px 6px;font-size:12px}
.auth-card .password-toggle:hover{color:#c63e13;border:0}
.auth-card .password-toggle:focus-visible{outline:2px solid #e9501c;outline-offset:-2px}
.auth-card .auth-email-row{display:flex;align-items:flex-end;gap:10px}
.auth-card .auth-email-row .auth-field{flex:1;min-width:0}
.auth-card .auth-email-row input{min-width:0}
.auth-card .auth-email-row .code-send{flex:none;min-height:46px;white-space:nowrap}
.auth-card .code-send{justify-self:start;padding:9px 13px;color:#c63e13;border-color:#fed7aa;background:#fff7ed}
.auth-card .code-send:hover{background:#ffedd5}
.auth-card .auth-submit{min-height:46px;margin-top:6px}
.auth-card button.is-loading::before{content:"";display:inline-block;width:13px;height:13px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:auth-spin .8s linear infinite}
.auth-card #message:not(:empty){margin-bottom:0;padding:10px 12px;border-radius:8px;background:#f0fdf4}
.auth-card #message.is-error{background:#fef2f2}
@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.auth-card{margin-top:28px}.auth-card .tabs{margin-top:22px}}
@media(prefers-reduced-motion:reduce){.auth-card button.is-loading::before{animation:none}.auth-card .input-shell input{transition:none}}

/* Profile: the warm paper and orange accents used on the main site. */
body[data-page="profile"]{background:#f8f6f1;color:#20211f}
body[data-page="profile"] .wide-card{background:#fffefb;border-color:#e9e3da;border-radius:22px;box-shadow:0 18px 55px #4537270d}
body[data-page="profile"] h1{font-size:clamp(30px,4vw,42px);letter-spacing:-.04em}
body[data-page="profile"] .profile-top{justify-content:space-between;gap:24px;padding:24px;margin:28px 0 22px;border:1px solid #eee5dc;border-radius:16px;background:#faf6ef}
.profile-identity{display:flex;align-items:center;gap:20px;min-width:0}
.profile-identity>div:last-child{min-width:0;overflow-wrap:anywhere}
.credit-summary{text-align:right;flex:none;padding-left:24px;border-left:1px solid #e7ddd2}
.credit-summary h2{margin:0;color:#756b62;font-size:13px;font-weight:600}
body[data-page="profile"] .credit-summary p{margin:3px 0 0;color:#e9501c;font-size:38px;font-weight:750;line-height:1.1}
#creditSection{margin:0 0 34px}
#creditPlans{display:flex;flex-wrap:wrap;gap:10px}
#creditPlans .credit-plan{min-height:48px;padding:13px 20px;border:1px solid #e9501c;border-radius:10px;background:#e9501c;color:#fff;box-shadow:0 4px 0 #b83912;font-weight:700;transition:transform .15s,box-shadow .15s,background .15s}
#creditPlans .credit-plan:hover{background:#d74316;transform:translateY(-2px);box-shadow:0 6px 0 #b83912}
#creditPlans .credit-plan:active{transform:translateY(2px);box-shadow:0 2px 0 #b83912}
#creditPlans .credit-plan:disabled{transform:none;box-shadow:none}
#creditStatus:empty{display:none}
body[data-page="profile"] .columns{border-color:#e9e3da}
body[data-page="profile"] .columns section+section{border-color:#e9e3da}
body[data-page="profile"] input{border-color:#ded8cf}
@media(max-width:700px){body[data-page="profile"] .profile-top{padding:18px;gap:16px}.profile-identity{gap:12px}.profile-identity .avatar{width:62px;height:62px}.credit-summary{padding-left:14px}body[data-page="profile"] .credit-summary p{font-size:30px}}
@media(max-width:420px){body[data-page="profile"] .profile-top{align-items:flex-start;flex-direction:column}.credit-summary{text-align:left;border-left:0;border-top:1px solid #e7ddd2;padding:12px 0 0;width:100%}#creditPlans .credit-plan{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){#creditPlans .credit-plan{transition:none}}
.security-heading{display:flex;align-items:center;gap:8px}
.info-toggle{display:inline-grid;place-items:center;width:20px;height:20px;padding:0;border:1px solid #a69b90;border-radius:50%;background:transparent;color:#756b62;font:700 12px Georgia,serif;line-height:1}
.info-toggle:hover,.info-toggle[aria-expanded="true"]{color:#c63e13;border-color:#e9501c;background:#fff1eb}
.password-help{margin:-10px 0 16px;padding:10px 12px;border:1px solid #eedfd1;border-radius:9px;background:#fff8f0;color:#655b52;font-size:13px;line-height:1.6}
.unused-public-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-top:24px}.public-page{aspect-ratio:9/16;background:#fff9f2;border-radius:12px;padding:7%;display:flex;flex-direction:column;overflow:hidden}.public-page h2{font-size:1.2rem}.public-page img{width:100%;height:55%;object-fit:cover}.public-page p{white-space:pre-wrap;overflow-wrap:anywhere}
.story-stack{width:min(100%,430px);margin:auto}.story-page{position:relative;aspect-ratio:9/16;overflow:hidden;background:#f6f8fc;color:#172a46;container-type:inline-size}.story-page h2,.story-page h3{position:absolute;left:8%;top:10%;width:84%;margin:0;font-size:6cqw;line-height:1.3;font-weight:600}.story-page img{position:absolute;left:7.4%;top:25.8%;width:85.2%;height:47.9%;object-fit:cover}.story-page p{position:absolute;left:8%;top:77%;width:84%;margin:0;font-size:3.9cqw;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}.story-header{position:absolute;left:8%;top:5%;font-size:2.4cqw;color:#546783}.story-footer{position:absolute;left:8%;bottom:2%;font-size:2.4cqw;color:#72829a}.story-page.title-full-image img{left:0;top:25%;width:100%;height:75%}.story-page.title-full-image p,.story-page.title-full-image .story-header{display:none}.story-page.legal-carousel-v2{background:#f8f7f2}.story-page.legal-carousel-v2 img{left:4.4%;top:18.75%;width:91.1%;height:68.3%;object-fit:contain}.story-page.legal-carousel-v2 p{left:4.4%;top:75%;width:91.1%;background:rgba(248,247,242,.96);padding:4%;}.story-caption{white-space:pre-wrap}.story-stack .story-page{scroll-margin-top:20px;margin-bottom:24px}
body.public-preview{background:#fff;color:#0f172a;font-family:Arial,'Noto Sans',sans-serif}.public-preview .public-header{min-height:84px;padding:20px clamp(24px,4vw,48px);border-bottom:1px solid #e2e8f0;background:#fff}.public-preview .public-brand{display:inline-flex;align-items:center;gap:12px;font-size:24px;font-weight:700;color:#0f172a;text-decoration:none}.public-preview .public-brand img{width:44px;height:44px;object-fit:contain}.public-preview .public-start{background:#e9501c;color:#fff;border-radius:8px;padding:14px 20px;font-size:14px;text-decoration:none}.public-preview .readonly-preview{max-width:none;margin:0;padding:48px max(24px,calc((100% - 1200px)/2)) 72px;background-image:radial-gradient(#dce1e7 1px,transparent 1px);background-size:24px 24px}.public-preview .public-eyebrow{font:700 12px ui-monospace,monospace;letter-spacing:.16em;color:#e9501c}.public-preview h1{font-size:clamp(30px,4vw,48px);line-height:1.2;margin:12px 0}.public-preview .public-meta{color:#64748b;margin:0 0 24px;line-height:1.6}.public-preview .readonly-studio{box-shadow:0 12px 40px #0f172a0b}.public-preview .preview-page-button{padding:12px;border:1px solid #e2e8f0;border-radius:8px;text-decoration:none;font-weight:600}.public-preview .preview-page-button:hover,.public-preview .preview-page-button:focus-visible{border-color:#e9501c;background:#fff7ed;color:#c2410c}.public-preview .story-page{border-radius:8px}@media(max-width:700px){.public-preview .public-header{min-height:68px;padding:12px 20px}.public-preview .public-start{padding:10px 12px}.public-preview .readonly-preview{margin:0;padding:32px 16px 48px}.public-preview .preview-page-button{flex:0 0 auto}}
