/* Existing panXy tokens and buttons remain the visual source of truth. */
.task-workspace{display:flex;flex:1;min-height:0;flex-direction:column;gap:12px;background:rgba(255,255,255,.93)}
.task-workspace .tw-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 18px;flex-shrink:0}
.task-workspace .tw-heading h2{font-size:23px}.task-workspace .tw-content{display:flex;flex:1;min-height:0;flex-direction:column;gap:12px}
.task-workspace .tw-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr);gap:26px;align-items:center;width:100%;flex:1;min-height:0}
.task-workspace .tw-stack{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}.task-workspace .tw-field{display:flex;flex-direction:column;gap:7px;font-size:14px;min-width:0}.task-workspace .tw-field input,.task-workspace .tw-field select{width:100%;min-width:0}
.task-workspace .tw-row,.task-workspace .tw-category,.task-workspace .tw-subnav{display:flex;flex-wrap:wrap;gap:8px}.task-workspace .tw-category .button[aria-pressed=true],.task-workspace .tw-subnav .button[aria-pressed=true]{background:#edf3fa;color:var(--blue);border-color:var(--blue)}
.task-workspace .tw-note{padding:18px;background:#f3f7fc;border:1px solid var(--line);border-radius:8px;line-height:1.65;color:#46576b;font-size:14px}.task-workspace aside.tw-note{display:flex;flex-direction:column;gap:16px}.task-workspace .tw-note strong{font-size:18px;color:var(--blue)}
.task-workspace .tw-note p,.task-workspace .tw-copy p{margin:0}.task-workspace .tw-copy{line-height:1.65;overflow-wrap:anywhere;min-width:0}.task-workspace .tw-copy .tw-pager{margin-top:8px}
.task-workspace .tw-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0;padding-top:12px;border-top:1px solid var(--line)}.task-workspace .tw-footer .button:last-child{margin-left:auto}.task-workspace .tw-footer .help{margin-left:auto}
.task-workspace .tw-plans{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task-workspace .tw-plan{display:flex;min-width:0;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:18px;background:white;white-space:normal;line-height:1.55}.task-workspace .tw-plan strong{font-size:19px}.task-workspace .tw-price{font-size:23px;font-weight:600;color:var(--blue)}.task-workspace .tw-plan[aria-pressed=true]{border-color:var(--blue);background:#f4f8fe;box-shadow:inset 0 0 0 1px var(--blue)}
/* Quantity arrangement inspired by From Uiverse.io by Cybercom682.
   Native buttons replace decorative divs for keyboard and touch accessibility. */
.task-workspace .tw-quantity{display:flex;align-items:center;gap:0}.task-workspace .tw-quantity .button{min-width:44px;min-height:44px;border-radius:6px 0 0 6px}.task-workspace .tw-quantity .button:nth-of-type(2){border-radius:0 6px 6px 0}.task-workspace .tw-quantity input{width:64px;border-left:0;border-right:0;border-radius:0;text-align:center;height:44px;appearance:textfield}.task-workspace .tw-quantity input::-webkit-inner-spin-button{appearance:none}.task-workspace .tw-quantity>span{margin-left:18px;font-weight:600}
.task-workspace .tw-source-area{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:9px;min-height:0;min-width:0;max-height:100%}.task-workspace .tw-source-card{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:0;min-width:0}.task-workspace .tw-source-card img,.task-workspace .tw-page-image{width:100%;height:clamp(140px,27dvh,290px);object-fit:contain;min-height:0;background:#f3f5f8;border:1px solid var(--line);border-radius:6px}.task-workspace .tw-pdf-tile{width:100%;height:clamp(100px,20dvh,220px);display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#f3f5f8;font-size:24px;font-weight:600;color:var(--blue)}.task-workspace .tw-filename{max-width:100%;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.task-workspace .tw-total{font-size:36px;font-weight:650;line-height:1.25;color:var(--blue)}
.task-workspace .tw-pager{display:flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;font-size:12px}.task-workspace .tw-pager .button{min-height:34px;padding:4px 10px}.task-workspace .tw-empty{margin:auto;padding:30px;text-align:center;color:var(--muted)}
.task-workspace .tw-task-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:center;flex:1}.task-workspace .tw-task-item{display:grid;grid-template-columns:1fr auto;text-align:left;gap:10px;padding:18px;white-space:normal}.task-workspace .tw-task-item strong{font-size:17px}.task-workspace .tw-task-item small{grid-column:1/-1;color:var(--muted)}
.task-workspace .tw-detail-body{display:flex;flex:1;min-height:0;flex-direction:column;gap:12px}.task-workspace .tw-detail-body>.tw-source-card{flex:1}.task-workspace .tw-state{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:12px;max-width:900px;align-self:center;width:100%}.task-workspace .tw-state h3{font-size:25px;margin:0}.task-workspace .tw-state p{margin:0}.task-workspace .tw-option{white-space:normal;text-align:left;line-height:1.5}.task-workspace .tw-option[aria-pressed=true]{border-color:var(--blue);background:#eff5fd}.task-workspace .tw-wallet-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0;font-size:18px;font-weight:600}.task-workspace .tw-wallet-summary>div{padding:18px;background:#f5f8fd;border:1px solid var(--line);border-radius:7px}.task-workspace .tw-ledger{display:grid;gap:8px;flex:1;align-content:center}.task-workspace .tw-ledger>div{padding:12px;border:1px solid var(--line);border-radius:6px;display:flex;justify-content:space-between;align-items:center;gap:14px}.task-workspace .tw-qr{display:block;width:180px;height:180px;object-fit:contain;align-self:center}.task-workspace .check-label{font-size:13px;align-items:flex-start}.task-workspace .button{min-height:40px}.task-workspace .button:focus-visible{outline:3px solid #447ebb;outline-offset:3px}
#new-panel{display:none!important}.task-workspace[hidden]{display:none!important}.studio-page #task-wallet-launch{margin:10px 8px 0 0}
@media(max-height:700px) and (min-width:761px){.task-workspace{gap:8px;padding:12px!important}.task-workspace .tw-content,.task-workspace .tw-stack,.task-workspace .tw-detail-body{gap:8px}.task-workspace .tw-note{padding:12px;font-size:13px}.task-workspace aside.tw-note{gap:10px}.task-workspace .tw-source-card img,.task-workspace .tw-page-image{height:150px}.task-workspace .tw-pdf-tile{height:120px}.task-workspace .tw-heading h2{font-size:21px}.task-workspace .tw-plan{padding:12px;gap:7px}.task-workspace .tw-footer{padding-top:8px}.task-workspace .tw-wallet-summary>div{padding:10px}.task-workspace .tw-total{font-size:30px}.task-workspace .tw-subnav .button{min-height:34px}.task-workspace .tw-state{gap:8px}.task-workspace .tw-qr{width:140px;height:140px}}
@media(max-width:760px){.task-workspace{gap:10px;padding:12px!important}.task-workspace .tw-heading{gap:4px}.task-workspace .tw-heading h2{font-size:21px;width:100%}.task-workspace .tw-content{gap:10px}.task-workspace .tw-columns{display:flex;flex-direction:column;justify-content:center;gap:14px;align-items:stretch}.task-workspace .tw-stack{gap:10px}.task-workspace .tw-note{padding:12px;font-size:13px;line-height:1.55}.task-workspace aside.tw-note{gap:8px}.task-workspace .tw-note strong{font-size:16px}.task-workspace .tw-category{display:grid;grid-template-columns:1fr 1fr;gap:7px}.task-workspace .tw-category .button{font-size:13px;min-height:40px}.task-workspace .tw-plans{gap:8px}.task-workspace .tw-plan{padding:12px 10px;gap:8px;font-size:12px}.task-workspace .tw-plan strong{font-size:17px}.task-workspace .tw-price{font-size:20px}.task-workspace .tw-source-card img,.task-workspace .tw-page-image{height:160px}.task-workspace .tw-pdf-tile{height:110px}.task-workspace .tw-source-card{gap:6px}.task-workspace .tw-source-card .button{min-height:36px}.task-workspace .tw-filename{font-size:12px}.task-workspace .tw-field{font-size:13px;gap:5px}.task-workspace .tw-copy{font-size:13px;line-height:1.6}.task-workspace .tw-total{font-size:31px}.task-workspace .tw-quantity>span{font-size:14px;margin-left:13px}.task-workspace .tw-footer{gap:7px;padding-top:10px}.task-workspace .tw-footer .help{max-width:125px;font-size:11px}.task-workspace .tw-footer .button{font-size:12px;padding:7px 9px}.task-workspace .tw-task-list{grid-template-columns:1fr;gap:10px}.task-workspace .tw-task-item{padding:15px;gap:8px}.task-workspace .tw-task-item strong{font-size:15px}.task-workspace .tw-task-item .badge{font-size:11px}.task-workspace .tw-wallet-summary{grid-template-columns:1fr;font-size:15px;gap:7px}.task-workspace .tw-wallet-summary>div{padding:10px 12px}.task-workspace .tw-state h3{font-size:23px}.task-workspace .tw-state{gap:12px}.task-workspace .tw-detail-body>.tw-columns{justify-content:flex-start}.task-workspace .tw-subnav{gap:6px}.task-workspace .tw-subnav .button{min-height:35px}.task-workspace .tw-detail-body>.tw-columns .tw-page-image{height:125px}.task-workspace .tw-ledger>div{padding:10px}.task-workspace textarea{height:85px;min-height:85px;max-height:85px}.task-workspace .check-label{font-size:12px;min-height:30px}.task-workspace .tw-option{font-size:12px;min-height:36px}}
/* Very small or zoomed viewports retain reachable controls with necessary page scrolling. */
@media(max-height:620px) and (max-width:760px){.studio-page:has(#task-panel:not([hidden])) .container{height:auto;min-height:100dvh}.task-workspace .tw-content{flex:initial}.task-workspace .tw-columns{flex:initial}}
@media(prefers-reduced-motion:reduce){.task-workspace *{transition:none!important;animation:none!important}}
.task-workspace .tw-candidate-summary{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere}
@media(max-height:700px) and (min-width:761px){.task-workspace .tw-detail-body .tw-page-image{height:105px}.task-workspace .tw-candidate-summary{font-size:13px;line-height:1.5}.task-workspace .tw-detail-body .tw-stack{gap:7px}.task-workspace .tw-detail-body .tw-stack h3{margin:0}}
@media(max-width:760px){.task-workspace .tw-detail-body>.tw-columns>.tw-stack{flex-shrink:0}.task-workspace .tw-candidate-summary{font-size:13px;line-height:1.5}.task-workspace .tw-detail-body>.tw-columns>.tw-source-area{flex:1;min-height:140px}.task-workspace .tw-detail-body>.tw-columns>.tw-source-area>.tw-page-image{flex:1;min-height:40px}}
/* Restore the approved four-page Demo composition using its existing components. */
.task-workspace .tw-heading h2{font-size:22px}.task-workspace .tw-heading .help{margin:0}
.task-workspace .creation-page{justify-content:center;gap:8px;padding:4px 0}
.task-workspace .tw-create-columns{flex:initial;min-height:0;align-items:center}
.task-workspace .subject-controls{min-width:0;gap:12px}.task-workspace fieldset{min-width:0;margin:0;padding:0;border:0}.task-workspace legend{font-size:14px;font-weight:650;margin-bottom:8px}.task-workspace .subject-options+select{margin-top:8px}
.task-workspace .service-options{display:grid}.task-workspace .service-option{display:flex;align-items:flex-start;gap:9px}.task-workspace .service-option>span{display:block}.task-workspace .service-option strong,.task-workspace .service-option small{display:block}.task-workspace .service-option input{margin-top:3px;flex-shrink:0}
.task-workspace .tw-product-scope{font-size:12px;margin:0}.task-workspace .tw-quantity{flex-wrap:nowrap}.task-workspace .tw-template-example{margin:0;gap:10px;min-width:0}.task-workspace .tw-template-example img{width:100%;max-height:250px;object-fit:contain;border:1px solid var(--line);border-radius:8px}
.task-workspace .tw-waiting-body{justify-content:center}.task-workspace .tw-waiting{display:flex;flex:1;min-height:0;max-height:470px}.task-workspace .tw-waiting .px-wait{flex:1;height:auto;min-height:0;max-height:none;border-radius:12px}
/* Native indeterminate semantics while no measured completion is available. */
.px-wait[data-indeterminate=true] .wr-percent{font-size:15px;letter-spacing:0}.px-wait[data-indeterminate=true] .wr-progress-bar{width:30%;transform:translateX(0);animation:task-working 2.6s ease-in-out infinite}.px-wait[data-indeterminate=true][data-paused=true] .wr-progress-bar{animation-play-state:paused}
@keyframes task-working{0%,100%{transform:translateX(0)}50%{transform:translateX(230%)}}
@media(max-height:760px) and (min-width:901px){.task-workspace .subject-controls{gap:8px}.task-workspace .creation-page{padding:0}.task-workspace .tw-template-example img{max-height:190px}.task-workspace .tw-waiting .px-wait{gap:6px;padding:10px}.task-workspace .wr-copy{min-height:25px}.task-workspace .wr-progress-caption{font-size:11px}.task-workspace .wr-game-side{gap:5px}.task-workspace .wr-game-board{min-height:130px}.task-workspace .wr-memory{grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(2,minmax(44px,1fr));max-width:480px;max-height:130px}.task-workspace .wr-stars{grid-template-columns:repeat(3,1fr);max-height:160px}.task-workspace .wr-board-message{gap:2px}.task-workspace .wr-board-message:before{display:none}.task-workspace .wr-direction{grid-template-columns:repeat(4,1fr);grid-template-rows:44px}.task-workspace .wr-direction [data-game-action]{grid-row:1!important;grid-column:auto!important}.task-workspace .wr-game{grid-template-columns:minmax(0,1fr) 195px}.task-workspace .wr-hint{display:none}}
@media(max-height:650px) and (min-width:901px){.studio-page #task-panel .subject-controls{gap:6px}.studio-page #task-panel .service-option{min-height:92px;padding:9px}.studio-page #task-panel .subject-options label{min-height:43px;padding:5px}.task-workspace legend{margin-bottom:5px}.task-workspace .tw-quantity input,.task-workspace .tw-quantity .button{height:36px;min-height:36px}.task-workspace .tw-field{gap:4px}.task-workspace .tw-heading h2{font-size:20px}.task-workspace .wr-progress-caption{margin-top:3px}.task-workspace .wr-progress-track{margin-top:5px}.task-workspace .wr-copy{font-size:11px;line-height:1.4}.task-workspace .wr-game-board{min-height:112px}.task-workspace .wr-stars{grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,44px);max-width:300px;max-height:100px}.task-workspace .tw-waiting .px-wait{gap:5px;padding:8px}.task-workspace .wr-game-status{font-size:11px}.task-workspace .wr-game-score{min-height:24px;padding:2px 6px}.task-workspace .wr-game-side{gap:4px}.task-workspace .wr-games{grid-template-rows:40px minmax(0,1fr);gap:5px}.task-workspace .wr-tabs button{min-height:34px}.task-workspace .wr-control{min-height:40px}.task-workspace .wr-direction{grid-template-rows:40px}.task-workspace .wr-direction button{min-height:40px}}
@media(max-width:900px){.task-workspace .creation-page[data-create-page="1"]{justify-content:center}.task-workspace .tw-create-columns{width:100%;display:flex;flex-direction:column;gap:12px}.task-workspace .tw-create-columns>div,.task-workspace .tw-create-columns>aside{width:100%}.task-workspace .subject-view-switch{margin-bottom:0}.task-workspace .creation-page[data-subject-view=options] .tw-showcase,.task-workspace .creation-page[data-subject-view=examples] .subject-controls{display:none}.task-workspace .tw-template-example img{max-height:190px}.task-workspace .tw-heading .help{font-size:12px}.task-workspace .tw-source-card img{height:150px}.task-workspace .tw-note{padding:10px}.task-workspace .tw-waiting .px-wait{max-height:none}}
@media(max-width:600px){.task-workspace .tw-heading{gap:3px}.task-workspace .tw-heading h2{font-size:21px}.task-workspace .tw-heading .help{font-size:11px}.studio-page #task-panel .subject-controls{gap:10px}.studio-page #task-panel .service-option{min-height:122px;padding:11px 9px}.studio-page #task-panel .subject-options label{min-height:43px;padding:6px}.studio-page #task-panel .subject-options b{font-size:13px}.studio-page #task-panel .subject-options small{font-size:11px}.task-workspace .creation-steps{gap:7px}.studio-page #task-panel .creation-steps button{gap:4px;font-size:11px;min-height:31px}.task-workspace .tw-quantity .button{min-width:40px}.task-workspace .tw-quantity>span{font-size:13px}.task-workspace .tw-product-scope{font-size:11px}.task-workspace .tw-template-example{gap:6px}.task-workspace .tw-template-example img{max-height:145px}.task-workspace .tw-template-example h3{font-size:16px}.task-workspace .tw-waiting{max-height:none}.task-workspace .tw-waiting .px-wait{padding:8px;gap:6px}.task-workspace .wr-progress-caption{flex-direction:column;gap:3px}.task-workspace .wr-progress-caption>span:first-child{display:none}.task-workspace .wr-copy{min-height:30px;font-size:11px}.task-workspace .wr-percent{font-size:20px}.task-workspace .wr-tabs button{font-size:10px}.task-workspace .wr-game-board{min-height:160px}}
@media(prefers-reduced-motion:reduce){.px-wait[data-indeterminate=true] .wr-progress-bar{animation:none;transform:translateX(115%)} }
@media(min-width:901px){.studio-page #task-panel .service-option{min-height:116px}.studio-page #task-panel .subject-options label{min-height:54px}.task-workspace .subject-controls{gap:10px}}
/* Account recharge reuses the original blue paper controls in a native modal. */
.tw-recharge-dialog{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d0dfef;border-radius:18px;background:#fbfdff;color:var(--ink);box-shadow:0 24px 80px #18375a40;overflow:visible}.tw-recharge-dialog::backdrop{background:#17344a60;backdrop-filter:blur(5px)}.tw-recharge-frame{display:flex;flex-direction:column;gap:18px;padding:26px;min-width:0}.tw-recharge-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.tw-recharge-heading h2{font-size:23px;margin:0}.tw-recharge-heading .button{min-height:40px}.tw-recharge-summary{margin:0;font-size:15px;color:var(--muted)}.tw-recharge-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tw-recharge-option{display:flex;flex-direction:column;align-items:flex-start;gap:8px;white-space:normal;text-align:left;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff;line-height:1.45}.tw-recharge-option small{font-size:13px;color:var(--muted)}.tw-recharge-option strong{font-size:27px;color:var(--blue);font-weight:650}.tw-recharge-option span{font-size:12px;color:var(--muted)}.tw-recharge-option[aria-pressed=true]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);background:#eef5ff}.tw-recharge-scan{display:grid;grid-template-columns:190px minmax(0,1fr);gap:25px;align-items:center;padding:14px 20px;border:1px solid var(--line);background:#f1f6fc;border-radius:10px}.tw-recharge-scan .tw-qr{width:180px;height:180px;object-fit:contain;background:#fff;border-radius:8px}.tw-recharge-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.tw-recharge-copy h3{margin:0;font-size:18px}.tw-recharge-copy p{margin:0;line-height:1.6}.tw-recharge-copy .tw-total{font-size:28px;color:var(--blue)}.tw-recharge-hint{padding:18px;margin:0;background:#f0f6fd;border-radius:10px;line-height:1.65;color:var(--muted)}.tw-recharge-footnote{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.tw-recharge-dialog .status-message{margin:0}.tw-recharge-dialog button:focus-visible{outline:3px solid #e9a02b;outline-offset:3px}
@media(max-height:700px) and (min-width:601px){.tw-recharge-frame{padding:18px;gap:11px}.tw-recharge-option{padding:12px;gap:5px}.tw-recharge-scan{padding:10px 18px;grid-template-columns:150px minmax(0,1fr);gap:20px}.tw-recharge-scan .tw-qr{width:145px;height:145px}}
@media(max-width:600px){.tw-recharge-dialog{width:calc(100vw - 24px);border-radius:14px}.tw-recharge-frame{padding:16px;gap:13px}.tw-recharge-heading{gap:8px}.tw-recharge-heading h2{font-size:18px}.tw-recharge-heading .button{font-size:12px;white-space:nowrap;padding:7px 9px}.tw-recharge-summary{font-size:13px}.tw-recharge-options{gap:7px}.tw-recharge-option{padding:10px 7px;gap:7px}.tw-recharge-option small{font-size:11px}.tw-recharge-option strong{font-size:21px}.tw-recharge-option span{font-size:11px}.tw-recharge-scan{display:flex;flex-direction:column;gap:11px;padding:14px}.tw-recharge-scan .tw-qr{width:165px;height:165px}.tw-recharge-copy{align-items:center;text-align:center;gap:5px}.tw-recharge-copy h3{font-size:16px}.tw-recharge-copy .tw-total{font-size:25px}.tw-recharge-copy .help{font-size:12px}.tw-recharge-copy .button{min-height:38px}.tw-recharge-footnote{font-size:11px}.tw-recharge-hint{padding:13px;font-size:13px}}
@media(max-width:600px) and (max-height:650px){.tw-recharge-frame{gap:9px;padding:12px}.tw-recharge-scan{flex-direction:row;gap:10px;padding:10px}.tw-recharge-scan .tw-qr{width:120px;height:120px}.tw-recharge-copy{align-items:flex-start;text-align:left}.tw-recharge-copy h3{font-size:14px}.tw-recharge-copy .tw-total{font-size:21px}.tw-recharge-option{gap:4px}}
@media(max-height:650px) and (min-width:901px){.studio-page #task-panel .subject-controls{gap:6px}.studio-page #task-panel .service-option{min-height:84px;padding:8px}.studio-page #task-panel .subject-options label{min-height:43px;padding:4px 8px}.task-workspace .subject-options+select{margin-top:5px;min-height:34px;height:34px;padding-block:4px}.task-workspace .tw-field:has(.tw-quantity){flex-direction:row;align-items:center;gap:12px}.task-workspace .tw-field:has(.tw-quantity)>span{white-space:nowrap}.task-workspace .tw-product-scope{font-size:11px;line-height:1.4}.task-workspace legend{font-size:12px;line-height:1.3;margin-bottom:4px}}
@media(max-width:900px){.studio-page #task-panel .service-option{min-height:96px;padding:10px}.task-workspace .tw-field:has(.tw-quantity){flex-direction:row;align-items:center;gap:12px}.task-workspace .tw-field:has(.tw-quantity)>span{white-space:nowrap}.studio-page #task-panel .premium-tag{display:inline-block;margin:0 5px 0 0;vertical-align:middle}.studio-page #task-panel .premium-option strong{display:inline;vertical-align:middle}.studio-page #task-panel .service-option small{font-size:12px;line-height:1.45;margin-top:5px}.studio-page #task-panel .plan-price{margin-top:8px}.task-workspace .tw-create-columns>.subject-controls{gap:10px}}
@media(max-height:650px) and (min-width:901px){.task-workspace .wr-game{grid-template-columns:minmax(0,1fr) 260px}.task-workspace .wr-game-side{display:grid;grid-template-columns:1fr 1.15fr;grid-template-rows:24px 44px 44px;gap:4px;padding:0}.task-workspace .wr-game-score{grid-column:1;grid-row:1;min-height:24px}.task-workspace .wr-game-status{grid-column:2;grid-row:1;min-height:0;font-size:10px;line-height:1.2}.task-workspace .wr-main-actions{grid-column:1/-1;grid-row:2}.task-workspace .wr-game-actions{grid-column:1/-1;grid-row:3;margin:0}.task-workspace .wr-direction{grid-template-rows:44px}.task-workspace .wr-control,.task-workspace .wr-direction button{min-height:44px}}
@media(min-width:761px) and (max-width:900px){.task-workspace .creation-page:not([data-create-page="1"]) .tw-create-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:20px;align-items:center}.task-workspace .creation-page:not([data-create-page="1"]) .tw-source-card{flex-shrink:0}.task-workspace .creation-page:not([data-create-page="1"]) .tw-source-area{max-height:none}}

/* Task-v5: decisive hierarchy, restored tactile feedback and real preset cards.
   Uiverse task-card/status references were inspected; no catalog source is copied. */
.task-workspace{--tw-ease-out:cubic-bezier(.23,1,.32,1);--tw-ease-in-out:cubic-bezier(.77,0,.175,1)}
.task-workspace .tw-content,.task-workspace .creation-steps{animation:tw-page-enter 360ms var(--tw-ease-out) both}
.task-workspace.is-background-update .tw-content,.task-workspace.is-background-update .creation-steps,.task-workspace.is-background-update .tw-task-item{animation:none}
.task-workspace .creation-steps button{position:relative;transition:color 180ms ease,border-color 180ms ease,transform 180ms var(--tw-ease-out)}
.task-workspace .creation-steps button[aria-current=step] span{animation:tw-step-pop 420ms var(--tw-ease-out)}
.task-workspace .subject-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.studio-page #task-panel .subject-options label{position:relative;min-width:0;overflow:hidden;border-radius:11px;transition:transform 190ms var(--tw-ease-out),border-color 180ms ease,box-shadow 180ms ease,background-color 180ms ease}
.studio-page #task-panel .subject-options label:has(input:checked){box-shadow:0 9px 20px -16px #184d9c,inset 0 0 0 1px currentColor;animation:tw-choice-lock 360ms var(--tw-ease-out)}
.studio-page #task-panel .subject-options label:has(input:checked):after{content:"✓";position:absolute;right:7px;top:6px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--blue);color:#fff;font-size:10px;font-weight:800;animation:tw-check-in 340ms var(--tw-ease-out)}
.task-workspace .service-option{position:relative;overflow:hidden;transition:transform 190ms var(--tw-ease-out),border-color 180ms ease,box-shadow 180ms ease}
.task-workspace .service-option:has(input:checked){box-shadow:0 14px 28px -24px #1e4c87,inset 0 0 0 1px currentColor;animation:tw-choice-lock 360ms var(--tw-ease-out)}
.task-workspace .tw-preset-field{display:flex;flex-direction:column;min-width:0}
.task-workspace .tw-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.task-workspace .tw-preset-card{display:flex;min-width:0;min-height:122px;flex-direction:column;align-items:stretch;gap:7px;padding:8px;border:1px solid #d6e1ef;border-radius:11px;background:#fff;color:var(--ink);text-align:left;white-space:normal;overflow:hidden;box-shadow:0 7px 18px -17px #174577;animation:tw-card-enter 420ms var(--tw-ease-out) both;animation-delay:var(--tw-delay);transition:transform 180ms var(--tw-ease-out),border-color 180ms ease,box-shadow 180ms ease}
.task-workspace .tw-preset-card[aria-pressed=true]{border-color:var(--blue);box-shadow:0 13px 24px -19px #174e9b,inset 0 0 0 1px var(--blue);background:#f7fbff}
.task-workspace .tw-preset-copy{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0}.task-workspace .tw-preset-copy strong{font-size:13px}.task-workspace .tw-preset-copy small{font-size:10px;color:var(--muted);text-align:right}
.task-workspace .tw-preset-swatch,.task-workspace .tw-preset-stage{position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--preset-accent) 22%,#fff);background:var(--preset-soft);isolation:isolate}
.task-workspace .tw-preset-swatch{height:73px;border-radius:7px}.task-workspace .tw-preset-stage{width:100%;height:clamp(145px,24dvh,250px);border-radius:11px;box-shadow:0 18px 36px -30px var(--preset-accent)}
.task-workspace .tw-preset-swatch:before,.task-workspace .tw-preset-stage:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(112deg,transparent 36%,#ffffffb8 50%,transparent 64%);transform:translateX(-65%);transition:transform 520ms var(--tw-ease-out)}
.task-workspace :is(.tw-preset-card[aria-pressed=true] .tw-preset-swatch,.tw-preset-stage):before{transform:translateX(65%)}
.task-workspace [data-treatment=grid]{background-color:var(--preset-paper);background-image:linear-gradient(#62829a16 1px,transparent 1px),linear-gradient(90deg,#62829a16 1px,transparent 1px);background-size:12px 12px}.task-workspace [data-treatment=air]{background:radial-gradient(circle at 86% 18%,#fff 0 12%,transparent 13%),linear-gradient(145deg,var(--preset-soft),var(--preset-paper))}.task-workspace [data-treatment=notebook]{background:linear-gradient(90deg,var(--preset-accent) 0 5px,transparent 5px),repeating-linear-gradient(var(--preset-paper) 0 14px,var(--preset-soft) 15px)}.task-workspace [data-treatment=column]{background:linear-gradient(90deg,var(--preset-paper) 0 47%,var(--preset-accent) 47% 48%,var(--preset-paper) 48%)}
.task-workspace .tw-preset-page{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;width:76%;height:70%;padding:9px;border-radius:5px;background:color-mix(in srgb,var(--preset-paper) 92%,transparent);box-shadow:0 5px 13px -10px #1a3c62}.task-workspace .tw-preset-number{font-style:normal;font-size:12px;font-weight:800;color:var(--preset-accent)}.task-workspace .tw-preset-lines{display:grid;gap:5px;padding-top:2px}.task-workspace .tw-preset-lines i{height:4px;border-radius:4px;background:color-mix(in srgb,var(--preset-accent) 75%,#fff)}.task-workspace .tw-preset-lines i:nth-child(2){width:74%;background:color-mix(in srgb,var(--preset-accent) 30%,#fff)}.task-workspace .tw-preset-lines i:nth-child(3){width:88%;background:color-mix(in srgb,var(--preset-accent) 18%,#fff)}
.task-workspace .tw-pay-cta{position:relative;overflow:hidden;isolation:isolate;box-shadow:0 9px 20px -12px #174b9e;min-width:150px}.task-workspace .tw-pay-cta:before{content:"";position:absolute;inset:-20% auto -20% -55%;width:42%;z-index:-1;background:linear-gradient(100deg,transparent,#ffffff80,transparent);transform:skewX(-15deg);transition:translate 520ms var(--tw-ease-out)}

.task-workspace .tw-task-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;flex-shrink:0}.task-workspace .tw-task-metric{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:9px 14px;border:1px solid #d9e4f2;border-radius:11px;background:linear-gradient(145deg,#fff,#f5f9ff);overflow:hidden}.task-workspace .tw-task-metric:before{content:"";width:7px;height:7px;border-radius:50%;background:#e59635;box-shadow:0 0 0 5px #fff0db}.task-workspace .tw-task-metric[data-bucket=active]:before{background:#357cd2;box-shadow:0 0 0 5px #e2efff}.task-workspace .tw-task-metric[data-bucket=done]:before{background:#3d9a72;box-shadow:0 0 0 5px #e4f5ed}.task-workspace .tw-task-metric span{margin-right:auto;font-size:12px;color:var(--muted)}.task-workspace .tw-task-metric strong{font-size:23px;color:var(--ink);font-variant-numeric:tabular-nums}
.task-workspace .tw-task-list{display:grid;grid-template-columns:1fr;gap:7px;align-content:start;flex:1;min-height:0}.task-workspace .tw-task-group{display:flex;align-items:center;gap:8px;min-height:20px;color:var(--muted);font-size:10px;letter-spacing:.08em}.task-workspace .tw-task-group:after{content:"";height:1px;flex:1;background:#e2eaf4}.task-workspace .tw-task-group span{order:2;letter-spacing:0}.task-workspace .tw-task-item{position:relative;display:grid;grid-template-columns:5px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:13px;row-gap:5px;min-height:74px;padding:11px 14px 11px 9px;border-color:#d9e3ef;border-radius:12px;background:linear-gradient(115deg,#fff,#fbfdff);text-align:left;white-space:normal;overflow:hidden;box-shadow:0 7px 20px -22px #143c6d;animation:tw-card-enter 380ms var(--tw-ease-out) both;animation-delay:calc(var(--tw-index) * 55ms);transition:transform 190ms var(--tw-ease-out),border-color 180ms ease,box-shadow 180ms ease}
.task-workspace .tw-task-rail{grid-column:1;grid-row:1/-1;align-self:stretch;border-radius:99px;background:#d9923e;box-shadow:0 0 0 4px #fff1df}.task-workspace .tw-task-item[data-state=analyze_queued] .tw-task-rail,.task-workspace .tw-task-item[data-state=analyzing] .tw-task-rail,.task-workspace .tw-task-item[data-state=generate_queued] .tw-task-rail,.task-workspace .tw-task-item[data-state=generating] .tw-task-rail,.task-workspace .tw-task-item[data-state=revision_queued] .tw-task-rail,.task-workspace .tw-task-item[data-state=revising] .tw-task-rail{background:#347bd1;box-shadow:0 0 0 4px #e5f0ff;animation:tw-status-pulse 1.9s ease-in-out infinite}.task-workspace .tw-task-item[data-state=delivered] .tw-task-rail{background:#409973;box-shadow:0 0 0 4px #e5f5ee}.task-workspace .tw-task-item[data-state=refunded] .tw-task-rail{background:#91a0b2;box-shadow:0 0 0 4px #edf1f5}
.task-workspace .tw-task-main{grid-column:2;grid-row:1;display:flex;align-items:baseline;gap:10px;min-width:0}.task-workspace .tw-task-main strong{font-size:16px;white-space:nowrap}.task-workspace .tw-task-main small{min-width:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-workspace .tw-task-state{grid-column:3;grid-row:1;display:flex;align-items:center;gap:12px}.task-workspace .tw-task-next{font-size:12px;font-weight:700;color:var(--blue);white-space:nowrap}.task-workspace .tw-task-meta{grid-column:2/4;grid-row:2;display:flex;gap:8px;font-size:11px;color:var(--muted)}.task-workspace .tw-task-meta span+span:before{content:"·";margin-right:8px}.task-workspace .tw-task-progress{position:absolute;left:27px;right:14px;bottom:0;height:3px;border-radius:99px;background:#e4edf8;overflow:hidden}.task-workspace .tw-task-progress i{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f70cd,#70aff0);transform-origin:left;transform:scaleX(.2)}.task-workspace .tw-task-progress.is-indeterminate i{width:28%;animation:tw-task-run 1.8s var(--tw-ease-in-out) infinite}

/* Restore the tactile workspace response that was accidentally hidden. */
.studio-page:not(.is-visitor) .nav-impact{display:block}.studio-page:not(.is-visitor) .workspace-action.is-activated .nav-impact{animation:tw-impact 380ms var(--tw-ease-out)}
@media(hover:hover) and (pointer:fine){.studio-page:not(.is-visitor) .nav-spotlight{display:block}.studio-page #task-panel .subject-options label:hover,.task-workspace .service-option:hover,.task-workspace .tw-preset-card:hover,.task-workspace .tw-task-item:hover{transform:translateY(-2px);border-color:#8fb0df;box-shadow:0 15px 27px -22px #164984}.task-workspace .tw-pay-cta:hover:before{translate:420% 0}.task-workspace .creation-steps button:hover{transform:translateY(-1px)}}

@keyframes tw-page-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes tw-card-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes tw-step-pop{0%{transform:scale(.72);box-shadow:0 0 0 0 #2f6fd55c}55%{transform:scale(1.12);box-shadow:0 0 0 8px #2f6fd500}100%{transform:none}}
@keyframes tw-choice-lock{0%{transform:scale(.985)}55%{transform:scale(1.012)}100%{transform:none}}
@keyframes tw-check-in{from{opacity:0;transform:scale(.55) rotate(-25deg)}to{opacity:1;transform:none}}
@keyframes tw-status-pulse{0%,100%{filter:saturate(1);transform:scaleY(.86)}50%{filter:saturate(1.25);transform:scaleY(1)}}
@keyframes tw-task-run{from{transform:translateX(-115%)}to{transform:translateX(410%)}}
@keyframes tw-impact{0%{opacity:0;transform:scale(.94)}40%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.04)}}

@media(max-height:700px) and (min-width:761px){.task-workspace .tw-preset-card{min-height:92px;padding:6px}.task-workspace .tw-preset-swatch{height:47px}.task-workspace .tw-preset-stage{height:130px}.task-workspace .creation-page[data-create-page="3"] textarea{height:68px;min-height:68px;max-height:68px}.task-workspace .tw-task-metric{min-height:42px;padding:5px 11px}.task-workspace .tw-task-metric strong{font-size:19px}.task-workspace .tw-task-item{min-height:60px;padding-block:7px}.task-workspace .tw-task-list{gap:4px}.task-workspace .tw-task-group{min-height:15px}.task-workspace .tw-preset-copy small{display:none}}
@media(max-width:760px){.task-workspace .subject-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.task-workspace .tw-preset-card{min-height:105px;padding:6px}.task-workspace .tw-preset-swatch{height:59px}.task-workspace .tw-preset-copy{display:block}.task-workspace .tw-preset-copy strong{display:block;font-size:11px}.task-workspace .tw-preset-copy small{display:none}.task-workspace .tw-task-overview{gap:6px}.task-workspace .tw-task-metric{min-height:45px;padding:7px 9px}.task-workspace .tw-task-metric:before{width:6px;height:6px;box-shadow:none}.task-workspace .tw-task-metric span{font-size:10px}.task-workspace .tw-task-metric strong{font-size:19px}.task-workspace .tw-task-item{min-height:70px;padding:9px 10px 9px 7px;column-gap:9px}.task-workspace .tw-task-main{display:block}.task-workspace .tw-task-main strong{display:block;font-size:14px}.task-workspace .tw-task-main small{display:block;font-size:10px;max-width:38vw}.task-workspace .tw-task-state{gap:5px}.task-workspace .tw-task-next{font-size:10px}.task-workspace .tw-task-meta{font-size:10px}.task-workspace .tw-task-progress{left:21px;right:10px}}
@media(max-width:600px){.task-workspace .creation-page[data-create-page="3"] .tw-template-example{display:none}.task-workspace .tw-preset-grid{gap:6px}.task-workspace .tw-preset-card{min-height:96px}.task-workspace .tw-preset-swatch{height:54px}.task-workspace .tw-pay-cta{min-width:126px}}
.task-workspace .tw-waiting :is(.wr-tiles,.wr-memory,.wr-stars){width:min(100%,var(--wr-board-size));height:auto;max-width:100%;max-height:none;aspect-ratio:1}.task-workspace .tw-waiting .wr-memory{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}.task-workspace .tw-waiting .wr-stars{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
@media(prefers-reduced-motion:reduce){.studio-page:not(.is-visitor) .nav-spotlight,.studio-page:not(.is-visitor) .nav-impact{display:none!important}.task-workspace .tw-preset-swatch:before,.task-workspace .tw-preset-stage:before{transition:none;transform:none}.task-workspace .tw-task-progress.is-indeterminate i{transform:scaleX(.35)}}

/* Recharge amount selection retains native focus and the existing panXy button system.
   Uiverse candidates reviewed; their hidden radio inputs and scaling were unsuitable. */
.task-workspace .tw-topup{display:flex;flex-direction:column;justify-content:center;gap:18px;min-width:0;flex:1}
.task-workspace .tw-topup-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.task-workspace .tw-topup-title h3{font-size:21px;margin:0}
.task-workspace .tw-topup-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.task-workspace .tw-topup-option{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:12px;padding:25px 20px;min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);cursor:pointer;text-align:left;transition:border-color .18s,background-color .18s}
.task-workspace .tw-topup-option strong{font-size:29px;font-weight:650;letter-spacing:-.04em;line-height:1.15}
.task-workspace .tw-topup-option>span:last-child{font-size:13px;color:var(--muted)}
.task-workspace .tw-topup-option[aria-pressed=true]{border-color:var(--blue);background:#edf4ff;box-shadow:inset 0 0 0 1px var(--blue)}
.task-workspace .tw-topup-check{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--line);border-radius:50%;color:transparent;font-size:12px}
.task-workspace .tw-topup-option[aria-pressed=true] .tw-topup-check{color:white;background:var(--blue);border-color:var(--blue)}
.task-workspace .tw-topup-option:focus-visible{outline:3px solid #447ebb;outline-offset:3px}
.task-workspace .tw-topup-form{display:flex;flex-direction:column;gap:8px}
.task-workspace .tw-topup-action{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px}
.task-workspace .tw-topup-credit{font-size:15px;font-weight:600;margin:0}
.task-workspace .tw-topup-submit{min-width:140px;min-height:48px}
.task-workspace .tw-topup-note,.task-workspace .tw-topup-closed{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.task-workspace .tw-topup-closed{color:#835327}
.task-workspace #tw-topup-validation:empty{display:none}
.task-workspace .tw-topup-amount input{width:100%;height:44px}
@media(max-height:700px){.task-workspace .tw-topup{gap:10px}.task-workspace .tw-topup-option{padding:15px}.task-workspace .tw-topup-option strong{font-size:25px}}
@media(max-width:760px){.task-workspace .tw-topup{gap:12px}.task-workspace .tw-topup-title{flex-wrap:wrap;gap:4px}.task-workspace .tw-topup-title h3{font-size:18px}.task-workspace .tw-topup-options{gap:8px}.task-workspace .tw-topup-option{padding:24px 10px 14px;gap:8px;border-radius:12px}.task-workspace .tw-topup-option strong{font-size:23px}.task-workspace .tw-topup-option>span:last-child{font-size:11px}.task-workspace .tw-topup-check{width:16px;height:16px;right:7px;top:6px;font-size:10px}.task-workspace .tw-topup-action{flex-wrap:wrap;gap:10px}.task-workspace .tw-topup-submit{min-width:115px}.task-workspace .tw-topup-credit{font-size:13px}}

.task-workspace .tw-wallet-content{flex:1;min-height:0}
.task-workspace .tw-topup{flex:1 0 auto}
.task-workspace .tw-topup-amount .tw-field{flex-direction:row;align-items:center;gap:12px}
.task-workspace .tw-topup-amount .tw-field>span{white-space:nowrap}
.task-workspace .tw-topup-amount input{flex:1;min-width:0}
@media(max-height:700px) and (min-width:761px){.task-workspace .tw-wallet-content{gap:6px}.task-workspace .tw-wallet-content .tw-wallet-summary{margin:0}.task-workspace .tw-topup-option{padding:12px 16px;gap:6px}.task-workspace .tw-topup-submit{min-height:40px}.task-workspace .tw-topup-title h3{font-size:18px}.task-workspace .tw-topup{gap:8px}}

/* Account composition: one balance focal point, one task area. Mobile changes view. */
.studio-page #task-panel.is-wallet{padding:24px;gap:18px}
.task-workspace.is-wallet .tw-heading h2{font-size:21px}
.task-workspace .tw-wallet-grid{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.25fr);gap:28px;flex:1;min-height:0}
.task-workspace .tw-wallet-switch,.task-workspace .tw-mobile-recharge{display:none}
.task-workspace .tw-balance-hero{display:flex;flex-direction:column;justify-content:center;gap:20px;padding:26px;border-radius:17px;background:linear-gradient(150deg,#2a67d3,#194998);color:#fff;box-shadow:0 16px 30px -25px #163d88;min-width:0}
.task-workspace .tw-wallet-identity{display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.task-workspace .tw-wallet-identity>strong{font-size:20px;font-weight:600;line-height:1.3}
.task-workspace .tw-wallet-identity>span:last-child{font-size:12px;color:#d1e2ff}
.task-workspace .tw-eyebrow{font-size:11px;letter-spacing:.09em;color:#c1d9ff}
.task-workspace .tw-balance-total{display:flex;flex-direction:column;gap:4px}
.task-workspace .tw-balance-total>span{font-size:13px;color:#d9e7ff}
.task-workspace .tw-balance-total>strong{font-size:clamp(32px,4.1vw,55px);letter-spacing:-.04em;line-height:1.12;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.task-workspace .tw-balance-breakdown{display:flex;flex-wrap:wrap;gap:14px 24px}
.task-workspace .tw-balance-breakdown>div{display:flex;flex-direction:column;gap:5px}
.task-workspace .tw-balance-breakdown span{font-size:12px;color:#c9dcff}
.task-workspace .tw-balance-breakdown strong{font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}
.task-workspace .tw-benefit-summary{display:flex;align-items:center;gap:10px;padding-top:19px;border-top:1px solid #ffffff40}
.task-workspace .tw-benefit-summary>div{display:flex;flex-direction:column;gap:5px;flex:1}
.task-workspace .tw-benefit-summary strong{font-size:14px;font-weight:550}.task-workspace .tw-benefit-summary span{font-size:11px;color:#c9dcff}
.task-workspace .tw-benefit-summary .button{padding:5px 10px;background:#ffffff1a;color:#fff;border-color:#ffffff50;white-space:nowrap}
.task-workspace .tw-wallet-panel{display:flex;flex-direction:column;justify-content:center;gap:13px;min-width:0;min-height:0;padding:12px 0}
.task-workspace .tw-wallet-panel h3{margin:0;font-size:21px}
.task-workspace .tw-wallet-panel .tw-topup{flex:0 1 auto;gap:24px}
.task-workspace .tw-wallet-panel .tw-topup-option{padding:30px 15px 20px;gap:10px}
.task-workspace .tw-wallet-panel .tw-topup-option strong{font-size:29px}
.task-workspace .tw-wallet-panel .tw-topup-option>span:last-child{font-size:12px}
.task-workspace .tw-wallet-panel .tw-topup-title{flex-wrap:wrap;gap:4px 12px}
.task-workspace .tw-wallet-panel .tw-topup-action{align-items:flex-start;flex-direction:column;gap:14px}
.task-workspace .tw-wallet-panel .tw-topup-submit{width:100%}
.task-workspace .tw-wallet-panel .tw-ledger{flex:0 1 auto;gap:10px}
.task-workspace .tw-wallet-panel .tw-ledger strong{white-space:nowrap;font-size:15px;font-variant-numeric:tabular-nums}
.task-workspace .tw-wallet-panel .tw-ledger .tw-copy{font-size:13px}
.task-workspace .tw-wallet-payment{display:grid;grid-template-columns:1fr 160px;align-content:center;align-items:center;gap:10px 18px}
.task-workspace .tw-wallet-payment>.tw-qr{grid-column:2;grid-row:1/4;width:160px;height:160px}
.task-workspace .tw-wallet-payment>.help{font-size:12px}
.task-workspace .tw-wallet-payment>.button{min-width:0}
.task-workspace .tw-benefit{display:flex;flex-direction:column;gap:15px}
.task-workspace .tw-benefit-heading{display:flex;align-items:baseline;gap:10px}.task-workspace .tw-benefit-heading .tw-eyebrow{color:var(--blue)}
.task-workspace .tw-benefit-form{display:flex;flex-direction:column;gap:12px}
.task-workspace .tw-benefit-form .tw-field{flex-direction:row;align-items:center;gap:14px}
.task-workspace .tw-benefit-form .tw-field>span{width:48px;flex-shrink:0}
.task-workspace .tw-benefit-form input:not([type=checkbox]){height:44px}
.task-workspace .tw-benefit-form .check-label{line-height:1.6}
.task-workspace .tw-benefit-resend{display:flex;gap:10px}
.task-workspace .tw-benefit .help{font-size:12px;line-height:1.6;margin:0}
.task-workspace .tw-benefit-success{color:#257252;font-size:19px;font-weight:600}
@media(max-height:700px) and (min-width:761px){
 .studio-page #task-panel.is-wallet{padding:14px!important;gap:9px}
 .task-workspace .tw-wallet-grid{gap:22px}.task-workspace .tw-balance-hero{padding:20px;gap:16px}
 .task-workspace .tw-balance-total>strong{font-size:40px}.task-workspace .tw-benefit-summary{padding-top:12px}
 .task-workspace .tw-wallet-panel{padding:0;gap:9px}.task-workspace .tw-wallet-panel .tw-topup{gap:12px}
 .task-workspace .tw-wallet-panel .tw-topup-option{padding:20px 14px 12px;gap:7px}
 .task-workspace .tw-wallet-panel .tw-topup-action{flex-direction:row;align-items:center;gap:10px}
 .task-workspace .tw-wallet-panel .tw-topup-submit{width:auto}
 .task-workspace .tw-benefit{gap:9px}.task-workspace .tw-benefit-form{gap:9px}.task-workspace .tw-benefit-form input:not([type=checkbox]){height:40px}
}
@media(max-width:900px) and (min-width:761px){
 .task-workspace .tw-wallet-grid{grid-template-columns:minmax(230px,.8fr) minmax(0,1fr);gap:18px}.task-workspace .tw-balance-hero{padding:22px}
 .task-workspace .tw-wallet-panel .tw-topup-options{gap:7px}.task-workspace .tw-wallet-panel .tw-topup-option{padding:28px 10px 15px}.task-workspace .tw-wallet-panel .tw-topup-option strong{font-size:24px}.task-workspace .tw-wallet-panel .tw-topup-option>span:last-child{font-size:11px}
}
@media(max-width:760px){
 .studio-page #task-panel.is-wallet{padding:14px!important;gap:12px}
 .task-workspace .tw-wallet-switch{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}
 .task-workspace .tw-wallet-switch .button[aria-pressed=true]{background:#eef4ff;color:var(--blue);border-color:var(--blue)}
 .task-workspace .tw-wallet-grid{display:flex;flex-direction:column;gap:0;flex:1}
 .task-workspace .tw-wallet-content[data-pane=balance] .tw-wallet-panel,.task-workspace .tw-wallet-content[data-pane=recharge] .tw-balance-hero{display:none}
 .task-workspace .tw-balance-hero{flex:1;padding:25px;gap:23px}.task-workspace .tw-balance-total>strong{font-size:44px}
 .task-workspace .tw-mobile-recharge{display:block;background:#fff;color:var(--blue);border-color:#fff}
 .task-workspace .tw-wallet-panel{flex:1;padding:6px 0;gap:15px}.task-workspace .tw-wallet-panel .tw-topup{gap:18px}
 .task-workspace .tw-wallet-panel .tw-topup-option{padding:28px 10px 16px;gap:9px}.task-workspace .tw-wallet-panel .tw-topup-option strong{font-size:25px}.task-workspace .tw-wallet-panel .tw-topup-option>span:last-child{font-size:11px}
 .task-workspace .tw-wallet-panel .tw-topup-action{gap:12px}.task-workspace .tw-wallet-panel .tw-topup-submit{width:100%}
 .task-workspace .tw-wallet-payment{display:flex}.task-workspace .tw-wallet-payment>.tw-qr{width:145px;height:145px}
 .task-workspace .tw-benefit-heading{flex-wrap:wrap;gap:4px 10px}.task-workspace .tw-benefit-heading h3{font-size:20px}
}
@media(max-height:700px) and (min-width:761px){
 .task-workspace .tw-balance-hero{padding:18px 22px;gap:12px}
 .task-workspace .tw-wallet-identity{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:4px 10px}
 .task-workspace .tw-wallet-identity>span:last-child{grid-column:1/-1}
 .task-workspace .tw-benefit-summary{padding-top:10px}
 .task-workspace .tw-benefit-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}
 .task-workspace .tw-benefit-form>.check-label,.task-workspace .tw-benefit-form>.help,.task-workspace .tw-benefit-form>.status-message{grid-column:1/-1}
 .task-workspace .tw-benefit-form .tw-field{gap:8px}
 .task-workspace .tw-benefit-form .tw-field:only-of-type{grid-column:1/-1}
 .task-workspace .tw-benefit-form .tw-benefit-resend{gap:8px}
 .task-workspace .tw-benefit-form .tw-benefit-resend .button{flex:1;padding:5px 8px;font-size:12px}
 .task-workspace .tw-benefit-form .status-message{margin:0;padding:6px 10px;font-size:12px}
}

/* Workspace v7: a content-shaped desktop workspace with a single materials/design step.
   Upload-zone recipe adapted from Uiverse.io by Yaya12085, tender-moose-95 (MIT).
   Pricing recipes were inspected; existing panXy plan controls remain authoritative. */
.studio-page:has(#task-panel:not([hidden]))>.container{max-width:1240px;width:calc(100% - 64px);padding-top:20px;gap:10px}
.studio-page:has(#task-panel:not([hidden])) #workspace{height:100%;max-height:820px;flex:1;min-height:0}
.studio-page:has(#task-panel:not([hidden])) main{padding-top:14px;min-height:0}
.studio-page:has(#task-panel:not([hidden])) .site-header{min-height:54px;height:54px;border-radius:16px}
.studio-page:has(#task-panel:not([hidden])) .workspace-nav{min-height:58px;padding-bottom:12px;gap:9px;justify-content:flex-start}
.studio-page:has(#task-panel:not([hidden])) .workspace-action{min-height:46px;border-radius:12px;padding:8px 15px;min-width:172px}
.studio-page:has(#task-panel:not([hidden])) .workspace-icon{width:30px;height:30px;flex-basis:30px;border-radius:8px}
.studio-page:has(#task-panel:not([hidden])) .workspace-label{font-size:14px}
.studio-page:has(#task-panel:not([hidden])) .workspace-label small{display:none}
.studio-page #task-panel{padding:24px 28px!important;border-radius:20px;gap:16px;box-shadow:0 12px 40px -24px #28426938;background:#fffffffa}
.studio-page #task-panel .tw-heading{gap:6px 15px;align-items:baseline}
.studio-page #task-panel .tw-heading h2{font-size:25px;font-weight:650;letter-spacing:-.04em;line-height:1.3}
.studio-page #task-panel .tw-heading .help{font-size:13px}
.studio-page #task-panel .creation-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:750px;width:100%;align-self:center}
.studio-page #task-panel .creation-steps button{min-height:40px;font-size:13px;justify-content:center;border-radius:0;border-bottom:2px solid #e6ecf3;padding:7px 6px;background:transparent;gap:9px}
.studio-page #task-panel .creation-steps button span{width:23px;height:23px;font-size:12px}
.studio-page #task-panel .creation-steps button[aria-current=step]{border-bottom-color:var(--blue);color:var(--blue)}
.studio-page #task-panel .creation-page{padding:0;justify-content:center;gap:12px}
.studio-page #task-panel .button{border-radius:9px;font-size:14px;min-height:42px}
.studio-page #task-panel .button svg{width:18px;height:18px;flex-shrink:0}
.studio-page #task-panel .tw-footer{padding-top:14px;gap:12px;border-color:#e9edf2}
.studio-page #task-panel .tw-footer .help{font-size:12px;max-width:none}
.studio-page #task-panel .tw-next-action{gap:10px;min-width:150px;display:inline-flex;align-items:center;justify-content:center}
.studio-page #task-panel .tw-create-columns{gap:36px}
.studio-page #task-panel .subject-controls{gap:18px}
.studio-page #task-panel .subject-options{gap:8px}
.studio-page #task-panel .subject-options label{border-radius:12px;min-height:68px;padding:12px 9px}
.studio-page #task-panel .subject-options label b{font-size:15px}
.studio-page #task-panel .subject-options label small{font-size:12px}
.studio-page #task-panel .service-option{min-height:148px;padding:18px 14px;border-radius:13px;box-shadow:none}
.studio-page #task-panel .service-option strong{font-size:21px}
.studio-page #task-panel .service-option small{font-size:12px;line-height:1.6}
.studio-page #task-panel .plan-price{font-size:18px;margin-top:18px}
.studio-page #task-panel .service-option:has(input:checked){box-shadow:inset 0 0 0 1px currentColor}
.studio-page #task-panel .tw-product-scope{font-size:12px;line-height:1.6}
.tw-fixed-scope{display:flex;align-items:center;gap:10px;padding:14px 0;border-block:1px solid #e9edf2;font-size:13px}
.tw-fixed-scope svg{height:22px;width:22px;color:var(--blue)}.tw-fixed-scope strong{margin-left:auto;font-size:15px;white-space:nowrap}
.tw-caption{color:var(--muted);font-size:12px}.tw-section-title{display:flex;align-items:baseline;gap:10px;justify-content:space-between;flex-shrink:0}
.studio-page #task-panel .tw-section-title h3{font-size:19px;margin:0;letter-spacing:-.02em}
.tw-composer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;min-height:0;align-items:start;margin:auto 0;width:100%}
.tw-material-panel,.tw-appearance-panel{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0}
.tw-appearance-panel{padding-left:30px;border-left:1px solid #e6ebf1}
.studio-page #task-panel .tw-field{font-size:13px;gap:7px;font-weight:500}
.studio-page #task-panel :is(.tw-field input,.tw-field textarea){border:1px solid #d9e1eb;border-radius:10px;background:#fff;font-size:14px;line-height:1.55;padding:10px 12px;color:var(--ink);min-width:0}
.studio-page #task-panel .tw-field input:focus,.studio-page #task-panel .tw-field textarea:focus{outline:2px solid #95b5e9;outline-offset:2px}
.studio-page #task-panel .tw-field textarea{height:92px;min-height:92px;max-height:92px}
.studio-page #task-panel .tw-field .is-manuscript{height:162px;min-height:162px;max-height:162px}
.studio-page #task-panel .tw-upload-zone{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:30px 20px;min-height:190px;border:1.5px dashed #b5c9e1;border-radius:15px;background:linear-gradient(145deg,#f5f9ff,#fbfdff);cursor:pointer;transition:background 180ms,border-color 180ms,transform 180ms}
.studio-page #task-panel .tw-upload-zone:hover,.studio-page #task-panel .tw-upload-zone.is-dragover{border-color:var(--blue);background:#edf4ff}
.studio-page #task-panel .tw-upload-zone:focus-within{outline:3px solid #89abe1;outline-offset:3px}
.studio-page #task-panel .tw-upload-zone>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;cursor:pointer;border:0;min-height:0}
.tw-upload-mark{display:grid;place-items:center;width:50px;height:50px;border:1px solid #d6e3f5;border-radius:15px;background:#fff;color:var(--blue);box-shadow:0 6px 14px -10px #2d5eae60;transform:rotate(-5deg)}.tw-upload-mark svg{width:27px;height:27px}
.tw-upload-copy{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;min-width:0}.tw-upload-copy strong{font-size:16px;font-weight:600}.tw-upload-copy small{font-size:12px;color:var(--muted);font-weight:400}
.studio-page #task-panel .tw-upload-zone.is-compact{flex-direction:row;min-height:72px;padding:12px 16px;gap:13px;justify-content:flex-start}
.tw-upload-zone.is-compact .tw-upload-mark{width:34px;height:34px;border-radius:10px;flex-shrink:0;transform:none}.tw-upload-zone.is-compact .tw-upload-mark svg{width:20px;height:20px}.tw-upload-zone.is-compact .tw-upload-copy{align-items:flex-start;text-align:left;gap:3px}.tw-upload-zone.is-compact .tw-upload-copy strong{font-size:14px}
.tw-material-tip{display:flex;gap:9px;padding:12px 0 0;border-top:1px solid #ecf0f5;align-items:flex-start;color:var(--muted)}.tw-material-tip>svg{width:18px;height:18px;flex-shrink:0;margin-top:1px}.studio-page #task-panel .tw-material-tip p{font-size:12px;line-height:1.6;margin:0}.tw-upload-limits{margin-top:-8px!important}
.tw-source-modes,.tw-style-modes{display:flex;gap:5px;background:#f1f4f8;border:1px solid #e6ebf1;padding:4px;border-radius:11px}
.studio-page #task-panel :is(.tw-source-modes,.tw-style-modes) .button{border:1px solid transparent;background:transparent;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;font-size:13px;flex:1;padding:7px 5px;color:#5a6b80;white-space:nowrap}
.studio-page #task-panel :is(.tw-source-modes,.tw-style-modes) .button[aria-pressed=true]{background:white;border-color:#dde5f0;box-shadow:0 2px 5px #203d6410;color:#243f65}
.studio-page #task-panel :is(.tw-source-modes,.tw-style-modes) svg{width:15px;height:15px}.tw-style-option small{font-size:9px;letter-spacing:.04em;font-weight:700;color:#997235}
.tw-plan-pill{padding:4px 8px;border-radius:6px;background:#f4ede0;color:#846439;font-size:11px;white-space:nowrap}
.tw-composer-tabs{display:none;gap:6px}.tw-composer-tabs .button{flex:1}.tw-composer-tabs .button[aria-pressed=true]{background:#eff4fc;color:var(--blue);border-color:#b3c9e8}
.studio-page #task-panel .tw-preset-grid{gap:8px}.studio-page #task-panel .tw-preset-card{padding:6px;min-height:106px;gap:7px;border-radius:10px;animation:none}.studio-page #task-panel .tw-preset-card>strong{font-size:12px;padding:0 3px;font-weight:500}.studio-page #task-panel .tw-preset-swatch{height:67px;flex-shrink:0}
.tw-style-sample{background:var(--preset-paper,#f4f7fc);border:1px solid #e0e7ec;padding:22px 22px 19px;min-height:124px;border-radius:12px;position:relative;border-left:4px solid var(--preset-accent);display:flex;flex-direction:column;gap:9px}.tw-sample-eyebrow{font-size:10px;letter-spacing:.1em;font-weight:600;color:var(--muted)}.tw-style-sample strong{font:600 22px/1.4 'Songti SC',Georgia,serif;color:var(--preset-accent)}.studio-page #task-panel .tw-style-sample p{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}
.tw-custom-example{display:grid;grid-template-columns:126px minmax(0,1fr);gap:16px;align-items:center;background:#f6f7f5;border:1px solid #e5e8e0;padding:12px;border-radius:12px;min-height:126px}.tw-custom-example img{width:100%;max-height:105px;object-fit:contain;filter:drop-shadow(0 4px 5px #152e3c18)}.tw-custom-example>div{display:flex;flex-direction:column;gap:7px}.tw-custom-example strong{font-size:15px;line-height:1.5}.studio-page #task-panel .tw-custom-example p{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.tw-pro-gate{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:17px;background:#fcf7ed;border:1px solid #e9d8b5;border-radius:12px;color:#745526}.tw-pro-gate>svg{width:22px;height:22px;margin-top:2px}.tw-pro-gate strong{font-size:15px}.studio-page #task-panel .tw-pro-gate p{font-size:12px;margin:5px 0 0;line-height:1.5;color:#8a744f}.studio-page #task-panel .tw-upgrade-action{grid-column:1/-1;background:#8b672e;border-color:#8b672e;color:white;font-size:13px;min-height:40px}
.studio-page #task-panel .tw-text-action{border:0;border-radius:0;background:none;padding:2px 0;min-height:28px;font-size:12px;color:var(--muted);text-align:left;align-self:flex-start;text-decoration:underline;text-underline-offset:4px}
.tw-attached-file{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #dce5ef;border-radius:11px;background:#fff}.tw-file-visual{width:40px;height:46px;display:grid;place-items:center;color:#5c7dad;background:#f2f6fb;border-radius:5px}.tw-file-visual img{width:100%;height:100%;object-fit:contain}.tw-file-visual svg{height:24px;width:24px}.tw-file-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.tw-file-copy strong{font-size:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;font-weight:500}.tw-file-copy small{font-size:11px;color:var(--muted)}.tw-file-actions{display:flex;gap:5px}.studio-page #task-panel .tw-file-actions .button{font-size:12px;padding:4px 8px;min-height:34px}
.tw-notes-editor{max-width:760px;width:100%;margin:auto;display:flex;flex-direction:column;gap:16px}.studio-page #task-panel .tw-notes-editor textarea{height:200px;min-height:200px;max-height:200px}.tw-notes-editor>.button{align-self:flex-start}
.tw-checkout-summary{max-width:690px;width:100%;align-self:center;display:flex;flex-direction:column;gap:18px}.tw-checkout-heading{position:relative;padding-bottom:18px;border-bottom:1px solid #e3e9f0;display:grid;grid-template-columns:1fr auto;gap:7px}.tw-checkout-heading>span{grid-column:1/-1}.studio-page #task-panel .tw-checkout-heading h3{font-size:25px;align-self:center;margin:0}.tw-review-list{margin:0;display:grid;grid-template-columns:92px minmax(0,1fr);gap:11px;font-size:14px}.tw-review-list dt{color:var(--muted)}.tw-review-list dd{margin:0;overflow-wrap:anywhere}.studio-page #task-panel .tw-checkout-summary .check-label{font-size:13px;line-height:1.6;padding-top:10px;border-top:1px solid #e6ecf3}
/* Delivery is an editorial cover plus the next useful actions. */
.studio-page #task-panel[data-view=detail] .tw-subnav{gap:18px;border-bottom:1px solid #e7ecf2;padding-bottom:0}
.studio-page #task-panel[data-view=detail] .tw-subnav .button{background:none;border:0;border-radius:0;padding:6px 0 10px;color:var(--muted);font-size:13px}
.studio-page #task-panel[data-view=detail] .tw-subnav .button[aria-pressed=true]{color:var(--blue);box-shadow:0 2px var(--blue)}
.tw-delivery{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:center;gap:54px;width:100%;max-width:840px;margin:auto;min-height:0}
.tw-lesson-cover{display:flex;flex-direction:column;gap:14px;justify-content:space-between;background:#eef4fb;color:#254771;border:1px solid #d5e1ef;border-radius:7px 17px 17px 7px;box-shadow:inset 7px 0 #dae6f4,12px 17px 30px -20px #25496a55;aspect-ratio:3/4;padding:23px;text-decoration:none;transition:transform 220ms var(--tw-ease-out),box-shadow 220ms}
.tw-lesson-cover[data-subject=speech]{background:#f3f1e8;color:#615a39;border-color:#e2ddce;box-shadow:inset 7px 0 #e9e5d5,12px 17px 30px -20px #51492344}.tw-lesson-cover[data-subject=english]{background:#edf4ef;color:#3b634d;border-color:#d9e7dc;box-shadow:inset 7px 0 #dce9e1,12px 17px 30px -20px #234b3344}
.tw-cover-brand{font-size:11px;letter-spacing:.08em;font-weight:600}.tw-cover-art{height:106px;display:grid;place-items:center;align-self:stretch;border:1px solid currentColor;border-radius:50%;width:106px;margin:auto;opacity:.6}.tw-cover-art svg{width:54px;height:54px;stroke-width:1}.tw-cover-title{font:600 24px/1.5 'Songti SC',Georgia,serif;max-width:7em}.tw-cover-open{font-size:11px;margin-top:8px}
.tw-delivery-copy{display:flex;flex-direction:column;gap:16px;min-width:0}.tw-ready-label{display:flex;gap:7px;align-items:center;color:#397859;font-size:12px}.tw-ready-label svg{width:20px;height:20px;padding:3px;background:#e8f4ed;border-radius:50%}.studio-page #task-panel .tw-delivery-copy h3{font-size:32px;letter-spacing:-.04em;margin:0;line-height:1.25}.studio-page #task-panel .tw-delivery-description{font-size:14px;line-height:1.8;color:var(--muted);margin:0;max-width:32em}.tw-delivery-meta{display:flex;gap:8px}.tw-delivery-meta span{font-size:11px;background:#f1f5f9;color:#5f748e;border-radius:5px;padding:4px 8px}.tw-delivery-actions{display:flex;gap:9px;flex-wrap:wrap}.tw-delivery-actions .button{display:flex;align-items:center;gap:12px;justify-content:center}.tw-delivery-support{display:flex;gap:16px;border-top:1px solid #e5ebf2;padding-top:12px}.studio-page #task-panel .tw-delivery-support .button{border:0;border-radius:0;background:transparent;padding:0;font-size:12px;min-height:32px;color:#4c6788}.studio-page #task-panel .tw-delivery-copy>.help{font-size:11px;margin-top:-10px}
/* A portrait original uses the available height, with one compact toolbar. */
.tw-original-viewer{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;max-width:880px;width:100%;align-self:center}.tw-original-toolbar{display:flex;align-items:center;gap:20px;justify-content:space-between}.tw-original-toolbar>div{min-width:0;display:flex;gap:12px;align-items:center}.tw-original-toolbar strong{font-size:13px;font-weight:500;overflow-wrap:anywhere;min-width:0}.tw-original-toolbar>.tw-caption{flex-shrink:0}
.studio-page #task-panel .tw-original-viewer>.tw-source-card{flex:1;min-height:0;position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;padding:0;background:transparent;border:0;border-radius:0;gap:9px}
.studio-page #task-panel .tw-original-viewer .tw-source-card img{width:auto;max-width:100%;height:100%;max-height:100%;object-fit:contain;border:0;border-radius:1px;background:transparent;filter:drop-shadow(0 5px 7px #27333e22);min-height:0}
.studio-page #task-panel .tw-original-viewer .tw-source-card .tw-filename{display:none}.studio-page #task-panel .tw-original-viewer .tw-source-card .button{min-height:34px;padding:4px 14px;font-size:12px;background:white}.tw-original-actions{display:flex;align-items:center;justify-content:center;gap:20px}.tw-original-link{font-size:12px;color:var(--blue)}
@media(hover:hover) and (pointer:fine){.tw-lesson-cover:hover{transform:translateY(-4px) rotate(-1deg);box-shadow:inset 7px 0 #dae6f4,16px 23px 32px -21px #25496a70}}
/* Short laptop viewports keep the same hierarchy with less decorative spacing. */
@media(min-height:761px) and (max-height:880px) and (min-width:761px){
 .studio-page #task-panel{padding:20px 26px!important;gap:12px}
 .studio-page #task-panel .subject-controls{gap:12px}
 .studio-page #task-panel .service-option{min-height:138px;padding:15px 14px}
 .studio-page #task-panel .plan-price{margin-top:14px}
 .tw-material-panel,.tw-appearance-panel{gap:12px}
 .studio-page #task-panel .tw-upload-zone:not(.is-compact){min-height:174px;padding:24px 20px}
 .tw-pro-gate{padding:14px;gap:10px}
}
@media(max-height:760px) and (min-width:761px){
 .studio-page:has(#task-panel:not([hidden]))>.container{padding-top:10px;gap:6px}.studio-page:has(#task-panel:not([hidden])) main{padding-top:4px}.studio-page:has(#task-panel:not([hidden])) .site-header{height:44px;min-height:44px}.studio-page:has(#task-panel:not([hidden])) .workspace-nav{min-height:49px;padding-bottom:6px}.studio-page:has(#task-panel:not([hidden])) .workspace-action{min-height:40px;padding:5px 12px}
 .studio-page #task-panel{padding:16px 22px!important;gap:9px}.studio-page #task-panel .tw-heading h2{font-size:22px}.studio-page #task-panel .creation-steps button{min-height:34px;padding-block:4px}.studio-page #task-panel .tw-footer{padding-top:9px}.studio-page #task-panel .subject-controls{gap:12px}.studio-page #task-panel .subject-options label{min-height:54px;padding:8px}.studio-page #task-panel .service-option{min-height:108px;padding:11px}.studio-page #task-panel .service-option strong{font-size:18px}.studio-page #task-panel .plan-price{font-size:16px;margin-top:9px}.tw-fixed-scope{padding:9px 0}.studio-page #task-panel .tw-preset-card{min-height:85px}.studio-page #task-panel .tw-preset-swatch{height:45px}
 .tw-material-panel,.tw-appearance-panel{gap:10px}.studio-page #task-panel .tw-section-title h3{font-size:17px}.tw-style-sample{padding:13px 17px;min-height:102px;gap:7px}.tw-style-sample strong{font-size:20px}.studio-page #task-panel .tw-upload-zone{min-height:156px;padding:20px}.studio-page #task-panel .tw-upload-zone.is-compact{min-height:58px;padding:9px 12px}.studio-page #task-panel .tw-field textarea{height:67px;min-height:67px;max-height:67px}.studio-page #task-panel .tw-field .is-manuscript{height:114px;min-height:114px;max-height:114px}.tw-custom-example{min-height:102px;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:10px}.tw-custom-example img{max-height:83px}.tw-pro-gate{padding:11px;gap:9px}.tw-material-tip{padding-top:9px}.studio-page #task-panel .tw-field{gap:5px}.studio-page #task-panel .tw-field input{padding:8px 10px}.tw-attached-file{padding:7px 9px}.tw-file-visual{height:36px;width:34px}.tw-delivery{grid-template-columns:190px minmax(0,1fr);gap:40px;max-width:760px}.tw-lesson-cover{padding:19px}.tw-cover-art{width:80px;height:80px}.tw-cover-title{font-size:21px}.tw-delivery-copy{gap:12px}.studio-page #task-panel .tw-delivery-copy h3{font-size:28px}.tw-checkout-summary{gap:11px}.tw-checkout-heading{padding-bottom:10px}.tw-review-list{gap:7px}.tw-original-viewer{gap:8px}
}
@media(max-width:1000px) and (min-width:761px){.studio-page:has(#task-panel:not([hidden]))>.container{width:calc(100% - 36px)}.tw-composer{gap:20px}.tw-appearance-panel{padding-left:20px}.tw-section-title{flex-wrap:wrap;gap:4px}.tw-custom-example{grid-template-columns:90px minmax(0,1fr)}.tw-delivery{gap:28px;grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){
 .studio-page:has(#task-panel:not([hidden]))>.container{width:calc(100% - 20px);padding-top:8px;gap:6px}.studio-page:has(#task-panel:not([hidden])) main{padding-top:2px}.studio-page:has(#task-panel:not([hidden])) .site-header{min-height:44px;height:44px;padding:5px 12px;border-radius:12px}.studio-page:has(#task-panel:not([hidden])) .workspace-nav{min-height:48px;padding-bottom:7px;gap:6px}.studio-page:has(#task-panel:not([hidden])) .workspace-action{min-width:0;flex:1;padding:7px 9px;min-height:40px;gap:6px;border-radius:9px}.studio-page:has(#task-panel:not([hidden])) .workspace-label{font-size:12px}.studio-page:has(#task-panel:not([hidden])) .workspace-icon{width:22px;height:22px;flex-basis:22px}.studio-page:has(#task-panel:not([hidden])) .workspace-nav .help{display:none}
 .studio-page #task-panel{padding:15px!important;gap:12px;border-radius:14px}.studio-page #task-panel .tw-heading h2{font-size:22px;width:auto}.studio-page #task-panel .tw-heading .help{font-size:12px}.studio-page #task-panel .creation-steps{gap:6px}.studio-page #task-panel .creation-steps button{font-size:11px;gap:5px;min-height:38px;padding:6px 2px}.studio-page #task-panel .creation-steps button span{width:20px;height:20px;font-size:10px}.studio-page #task-panel .tw-footer{gap:7px;padding-top:11px}.studio-page #task-panel .tw-footer .help{font-size:10px}.studio-page #task-panel .tw-footer .button{font-size:12px;padding:7px 9px;min-height:40px}.studio-page #task-panel .tw-next-action{min-width:115px;gap:5px}
 .studio-page #task-panel .subject-controls{gap:14px}.studio-page #task-panel .subject-options label{min-height:61px;padding:10px}.studio-page #task-panel .subject-options label b{font-size:14px}.studio-page #task-panel .service-option{min-height:132px;padding:11px}.studio-page #task-panel .service-option strong{font-size:18px}.studio-page #task-panel .service-option small{font-size:12px}.studio-page #task-panel .plan-price{font-size:16px;margin-top:12px}.tw-fixed-scope{font-size:12px;gap:7px}.tw-fixed-scope strong{font-size:13px}
 .tw-composer-tabs{display:flex}.studio-page #task-panel .tw-composer-tabs .button{font-size:12px;padding:6px;min-height:38px}.tw-composer{display:flex;flex-direction:column;gap:0;margin:auto 0;flex:1;justify-content:center}.tw-composer[data-pane=source]>.tw-appearance-panel,.tw-composer[data-pane=appearance]>.tw-material-panel{display:none}.tw-material-panel,.tw-appearance-panel{width:100%;gap:13px}.tw-appearance-panel{padding-left:0;border-left:0}.tw-section-title{gap:5px}.studio-page #task-panel .tw-section-title h3{font-size:18px}.tw-caption{font-size:11px}.studio-page #task-panel .tw-field{font-size:13px}.studio-page #task-panel .tw-field .is-manuscript{height:158px;min-height:158px;max-height:158px}.studio-page #task-panel .tw-upload-zone{min-height:178px;padding:22px 12px}.tw-upload-copy strong{font-size:15px}.tw-upload-copy small{font-size:11px}.studio-page #task-panel .tw-upload-zone.is-compact{min-height:67px;padding:12px}.studio-page #task-panel :is(.tw-source-modes,.tw-style-modes) .button{font-size:12px}.tw-style-option small{font-size:9px}.studio-page #task-panel .tw-preset-card{min-height:99px}.studio-page #task-panel .tw-preset-swatch{height:61px}.studio-page #task-panel .tw-preset-card>strong{font-size:12px}.tw-style-sample{min-height:128px;padding:19px}.tw-custom-example{grid-template-columns:110px minmax(0,1fr);gap:12px}.tw-custom-example strong{font-size:14px}.tw-pro-gate{padding:15px}.tw-attached-file{grid-template-columns:32px minmax(0,1fr) auto;padding:8px;gap:8px}.tw-file-visual{width:32px}.tw-file-actions{gap:3px}.studio-page #task-panel .tw-file-actions .button{font-size:11px;min-height:36px;padding:4px 6px}
 .tw-checkout-summary{gap:16px}.studio-page #task-panel .tw-checkout-heading h3{font-size:22px}.studio-page #task-panel .tw-checkout-heading .tw-total{font-size:28px}.tw-review-list{grid-template-columns:75px minmax(0,1fr);font-size:13px;gap:12px}.studio-page #task-panel .tw-checkout-summary .tw-row .button{font-size:12px}
 .tw-delivery{grid-template-columns:1fr;gap:19px;justify-items:center;margin:auto}.tw-lesson-cover{width:148px;aspect-ratio:4/3;padding:13px 16px;gap:6px;border-radius:5px 11px 11px 5px}.tw-cover-brand{font-size:9px}.tw-cover-art{display:none}.tw-cover-title{font-size:18px;max-width:none}.tw-cover-open{font-size:10px;margin-top:3px}.tw-delivery-copy{align-items:center;gap:12px;text-align:center;width:100%}.studio-page #task-panel .tw-delivery-copy h3{font-size:26px}.studio-page #task-panel .tw-delivery-description{font-size:13px;line-height:1.7}.tw-delivery-actions{width:100%;justify-content:center;gap:7px}.studio-page #task-panel .tw-delivery-actions .button{font-size:12px;padding:8px 11px}.tw-delivery-support{justify-content:center;width:100%;gap:18px}.studio-page #task-panel .tw-delivery-copy>.help{font-size:10px}.tw-original-toolbar{gap:9px}.tw-original-toolbar>div{display:block}.tw-original-toolbar strong{display:block;font-size:12px;margin-top:3px}.tw-original-toolbar .tw-caption{font-size:10px}.studio-page #task-panel .tw-original-viewer>.tw-source-card{padding:0}.tw-original-actions{gap:8px;flex-wrap:wrap}
}
@media(max-height:650px) and (min-width:761px){
 .studio-page #task-panel{padding:12px 18px!important;gap:7px}.studio-page #task-panel .tw-heading h2{font-size:21px}.studio-page #task-panel .creation-page{gap:7px}.studio-page #task-panel .subject-controls{gap:8px}.studio-page #task-panel .tw-heading .help{font-size:12px}.studio-page #task-panel .service-option{min-height:99px}.studio-page #task-panel .subject-options label{min-height:48px;padding:6px}.studio-page #task-panel .creation-steps button{min-height:30px}.tw-material-panel,.tw-appearance-panel{gap:8px}.tw-section-title .tw-caption{font-size:10px}.studio-page #task-panel .tw-field textarea{height:55px;min-height:55px;max-height:55px}.studio-page #task-panel .tw-field .is-manuscript{height:99px;min-height:99px;max-height:99px}.studio-page #task-panel .tw-upload-zone.is-compact{min-height:53px;padding:7px 12px}.tw-speech-attachments .tw-upload-copy small{display:none}.tw-material-tip{padding-top:6px}.tw-custom-example{min-height:88px}.tw-pro-gate{padding:9px}.tw-style-sample{min-height:94px}.studio-page #task-panel .tw-notes-editor textarea{height:140px;min-height:140px;max-height:140px}.tw-delivery{grid-template-columns:165px minmax(0,1fr)}.tw-cover-title{font-size:20px}.tw-cover-art{width:60px;height:60px}.tw-cover-art svg{width:33px;height:33px}.tw-delivery-copy{gap:9px}.studio-page #task-panel .tw-delivery-copy h3{font-size:25px}.tw-delivery-support{padding-top:6px}.tw-checkout-summary{gap:8px}.tw-review-list{gap:5px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.tw-lesson-cover:hover{transform:none}}
.studio-page #task-panel .tw-attachment-toggle{display:flex;align-items:center;gap:8px;align-self:flex-start;min-height:36px;padding:5px 10px;font-size:12px;background:#f7faff;border-color:#e0e8f3}
@media(max-height:760px) and (min-width:761px){
 .studio-page #task-panel .tw-create-columns{gap:24px}.studio-page #task-panel .tw-material-tip{padding-top:6px}.studio-page #task-panel .tw-source-modes .button{min-height:34px}.studio-page #task-panel .tw-section-title h3{font-size:16px}.tw-section-title{gap:6px}.studio-page #task-panel .tw-upload-zone:not(.is-compact){min-height:133px;padding:14px}.tw-upload-mark{width:40px;height:40px}.tw-upload-copy{gap:5px}.tw-material-panel>.help{font-size:12px}
}
@media(max-height:650px) and (min-width:761px){
 .studio-page:has(#task-panel:not([hidden]))>.container{padding-top:6px;gap:4px}.studio-page:has(#task-panel:not([hidden])) .site-header{height:40px;min-height:40px}.studio-page:has(#task-panel:not([hidden])) .workspace-nav{min-height:44px;padding-bottom:4px}.studio-page:has(#task-panel:not([hidden])) main{padding-top:0}.studio-page #task-panel{gap:6px;padding:11px 18px!important}.studio-page #task-panel .creation-steps button{min-height:28px}.studio-page #task-panel .tw-footer{padding-top:6px}.studio-page #task-panel .tw-heading h2{font-size:20px}.studio-page #task-panel .tw-composer{gap:24px}.tw-material-panel,.tw-appearance-panel{gap:7px}.studio-page #task-panel :is(.tw-material-panel,.tw-appearance-panel)>.tw-section-title{display:none}.studio-page #task-panel .tw-style-modes .button{min-height:32px}.studio-page #task-panel .tw-custom-example{min-height:77px;grid-template-columns:83px minmax(0,1fr);padding:8px}.tw-custom-example img{max-height:65px}.studio-page #task-panel .tw-custom-example p{font-size:11px;line-height:1.45}.tw-custom-example>div{gap:4px}.tw-custom-example strong{font-size:14px}.tw-pro-gate{padding:9px;gap:7px}.tw-pro-gate strong{font-size:14px}.studio-page #task-panel .tw-pro-gate p{font-size:11px;margin-top:3px}.studio-page #task-panel .tw-upgrade-action{min-height:34px}.studio-page #task-panel .tw-text-action{min-height:25px}.studio-page #task-panel .tw-preset-card{min-height:75px}.studio-page #task-panel .tw-preset-swatch{height:39px}.tw-style-sample{min-height:77px;padding:10px 15px;gap:5px}.tw-style-sample strong{font-size:18px}.studio-page #task-panel .tw-style-sample p{font-size:11px}.studio-page #task-panel .tw-upload-zone:not(.is-compact){min-height:124px}.studio-page #task-panel .tw-field input{min-height:36px;padding:7px 10px}.studio-page #task-panel .tw-source-modes .button{min-height:32px}.studio-page #task-panel .tw-attachment-toggle{min-height:32px}.studio-page #task-panel .tw-field .is-manuscript{height:84px;min-height:84px;max-height:84px}.task-workspace .wr-game{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,250px)}.task-workspace .wr-game-side{min-width:0}.task-workspace .wr-copy{overflow-wrap:anywhere}
}
@media(max-width:760px){.studio-page #task-panel .subject-controls{gap:10px}.studio-page #task-panel .subject-options label{min-height:56px;padding:8px 10px}.studio-page #task-panel .service-option{min-height:124px}.studio-page #task-panel .plan-price{margin-top:9px}.studio-page #task-panel .tw-fixed-scope{padding-block:10px}.studio-page #task-panel .tw-product-scope{font-size:11px;line-height:1.6}}
.tw-supplement-form{max-width:650px;width:100%;display:flex;flex-direction:column;gap:14px;margin:auto;min-height:0}.tw-supplement-form>.button{align-self:flex-start}.tw-supplement-form>.tw-section-title{font-size:19px;font-weight:600}.tw-supplement-form .tw-attached-file>svg{height:24px;width:24px;color:var(--blue)}
@media(max-height:700px){.tw-supplement-form{gap:8px}.studio-page #task-panel .tw-supplement-form textarea{height:58px;min-height:58px;max-height:58px}.tw-supplement-form>.tw-section-title{font-size:16px}}

@media(max-height:650px) and (min-width:761px){.task-workspace .px-wait .wr-games>.wr-game{grid-template-columns:minmax(0,1fr) 205px;gap:10px}.task-workspace .px-wait .wr-game>.wr-game-side{min-width:0}.tw-supplement-form{gap:7px}.tw-supplement-form>.help{font-size:12px}.studio-page #task-panel .tw-supplement-form>.button{min-height:34px;padding-block:5px}.studio-page #task-panel .tw-supplement-form .tw-source-modes .button{min-height:32px}}

.tw-supplement-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px}.tw-supplement-heading strong{font-size:17px}.tw-supplement-heading .help{font-size:12px;margin:0}
@media(max-height:650px) and (min-width:761px){.tw-supplement-heading strong{font-size:16px}}

/* Detail sheets follow the artifact, rather than inheriting the creation form width. */
.studio-page #task-panel:has(.tw-delivery){width:100%;max-width:1080px;align-self:center}
.studio-page #task-panel:has(.tw-original-viewer){width:100%;max-width:1040px;align-self:center}
.studio-page #task-panel:has(.tw-original-viewer[data-orientation=portrait]){max-width:680px}

/* v8 review: symmetric tiers, upright upload, meaningful template comparison. */
.studio-page #task-panel .service-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-page #task-panel .service-options:has(>.service-option:only-child){grid-template-columns:1fr}
.studio-page #task-panel .tw-tier-tag{display:inline-block;align-self:flex-start;font-size:10px;font-weight:750;letter-spacing:.06em;line-height:1.5;padding:3px 7px;border-radius:5px;margin:0 0 7px}
.studio-page #task-panel .standard-tag{background:#e3edf5;color:#315778}
.studio-page #task-panel .premium-tag{background:#f5e7b6;color:#855b20}
.studio-page #task-panel .service-option strong{display:block}
.studio-page #task-panel .tw-upload-mark{transform:none}
.studio-page #task-panel .tw-preset-card{min-height:104px;gap:4px;padding:6px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:58px auto auto;align-content:start;text-align:left}
.studio-page #task-panel .tw-preset-card>strong{font-size:12px;line-height:1.4}
.studio-page #task-panel .tw-preset-purpose{display:block;font-size:10px;color:#698098;line-height:1.4;padding:0 3px}
.studio-page #task-panel .tw-preset-swatch{height:58px;width:100%}
.task-workspace .tw-preset-swatch[data-treatment=classic]{background:#e6f0ff;border-top:6px solid #2864b5;border-radius:4px}
.task-workspace .tw-preset-swatch[data-treatment=grid]{background:#153e60;border:0;border-radius:0}
.task-workspace .tw-preset-swatch[data-treatment=grid] .tw-preset-page{border-radius:0;background:repeating-linear-gradient(0deg,transparent 0 10px,#315e8233 10px 11px),repeating-linear-gradient(90deg,#f5f9fc 0 10px,#315e8233 10px 11px);width:86%;height:75%;box-shadow:none}
.task-workspace .tw-preset-swatch[data-treatment=air]{border:0;border-left:14px solid #236d7c;background:#eaf4f2;border-radius:0}
.task-workspace .tw-preset-swatch[data-treatment=air] .tw-preset-page{width:86%;grid-template-columns:1fr 1fr;gap:4px;box-shadow:none;border-radius:0}
.task-workspace .tw-preset-swatch[data-treatment=air] .tw-preset-number{border-radius:50%;border:1px solid #82afb9;text-align:center;padding:3px}
.task-workspace .tw-preset-swatch[data-treatment=editorial]{background:#fffaf8;border:1px solid #e2c3c7;border-top:5px solid #a52d3d}
.task-workspace .tw-preset-swatch[data-treatment=editorial] .tw-preset-page{box-shadow:none;border-bottom:1px solid #a52d3d;border-radius:0}
.task-workspace .tw-preset-swatch[data-treatment=notebook]{background:repeating-linear-gradient(0deg,#fff7e5 0 11px,#d9bb822c 11px 12px);border-left:8px solid #b98452;border-radius:2px}
.task-workspace .tw-preset-swatch[data-treatment=notebook] .tw-preset-page{box-shadow:2px 3px 0 #bd915225;border-radius:0;background:#fffaf0;border-left:1px solid #df9b88;width:84%}
.task-workspace .tw-preset-swatch[data-treatment=column]{background:#733447;border:0;border-radius:0;border-top:13px solid #733447}
.task-workspace .tw-preset-swatch[data-treatment=column] .tw-preset-page{width:90%;height:90%;border-radius:0;box-shadow:none;border-top:1px solid #773648;grid-template-columns:22px 1fr}
.tw-preset-live{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;min-height:155px;background:#f7f9fc;border:1px solid #dce5ef;border-radius:12px;padding:12px}
.studio-page #task-panel .tw-live-window{position:relative;min-width:0;height:145px;min-height:0;display:block;padding:0;border:1px solid #ccd8e5;border-radius:6px;overflow:hidden;background:white;isolation:isolate}
.tw-live-window iframe{position:absolute;top:50%;left:50%;width:1120px;height:700px;max-width:none;max-height:none;border:0;transform:translate(-50%,-50%) scale(var(--preview-scale,.22));transform-origin:center;pointer-events:none}
.tw-live-enlarge{position:absolute;bottom:6px;right:6px;padding:3px 6px;border-radius:4px;background:#fffefaeb;color:#315478;font-size:10px;box-shadow:0 1px 5px #223c4a1f}
.tw-live-copy{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}
.tw-live-copy>strong{font-size:14px;line-height:1.45}.studio-page #task-panel .tw-live-copy p{font-size:12px;color:#64798e;margin:0;line-height:1.5}
.studio-page #task-panel .tw-preview-open{padding:4px 8px;min-height:31px;font-size:12px;color:#255cad;border-color:#c5d8f0}
@media(min-width:761px) and (max-height:880px){.studio-page #task-panel .service-option .tw-tier-tag{margin:0 6px 0 0;vertical-align:middle}.studio-page #task-panel .service-option strong{display:inline;vertical-align:middle}.studio-page #task-panel .service-option small{margin-top:7px}.tw-preset-live{min-height:137px;padding:10px;gap:12px}.studio-page #task-panel .tw-live-window{height:123px}.studio-page #task-panel .tw-preset-card{min-height:91px;grid-template-rows:45px auto auto}.studio-page #task-panel .tw-preset-swatch{height:45px}}
@media(min-width:761px) and (max-height:650px){.studio-page #task-panel .tw-preset-card{min-height:72px;grid-template-rows:27px auto auto;padding:4px;gap:3px}.studio-page #task-panel .tw-preset-swatch{height:27px}.tw-preset-live{min-height:96px;padding:7px;gap:9px}.studio-page #task-panel .tw-live-window{height:90px}.tw-live-copy{gap:4px}.tw-live-copy>.tw-sample-eyebrow{font-size:9px}.tw-live-copy>strong{font-size:12px}.studio-page #task-panel .tw-live-copy p{font-size:11px}.studio-page #task-panel .tw-preview-open{min-height:27px;font-size:11px}.tw-preset-live .tw-live-enlarge{font-size:9px}}
@media(max-width:760px){.studio-page #task-panel .tw-preset-card{min-height:93px;grid-template-rows:44px auto auto}.studio-page #task-panel .tw-preset-swatch{height:44px}.tw-preset-live{min-height:157px;padding:9px;gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.studio-page #task-panel .tw-live-window{height:143px}.tw-live-copy{gap:7px}.tw-live-copy>strong{font-size:13px}.studio-page #task-panel .tw-live-copy p{font-size:11px}}
.studio-page #task-panel .tw-tier-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
@media(min-width:761px) and (max-height:880px){.studio-page #task-panel .tw-tier-copy{display:block}}
@media(max-width:760px){.studio-page #task-panel .service-option{padding-block:8px}.studio-page #task-panel .tw-tier-tag{margin-bottom:3px}.studio-page #task-panel .service-option small{margin-top:2px}.studio-page #task-panel .plan-price{margin-top:7px}}
/* Inline validation keeps the preview and the next action inside the same view. */
@media(min-width:761px) and (min-height:651px){
 .studio-page #task-panel:has([data-request-error]) .tw-appearance-panel{gap:9px}
 .studio-page #task-panel:has([data-request-error]) .tw-preset-live{min-height:0;padding:8px;gap:12px}
 .studio-page #task-panel:has([data-request-error]) .tw-live-window{height:110px}
 .studio-page #task-panel:has([data-request-error]) .tw-live-copy{gap:4px}
}
@media(min-width:761px) and (max-height:650px){.studio-page #task-panel:has([data-request-error]) .tw-appearance-panel{gap:5px}}

/* V9: actual delivery preview and compact material recovery. */
.studio-page #task-panel:has(.tw-delivery),.studio-page #task-panel:has(.tw-needs-material){flex:0 1 auto;max-width:1160px;width:100%;align-self:center}
.studio-page #task-panel:has(.tw-needs-material){max-width:1000px}
.task-workspace:has(.tw-delivery) .tw-content,.task-workspace:has(.tw-needs-material) .tw-content,.task-workspace:has(.tw-delivery) .tw-detail-body,.task-workspace:has(.tw-needs-material) .tw-detail-body{flex:0 1 auto}
.tw-delivery{grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:30px;max-width:none;margin:8px 0 12px;align-items:center}
.tw-delivered-preview{min-width:0;border:1px solid #d9e3ef;border-radius:14px;background:#f5f8fc;padding:8px;box-shadow:0 12px 26px -20px #33527860}
.tw-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#627996;padding:3px 5px 10px}
.tw-delivered-window{position:relative;display:block;aspect-ratio:8/5;width:100%;background:#fff;border-radius:8px;border:1px solid #e4eaf2;outline-offset:4px;isolation:isolate;transition:border-color .2s,box-shadow .2s}
.tw-delivered-window:hover{border-color:#7e9fd0;box-shadow:0 0 0 3px #dbe7f7}.tw-delivered-window:focus-visible{outline:3px solid var(--blue)}
.tw-delivered-frame{position:absolute;left:0;top:0;width:1440px;height:900px;max-width:none;max-height:none;border:0;transform-origin:top left;transform:scale(var(--delivery-scale,0));pointer-events:none;visibility:hidden}
.tw-delivered-window[data-state=ready] .tw-delivered-frame{visibility:visible}
.tw-preview-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;font-size:14px;color:#5d7595;background:linear-gradient(135deg,#f8fbff,#edf3fa);border-radius:8px}
.tw-preview-status[hidden]{display:none}.tw-delivered-window[data-state=error] .tw-preview-status{color:#7a6142;background:#faf7f0}
.tw-delivery-copy{gap:14px}.studio-page #task-panel .tw-delivered-title .tw-copy>p{margin:0;font-size:26px;line-height:1.4;font-weight:650;color:#203950;overflow-wrap:anywhere;letter-spacing:-.025em}
.tw-delivered-title .tw-pager{justify-content:flex-start;margin-top:5px}.tw-delivered-title .tw-pager .button{font-size:11px;min-height:28px;padding:3px 8px}
.tw-delivery-copy>.tw-copy{font-size:12px}.tw-delivery-copy>.tw-copy>p{margin:0;overflow-wrap:anywhere}.tw-delivery-copy>.tw-copy .tw-pager{margin-top:4px}.tw-delivery-copy>.tw-copy .button{min-height:28px;padding:3px 7px}
.tw-needs-material{display:flex;flex-direction:column;gap:20px;margin:12px 0 18px;min-width:0}
.tw-material-attention{display:flex;gap:14px;align-items:center}.tw-attention-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;color:#a16d25;background:#fff3da;border-radius:14px}.tw-attention-icon svg{width:24px;height:24px}
.tw-attention-label{font-size:11px;letter-spacing:.06em;color:#9e732f}.studio-page #task-panel .tw-material-attention h3{margin:4px 0 0;font-size:24px;letter-spacing:-.03em}
.tw-material-reason{background:#fffbf3;border:1px solid #eddfc5;border-left:3px solid #c69a50;border-radius:8px;padding:15px 18px;display:grid;gap:6px}.tw-material-reason>strong{font-size:12px;color:#966b2b}.tw-material-reason .tw-copy{font-size:14px;color:#63533c;line-height:1.65;overflow-wrap:anywhere}.tw-material-reason p{margin:0}.tw-material-reason .tw-pager{margin-top:8px;justify-content:flex-start}
.tw-current-material{display:flex;gap:12px;align-items:center;padding:0 2px;min-width:0}.tw-current-material>svg{width:22px;height:22px;color:#7a91ac;flex-shrink:0}.tw-current-material>div{flex:1;min-width:0}.tw-current-material .tw-copy{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.tw-current-material p{margin:2px 0 0}.tw-current-material .tw-pager{justify-content:flex-start;margin-top:5px}.tw-current-material .tw-pager .button{min-height:28px;padding:3px 8px}
.tw-material-quick-actions{display:flex;flex-wrap:wrap;gap:10px}.tw-material-quick-actions .button{display:flex;gap:24px;align-items:center;justify-content:space-between;min-width:145px}.tw-material-quick-actions svg{width:18px;height:18px}.studio-page #task-panel .tw-material-next{font-size:12px;color:#6c819b;line-height:1.6;margin:-10px 0 0}
@media(max-height:760px) and (min-width:761px){
 .tw-delivery{grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:25px;margin:0;max-width:980px;align-self:center}.tw-delivered-preview{max-width:420px}.tw-delivery-copy{gap:9px}.studio-page #task-panel .tw-delivered-title .tw-copy>p{font-size:22px}.studio-page #task-panel .tw-delivery-description{font-size:13px;line-height:1.6}.tw-preview-heading{padding-bottom:6px}.tw-needs-material{gap:12px;margin:4px 0 8px}.tw-material-reason{padding:10px 15px}.tw-attention-icon{width:40px;height:40px}.studio-page #task-panel .tw-material-attention h3{font-size:21px}.studio-page #task-panel .tw-material-next{margin:-5px 0 0}
}
@media(max-width:900px) and (min-width:761px){.tw-delivery{grid-template-columns:minmax(0,1fr) minmax(260px,1fr);gap:20px}.studio-page #task-panel .tw-delivered-title .tw-copy>p{font-size:23px}}
@media(max-width:760px){
 .tw-delivery{grid-template-columns:minmax(0,1fr);gap:14px;margin:0}.tw-delivered-preview{width:100%;max-width:390px;padding:6px}.tw-preview-heading{font-size:10px;padding-bottom:6px}.tw-delivery-copy{align-items:flex-start;text-align:left;gap:10px}.studio-page #task-panel .tw-delivered-title .tw-copy>p{font-size:22px;line-height:1.35}.studio-page #task-panel .tw-delivery-description{font-size:12px;line-height:1.6}.tw-delivery-actions{justify-content:flex-start}.tw-delivery-support{justify-content:flex-start;padding-top:7px}.tw-delivery-meta span{font-size:10px}.tw-ready-label{font-size:11px}.tw-delivery-copy>.tw-copy{font-size:12px}.tw-needs-material{gap:16px;margin:7px 0 12px}.tw-material-attention{gap:10px}.tw-attention-icon{width:38px;height:38px;border-radius:11px}.studio-page #task-panel .tw-material-attention h3{font-size:19px;line-height:1.5}.tw-material-reason{padding:12px}.tw-material-reason .tw-copy{font-size:13px}.tw-material-quick-actions{gap:8px}.tw-material-quick-actions .button{min-width:0;gap:8px;font-size:12px;flex:1;padding:9px 10px;white-space:nowrap}.tw-material-quick-actions svg{width:15px;height:15px}.studio-page #task-panel .tw-material-next{font-size:11px;margin:-6px 0 0}.task-workspace:has(.tw-needs-material) .tw-footer{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.tw-delivered-window{transition:none}}
.tw-delivered-preview{max-width:560px}
@media(min-width:761px){
 .tw-needs-material{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px 24px;align-items:center}
 .tw-material-attention,.tw-material-quick-actions,.tw-material-next{grid-column:1/-1}
 .tw-material-reason{grid-column:1}.tw-current-material{grid-column:2;align-items:flex-start}
 .tw-current-material .tw-pager .button,.tw-material-reason .tw-pager .button{min-height:28px;padding:3px 8px;font-size:11px}
}
@media(max-height:760px) and (min-width:761px){.tw-delivered-preview{max-width:420px}.tw-needs-material{gap:10px 22px}.tw-material-reason .tw-copy{font-size:13px}.tw-material-reason .tw-pager{margin-top:4px}}
@media(max-width:760px){
 .tw-delivery:has(.tw-delivered-title .tw-pager) .tw-delivered-preview{max-width:285px;justify-self:center}
 .tw-delivery:has(.tw-delivered-title .tw-pager){gap:10px}.tw-delivery:has(.tw-delivered-title .tw-pager) .tw-delivery-copy{gap:8px}
 .tw-material-reason .tw-pager .button,.tw-current-material .tw-pager .button{min-height:28px;padding:3px 8px;font-size:11px}
 .tw-needs-material:has(.tw-pager){gap:11px;margin:3px 0 7px}
}
.studio-page #task-panel .tw-delivered-title .tw-pager .button,.studio-page #task-panel .tw-delivery-notice .tw-pager .button{min-height:28px;padding:3px 8px;font-size:11px}
@media(max-height:760px) and (min-width:761px){.tw-delivery:has(.tw-pager) .tw-delivery-copy{gap:6px}}
@media(max-width:760px){
 .tw-delivery:has(.tw-delivered-title .tw-pager) .tw-delivered-preview{max-width:260px}
 .tw-delivery:has(.tw-delivery-notice) .tw-delivered-preview{max-width:225px}
 .tw-delivery:has(.tw-delivery-notice){gap:9px}.tw-delivery:has(.tw-delivery-notice) .tw-delivery-copy{gap:7px}
}
@media(max-height:760px) and (min-width:761px){.tw-delivery:has(.tw-delivery-notice) .tw-delivery-copy{gap:4px}}
@media(max-width:760px){.tw-delivery:has(.tw-delivery-notice) .tw-delivered-preview{max-width:200px}}


/* panxy-work: account-support + gap-checkout */
.task-workspace .tw-gap-checkout{align-items:center;justify-content:center;text-align:center;max-width:440px;width:100%;margin:auto}
.task-workspace .tw-gap-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:min(100%,360px);margin:auto;padding:28px 22px;border:1px solid var(--line);border-radius:14px;background:#f7faff;box-shadow:0 10px 28px #1a3a6310}
.task-workspace .tw-gap-card h3{font-size:22px;line-height:1.35;text-align:center;margin:0}
.task-workspace .tw-gap-copy{margin:0;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.task-workspace .tw-gap-promo{margin:0;font-size:12px;color:#5b7fb0;text-align:center}
.task-workspace .tw-gap-card>.button.primary{width:100%;max-width:280px;align-self:center;justify-content:center}
.task-workspace .tw-support-hours{margin:0 0 8px;font-size:12px;line-height:1.55;color:#6a7f98}
.task-workspace .tw-support{display:flex;flex-direction:column;gap:12px;min-height:0;flex:1}
.task-workspace .tw-support-head{display:flex;flex-direction:column;gap:4px}
.task-workspace .tw-support-head h3{margin:0;font-size:20px}
.task-workspace .tw-support-status{margin:0;font-size:12px;color:#8a6a2b}
.task-workspace .tw-support-status.is-online{color:#2f6b4f}
.task-workspace .tw-support-tip{margin:0;font-size:12px;line-height:1.55;color:#6a7f98}
.task-workspace .tw-support-thread{display:flex;flex-direction:column;gap:10px;flex:1;min-height:120px;max-height:min(42dvh,360px);overflow:auto;padding:4px 2px}
.task-workspace .tw-support-msg{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.task-workspace .tw-support-staff{background:#f3f8ff;border-color:#cfe0f5}
.task-workspace .tw-support-msg>p{margin:0;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.task-workspace .tw-support-msg>small{color:var(--muted);font-size:11px}
.task-workspace .tw-support-files{display:flex;flex-wrap:wrap;gap:8px}
.task-workspace .tw-support-thumb{width:72px;height:72px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.task-workspace .tw-support-file{font-size:12px;color:var(--blue)}
.task-workspace .tw-support-form{display:flex;flex-direction:column;gap:10px}
.task-workspace .tw-support-form textarea{min-height:88px;height:88px;max-height:120px}
.task-workspace .tw-support-attach{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.task-workspace .tw-support-attach>input[type=file]{display:none}
.task-workspace .tw-wallet-content[data-pane=support] .tw-balance-hero{display:none}
.task-workspace .tw-wallet-content[data-pane=support] .tw-wallet-grid{display:block}
.task-workspace .tw-wallet-content[data-pane=support] .tw-wallet-panel{padding-top:0}
@media(max-width:760px){
 .task-workspace .tw-gap-card{padding:22px 16px;gap:12px}
 .task-workspace .tw-gap-card h3{font-size:20px}
 .task-workspace .tw-support-thread{max-height:min(38dvh,300px)}
}

.tw-support-shell{position:fixed;inset:0;pointer-events:none;z-index:12000}
.tw-support-float,.tw-support-ball{pointer-events:auto}
.tw-support-float{position:fixed;width:min(380px,calc(100vw - 24px));height:min(620px,calc(100dvh - 24px));display:flex;flex-direction:column;background:#fff;border:1px solid #d7e0ea;border-radius:16px;box-shadow:0 18px 48px #12325233;overflow:hidden;z-index:12001}
.tw-support-float-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:linear-gradient(180deg,#f5f9ff,#eef4fb);border-bottom:1px solid #dce6f1;cursor:grab;user-select:none;touch-action:none}
.tw-support-float-bar:active{cursor:grabbing}
.tw-support-float-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.tw-support-float-title strong{font-size:14px}
.tw-support-float-title span{font-size:11px;color:#6a7f98}
.tw-support-float-actions{display:flex;gap:6px}
.tw-support-icon-btn{min-height:28px;padding:0 10px;border-radius:8px;border:1px solid #cfdceb;background:#fff;font-size:12px;line-height:1;cursor:pointer}
.tw-support-float-body{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:12px}
.tw-support-float-body.tw-support{gap:12px}
.tw-support-float-body .tw-support-thread{max-height:none;flex:1}
.tw-support-ball{position:fixed;width:56px;height:56px;border-radius:50%;border:0;background:linear-gradient(160deg,#3d7bd6,#2457a6);color:#fff;font-size:11px;font-weight:700;line-height:1.15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:0 10px 28px #1a4d9a55;cursor:grab;touch-action:none;z-index:12001}
.tw-support-ball:active{cursor:grabbing}

.tw-support-float-body .tw-support-head{display:flex;flex-direction:column;gap:4px}
.tw-support-float-body .tw-support-head h3{margin:0;font-size:20px}
.tw-support-float-body .tw-support-status{margin:0;font-size:12px;color:#8a6a2b}
.tw-support-float-body .tw-support-status.is-online{color:#2f6b4f}
.tw-support-float-body .tw-support-tip{margin:0;font-size:12px;line-height:1.55;color:#6a7f98}
.tw-support-float-body .tw-support-thread{display:flex;flex-direction:column;gap:10px;flex:1;min-height:120px;overflow:auto;padding:4px 2px}
.tw-support-float-body .tw-support-msg{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #d7e0ea;border-radius:10px;background:#fff}
.tw-support-float-body .tw-support-staff{background:#f3f8ff;border-color:#cfe0f5}
.tw-support-float-body .tw-support-msg>p{margin:0;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.tw-support-float-body .tw-support-msg>small{color:#6a7f98;font-size:11px}
.tw-support-float-body .tw-support-files{display:flex;flex-wrap:wrap;gap:8px}
.tw-support-float-body .tw-support-thumb{width:72px;height:72px;object-fit:cover;border-radius:6px;border:1px solid #d7e0ea}
.tw-support-float-body .tw-support-file{font-size:12px;color:#2f6bb2}
.tw-support-float-body .tw-support-form{display:flex;flex-direction:column;gap:10px}
.tw-support-float-body .tw-support-form textarea{min-height:88px;height:88px;max-height:120px;width:100%}
.tw-support-float-body .tw-support-attach{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tw-support-float-body .tw-support-attach>input[type=file]{display:none}
.tw-support-float-body .tw-field{display:flex;flex-direction:column;gap:6px;font-size:12px}
.tw-support-float-body .tw-empty{margin:0;color:#6a7f98;font-size:13px}
.tw-support-float-body .help{margin:0;font-size:11px;color:#6a7f98}
.tw-support-float-body .status-message{margin:0;font-size:12px}
.tw-support-float-body .button{cursor:pointer}
