/* Frontend-only account MVP for /forma/. */
.account-entry{min-height:38px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fffaf4;color:var(--ink);font-weight:850}

#account{min-height:100vh;background:radial-gradient(circle at 8% 3%,#ffd8bd 0,transparent 24%),radial-gradient(circle at 93% 10%,#ffc9df 0,transparent 24%),#f7f1ea}
.account-header{height:76px;padding:0 max(24px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fffaf3e8;backdrop-filter:blur(16px)}
.account-logo{width:116px;padding:0;border:0;background:transparent;line-height:0}.account-logo img{width:100%}
.account-actions{display:flex;align-items:center;gap:10px}.account-new{min-height:42px;padding:0 18px;font-size:12px}
.account-profile{min-height:44px;padding:4px 10px 4px 5px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:#fff}.account-profile span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--grad);font-weight:950}.account-profile b{max-width:190px;overflow:hidden;text-overflow:ellipsis;font-size:11px;white-space:nowrap}
.profile-wrap{position:relative}.profile-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:5;width:180px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 16px 45px #3924191f}.profile-menu[hidden]{display:none}.profile-menu small{display:block;margin-bottom:8px;color:var(--muted);font-size:9px}.profile-menu button{width:100%;min-height:36px;border:0;border-radius:10px;background:#fff0f4;color:#c32859;font-size:11px;font-weight:850}
.account-shell{width:min(1180px,calc(100% - 40px));margin:auto;padding:56px 0 80px}
.account-welcome{max-width:720px;margin-bottom:26px}.account-welcome>span,.account-card .card-top span,.support-card>span{color:#9b6f62;font-size:10px;font-weight:900;letter-spacing:.16em}.account-welcome h1{margin:8px 0 10px;font-size:clamp(42px,5vw,70px);line-height:.94;letter-spacing:-.06em}.account-welcome p{max-width:640px;margin:0;color:var(--muted);font-size:16px}
.account-draft{min-height:290px;margin-bottom:20px;display:grid;grid-template-columns:340px 1fr;overflow:hidden;border-radius:32px;color:#fff;background:linear-gradient(115deg,#ff7560 0,#ff9572 29%,#2b2628 29%,#2b2628 100%);box-shadow:0 24px 70px #6c453526}
.draft-art{display:grid;place-items:center}.draft-disc{width:210px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:repeating-radial-gradient(circle,#2b2527 0 5px,#40373a 6px 9px);box-shadow:0 24px 45px #542b2a55}.draft-disc:before{content:"";width:33%;aspect-ratio:1;border-radius:50%;background:#ff5275}.draft-disc span{position:absolute;font-size:30px}
.draft-copy{align-self:center;padding:40px 48px}.draft-status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#ffffff12;font-size:11px;font-weight:850}.draft-copy h2{margin:17px 0 7px;font:700 clamp(36px,4vw,54px)/1.02 Georgia,serif}.draft-copy p{margin:0;color:#d7cccf;font-size:15px}.draft-progress{height:6px;margin:24px 0 25px;overflow:hidden;border-radius:99px;background:#ffffff1a}.draft-progress i{display:block;width:60%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff5179,#ff9a72)}.draft-copy .primary{min-height:46px;padding-inline:20px;font-size:12px}
.account-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;margin-bottom:20px}.account-card{padding:30px;border:1px solid var(--line);border-radius:28px;background:#fffaf6;box-shadow:0 18px 50px #79502e12}.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.card-top h2,.support-card h2{margin:5px 0 0;font-size:27px;letter-spacing:-.04em}.card-top small{color:var(--muted)}.order-badge{padding:7px 11px;border-radius:999px;background:#fff0d6;color:#986022;font-size:10px}.order-badge.paid{background:#dcf7ea;color:#168558}
.order-timeline{margin:25px 0 0;padding:0;display:grid;gap:15px;list-style:none}.order-timeline li{display:flex;align-items:center;gap:13px}.order-timeline i{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border:1px solid #e5d9d2;border-radius:50%;background:#fff;font-style:normal;font-weight:900}.order-timeline .done i{border-color:#21a578;color:#fff;background:#21a578}.order-timeline div{display:grid}.order-timeline b{font-size:13px}.order-timeline small{color:var(--muted);font-size:10px}
.support-card{display:flex;flex-direction:column;justify-content:center}.support-card:before{content:"↗";width:48px;height:48px;margin-bottom:22px;display:grid;place-items:center;border-radius:16px;color:#fff;background:#221e20;font-size:22px;font-weight:900}.support-card p{margin:6px 0 20px;color:var(--muted)}.support-card .ghost{width:100%}
.library-card,.cartoons-card{margin-bottom:20px}.music-rail{display:flex;gap:12px;margin-top:22px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory}.music-item,.music-empty{flex:0 0 min(420px,82vw);min-height:88px;padding:13px;display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:13px;border:1px solid var(--line);border-radius:18px;background:#fff;scroll-snap-align:start}.music-cover{width:56px;height:56px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(145deg,#ff5d78,#ff9770);font-size:22px}.music-item.ready .music-cover{background:linear-gradient(145deg,#7658ef,#b15be0)}.music-item>div:nth-child(2){display:grid;min-width:0}.music-item b{font-size:14px}.music-item small{color:var(--muted);font-size:10px}.music-item button{padding:8px 10px;border:0;background:transparent;color:var(--pink);font-size:11px;font-weight:900}.music-empty{grid-template-columns:42px 1fr;border-style:dashed;color:var(--muted)}.music-empty b{font-size:24px;color:var(--pink)}
.cartoon-library-empty{margin-top:22px;display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center}.cartoon-library-empty img{width:220px;aspect-ratio:16/9;object-fit:cover;border-radius:17px}.cartoon-library-empty b{font-size:18px}.cartoon-library-empty p{margin:5px 0 15px;color:var(--muted)}

.auth-modal[hidden],.support-drawer[hidden]{display:none}.auth-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px}.auth-backdrop{position:absolute;inset:0;background:#171218a8;backdrop-filter:blur(10px)}.auth-card{position:relative;width:min(470px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:30px;border-radius:28px;background:#fffaf3;box-shadow:0 30px 100px #0005}.auth-card>img{width:92px}.auth-card>span{display:block;margin-top:24px;color:var(--pink);font-size:9px;font-weight:900;letter-spacing:.15em}.auth-card h2{margin:8px 0;font-size:36px;line-height:1;letter-spacing:-.05em}.auth-card>p{margin:0;color:var(--muted);font-size:13px}.auth-close{position:absolute;top:15px;right:15px;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:20px}.auth-tabs{margin:22px 0 16px;padding:4px;display:grid;grid-template-columns:1fr 1fr;border-radius:13px;background:#eee5de}.auth-tabs button{min-height:38px;border:0;border-radius:10px;background:transparent;font-size:11px;font-weight:850}.auth-tabs button.selected{background:#fff;box-shadow:0 5px 18px #4d332518}.auth-card label{display:block;margin-top:11px;font-size:11px;font-weight:850}.auth-card input{width:100%;height:50px;margin-top:6px;padding:0 13px;border:1px solid #dbcfc7;border-radius:13px;background:#fff;font-size:14px;outline:none}.auth-card input:focus{border-color:var(--pink);box-shadow:0 0 0 4px #ee2d8212}.auth-card form>.primary{width:100%;margin-top:14px}.auth-card>small{display:block;margin-top:14px;color:#998e8f;font-size:9px;line-height:1.45}.auth-error{min-height:18px;margin:8px 0 0!important;color:#c52e58!important;font-size:10px!important}
.auth-card label[hidden]{display:none}
.support-drawer{position:fixed;right:20px;bottom:20px;z-index:90;width:min(390px,calc(100% - 40px));overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fffaf6;box-shadow:0 25px 80px #2c17283a}.support-drawer header{padding:16px 17px;display:flex;justify-content:space-between;background:linear-gradient(120deg,#ff7848,#ed2e8b);color:#fff}.support-drawer header div{display:grid}.support-drawer header span{font-size:9px}.support-drawer header button{border:0;background:transparent;color:#fff;font-size:20px}.support-messages{min-height:190px;max-height:310px;padding:18px;overflow:auto}.support-messages p{max-width:85%;margin:0 0 10px;padding:11px;border-radius:15px 15px 15px 4px;background:#f3eae4}.support-messages p.me{margin-left:auto;border-radius:15px 15px 4px 15px;color:#fff;background:#2b2628}.support-messages b,.support-messages span{display:block}.support-messages b{font-size:9px}.support-messages span{font-size:12px}.support-drawer form{padding:10px;display:grid;grid-template-columns:1fr auto;gap:7px;border-top:1px solid var(--line)}.support-drawer input{min-width:0;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:12px;background:#fff}.support-drawer form button{padding:0 12px;border:0;border-radius:12px;color:#fff;background:#241f21;font-weight:850}.support-drawer>small{display:block;padding:0 14px 12px;color:var(--muted);font-size:8px}

@media(max-width:800px){.account-entry{min-height:34px;padding:0 10px;font-size:9px}.account-header{height:58px;padding:0 14px}.account-logo{width:76px}.account-actions{gap:6px}.account-actions>.account-new{display:none}.account-profile{min-height:36px;padding:3px}.account-profile span{width:29px;height:29px}.account-profile b{display:none}.account-shell{width:100%;padding:30px 14px 58px}.account-welcome{margin-bottom:18px}.account-welcome h1{font-size:38px}.account-welcome p{font-size:12px}.account-draft{min-height:0;grid-template-columns:104px 1fr;border-radius:22px}.draft-art{padding:16px 8px}.draft-disc{width:86px}.draft-disc span{font-size:17px}.draft-copy{padding:20px 15px}.draft-copy h2{margin:10px 0 5px;font-size:25px}.draft-copy p{font-size:10px}.draft-progress{margin:13px 0}.draft-copy .primary{min-height:40px;padding-inline:11px;font-size:10px}.account-grid{grid-template-columns:1fr;gap:10px;margin-bottom:10px}.account-card{padding:18px;border-radius:20px}.card-top h2,.support-card h2{font-size:22px}.support-card:before{width:40px;height:40px;margin-bottom:13px}.library-card,.cartoons-card{margin-bottom:10px}.music-rail{margin-top:15px}.music-item,.music-empty{flex-basis:88vw;min-height:76px;grid-template-columns:48px 1fr auto;padding:10px}.music-cover{width:48px;height:48px}.cartoon-library-empty{grid-template-columns:105px 1fr;gap:13px}.cartoon-library-empty img{width:105px}.cartoon-library-empty b{font-size:14px}.cartoon-library-empty p{font-size:10px}.cartoon-library-empty .ghost{min-height:38px;padding:0 9px;font-size:9px}.auth-card{padding:24px 18px}.auth-card h2{font-size:31px}.support-drawer{right:10px;bottom:10px;width:calc(100% - 20px)}}
@media(max-width:420px){.site-header{gap:7px}.account-entry{margin-left:auto}.mini-cta{margin-left:0}.account-draft{grid-template-columns:1fr}.draft-art{display:none}.draft-copy h2{font-family:Manrope,Inter,system-ui,sans-serif}.cartoon-library-empty{grid-template-columns:1fr}.cartoon-library-empty img{width:100%}}
@media(prefers-reduced-motion:reduce){.auth-backdrop{backdrop-filter:none}}
