/* Independent adapter of original mine/publishPlan/editPlan/withdrawPlan utility templates. */
.goal-source-author{--author-p:calc(var(--source-rem)/37.5);--author-bg:var(--red-orders-bg-4,#101a32);--author-card:var(--red-orders-bg-5,#202d46);--author-field:var(--red-orders-bg-7,#37445b);--author-text:var(--red-orders-text,#fff);--author-muted:var(--red-orders-light-text-2,#959ab7);height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--author-bg);color:var(--author-text);font:400 calc(var(--author-p)*14)/1.5 'Helvetica Neue',Helvetica,Arial}.layout:has(.goal-source-author)>.main{padding:0!important}.layout:has(.goal-source-author) :is(.topbar,.sidebar,.bottom-nav,.source-download-guide){display:none!important}.goal-source-author>header{height:calc(var(--author-p)*44);padding:0 calc(var(--author-p)*15);display:flex;align-items:center;justify-content:space-between;flex:none}.goal-source-author>header h1{font-size:calc(var(--author-p)*16);font-weight:500;letter-spacing:normal;margin:0;position:absolute;left:50%;transform:translateX(-50%)}.goal-source-author>header>:first-child,.goal-source-author>header>:last-child{width:calc(var(--author-p)*60)}.goal-source-author>header>:first-child{color:var(--author-muted);text-align:left}.goal-source-author>header>:last-child{text-align:right;color:var(--author-muted);font-size:calc(var(--author-p)*12)}.goal-source-author>header .goal-source-van-icon{font-size:calc(var(--author-p)*24)}.goal-author-main-tabs{display:flex;justify-content:space-around;flex:none;border-radius:calc(var(--author-p)*100);background:var(--author-card);margin:calc(var(--author-p)*10) calc(var(--author-p)*20) 0;height:calc(var(--author-p)*36)}.goal-author-main-tabs>a{display:flex;align-items:center;justify-content:center;position:relative;color:var(--author-muted);font-size:calc(var(--author-p)*12)}.goal-author-main-tabs>a.active{color:#f12b2b}.goal-author-main-tabs>a.active:after{content:'';position:absolute;bottom:0;left:50%;width:calc(var(--author-p)*32);height:calc(var(--author-p)*2);transform:translateX(-50%);background:#f12b2b}.goal-author-filter-tabs,.goal-author-purchased-tabs{height:calc(var(--author-p)*32);border-radius:calc(var(--author-p)*100);padding:calc(var(--author-p)*4);display:flex;align-items:center;gap:calc(var(--author-p)*8);overflow:auto;flex:none;background:var(--author-field);margin:calc(var(--author-p)*10) calc(var(--author-p)*10) 0;scrollbar-width:none}.goal-author-filter-tabs>a,.goal-author-purchased-tabs>a{height:calc(var(--author-p)*24);display:flex;align-items:center;padding:0 calc(var(--author-p)*12);white-space:nowrap;border-radius:100px;color:var(--author-muted);font-size:calc(var(--author-p)*12)}.goal-author-filter-tabs>a.active,.goal-author-purchased-tabs>a.active{background:#f12b2b;color:#fff}.goal-author-purchased-tabs>a{flex:1;justify-content:center}.goal-author-list{flex:1;min-height:0;overflow:auto;padding:calc(var(--author-p)*10)}.goal-author-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(var(--author-p)*60) 0;gap:calc(var(--author-p)*10);font-size:calc(var(--author-p)*12);color:var(--author-muted)}.goal-author-empty>img{width:calc(var(--author-p)*120);height:calc(var(--author-p)*68);object-fit:contain}.goal-author-empty a{color:#f12b2b}.goal-author-finished{text-align:center;font-size:calc(var(--author-p)*14);color:var(--author-muted);line-height:calc(var(--author-p)*50)}.goal-author-follow-card{display:flex;gap:calc(var(--author-p)*10);align-items:center;padding:calc(var(--author-p)*10);background:var(--author-card);margin-bottom:calc(var(--author-p)*10)}.goal-author-follow-card>img{width:calc(var(--author-p)*48);height:calc(var(--author-p)*48);border-radius:50%}.goal-author-follow-card>small{margin-left:auto;color:var(--author-muted)}.goal-author-plan{margin:0 0 calc(var(--author-p)*10)}.goal-author-plan>footer>div{display:flex;align-items:center;gap:calc(var(--author-p)*10)}.goal-author-plan>footer a{color:var(--author-muted);font-size:calc(var(--author-p)*10)}.goal-author-period{padding-top:calc(var(--author-p)*8);font-size:calc(var(--author-p)*12)}.goal-author-mock-tools{border-top:1px solid #ffffff15;padding-top:calc(var(--author-p)*8);color:var(--author-muted)}.goal-author-mock-tools button{padding:calc(var(--author-p)*5);margin:calc(var(--author-p)*3);border:1px solid #ffffff28;border-radius:4px;font-size:calc(var(--author-p)*11)}.goal-author-editor>header{height:auto;min-height:calc(var(--author-p)*48);padding:calc(var(--author-p)*12) calc(var(--author-p)*16)}.goal-author-editor>header h1{font-weight:400}.goal-author-editor>header>:last-child{width:auto}.goal-author-editor>form,.goal-author-withdraw>form{display:block;flex:1;min-height:0;overflow:auto;padding:calc(var(--author-p)*4) calc(var(--author-p)*16) calc(var(--author-p)*16)}.goal-author-select{display:flex;align-items:center;justify-content:space-between;width:100%;padding:calc(var(--author-p)*12) calc(var(--author-p)*12) calc(var(--author-p)*8) 0;background:none;border:0;color:var(--author-muted);font-size:calc(var(--author-p)*14);text-align:left}.goal-author-select>span:first-child{font-size:calc(var(--author-p)*12);color:var(--author-text)}.goal-author-select .goal-source-van-icon{margin-left:calc(var(--author-p)*8);font-size:calc(var(--author-p)*16)}.goal-source-author b{color:#f12b2b;font-weight:400}.goal-author-selection-caption{display:block;margin-bottom:calc(var(--author-p)*12);font-size:calc(var(--author-p)*14);color:var(--author-muted)}.goal-author-selection-caption:empty{display:none}.goal-author-editor form>input,.goal-source-author label>input:not([type=checkbox]),.goal-author-refund-input,.goal-author-editor [data-goal-author-deadline]{width:100%;background:var(--author-field);border:0;border-radius:calc(var(--author-p)*6);padding:calc(var(--author-p)*8);font-size:calc(var(--author-p)*16);color:var(--author-muted);outline:none}.goal-author-editor form>input{border:1px solid #ccc;margin-bottom:calc(var(--author-p)*8)}.goal-source-author input::placeholder{color:#959ab7}.goal-author-editor form>label{display:block;margin:calc(var(--author-p)*8) 0;font-size:calc(var(--author-p)*14);color:var(--author-text)}.goal-author-editor label>input,.goal-author-editor label>div,.goal-author-editor label>button{margin-top:calc(var(--author-p)*8)}.goal-author-refund-input{display:flex;padding:0}.goal-author-refund-input>input{min-width:0;flex:1;padding:calc(var(--author-p)*8);background:none;border:0;border-radius:0}.goal-author-refund-input>span{padding:calc(var(--author-p)*8)}.goal-author-editor form>label.goal-author-enabled{display:flex;align-items:center;justify-content:space-between;margin:calc(var(--author-p)*16) 0}.goal-author-enabled>b{margin-right:auto;margin-left:4px}.goal-author-enabled input{appearance:none;border:0;width:calc(var(--author-p)*52);height:calc(var(--author-p)*32);border-radius:100px;background:#d1d5db;position:relative;cursor:pointer;padding:0;margin:0!important}.goal-author-enabled input:checked{background:#4e7fff}.goal-author-enabled input:before{content:'';position:absolute;width:calc(var(--author-p)*28);height:calc(var(--author-p)*28);background:white;border-radius:50%;top:calc(var(--author-p)*2);left:calc(var(--author-p)*2);box-shadow:0 1px 3px #0003}.goal-author-enabled input:checked:before{left:calc(var(--author-p)*22)}.goal-author-submit{height:calc(var(--author-p)*48);width:100%;background:#4e7fff;color:white;border-radius:100px;font-size:calc(var(--author-p)*16);margin-top:calc(var(--author-p)*8)}.goal-author-draft{display:block;margin:calc(var(--author-p)*12) auto 0;padding:calc(var(--author-p)*8);font-size:calc(var(--author-p)*12);color:var(--author-muted);border:1px dashed #959ab7;border-radius:4px}.goal-source-author [role=alert],.goal-author-editor [data-goal-author-refund-error]{color:#f12b2b;font-size:calc(var(--author-p)*12)}.goal-source-author .ql-container{height:calc(var(--source-rem)*16)}.goal-author-withdraw>header{padding:calc(var(--author-p)*12) calc(var(--author-p)*16);height:auto;min-height:calc(var(--author-p)*48)}.goal-author-withdraw>header>:last-child{background:var(--red-orders-primary,#4e7fff);color:#fff;border-radius:6px;font-size:calc(var(--author-p)*16);padding:calc(var(--author-p)*4) calc(var(--author-p)*16)}.goal-author-withdraw form>label{display:block;font-size:calc(var(--author-p)*14);color:var(--author-text);margin-bottom:calc(var(--author-p)*8)}.goal-author-withdraw-card{margin:calc(var(--author-p)*8) 0 calc(var(--author-p)*16);padding:calc(var(--author-p)*12);border-radius:calc(var(--author-p)*8);background:var(--author-card);display:flex;align-items:center;justify-content:space-between;gap:12px}.goal-author-withdraw-card>strong{font-size:calc(var(--author-p)*14);font-weight:500}.goal-author-withdraw-card>small{font-size:calc(var(--author-p)*12);color:var(--author-muted)}.goal-author-selection-popup,.goal-author-time-picker{--author-p:calc(var(--source-rem)/37.5);position:fixed;inset:auto 0 0;margin:0 auto;padding:0;border:0;border-radius:calc(var(--author-p)*10) calc(var(--author-p)*10) 0 0;background:var(--red-orders-bg,#141412);color:var(--red-orders-text,#fff);width:calc(var(--source-rem)*10);max-width:100vw;height:calc(var(--author-p)*400);max-height:100dvh;overflow:hidden}.goal-author-selection-popup>header,.goal-author-time-picker>header{height:calc(var(--author-p)*48);padding:0 calc(var(--author-p)*16);display:flex;align-items:center;justify-content:space-between}.goal-author-selection-popup h2,.goal-author-time-picker h2{font-size:calc(var(--author-p)*16);font-weight:400;letter-spacing:normal;margin:0}.goal-author-selection-popup>header>button,.goal-author-time-picker>header>button{font-size:calc(var(--author-p)*14);color:#959ab7}.goal-author-selection-popup>header>button:last-child,.goal-author-time-picker>header>button:last-child{color:#4e7fff}.goal-author-selection-popup>[data-goal-author-selection-body]{height:calc(var(--author-p)*348);overflow:auto;padding:calc(var(--author-p)*20)}.goal-author-selection-stage{display:flex;align-items:center;justify-content:space-between;margin-bottom:calc(var(--author-p)*10);padding:0 4px}.goal-author-selection-stage h3{font-size:calc(var(--author-p)*16);font-weight:500;margin:0}.goal-author-selection-stage button{color:var(--red-orders-text,#fff);font-size:calc(var(--author-p)*14)}.goal-author-selection-choice{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--red-orders-bg-5,#202d46);border-radius:calc(var(--author-p)*8);padding:calc(var(--author-p)*14) calc(var(--author-p)*17);margin-bottom:calc(var(--author-p)*10);font-size:calc(var(--author-p)*16);color:var(--red-orders-text,#fff);text-align:left}.goal-author-selection-choice:disabled{opacity:.35;cursor:default}.goal-author-market-tabs{display:flex;white-space:nowrap;overflow:auto;font-size:calc(var(--author-p)*12)}.goal-author-market-tabs>button{height:calc(var(--author-p)*30);padding:0 calc(var(--author-p)*20);color:inherit;border-bottom:2px solid transparent}.goal-author-market-tabs>button.active{color:#2563eb;border-color:#2563eb}.goal-author-market-list{border-radius:calc(var(--author-p)*5.28);background:#f5f8fd;padding:calc(var(--author-p)*5);color:#333}.goal-author-market-list>details>summary{font-size:calc(var(--author-p)*14);font-weight:500;padding:calc(var(--author-p)*10) calc(var(--author-p)*5);cursor:pointer}.goal-author-market-list>details>div{display:grid;grid-template-columns:1fr 1fr;gap:calc(var(--author-p)*8)}.goal-author-market-list label{position:relative;display:flex;align-items:center;justify-content:space-between;gap:calc(var(--author-p)*4);border-radius:calc(var(--author-p)*5.28);padding:calc(var(--author-p)*14) calc(var(--author-p)*17);background:#f5f8fd;box-shadow:0 1px 2px #0001;font-size:calc(var(--author-p)*12);color:#07091e80}.goal-author-market-list label:has(input:checked){outline:2px solid #60a5fa;background:#eff6ff}.goal-author-market-list input{width:calc(var(--author-p)*12);height:calc(var(--author-p)*12);padding:0;margin:0;flex:none}.goal-author-market-list b{color:#484a4d!important;font-weight:400}.goal-author-lottery-choice{display:grid;gap:calc(var(--author-p)*10)}.goal-author-lottery-choice label{display:grid;gap:calc(var(--author-p)*8);color:inherit}.goal-author-lottery-choice select,.goal-author-lottery-choice input{color:inherit;background:var(--red-orders-bg-5,#202d46);border:0;padding:calc(var(--author-p)*10)}.goal-author-publish-confirm{--author-p:calc(var(--source-rem)/37.5);padding:0;border:0;border-radius:calc(var(--author-p)*16);width:calc(var(--author-p)*320);max-width:90vw;background:var(--red-orders-bg-4,#101a32);color:var(--red-orders-text,#fff)}.goal-author-publish-confirm>h2{padding:calc(var(--author-p)*26) calc(var(--author-p)*24) 0;font-size:calc(var(--author-p)*16);font-weight:500;letter-spacing:normal;text-align:center}.goal-author-publish-confirm>p{padding:calc(var(--author-p)*16) calc(var(--author-p)*24) calc(var(--author-p)*26);font-size:calc(var(--author-p)*14);line-height:1.5;text-align:center}.goal-author-publish-confirm>footer{display:flex;border-top:1px solid #ffffff1a}.goal-author-publish-confirm>footer>button{height:calc(var(--author-p)*48);flex:1;font-size:calc(var(--author-p)*16);color:inherit}.goal-author-publish-confirm>footer>button:last-child{border-left:1px solid #ffffff1a;color:#4e7fff}.goal-author-time-picker{height:calc(var(--author-p)*264)}.goal-author-time-picker>div{display:flex;height:calc(var(--author-p)*220);align-items:center;justify-content:space-around}.goal-author-time-picker select{font-size:calc(var(--author-p)*14);text-align:center;width:16.6%;padding:calc(var(--author-p)*8) 0;background:transparent;border:0;color:inherit}.goal-source-author [hidden],.goal-author-selection-popup [hidden]{display:none!important}.goal-author-detail>section{padding:calc(var(--author-p)*10);font-size:calc(var(--author-p)*14)}.goal-author-detail>section h2{font-size:calc(var(--author-p)*14);font-weight:400;margin:0 0 calc(var(--author-p)*8)}
.goal-author-submit:disabled{background:#f8f8f8;color:#999;border-color:#f8f8f8;opacity:1;cursor:not-allowed}
/* withdrawPlan uses its own compact source header submit control. */
.goal-author-withdraw>header>button{width:auto;min-width:calc(var(--author-p)*64);height:calc(var(--author-p)*32);padding:calc(var(--author-p)*4) calc(var(--author-p)*16);border:0;border-radius:calc(var(--author-p)*6);font:400 calc(var(--author-p)*16)/calc(var(--author-p)*24) 'Helvetica Neue',Helvetica,Arial;white-space:nowrap;background:var(--red-orders-primary,#ffe033);color:#fff}
.goal-author-withdraw>header>button:disabled{background:#f0f3f7;color:#999;opacity:1}
/* Source h-[16rem] is an unlayered, build-converted 6.82667rem rule;
   its later layered 16rem utility loses the cascade. Quill attrs attach to
   the .ql-container, while the generated toolbar is a preceding sibling. */
.goal-source-author .goal-quill-editor{height:auto;display:block;border:0;border-radius:0;position:relative}
.goal-source-author .ql-container{height:calc(var(--source-rem)*6.82667)}
/* DateTimePicker source: Vant picker default six visible 44-design-unit rows. */
.goal-author-time-picker{height:calc(var(--author-p)*308);background:var(--van-picker-background,var(--van-background-2,#1c1c18));color:var(--van-picker-option-text-color,#eee)}
.goal-author-time-picker>.van-picker__columns{height:calc(var(--author-p)*264);position:relative;display:flex;align-items:stretch;overflow:hidden}
.goal-author-time-picker .van-picker-column{flex:1;min-width:0;height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y;outline:0;font:400 calc(var(--author-p)*16)/calc(var(--author-p)*44) 'Helvetica Neue',Helvetica,Arial}
.goal-author-time-picker .van-picker-column::-webkit-scrollbar{display:none}
.goal-author-time-picker .van-picker-column__wrapper{margin:0;padding:calc(var(--author-p)*110) 0;list-style:none;transform:none}
.goal-author-time-picker .van-picker-column__item{box-sizing:border-box;height:calc(var(--author-p)*44);padding:0 calc(var(--author-p)*4);display:flex;align-items:center;justify-content:center;scroll-snap-align:center;cursor:pointer;color:inherit}
.goal-author-time-picker .van-picker__mask{position:absolute;inset:0;pointer-events:none;background-image:var(--van-picker-mask-color,linear-gradient(180deg,#1c1c18e6,#1c1c1866),linear-gradient(0deg,#1c1c18e6,#1c1c1866));background-repeat:no-repeat;background-position:top,bottom;background-size:100% calc(var(--author-p)*110);z-index:2}
.goal-author-time-picker .van-picker__frame{position:absolute;top:50%;left:calc(var(--author-p)*16);right:calc(var(--author-p)*16);height:calc(var(--author-p)*44);transform:translateY(-50%);border-top:1px solid var(--van-border-color,#323233);border-bottom:1px solid var(--van-border-color,#323233);pointer-events:none;z-index:3}
