/* The workspace fits the viewport; variable-length content owns its scroll area. */
html,body{height:100%;min-height:0}
body{height:100dvh;display:flex;flex-direction:column}
.workspace-shell,.has-workspace .workspace-shell{display:grid;grid-template-rows:64px minmax(0,1fr) 38px;min-height:0;height:100dvh}
.sidebar{top:0;bottom:0;padding-top:24px}
.app-header,.has-workspace .app-header{height:64px;min-height:0;width:100%;margin:0 auto;padding:0 30px;flex-wrap:nowrap}
#screen,.has-workspace #screen,.has-workspace #screen:has(.credit-home){width:100%;height:100%;min-height:0;max-width:1200px;overflow:auto;overscroll-behavior:contain;margin:0 auto;padding:22px 30px 12px;display:flex;flex-direction:column;gap:16px;scrollbar-gutter:stable}
#screen>*{flex-shrink:0}
.app-footer,.has-workspace .app-footer{height:38px;min-height:0;width:100%;max-width:1200px;margin:0 auto;padding:0 30px;gap:20px}
.page-heading,.has-workspace .page-heading{margin:0;gap:14px}
.has-workspace h1{font-size:28px}.page-heading p,.has-workspace .page-heading p{margin-top:6px}
.panel{margin:0;padding:20px}.section-title{margin-bottom:12px}.button-row{margin-top:14px}
#screen>.fine{margin:0;font-size:10px}
.auth-layout{margin:auto;gap:45px;width:100%;max-width:800px}.auth-art{height:240px}.auth-art>.hp-icon{width:150px;height:150px}.auth-card h1{font-size:35px}.social-buttons{margin:20px 0 14px}.auth-card .fine{margin:8px 0}
.pricing-card{margin:auto;max-width:740px;width:100%;padding:25px;gap:24px}.pricing-card>div>.hp-icon{width:34px;height:34px;margin-bottom:10px}.plan-price{margin:10px 0;font-size:45px}.feature-list{margin:12px 0;line-height:2.3}.plan-panel{width:100%;padding:25px}
.checkout{width:100%;padding:23px;gap:26px;margin:auto}.order-summary{padding:22px}.order-summary>.hp-icon{width:40px;height:40px;margin-bottom:14px}.demo-payment{margin:6px 0 14px}.celebration{margin:auto}.celebration>.hp-icon{width:75px;height:75px}
/* Keep the earning action visible when a response or connection example appears. */
.credit-home{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;margin:0 auto}
.credit-heading{margin-bottom:18px;flex-shrink:0}.credit-eyebrow{margin-bottom:8px}.has-workspace .credit-heading h1{font-size:32px}.credit-heading>p{font-size:13px;margin-top:8px}
.earning-card{display:flex;flex-direction:column;flex-shrink:1;min-height:0;overflow:auto}
.reward-wallet{flex-shrink:0;padding:18px 18px 0;gap:12px}.wallet-available,.wallet-reward{padding:16px 19px}.reward-wallet strong{font-size:44px;margin:9px 0 7px}
.earn-request{padding:18px 18px 14px;display:flex;flex-direction:column;min-height:0}
.earn-request .request-card{min-height:0;flex-shrink:1;display:flex;flex-direction:column}.request-card form,.model-toolbar,.request-actions{flex-shrink:0}
.earn-request textarea{min-height:64px;height:76px;max-height:100px;font-size:16px;padding:13px 16px}
.earn-request .model-toolbar{padding:10px 15px}.earn-request .request-actions{padding:0 13px 12px}.earn-rule{margin-top:11px;font-size:11px;flex-shrink:0}
.response{min-height:0;max-height:150px;overflow:auto;overscroll-behavior:contain;padding:13px 16px}.response p{font-size:13px}
.credit-secondary{flex-shrink:0;margin-top:12px}.credit-secondary>.text-button{font-size:12px}
.earned-next{padding:17px 18px 20px;min-height:0;overflow:auto}.credit-accounting{margin-bottom:16px}.earned-actions{margin-top:16px}.earned-response>p{max-height:100px;overflow:auto}
.credit-connect{min-height:0;padding:18px;display:flex;flex-direction:column;gap:10px}.credit-connect .task-intro{margin:0}.credit-connect pre{min-height:40px;max-height:140px;flex:1;overflow:auto;padding:12px 0}.credit-connect .code-toolbar{margin-top:0}.credit-connect .connection-empty{min-height:60px}.credit-connect .task-bottom{margin:0}.credit-connect>.text-button{margin:0 auto;padding:5px}.credit-connect .task-intro h3{font-size:16px}.credit-connect .task-intro p{font-size:11px}
.standalone-playground{display:flex;flex-direction:column;min-height:0;flex:1;max-height:650px}.standalone-playground .request-card{display:flex;flex-direction:column;min-height:0}.standalone-playground .response{flex:1;max-height:none}.standalone-playground textarea{min-height:100px;height:130px;max-height:180px}.standalone-playground .quick-models{flex-shrink:0;margin-bottom:0}
/* API keys, usage and invitations grow inside their cards. */
.integration-panel{display:flex;flex-direction:column;min-height:0;flex:1}.integration-panel>.section-title{flex-shrink:0}.key-list{min-height:0;max-height:120px;overflow:auto;flex-shrink:0}.key-row{padding:9px 0}.key-row .text-button{padding:6px 0}.integration-panel .code-toolbar{margin-top:8px;flex-shrink:0}.tab{padding:11px 0}.integration-panel pre{min-height:50px;flex:1;padding:12px 0}.integration-panel>.fine{margin:6px 0 0;flex-shrink:0}.simulation-strip{margin:0;padding:14px 18px;gap:14px}.simulation-strip p{margin-top:3px}.inline-offer{margin:0;font-size:11px}.notice{margin:0;padding:11px 14px}
.stat-grid,.overview-stats{margin:0;gap:13px}.stat{padding:15px}.stat strong{font-size:28px;margin-top:6px}.overview-stat{padding:16px}.overview-stat strong{font-size:26px}
.usage-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-height:0;flex:1}.usage-panels>.panel{display:flex;flex-direction:column;min-height:0}.usage-panels .table-wrap{flex:1;min-height:0;overflow:auto}.usage-panels h2{flex-shrink:0;margin-bottom:6px}th,td{padding:11px 7px}thead{position:sticky;top:0;background:white;z-index:1}
.account-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-row{padding:12px 0}.account-panels .fine{font-size:10px;margin-bottom:0}.account-panels h2{font-size:18px}.account-panels+.button-row{margin-top:0}
.referral-hero{padding:22px;gap:24px}.referral-hero>.hp-icon{width:65px;height:65px}.referral-hero p{font-size:12px;margin:8px 0}.referral-hero .fine{font-size:10px}.referral-link{margin-top:12px}.invitation-panel{display:flex;flex-direction:column;flex:1;min-height:0}.invitation-panel>.section-title{flex-shrink:0}.referral-list{overflow:auto;min-height:0;flex:1}.invitation-panel>.fine{font-size:10px;margin-bottom:0}.referral-row{padding:10px 0}
.workspace-ready{display:flex;align-items:center;gap:22px;padding:23px}.workspace-ready>.hp-icon{width:64px;height:64px}.workspace-ready h2{font-size:21px;margin-bottom:7px}.workspace-ready p{font-size:12px;color:var(--muted);margin:0}.dashboard-bottom{margin:0;gap:15px}.dashboard-models,.dashboard-offer{padding:18px}
@media(max-height:780px) and (min-width:641px){.sidebar-plan{display:none}.sidebar-bottom{padding-top:18px}.sidebar>.brand{margin-bottom:22px}.workspace-switch{margin-bottom:22px}.sidebar nav>a{padding-top:10px;padding-bottom:10px}#screen,.has-workspace #screen{padding-top:17px;gap:12px}.credit-heading{margin-bottom:14px}.reward-wallet strong{font-size:39px}.wallet-available,.wallet-reward{padding:12px 17px}.credit-connect pre{max-height:90px}.has-workspace .credit-heading h1{font-size:29px}.earn-request{padding-top:14px}.auth-art{height:200px}.auth-art>.hp-icon{width:120px;height:120px}}
@media(max-width:820px){.usage-panels,.account-panels{grid-template-columns:1fr}.account-panels{gap:12px}.account-panels .panel{padding:16px}.overview-stat{padding:13px}.overview-stat .metric-icon{margin-bottom:7px}.dashboard-bottom{grid-template-columns:1fr}.dashboard-offer{padding:15px 18px}}
@media(max-width:640px){
 .sidebar{position:relative;top:auto;bottom:auto;padding:10px 15px 0;flex-shrink:0}.sidebar>.brand{margin-bottom:9px;font-size:21px}.sidebar nav{padding-bottom:7px}.sidebar nav>a{padding:7px 10px}
 .workspace-shell,.has-workspace .workspace-shell{height:auto;flex:1;min-height:0;grid-template-rows:46px minmax(0,1fr) 30px}
 .app-header,.has-workspace .app-header{height:46px;min-height:0;padding:0 16px;gap:8px}.app-header nav{order:0;flex-basis:auto;width:auto}.app-header>.brand{font-size:22px}.app-header>#open-events{margin-left:0}.app-header:not(:has(.breadcrumb)) nav{margin-left:auto;justify-content:flex-end}.workspace-plan .header-balance{font-size:10px}
 #screen,.has-workspace #screen,.has-workspace #screen:has(.credit-home){margin:0 auto;padding:15px 16px 8px;gap:12px;min-height:0}
 .app-footer,.has-workspace .app-footer{height:30px;padding:0 16px;gap:15px;font-size:9px}.app-footer button{font-size:9px}
 .has-workspace h1{font-size:24px}.page-heading p,.has-workspace .page-heading p{font-size:11px;margin-top:5px}.page-heading,.has-workspace .page-heading{margin:0}
 .credit-heading{margin-bottom:13px}.credit-eyebrow{font-size:10px;margin-bottom:6px}.has-workspace .credit-heading h1{font-size:26px}.credit-heading>p{font-size:12px;margin-top:6px}
 .reward-wallet{padding:11px 11px 0;gap:8px}.wallet-available,.wallet-reward{padding:11px}.reward-wallet strong{font-size:34px;margin:7px 0}.wallet-label{font-size:10px}.wallet-label .hp-icon{width:16px;height:16px}.wallet-caption{font-size:9px;min-height:26px}
 .earn-request{padding:12px 11px}.earn-request textarea{height:65px;min-height:60px;max-height:80px;padding:11px 13px;font-size:14px}.earn-request .model-toolbar{padding:10px 12px}.earn-request .model-button{font-size:11px}.earn-request .request-actions{padding:0 11px 11px}.earn-request .request-actions .primary{font-size:11px;min-height:38px}.earn-rule{font-size:10px;margin-top:10px}.credit-secondary{margin-top:8px}.credit-secondary>.text-button{font-size:11px;padding:4px}.earned-next{padding:14px}.earned-actions{gap:8px;margin-top:14px}.earned-actions>.primary,.earned-actions>.secondary{min-height:38px;padding:9px 13px}.credit-accounting{font-size:10px;margin-bottom:13px}.earned-response{padding:10px 12px}.response{max-height:100px;padding:10px 13px}.response p{font-size:11px}.response-meta{font-size:9px}
 .credit-connect{padding:14px;gap:8px}.credit-connect .task-intro h3{font-size:15px}.credit-connect .task-intro p{font-size:10px}.credit-connect .task-symbol{width:28px;height:28px}.credit-connect .setup-key{padding:10px}.credit-connect pre{min-height:35px;max-height:80px;padding:8px 0;font-size:9px}.credit-connect .task-bottom{gap:6px}.credit-connect .connection-empty{min-height:50px}.credit-connect .task-bottom>.primary{min-height:36px;padding:8px 12px;font-size:11px}
 .auth-layout{margin:auto;gap:17px;max-width:360px}.auth-art{height:85px;width:150px}.auth-art>.hp-icon{width:65px;height:65px}.floating-bonus{font-size:15px;bottom:0;padding:6px 10px}.floating-bonus .hp-icon{width:20px;height:20px}.auth-card h1{font-size:29px}.auth-card>p:not(.fine){font-size:12px;margin:8px 0}.social-buttons{margin:15px 0 11px;gap:10px}.social{min-height:44px;font-size:13px;padding:10px 15px}.auth-card .fine{font-size:10px;line-height:1.5;margin:7px 0}
 .pricing-card{padding:20px;max-width:420px}.pricing-card>div>.hp-icon{width:28px;height:28px;margin-bottom:8px}.pricing-card h2{font-size:22px}.plan-price{font-size:40px;margin:8px 0}.pricing-card p:not(.plan-price){margin:8px 0;font-size:11px}.feature-list{margin:10px 0;font-size:11px;line-height:2}.plan-action .primary{min-height:40px}.plan-action .text-button{padding:6px 0}.plan-panel{padding:22px}.plan-panel .button-row{gap:12px}
 .checkout{display:flex;flex-direction:column;padding:17px;gap:17px;max-width:430px}.order-summary{padding:16px}.order-summary>.hp-icon{display:none}.order-summary h2{font-size:18px;margin:0}.order-summary p{font-size:11px;margin:5px 0}.price-line strong{font-size:36px}.checkout-action h2{font-size:17px;margin-bottom:8px}.checkout-action>p{font-size:12px;margin:0 0 8px}.checkout-action>.fine{font-size:10px}.demo-payment{font-size:10px;margin:3px 0 12px;padding:10px}.checkout-action .primary{min-height:40px;font-size:12px}.checkout-action .text-button{padding:8px 0}.celebration>.hp-icon{width:66px;height:66px}.celebration h1{margin-top:17px}.celebration>p{font-size:13px}
 .standalone-playground textarea{height:100px;min-height:80px;max-height:130px;font-size:16px;padding:17px}.standalone-playground .request-actions{padding:0 14px 16px}.standalone-playground .quick-models{margin-top:10px}.standalone-playground .response{max-height:none}.reward-banner{font-size:11px;padding:11px 14px}
 .panel{padding:15px}.section-title h2,h2{font-size:17px}.section-title{gap:10px;margin-bottom:9px}.section-title>.secondary{padding:9px 10px;min-height:34px;font-size:10px}.key-list{max-height:94px}.key-row{gap:1px;padding:6px 0}.key-row strong{font-size:11px}.key-row code{font-size:9px;margin-top:4px}.key-row>div:last-child{gap:17px}.key-row .text-button{font-size:10px;padding:4px 0}.integration-panel .code-toolbar{margin-top:4px}.tab{padding:9px 0}.integration-panel pre{font-size:9px;min-height:30px;padding:8px 0}.integration-panel>.fine{font-size:9px;margin-top:5px}.simulation-strip{padding:11px 13px;gap:8px}.simulation-strip>.hp-icon{width:27px;height:27px}.simulation-strip strong{font-size:11px}.simulation-strip p{font-size:10px}.simulation-strip>.secondary{min-height:33px;font-size:11px;padding:8px}.inline-offer{font-size:10px;line-height:1.5}.inline-offer a{display:inline;margin-left:4px}.notice{padding:9px 11px;font-size:10px}
 .stat-grid,.overview-stats{gap:8px}.stat{padding:11px;font-size:10px}.stat strong{font-size:23px;margin-top:5px}.usage-panels{gap:12px;grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.usage-panels .panel{padding:13px}.usage-panels h2{font-size:15px}.usage-panels table{font-size:10px}th,td{padding:9px 5px}.account-panels{gap:12px}.account-panels .panel{padding:14px}.account-panels h2{font-size:16px;margin-bottom:6px}.settings-row{font-size:11px;padding:9px 0}.settings-row .secondary{min-height:32px;padding:7px 11px;font-size:11px}.account-panels .fine{font-size:9px;line-height:1.5;margin-top:8px}.account-panels+.button-row .secondary{min-height:36px;font-size:11px}
 .referral-hero{gap:12px;padding:16px;flex-direction:row;align-items:flex-start}.referral-hero>.hp-icon{width:35px;height:35px}.referral-hero>div{min-width:0}.referral-hero h2{font-size:16px;margin-bottom:7px}.referral-hero p{font-size:11px;margin:7px 0;line-height:1.5}.referral-hero p.fine{font-size:9px}.referral-link{gap:6px;margin-top:10px;flex-wrap:wrap}.referral-link input{font-size:10px;padding:10px;flex-basis:100%;width:100%}.referral-link>.primary,.referral-link>.secondary{font-size:11px;padding:8px 12px;min-height:34px}.invitation-panel>.section-title h2{font-size:14px}.invitation-panel>.section-title .secondary{font-size:9px;padding:8px;max-width:145px}.invitation-panel>.fine{font-size:9px;margin-top:8px}.referral-row strong{font-size:11px}.referral-row p{font-size:9px}.referral-row .text-button{font-size:10px}.referral-row{gap:10px;padding:8px 0}
 .overview-stat{padding:10px 12px}.overview-stat .metric-icon{width:25px;height:25px;margin-bottom:7px}.overview-stat strong{font-size:23px}.workspace-ready{padding:16px;gap:15px}.workspace-ready>.hp-icon{width:40px;height:40px}.workspace-ready h2{font-size:17px}.workspace-ready p{font-size:11px}.workspace-ready .button-row{gap:11px;margin-top:12px;flex-direction:column;align-items:flex-start}.workspace-ready .primary{min-height:37px;font-size:11px;padding:9px 13px}.workspace-ready .text-link{font-size:11px}.dashboard-bottom{gap:10px}.dashboard-models,.dashboard-offer{padding:14px 16px}.dashboard-models .section-title{margin-bottom:12px}.dashboard-offer>.hp-icon:first-child{width:30px;height:30px}.dashboard-bottom h2{font-size:12px}
}
/* Preserve access at high zoom, in landscape, and with the software keyboard open. */
@media(max-height:580px){#screen,.has-workspace #screen{overflow:auto}.credit-home{height:auto;min-height:min-content}.earning-card{flex-shrink:0}.integration-panel,.usage-panels,.invitation-panel{flex:none;min-height:200px}.standalone-playground{flex:none}.sidebar-plan,.sidebar-progress{display:none}}
/* One earned balance, one monthly offer, one route into checkout. */
.upgrade-home{display:flex;flex-direction:column;gap:20px;width:100%;max-width:940px;margin:auto 0;min-height:0}
.trial-pocket{display:flex;align-items:center;gap:14px;border:1px solid #dce8c3;background:#f1f7e4;border-radius:14px;padding:16px 20px}
.pocket-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#dfedbc}.pocket-icon .hp-icon{width:29px;height:29px}
.trial-pocket>div>span{display:block;font-size:11px;color:#52623c}.trial-pocket strong{display:block;font-size:27px;letter-spacing:-1px;line-height:1.2;margin-top:3px}
.pocket-earned{margin-left:auto;text-align:right}.pocket-earned>span{display:flex!important;gap:5px;align-items:center;justify-content:flex-end;font-weight:650}.pocket-earned .hp-icon{width:17px;height:17px}.pocket-earned small{display:block;font-size:10px;color:#63724e;margin-top:6px}
.upgrade-plan{display:grid;grid-template-columns:1.1fr 1fr;border:1px solid #d9cee8;border-radius:19px;overflow:hidden;background:#eee6f8}
.upgrade-value{padding:28px}.upgrade-kicker{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;color:#655174}.upgrade-kicker .hp-icon{width:24px;height:24px}.upgrade-value h2{margin:18px 0 0;font-weight:500}.upgrade-value h2 strong{display:block;font-size:80px;line-height:1;letter-spacing:-5px;color:#322342}.upgrade-value h2>span{display:block;font-size:17px;margin-top:8px;letter-spacing:-.4px}.upgrade-value>p{font-size:12px;color:#655174;margin:12px 0 20px}
.upgrade-models{display:flex;gap:15px;flex-wrap:wrap}.upgrade-models>span{display:flex;align-items:center;gap:5px;font-size:10px}.upgrade-models .provider-logo{width:18px;height:18px}
.upgrade-decision{padding:28px;background:#faf8fd;display:flex;flex-direction:column;justify-content:center}.upgrade-price{font-size:44px;font-weight:700;letter-spacing:-2px;margin:0}.upgrade-price>span{font-size:15px;font-weight:400;letter-spacing:0;color:#655174;margin-left:4px}.upgrade-rate{font-size:11px;color:#655174;margin:9px 0 22px}.upgrade-decision>.primary{width:100%;font-size:14px;min-height:46px}.upgrade-assurances{display:flex;flex-direction:column;gap:8px;margin-top:19px;font-size:11px;color:#52623c}.upgrade-assurances>span{display:flex;align-items:center;gap:6px}.upgrade-assurances .hp-icon{width:16px;height:16px}.upgrade-terms{font-size:10px;color:#655174;margin:14px 0 0;line-height:1.5}
.upgrade-continue{display:flex;align-items:center;gap:22px}.upgrade-continue .secondary{font-size:12px}.upgrade-continue .text-button{font-size:11px}.upgrade-response{font-size:11px;color:#52623c}.upgrade-response summary{display:flex;gap:8px;align-items:center;cursor:pointer;list-style:none}.upgrade-response summary:before{content:'+'}.upgrade-response[open] summary:before{content:'−'}.upgrade-response .hp-icon{width:15px;height:15px}.upgrade-response p{max-height:55px;overflow:auto;margin:8px 0 0;line-height:1.5}
@media(max-height:780px) and (min-width:641px){.upgrade-home{gap:14px}.upgrade-value,.upgrade-decision{padding:23px}.upgrade-value h2 strong{font-size:66px}.upgrade-value h2{margin-top:13px}.trial-pocket{padding:12px 18px}}
@media(max-width:900px){.upgrade-models>span>span{display:none}.upgrade-models{gap:18px}.upgrade-value,.upgrade-decision{padding:22px}}
@media(max-width:640px){
 .upgrade-home{gap:12px;margin:0 auto}.trial-pocket{padding:12px;gap:10px}.pocket-icon{width:33px;height:33px}.pocket-icon .hp-icon{width:24px;height:24px}.trial-pocket>div>span{font-size:10px}.trial-pocket strong{font-size:24px}.pocket-earned small{font-size:9px}
 .upgrade-plan{grid-template-columns:1fr;border-radius:15px}.upgrade-value{padding:17px 20px;position:relative}.upgrade-kicker{font-size:11px}.upgrade-kicker .hp-icon{width:20px;height:20px}.upgrade-value h2{margin-top:10px}.upgrade-value h2 strong{font-size:56px;letter-spacing:-3px}.upgrade-value h2>span{font-size:14px;margin-top:5px}.upgrade-value>p{font-size:10px;margin:9px 0 0}.upgrade-models{position:absolute;right:18px;top:56px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.upgrade-models .provider-logo{width:21px;height:21px}
 .upgrade-decision{padding:15px 20px}.upgrade-price{font-size:32px;letter-spacing:-1px}.upgrade-price>span{font-size:12px}.upgrade-rate{font-size:9px;margin:4px 0 12px}.upgrade-decision>.primary{font-size:12px;min-height:40px}.upgrade-assurances{flex-direction:row;flex-wrap:wrap;gap:7px 11px;margin-top:11px;font-size:9px}.upgrade-assurances .hp-icon{width:13px;height:13px}.upgrade-terms{font-size:9px;margin-top:8px}.upgrade-continue{gap:7px;justify-content:space-between}.upgrade-continue .secondary{min-height:37px;font-size:10px;padding:8px 10px;gap:7px}.upgrade-continue .text-button{font-size:10px;padding:6px 0}.upgrade-response{font-size:10px}.upgrade-response p{max-height:35px}
}
@media(max-height:580px){.upgrade-home{flex-shrink:0;min-height:min-content}}
@media(max-width:640px) and (max-height:780px){
 .upgrade-home{gap:8px}.trial-pocket{padding:9px 12px}.upgrade-value,.upgrade-decision{padding:12px 18px}.upgrade-value h2{margin-top:7px}.upgrade-value h2 strong{font-size:48px}.upgrade-value>p{margin-top:6px}.upgrade-models{top:48px}.upgrade-price{line-height:1.15}.upgrade-rate{margin-bottom:9px}.upgrade-assurances{margin-top:8px}.upgrade-terms{margin-top:6px}
}
