/* No footer row: the app owns the full remaining viewport. */
.workspace-shell,.has-workspace .workspace-shell{grid-template-rows:64px minmax(0,1fr)}
.model-shortcuts{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}
.model-shortcut{display:grid;place-items:center;width:34px;height:34px;border:1px solid transparent;border-radius:9px;background:transparent;cursor:pointer}
.model-shortcut.selected{background:#edf4dc;border-color:#b5c68f}.model-shortcut:hover{background:#f0f1eb}.model-shortcut:disabled{opacity:.5;cursor:default}.model-shortcut .provider-logo{width:20px;height:20px}
.standalone-playground .model-toolbar{flex-wrap:wrap;gap:8px}.standalone-playground .model-button{min-width:0;flex:1 1 150px}.standalone-playground .model-button>span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.earn-discovery{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#655174;text-decoration:none;font-weight:600}.earn-discovery>.hp-icon{width:21px;height:21px;flex-shrink:0}.earn-discovery>.hp-icon:last-child{width:16px;height:16px}
#screen[data-screen="earn"]{max-width:none;overflow:hidden}
#screen>.earn-home{flex:1 1 0;min-height:0;width:100%;display:flex;flex-direction:column;gap:20px}
.earn-home .page-heading{align-items:center;justify-content:space-between}.earn-home .page-heading>.text-button{font-size:11px;white-space:nowrap}
.earn-progress{display:flex;align-items:center;gap:20px;border:1px solid #dce8c3;background:#f1f7e4;border-radius:16px;padding:22px 26px;flex-shrink:0}.earn-gift{display:grid;place-items:center;width:64px;height:64px;background:#e4edce;border-radius:16px}.earn-gift .hp-icon{width:40px;height:40px}.earn-progress>div>span{font-size:12px;color:#52623c}.earn-progress strong{display:block;font-size:42px;letter-spacing:-2px;margin-top:4px}.earn-progress-track{margin-left:auto;display:flex;flex-direction:column;gap:9px;min-width:180px}.earn-progress-track progress{width:100%;height:8px;accent-color:#78963e}.earn-progress-track small{font-size:11px;color:#52623c}
.earn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;flex:1;min-height:0}
.earn-task{background:#fff;border:1px solid #dedce3;border-radius:16px;padding:22px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;gap:15px;min-width:0;min-height:0}.earn-task.is-earned{background:#f7faef;border-color:#d6e2bd}.earn-task-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#f3edf9}.earn-task-icon .hp-icon{width:30px;height:30px}.earn-task-copy{grid-row:2;grid-column:1/-1;align-self:center}.earn-task-copy h2{font-size:17px;line-height:1.3;margin:0}.earn-task-copy p{font-size:11px;line-height:1.5;color:var(--muted);margin:7px 0 0}.earn-task-value{grid-column:2;grid-row:1;text-align:right}.earn-task-value strong{display:block;font-size:30px;line-height:1.1;letter-spacing:-1px;color:#655174}.earn-task-value small{display:block;font-size:10px;margin-top:4px;color:#7c6d88}.earn-task-action{grid-row:3;grid-column:1/-1;justify-self:start;min-height:36px;padding:8px 14px;font-size:11px}.earn-task-action:disabled{cursor:default;opacity:.7}.earn-task.is-earned .earn-task-action{color:#52623c;opacity:1}
.earn-referral{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:15px;background:#eee6f8;border:1px solid #d9cee8;border-radius:16px;padding:22px;text-decoration:none;color:#655174}.earn-referral>.hp-icon{width:36px;height:36px}.earn-referral>div{display:flex;flex-direction:column;gap:7px}.earn-referral strong{font-size:17px}.earn-referral span{font-size:12px}.earn-referral>.hp-icon:last-child{width:22px;height:22px}
.earn-footnote{font-size:10px;color:var(--muted);margin:0;flex-shrink:0}
#social-reward-form{display:flex;flex-direction:column;gap:12px;margin-top:22px}#social-reward-form label{font-size:12px;font-weight:600}#social-post-url{width:100%;border:1px solid #d9d5e0;border-radius:8px;padding:12px;font:14px inherit}#social-reward-form .primary{align-self:flex-start}
/* Billing uses the full canvas, with the plan alongside top-ups on wide screens. */
#screen[data-screen="billing"]{max-width:none}
#screen[data-screen="billing"]>.billing-home{flex:1 1 0;min-height:0;max-width:none;margin:0;display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.5fr);gap:clamp(16px,2vw,32px)}
.billing-summary{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:20px;padding:clamp(20px,2.5vw,40px)}
.billing-summary h2{font-size:clamp(40px,4.2vw,72px);margin:22px 0 12px;line-height:1}.billing-summary h2 span{display:block;font-size:16px;line-height:1.5;margin-top:9px}.billing-summary p{font-size:13px;line-height:1.6}.billing-summary .fine{font-size:11px}.billing-balance{padding:24px}.billing-balance strong{font-size:clamp(36px,3vw,54px)}.billing-management{margin-top:auto}
.topup-panel{display:flex;flex-direction:column;padding:clamp(20px,2.5vw,40px);min-width:0;min-height:0}.topup-panel .section-title h2{font-size:clamp(22px,2.2vw,32px)}.topup-options{flex:1;min-height:0;align-items:stretch;gap:clamp(9px,1.2vw,18px);margin:25px 0}.topup-option{justify-content:center;padding:clamp(13px,1.5vw,24px)}.topup-option.selected{padding:calc(clamp(13px,1.5vw,24px) - 1px)}.topup-option strong{font-size:clamp(36px,3.5vw,58px)}.topup-option span{font-size:12px}.topup-option small{font-size:14px;margin-top:18px}.topup-bottom{flex-wrap:wrap}.topup-bottom .primary{flex:1;min-height:46px}.topup-bottom p{flex:1 1 150px;font-size:11px}
@media(max-width:1100px){
 #screen[data-screen="billing"]>.billing-home{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:16px}
 .billing-summary{display:grid;grid-template-columns:1fr auto;gap:12px;padding:20px}.billing-summary h2{font-size:36px;margin:12px 0 7px}.billing-summary h2 span{font-size:12px;margin-top:5px}.billing-summary p{font-size:11px}.billing-summary .fine{font-size:10px}.billing-balance{padding:16px 22px}.billing-balance strong{font-size:32px}.billing-management{margin:0;padding-top:6px}.topup-panel{padding:20px}.topup-panel .section-title h2{font-size:23px}.topup-options{margin:15px 0}.topup-option{padding:15px}.topup-option.selected{padding:14px}.topup-option strong{font-size:40px}.topup-option small{margin-top:10px}
 .earn-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:12px}.earn-task{padding:15px;gap:8px;grid-template-columns:auto 1fr auto;grid-template-rows:1fr auto}.earn-task-icon{width:32px;height:32px}.earn-task-icon .hp-icon{width:24px;height:24px}.earn-task-copy{grid-column:2;grid-row:1}.earn-task-copy h2{font-size:14px}.earn-task-value{grid-column:3}.earn-task-value strong{font-size:25px}.earn-task-action{grid-row:2;grid-column:2/-1}.earn-referral{padding:18px;gap:10px}.earn-referral strong{font-size:15px}
}
@media(min-width:1101px) and (max-height:800px){.earn-home{gap:14px}.earn-progress{padding:16px 22px}.earn-grid{gap:12px}.earn-task{padding:17px;gap:10px}.earn-task-copy h2{font-size:15px}.earn-task-copy p{font-size:10px}.earn-task-action{min-height:32px;padding:7px 12px}}
@media(max-width:640px){
 .workspace-shell,.has-workspace .workspace-shell{grid-template-rows:46px minmax(0,1fr)}
 .model-shortcuts{gap:4px}.model-shortcut{width:29px;height:29px}.model-shortcut .provider-logo{width:17px;height:17px}.standalone-playground .model-button{flex-basis:135px;font-size:11px}.standalone-playground .model-toolbar{gap:5px;padding:9px 12px}.earn-discovery{font-size:10px;gap:5px}.earn-discovery>.hp-icon{width:17px;height:17px}
 #screen[data-screen="earn"]{padding:12px 14px}.earn-home .page-heading h1{font-size:22px}.earn-home .page-heading p{font-size:10px}.earn-home .page-heading>.text-button{font-size:9px;white-space:normal;text-align:right}.earn-home .page-heading{gap:10px}
 #screen>.earn-home{gap:12px}.earn-progress{padding:13px 15px;gap:12px;border-radius:12px}.earn-gift{display:none}.earn-progress>div>span{font-size:10px}.earn-progress strong{font-size:31px}.earn-progress-track{min-width:110px;gap:6px}.earn-progress-track small{font-size:9px}
 .earn-grid{display:flex;flex-direction:column;gap:8px}.earn-task{grid-template-columns:30px minmax(0,1fr) 58px;grid-template-rows:1fr auto;padding:12px;gap:4px 10px;flex:1;align-items:center;border-radius:12px}.earn-task-icon{grid-row:1/3;width:30px;height:30px}.earn-task-icon .hp-icon{width:24px;height:24px}.earn-task-copy h2{font-size:12px}.earn-task-copy p{font-size:9px;margin:3px 0 0;line-height:1.4}.earn-task-value{grid-column:3;grid-row:1;text-align:right}.earn-task-value strong{font-size:24px}.earn-task-value small{font-size:8px;margin-top:2px}.earn-task-action{grid-column:2/-1;grid-row:2;font-size:9px;min-height:22px;padding:3px 0;border:0;background:transparent;box-shadow:none;color:#655174;text-decoration:underline}.earn-referral{padding:12px;flex-direction:row;align-items:center;gap:10px;border-radius:12px;flex-shrink:0}.earn-referral>.hp-icon{width:25px;height:25px}.earn-referral>div{gap:4px}.earn-referral strong{font-size:12px}.earn-referral span{font-size:9px}.earn-referral>.hp-icon:last-child{margin-left:auto;width:17px;height:17px}.earn-footnote{font-size:9px}
 #screen[data-screen="billing"]>.billing-home{gap:12px}.billing-summary{padding:15px;gap:9px}.billing-summary h2{font-size:30px;margin:12px 0 7px}.billing-summary h2 span{font-size:10px;margin-top:4px}.billing-summary p{font-size:10px}.billing-summary .fine{font-size:9px}.billing-balance{padding:12px}.billing-balance strong{font-size:26px}.topup-panel{padding:15px}.topup-panel .section-title h2{font-size:20px}.topup-options{gap:7px;margin:14px 0}.topup-option{padding:12px 9px}.topup-option.selected{padding:11px 8px}.topup-option strong{font-size:32px}.topup-option span{font-size:9px}.topup-option small{font-size:11px;margin-top:9px}.topup-bottom{gap:10px}.topup-bottom p{flex:0 0 auto;font-size:9px}.topup-bottom .primary{flex:none;min-height:40px}
}
@media(max-width:640px) and (max-height:800px){#screen>.earn-home{gap:8px}.earn-home .page-heading h1{font-size:20px}.earn-progress{padding:10px 12px}.earn-progress strong{font-size:27px}.earn-task{padding:8px 10px;gap:2px 8px}.earn-grid{gap:6px}.earn-task-copy p{font-size:8px}.earn-referral{padding:9px 11px}.earn-home .page-heading p{display:none}}
@media(max-width:360px){.billing-summary{padding:12px}.billing-balance{padding:10px}.billing-balance strong{font-size:24px}.billing-summary .status-chip{font-size:9px}.topup-panel{padding:12px}.topup-option strong{font-size:27px}.topup-options{margin:12px 0}.earn-task-copy h2{font-size:11px}.earn-task-value strong{font-size:22px}}
/* Short windows retain access through one bounded content region. */
@media(max-height:620px){#screen[data-screen="billing"],#screen[data-screen="earn"]{overflow:auto}#screen[data-screen="billing"]>.billing-home{min-height:440px}#screen>.earn-home{min-height:540px;flex-shrink:0}}
@media(min-width:641px) and (max-height:580px){.workspace-shell:has(#screen[data-screen="playground"]){grid-template-rows:46px minmax(0,1fr)}}
.earn-progress progress{appearance:none;border:0;background:#dbe5c8;border-radius:10px;overflow:hidden}.earn-progress progress::-webkit-progress-bar{background:#dbe5c8}.earn-progress progress::-webkit-progress-value{background:#8aa34f;border-radius:10px}.earn-progress progress::-moz-progress-bar{background:#8aa34f;border-radius:10px}
#screen[data-screen="billing"]>.pricing-card{max-width:none;flex:1 1 0;min-height:0;margin:0;display:grid;grid-template-columns:1.2fr 1fr;padding:clamp(24px,4vw,64px)}
#screen[data-screen="billing"]>.pricing-card>div{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
#screen[data-screen="billing"] .pricing-card h2{font-size:clamp(24px,3vw,42px)}
#screen[data-screen="billing"] .pricing-card .plan-price{font-size:clamp(42px,5vw,70px)}
#screen[data-screen="billing"] .pricing-card .plan-action{align-items:stretch}
@media(max-width:640px){#screen[data-screen="billing"]>.pricing-card{grid-template-columns:1fr;gap:18px;padding:24px}#screen[data-screen="billing"]>.pricing-card>div{justify-content:center}#screen[data-screen="billing"] .pricing-card h2{font-size:25px}}

/* Rewards stay with the user across the app. */
.rewards-control{display:inline-flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:24px;background:transparent;color:#62685a;padding:5px 10px 5px 6px;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer;min-height:36px}
.rewards-control.has-rewards{background:#edf4dc;border-color:#dce8bf;color:#405421}.rewards-control:hover{border-color:#94a970}.rewards-control small{font-size:10px;font-variant-numeric:tabular-nums;opacity:.7}
.reward-ring{width:24px;height:24px;flex-shrink:0;transform:rotate(-90deg)}.reward-ring circle{fill:none;stroke:#d3dfbf;stroke-width:2.5}.reward-ring circle+circle{stroke:#758f3d;stroke-linecap:round}
.sidebar nav>.referral-nav{margin-top:12px}.sidebar nav>.referral-nav[aria-current]{background:#ece5f3;color:#655174}.sidebar nav>.referral-nav[aria-current] .hp-icon{filter:none}
#modal.rewards-drawer{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(440px,calc(100% - 24px));height:calc(100dvh - 24px);max-height:none;max-width:none;padding:24px;border-radius:20px;overflow:hidden;box-sizing:border-box}
#modal.rewards-drawer[open]{display:flex;flex-direction:column;gap:0}.rewards-drawer .dialog-heading{margin:0 0 20px;flex-shrink:0}.rewards-drawer .dialog-heading h2{font-size:23px;letter-spacing:-.6px}
.rewards-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;padding-right:3px}.rewards-summary{display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:center;padding:14px 18px;background:#f0f5e5;border:1px solid #e0e9ce;border-radius:14px}.rewards-summary>div>span{font-size:11px;color:#5c6b47}.rewards-summary strong{display:block;font-size:36px;letter-spacing:-1.4px;margin-top:4px}.rewards-count{font-size:11px;color:#5c6b47}.rewards-summary progress{grid-column:1/-1;width:100%;height:5px;appearance:none;border:0;border-radius:6px;overflow:hidden;background:#dce6cb}.rewards-summary progress::-webkit-progress-bar{background:#dce6cb}.rewards-summary progress::-webkit-progress-value{background:#8aa34f;border-radius:6px}.rewards-summary progress::-moz-progress-bar{background:#8aa34f}
.rewards-explainer{font-size:10px;line-height:1.5;color:#777e6e;margin:13px 0 12px}.reward-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e9ece2}.reward-row-icon{display:grid;place-items:center;width:32px;flex-shrink:0}.reward-row-icon .hp-icon{width:29px;height:29px}.reward-row-copy{flex:1;min-width:0}.reward-row-copy>strong{display:block;font-size:12px;font-weight:650;line-height:1.5}.reward-row-copy>span{display:block;font-size:10px;line-height:1.5;color:#858a7c;margin-top:3px}.reward-row-end{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}.reward-row-end>strong{font-size:21px;letter-spacing:-.5px;color:#52672f}.reward-row-end>span{font-size:10px;color:#858a7c}.reward-row-end .text-button{display:flex;align-items:center;gap:4px;padding:5px 0;font-size:10px;color:#52672f;min-height:30px}.reward-row-end .hp-icon{width:12px;height:12px}.reward-row.is-quiet .reward-row-end>strong{color:#7b8170}.reward-row.is-quiet .reward-row-icon{opacity:.65}
.reward-history{margin-top:16px}.reward-history>summary{font-size:11px;color:#747b69;cursor:pointer;padding:10px 0}.reward-history>summary>span{float:right}.reward-history .reward-row{padding:12px 0}.reward-history .reward-row-copy>strong{font-weight:500}.reward-history .reward-row-end>strong{font-size:18px}.rewards-finished{font-size:13px;color:#69755a;padding:18px 0}
.rewards-invite{display:flex;align-items:center;gap:12px;padding:16px 0;margin-top:12px;text-decoration:none;color:#655174;border-top:1px solid #e9e3f0}.rewards-invite>.hp-icon{width:28px;height:28px;flex-shrink:0}.rewards-invite>span{flex:1}.rewards-invite strong{display:block;font-size:12px}.rewards-invite small{display:block;font-size:10px;line-height:1.5;color:#8b7b97;margin-top:4px}.rewards-invite>.hp-icon:last-child{width:15px;height:15px}.rewards-rules{font-size:10px;color:#7c8273;padding:10px 0}.rewards-back{display:block;font-size:11px;margin:-8px 0 18px;color:#687450}
.reward-hint{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:4px 0;color:#69745a;font:inherit;font-size:11px;cursor:pointer;text-align:left}.reward-hint>.hp-icon{width:21px;height:21px;flex-shrink:0}.reward-hint strong{color:#52672f;font-weight:650;margin-left:6px}.reward-hint:hover strong{text-decoration:underline}.harness-home .reward-hint{margin-top:6px}
.reward-next{display:flex;align-items:center;gap:9px;border:1px solid #e1e8d5;background:#f6f8f0;border-radius:12px;padding:12px 15px;color:#59684a;font:inherit;font-size:12px;text-align:left;cursor:pointer;max-width:100%;flex-shrink:0}.reward-next>.hp-icon{width:23px;height:23px;flex-shrink:0}.reward-next>span{flex:1}.reward-next>strong{font-size:11px;white-space:nowrap}.reward-next>.hp-icon:last-child{width:15px;height:15px}.reward-next:hover{border-color:#b7c597}.upgrade-continue .reward-next{margin-left:auto}.credit-secondary:has(.reward-next){display:block}.credit-secondary .reward-next{width:100%}
@media(max-width:1100px){.workspace-plan>.status-chip{display:none}}
@media(max-width:640px){
 .has-workspace .app-header{gap:6px;padding-left:14px;padding-right:14px}.workspace-plan{gap:7px;margin-left:auto}.header-balance{border-right:0;padding-right:0;font-size:10px}.rewards-control{font-size:10px;gap:5px;padding:4px 7px 4px 4px;min-height:32px}.rewards-control small{font-size:9px}.reward-ring{width:21px;height:21px}.sidebar nav>.referral-nav{margin-top:0}
 #modal.rewards-drawer{inset:auto 0 0;width:100%;height:calc(100dvh - 16px);border-radius:20px 20px 0 0;padding:20px 20px max(16px,env(safe-area-inset-bottom))}.rewards-drawer .dialog-heading{margin-bottom:16px}.rewards-drawer .dialog-heading h2{font-size:22px}.reward-row{gap:9px;padding:10px 0}.reward-row-copy>strong{font-size:12px}.reward-row-copy>span{font-size:10px}.reward-row-end>strong{font-size:20px}
 #screen[data-screen="playground"]>.page-heading{flex-wrap:wrap;gap:4px}.reward-hint{font-size:10px}.reward-hint strong{margin-left:3px}.reward-next{padding:10px 12px;font-size:11px;gap:7px}.reward-next>strong{font-size:10px}.upgrade-continue .reward-next{margin-left:0;width:100%}
}
@media(max-width:480px){.has-workspace .app-header #nav{display:none}.rewards-control small{display:none}.workspace-plan{flex:1;justify-content:space-between}}
@media(max-width:360px){.reward-next{flex-wrap:wrap}.reward-next>span{flex-basis:calc(100% - 35px)}.reward-next>strong{margin-left:30px}.reward-next>.hp-icon:last-child{margin-left:auto}.reward-row-copy>strong{font-size:11px}.reward-row-end .text-button{font-size:9px}}
@media(prefers-reduced-motion:no-preference){.rewards-drawer[open]{animation:rewards-enter .16s ease-out}@keyframes rewards-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}}
.upgrade-continue{flex-wrap:wrap}.upgrade-continue>.secondary{flex-shrink:0}
@media(max-width:640px){.upgrade-continue{flex-direction:column;align-items:stretch;gap:8px}}
.reward-row{position:relative}.reward-row-end button::after{content:"";position:absolute;inset:0}.reward-row:has(button):hover{background:#f4f7ec}
@media(max-height:780px){.rewards-drawer .dialog-heading{margin-bottom:12px}.rewards-summary{padding:12px 16px}.rewards-summary strong{font-size:30px}.reward-row{padding:6px 0}.reward-history{margin-top:8px}.rewards-invite{margin-top:8px;padding:12px 0}}
