/* Existing pencil world, now attached to the server. */
.connected-shell{--spatial:440ms;--medium:280ms}
.connected-shell .chat-workbench{transition:grid-template-columns 440ms var(--ease);height:calc(100dvh - 260px);max-height:780px}
.connected-shell .workspace{padding-bottom:32px}
.connected-shell .workspace-context{min-height:64px}
.workspace-search{margin-left:auto;font-size:12px;gap:8px;min-height:40px}
.workspace-search kbd{font:11px Onest,sans-serif;border:1px solid var(--line);padding:2px 6px;border-radius:5px;color:var(--muted)}
.connected-shell .page-heading h1{font-size:42px;line-height:1.25}
.connected-shell .content-page{padding-top:28px}
.connected-shell .content-page>p{font-size:14px;line-height:1.7}
@media(min-width:761px){
 .connected-shell.nav-expanded .rail-link{height:auto;min-height:48px;gap:12px;padding:10px 24px 10px 14px}
 .connected-shell.nav-expanded .rail-link>.icon{flex-shrink:0}
 .connected-shell.nav-expanded .rail-link>span{flex:1;min-width:0;max-width:none;white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.35}
 .connected-shell.nav-expanded .rail-active-dot{top:50%;right:10px;transform:translateY(-50%)}
}
.connected-shell .overview-companion>code{display:block;font-size:11px;line-height:1.6;text-align:center;margin-top:8px;color:var(--muted)}
.developer-stat-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:32px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.developer-stat-strip>div{padding:24px 20px;min-width:0}
.developer-stat-strip>div:first-child{padding-left:0}
.developer-stat-strip dt{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.6}
.developer-stat-strip dd{font-size:28px;line-height:1.3;margin:0;font-weight:500;font-variant-numeric:tabular-nums}
.developer-stat-strip dd.small-stat{font-size:15px;line-height:1.6}
.developer-next-steps{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:28px 0}
.developer-next-steps>a{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line);min-width:0}
.developer-next-steps>a>span{display:flex;flex-direction:column;gap:6px;min-width:0;line-height:1.6}
.developer-next-steps strong{font-size:17px;font-weight:500}
.developer-next-steps small{font-size:13px;color:var(--muted)}
.developer-next-steps .icon{flex:none;width:20px;height:20px}
.developer-next-steps>a>.icon:last-child{margin-left:auto}
.segment-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-top:20px}
.segment-tabs button{position:relative;font-size:14px;color:var(--muted);padding:14px 0;min-height:44px}
.segment-tabs [aria-selected=true]{color:var(--ink);font-weight:600}
.segment-tabs [aria-selected=true]::after{content:'';position:absolute;height:2px;background:var(--ink);bottom:-1px;left:0;right:0}
.sandbox-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:48px;align-items:start;margin-top:32px}
.sandbox-grid [type=submit]{align-self:flex-start}
.workspace-skeleton{padding:40px 0;max-width:100%;min-height:580px}
.workspace-skeleton>.skeleton{max-width:420px}
.skeleton-sheet{height:340px;max-width:680px;margin-top:32px;border-radius:16px;background:#eef1e7;display:grid;place-items:center}
.skeleton-sheet>.mascot{width:130px;opacity:.6}
.server-error{max-width:540px;padding:48px 0;line-height:1.7}
.server-error h2{font-family:Actay Wide,sans-serif;font-size:25px;line-height:1.4;letter-spacing:-.03em}
.server-empty{display:flex;align-items:center;gap:32px;padding:40px 0;max-width:700px;line-height:1.7}
.server-empty>.mascot{width:180px;flex:none}
.server-empty h2{font-size:23px;font-weight:500;margin-bottom:12px}
.server-empty p{font-size:14px;color:var(--muted);margin-bottom:20px}
.workspace-notice{display:flex;align-items:flex-start;gap:12px;line-height:1.7;font-size:13px;color:#506046;padding:16px 0;margin:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.developer-shell .workspace-notice{color:#5c526e}
.workspace-notice .icon{flex:none;margin-top:2px;width:18px;height:18px}
.workbench-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;min-height:36px;font-size:12px;color:#536347}
.workbench-toolbar>span,.workbench-toolbar>div{display:flex;align-items:center;gap:8px}
.workbench-toolbar small{font-size:11px}
.workbench-toolbar>span>.icon{width:16px;height:16px}
.workbench-toolbar>div>.text-button{font-size:12px}
.workbench-toolbar .mobile-result-switch{display:none}
.server-workbench .conversation-flow{padding-bottom:36px;overscroll-behavior:contain}
.server-workbench .chat-welcome{padding-top:42px}
.server-workbench .chat-welcome h1{font-size:40px}
.chat-welcome h1>.welcome-last-word{display:inline;white-space:nowrap;color:inherit;transform:none}
.welcome-last-word>span{display:inline-block;color:#667b54;transform:rotate(12deg)}
.server-workbench .chat-welcome>p:not(.hand-note){font-size:15px;line-height:1.8}
.server-workbench .welcome-note{top:12px;right:0;font-size:25px;color:#52614a}
.server-workbench .prompt-suggestions button{font-size:12px;min-height:42px;max-width:100%;white-space:normal;text-align:left}
.server-workbench .composer{margin-top:auto}
.server-workbench .composer textarea{font-size:15px;line-height:1.6;min-height:72px;resize:none}
.server-workbench .example-model{display:flex;align-items:center;gap:6px;font-size:12px;color:#52614a}
.server-workbench .example-model .icon{width:16px;height:16px}
.server-workbench .composer-hint{font-size:11px}
.server-workbench .composer-footnote{font-size:11px;line-height:1.6;max-width:65ch;margin:12px auto 0;text-align:center}
.server-workbench .assistant-message{font-size:14px;line-height:1.8}
.server-workbench .assistant-message small{font-size:11px}
.server-workbench .user-message{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.server-workbench .artifact-top{font-size:12px;min-height:58px;gap:8px}
.server-workbench .artifact-top small{font-size:11px;color:var(--muted)}
.server-workbench .artifact-document{transform-origin:50% 0;overflow-wrap:anywhere}
.server-workbench .artifact-document h2{font-size:25px;line-height:1.45;letter-spacing:-.03em}
.server-workbench .artifact-document p,.server-workbench .artifact-document li{font-size:14px;line-height:1.85}
.server-workbench .artifact-document .document-note{font-size:12px;line-height:1.7}
.server-workbench .artifact-actions{gap:8px;flex-wrap:wrap}
.server-workbench .artifact-actions .button{min-height:42px}
.server-workbench .artifact-empty{background:var(--yellow)}
.chat-inline-error{padding:14px 0;color:var(--error);font-size:14px}
.recent-list>.recent-conversation{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}
.recent-conversation>span{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#e8edde;flex:none}
.recent-conversation strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.recent-conversation small{color:var(--muted);margin-left:auto;white-space:nowrap;font-size:11px}
.recent-conversation>.icon{margin-left:auto;flex:none}
.auth-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:24px 0}
.auth-tabs button{font-size:14px;padding:12px 0;position:relative;color:var(--muted)}
.auth-tabs [aria-selected=true]{color:var(--ink);font-weight:600}
.auth-tabs [aria-selected=true]::after{content:'';height:2px;background:var(--ink);position:absolute;bottom:-1px;left:0;right:0}
.connected-start{padding-top:48px;padding-bottom:64px;min-height:calc(100dvh - 76px)}
.connected-start .start-content h1{font-size:clamp(30px,3.4vw,45px);line-height:1.3;letter-spacing:-.04em}
.connected-start .start-content>p{font-size:15px;line-height:1.7}
#server-auth-form{display:flex;flex-direction:column;gap:10px}
#server-auth-form>label{font-size:13px;margin-top:8px}
#server-auth-form .text-input{font-size:15px}
.password-field{position:relative}
.password-field input{padding-right:90px}
.password-field button{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:12px;min-height:36px}
.auth-error{min-height:22px;font-size:13px;line-height:1.6}
.connected-start .start-note{font-size:12px;line-height:1.7}
.settings-data-actions{align-items:flex-start}
.account-session{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}
.connected-shell .switch-row small{font-size:12px;line-height:1.6}
.connected-shell .field-hint{font-size:12px;line-height:1.7}
.saved-sheet{flex:1;min-width:0}
.saved-sheet summary{display:flex;align-items:center;gap:16px;cursor:pointer;padding:22px 0;list-style:none}
.saved-sheet summary::-webkit-details-marker{display:none}
.saved-sheet summary>span{display:grid;place-items:center;background:var(--mint);width:44px;height:44px;border-radius:10px;flex:none}
.saved-sheet summary>div{flex:1;min-width:0}
.saved-sheet summary h2{font-size:18px;margin-bottom:4px;line-height:1.6}
.saved-sheet summary p{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.saved-sheet summary>.icon{flex:none;transition:transform 180ms var(--ease)}
.saved-sheet[open] summary>.icon{transform:rotate(90deg)}
.saved-sheet-body{padding:0 32px 24px 60px;max-width:75ch;line-height:1.9;font-size:14px;overflow-wrap:anywhere}
.saved-sheet-body ol{padding-left:20px;margin:16px 0}
.saved-sheet-body li{margin-bottom:10px}
.saved-material{align-items:flex-start}
.saved-tools{padding-top:22px}
.real-invite-field{display:flex;gap:12px;margin:24px 0}
.real-invite-field input{min-width:0;font-size:13px}
.referral-counts{display:flex;flex-wrap:wrap;gap:40px;padding:24px 0;margin:16px 0}
.referral-counts>div{display:flex;flex-direction:column;gap:8px}
.referral-counts span{font-size:12px;color:var(--muted)}
.referral-counts strong{font-size:28px;font-weight:500;font-variant-numeric:tabular-nums}
.reward-list{list-style:none;margin:16px 0;padding:0}
.reward-list li{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}
.ledger-heading{margin-top:40px}
.payment-inline{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:24px 0}
.payment-inline label{font-size:13px;display:grid;gap:8px}
.key-secret{font-family:ui-monospace,Consolas,monospace;letter-spacing:0;font-size:14px}
.key-secret-actions{display:flex;gap:16px;margin-top:20px;flex-wrap:wrap}
.token-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#api-calculator{display:flex;flex-direction:column;gap:20px;min-width:0}
#api-calculator label{display:flex;flex-direction:column;gap:8px;font-size:13px;min-width:0}
.calculator-result{min-height:340px;padding:28px;background:var(--paper);border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px}
.calculator-result>.mascot{width:130px}
.calculator-result h2{font-size:24px}
.calculator-result p{font-size:14px;line-height:1.7}
.calculated-price{font-size:42px;font-weight:500;font-variant-numeric:tabular-nums}
.real-code{background:var(--white);padding:24px;border-radius:12px;position:relative;margin:24px 0}
.real-code pre{font-size:12px;line-height:1.9;overflow:auto;padding-right:28px}
.real-code>.icon-button{position:absolute;top:12px;right:12px}
.connection-layout article{max-width:75ch;line-height:1.9;font-size:15px}
.connection-layout h2{font-size:22px;line-height:1.6;margin:32px 0 12px}
.connection-layout h2:first-child{margin-top:0}
.quick-search-results{max-height:420px;overflow:auto;margin-top:16px}
.quick-search-results>a{display:flex;align-items:center;gap:12px;padding:14px 8px;border-radius:10px;font-size:14px;line-height:1.6}
.quick-search-results>a:hover{background:var(--mint)}
.quick-search-results>a>span{flex:1;overflow-wrap:anywhere}
.quick-search-results>a>.icon{flex:none}
.quick-search-results>p{font-size:13px;line-height:1.7;padding:16px 0}
.is-paused .skeleton,.is-paused .thinking>span{animation-play-state:paused}
.is-offscreen .skeleton,.is-offscreen .thinking>span{animation-play-state:paused}
@media(max-width:1100px){.server-workbench .chat-welcome h1{font-size:32px}.server-workbench .welcome-note{font-size:22px;position:static;text-align:right;margin-bottom:18px}.connected-shell .chat-workbench.result-focused{grid-template-columns:minmax(160px,.6fr) minmax(0,1.4fr)}.server-workbench .composer-hint{display:none}.server-workbench .artifact-document{padding:20px}.server-workbench .artifact-document h2{font-size:22px}.connected-shell .page-heading h1{font-size:36px}.developer-stat-strip{grid-template-columns:1fr 1fr}.developer-stat-strip>div:nth-child(3){padding-left:0}.developer-stat-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.developer-next-steps{grid-template-columns:1fr;gap:0}.sandbox-grid{gap:28px}}
@media(max-width:760px){
 .connected-shell .workspace{padding:0 20px 104px}.connected-shell .content-page{padding-top:20px}.connected-shell .workspace-context{min-height:58px;gap:6px}
 .workspace-search{display:flex;margin-left:auto;min-width:40px;justify-content:center}.workspace-search>span,.workspace-search>kbd{display:none}
 .connected-shell .page-heading h1{font-size:30px;line-height:1.35}.connected-shell .page-heading{gap:20px}.connected-shell .page-heading>p{font-size:14px}
 .connected-shell .page-heading:has(.page-companion){padding-bottom:0}.connected-shell .page-heading .page-companion{position:static;display:block;width:100px;max-width:100px;margin:20px 0 0 auto}
 .connected-shell .developer-intro h1{font-size:30px}.connected-shell .developer-intro p{font-size:14px;line-height:1.8;min-height:148px;width:calc(100% - 125px)}
 .connected-shell .overview-companion{width:135px;max-width:135px;top:146px}.connected-shell .overview-companion>code{font-size:9px;overflow-wrap:anywhere}
 .connected-shell .overview-companion>.hand-note{top:-38px;font-size:20px;line-height:1.1}
 .developer-stat-strip>div{padding:20px 10px}.developer-stat-strip dt{font-size:11px}.developer-stat-strip dd{font-size:25px}.developer-stat-strip dd.small-stat{font-size:13px}
 .developer-next-steps strong{font-size:16px}.developer-next-steps small{font-size:12px}.sandbox-grid{grid-template-columns:1fr;gap:28px}.sandbox-grid .calculator-result{min-height:280px}
 .workbench-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:16px}.workbench-toolbar>div{width:100%;justify-content:space-between}.workbench-toolbar .mobile-result-switch{display:inline-flex;min-height:40px}
 .connected-shell .server-workbench{height:auto;max-height:none;min-height:0;scroll-margin-top:80px}
 .server-workbench .conversation-flow{min-height:280px;padding-bottom:32px}.server-workbench.has-thread .conversation-flow{min-height:200px}
 .server-workbench .chat-welcome{padding-top:12px}.server-workbench .chat-welcome h1{font-size:34px}.server-workbench .chat-welcome>p:not(.hand-note){font-size:14px}.server-workbench .welcome-note{position:static;font-size:23px;text-align:right;margin-bottom:20px}
 .server-workbench .composer{margin-top:56px;padding:16px 14px 12px}.server-workbench .composer textarea{font-size:16px;min-height:76px}
 .server-workbench .composer-footnote{font-size:11px;text-align:left}.server-workbench .send-button{width:40px;height:40px}
 .server-workbench:not([data-mobile-view=result]) .artifact-board{display:none}.server-workbench[data-mobile-view=result] .conversation-area{display:none}.server-workbench[data-mobile-view=result] .artifact-board{display:flex;min-height:440px;max-height:none;scroll-margin-top:80px}
 .server-workbench .artifact-document{padding:24px}.server-workbench .artifact-document h2{font-size:25px}.server-workbench .artifact-document p,.server-workbench .artifact-document li{font-size:14px}
 .server-workbench .artifact-actions .button{font-size:13px}.recent-conversation small{display:none}
 .server-empty{gap:16px;flex-direction:column;align-items:flex-start;padding:28px 0}.server-empty>.mascot{width:130px}.server-empty h2{font-size:22px}
 .connected-start{padding-top:32px;padding-bottom:40px;gap:20px}.connected-start .start-art{display:none}.connected-start .start-content h1{font-size:32px}.connected-start .start-content{max-width:100%;width:100%}
 .saved-material{position:relative;flex-wrap:wrap}.saved-sheet{flex-basis:100%}.saved-sheet summary{gap:12px;padding-right:0}.saved-sheet summary h2{font-size:16px}.saved-sheet-body{padding:0 4px 4px;font-size:14px}.saved-tools{padding:0 0 16px;margin-left:52px}
 .real-invite-field{flex-direction:column}.real-invite-field>.button{align-self:flex-start}.referral-counts{gap:28px}.referral-counts strong{font-size:25px}
 .token-inputs{grid-template-columns:1fr}.key-secret-actions{gap:12px}.calculated-price{font-size:32px}.calculator-result{padding:24px}.real-code{padding:20px 16px}.real-code pre{font-size:11px}
}
@media(max-width:360px){.server-workbench .chat-welcome h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.connected-shell,.connected-shell .chat-workbench{transition:none}.skeleton,.thinking>span{animation:none}}
.reduce-motion .connected-shell,.reduce-motion .connected-shell .chat-workbench{transition:none}
