/* Launch keeps progress beside the current action, stacked on small screens. */
*{box-sizing:border-box}
body.native-launch{margin:0;background:var(--claus-paper);color:var(--claus-ink);font:16px/1.5 Claus,system-ui,sans-serif}
.native-launch [hidden]{display:none!important}
.native-launch :is(button,input,textarea){font:inherit}
.native-launch :is(button,a,input,textarea,summary):focus-visible{outline:2px solid var(--claus-ink);outline-offset:4px}
.native-launch a{color:inherit;text-underline-offset:4px}
.native-launch button{min-height:44px;padding:10px 16px;border:1px solid #14140f26;border-radius:10px;color:inherit;background:transparent;cursor:pointer;line-height:1.35}
.native-launch button:disabled{opacity:.5;cursor:default}
.native-launch button:not(:disabled):hover{background:#14140f08}
.native-launch .launch-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:1px solid var(--claus-ink);border-radius:10px;background:var(--claus-ink);color:var(--claus-paper);text-align:center;text-decoration:none;font-weight:500}
.native-launch .launch-primary:not(:disabled):hover{background:#35342c}
.native-launch .launch-text-button{border:0;padding-inline:12px;color:#64645b;font-size:14px}
.launch-skip{position:fixed;z-index:30;inset:8px auto auto 8px;padding:12px;background:var(--claus-paper);transform:translateY(-180%)}
.launch-skip:focus{transform:none}
#launch-main{max-width:1160px;margin:0 auto;padding:28px 24px 32px;scroll-margin-top:110px}
.launch-heading{margin:4px 0 24px;text-align:left}
.launch-heading h1{font:500 clamp(32px,4vw,40px)/1.12 Claus,system-ui,sans-serif;letter-spacing:-.025em;text-wrap:balance;margin:0}
.launch-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:40px}
.launch-work{width:100%;min-width:0;padding:28px;background:var(--claus-surface,#fffdf8);border-radius:12px}
.launch-side{order:-1;min-width:0;width:100%}
.launch-wallet{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.launch-wallet>div{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.native-launch h2{font-size:21px;line-height:1.3;font-weight:500;letter-spacing:-.025em;margin:0 0 16px}
.launch-wallet h2{margin:0;font-size:14px;font-weight:500;color:#64645b;letter-spacing:0}
.launch-wallet p{margin:0;font-size:14px;font-variant-numeric:tabular-nums}
.launch-wallet>button{flex-shrink:0;font-size:14px}
.launch-status{font-size:14px;line-height:1.5;margin:0 0 20px;color:#64645b}
.launch-status:empty,#wallet-state:empty,#wallet-dialog-status:empty,#pending-copy:empty{display:none}
.launch-error{padding:14px 16px;background:#fce5d8;border-radius:10px;font-size:14px;color:#852b16;margin:16px 0;overflow-wrap:anywhere}
.native-launch fieldset{padding:0;margin:0;border:0;min-width:0}
.launch-name-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:16px}
.launch-field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;min-width:0}
.native-launch label{display:block;font-size:14px;font-weight:500;margin-bottom:8px}
.launch-field label{margin:0}
.native-launch :is(input,textarea){display:block;width:100%;min-width:0;min-height:48px;padding:12px 14px;border:1px solid #14140f30;border-radius:10px;color:var(--claus-ink);background:#fffefa;font-size:16px;line-height:1.5}
.native-launch textarea{resize:vertical}
.native-launch :is(input,textarea)::placeholder{color:#716b5d;opacity:1}
.native-launch :is(input,textarea)[aria-invalid=true]{border-color:#852b16}
.native-launch :is(input,textarea):disabled{opacity:1;color:#64645b;background:transparent}
.launch-hint{font-size:13px;line-height:1.55;color:#64645b;margin:0;max-width:60ch}
.field-error{font-size:13px;color:#852b16}
.field-error:empty{display:none}
.launch-home-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:-4px 0 20px;overflow-wrap:anywhere;color:#64645b}
.launch-home-preview>span{min-width:0}
.launch-review{margin-top:28px}
.review-agent{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.review-agent>img{border-radius:12px;object-fit:cover}
.review-agent>div{display:grid;gap:4px}
.review-agent strong{font-size:20px;font-weight:500}
.review-agent span{font-size:13px;color:var(--claus-muted)}
#launch-result,#funding-review{margin-top:0}
.launch-review>p{margin:0 0 18px}
.launch-review .launch-hint{margin:16px 0}
.launch-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0 12px}
.funding-amount{margin:8px 0 26px}
.funding-amount strong{font-size:56px;line-height:1.1;letter-spacing:-.05em;font-weight:500;font-variant-numeric:tabular-nums}
.funding-amount strong span{font-size:20px;letter-spacing:-.015em}
.funding-amount p{margin:8px 0 0;color:#64645b;font-size:14px}
.native-launch dl{margin:18px 0 24px}
.native-launch dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:7px 0;font-size:14px}
.native-launch dt{color:#64645b}
.native-launch dd{margin:0;overflow-wrap:anywhere}
.launch-address{font-size:13px;font-variant-numeric:tabular-nums;user-select:all}
.native-launch :is(.launch-fee-stats,.launch-budget){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0;padding:20px;background:var(--claus-paper);border-radius:12px}
.native-launch :is(.launch-fee-stats,.launch-budget)>div{display:flex;flex-direction:column;gap:8px;padding:0;min-width:0}
:is(.launch-fee-stats,.launch-budget) dt{font-size:12px;line-height:1.4}
:is(.launch-fee-stats,.launch-budget) dd{font-size:clamp(22px,3vw,28px);line-height:1.15;font-weight:500;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.launch-progress{list-style:none;counter-reset:steps;padding:0;margin:0;display:grid;grid-template-columns:1fr;gap:24px}
.launch-progress li{counter-increment:steps;display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:10px;align-items:center;font-size:14px;min-width:0}
.launch-progress li::before{content:counter(steps) / "";grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#14140f08;color:#64645b;font-size:12px}
.launch-progress li[aria-current=step]::before{background:var(--claus-orange);color:var(--claus-ink)}
.launch-progress li[data-complete=true]::before{content:'✓' / "";background:var(--claus-ink);color:var(--claus-paper)}
.launch-progress small{font-size:11px;line-height:1.35;color:#64645b;margin-top:2px;overflow-wrap:anywhere}
#owner-launches{margin-top:16px;text-align:left;font-size:14px}
#owner-launches summary{min-height:44px;line-height:44px;cursor:pointer}
#owner-launch-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;margin-top:8px}
#owner-launch-list button{text-align:left;overflow-wrap:anywhere;font-size:13px}
#owner-launch-list button[aria-pressed=true]{border-color:var(--claus-ink);background:#14140f08}
#recover-hash{margin-top:24px}
#recover-hash button,#collision-form button{margin-top:12px}
#cancel-launch,#start-another{display:block;margin-top:16px}
.launch-technical{margin:12px 0;font-size:13px;color:#64645b}
.launch-technical summary{cursor:pointer;min-height:44px;padding:12px 0}
.launch-technical dl{margin-top:6px}
.launch-technical p{margin:10px 0;line-height:1.6}
.agent-controls{margin-top:30px}
.agent-control-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.agent-control-heading h3{margin:0;font-size:18px;font-weight:500}
#agent-task-form button{margin-top:12px}
#agent-task-status{margin-top:10px}
.agent-market-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px;font-size:14px}
.agent-market-links a{display:inline-flex;align-items:center;min-height:44px}
.native-launch dialog{width:min(430px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:0;border-radius:20px;padding:24px;background:#fffdf8;color:var(--claus-ink);overscroll-behavior:contain;box-shadow:0 24px 80px #0003}
.native-launch dialog::backdrop{background:#14140f66}
.launch-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.launch-dialog-heading h2{margin:0;font-size:22px}
.launch-dialog-heading button{font-size:24px;padding:4px 12px;border:0}
.launch-wallet-options{display:grid;gap:10px;margin-top:20px}
.launch-wallet-options button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;background:var(--claus-paper);border:0}
.launch-wallet-options img{width:28px;height:28px;object-fit:contain}
#wallet-dialog-status{font-size:14px;margin:16px 0 0}
.launch-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:900px){.launch-layout{grid-template-columns:1fr;gap:24px}.launch-progress{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media(max-width:600px){#launch-main{padding:24px 16px 36px}.launch-heading{margin:0 0 24px}.launch-layout{gap:20px}.launch-work{padding:22px 18px;border-radius:16px}.launch-progress{gap:8px}.launch-progress li{grid-template-columns:minmax(0,1fr);gap:5px;font-size:12px}.launch-progress li::before{grid-row:auto;margin-bottom:3px}.launch-progress small{font-size:10px}.launch-name-row{grid-template-columns:minmax(0,1fr) 100px;gap:12px}.launch-wallet{margin-bottom:24px}.launch-wallet>div{gap:4px}.launch-wallet h2{width:100%;font-size:12px}.launch-wallet>button{padding-inline:12px}.native-launch :is(.launch-fee-stats,.launch-budget){padding:16px;gap:12px}.launch-fee-stats dt{font-size:11px}.launch-actions .launch-primary,#review-launch{width:100%}.launch-actions{gap:4px}.launch-actions .launch-text-button{margin:auto}.native-launch dl>div{grid-template-columns:88px minmax(0,1fr);gap:12px}.funding-amount strong{font-size:48px}}
@media(prefers-reduced-motion:no-preference){.native-launch button{transition:background-color 140ms ease,scale 140ms ease}.native-launch button:active:not(:disabled){scale:.96}}
@media(forced-colors:active){.native-launch :is(button,a,input,textarea,summary):focus-visible{outline-color:Highlight}.native-launch :is(.launch-work,.launch-progress li::before){border:1px solid CanvasText}}
/* Availability uses the real request state, not a timed loading screen. */
.launch-status[data-loading=true]{display:flex;align-items:center;gap:8px}
.launch-status[data-loading=true]::before{content:"";width:12px;height:12px;flex:0 0 12px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%}
@media(prefers-reduced-motion:no-preference){.launch-status[data-loading=true]::before{animation:launch-wait .8s linear infinite}}
@keyframes launch-wait{to{transform:rotate(360deg)}}
@media(max-width:600px){
 #launch-main{padding:22px 16px 24px}.launch-heading{margin-bottom:20px}.launch-layout{gap:18px}
 .launch-progress li{grid-template-columns:24px minmax(0,1fr);column-gap:6px;row-gap:4px;font-size:12px}
 .launch-progress li::before{width:24px;height:24px;grid-row:1;margin:0;font-size:11px}
 .launch-progress small{grid-column:1/-1;font-size:11px}
 .launch-work{padding:20px 18px}.launch-wallet{margin-bottom:18px}
 .launch-field{gap:6px;margin-bottom:16px}.native-launch textarea{min-height:64px;padding:10px 12px;line-height:1.4}
 .launch-home-preview{margin-bottom:12px}.launch-heading h1{font-size:30px}
}

.launch-guide-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:#64645b!important;text-decoration:none}.launch-guide-link:hover{text-decoration:underline}
#launch-success{text-align:center;width:min(470px,calc(100% - 32px));padding:26px}
#launch-success h3{font-size:30px;line-height:1.15;letter-spacing:-.035em;margin:16px 0 8px;overflow-wrap:anywhere}
#launch-success p{font-size:14px;line-height:1.6;color:#64645b;margin:8px 0}
.launch-success-mark{display:grid;place-items:center;width:56px;height:56px;margin:28px auto 0;border-radius:50%;background:var(--claus-orange);font-size:26px}
#launch-success .launch-actions{justify-content:center;gap:16px;margin-bottom:0}

#launch-fields{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);column-gap:28px}
#launch-profile{grid-column:1;grid-row:1/8}
#launch-fields>:not(#launch-profile):not(legend){grid-column:2}
#launch-fields>legend{position:absolute}
.agent-profile-fields{display:grid;gap:12px}.agent-profile-editor label{margin:0;font-weight:400}
.agent-profile-editor label>span{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.agent-profile-editor label>span img,.agent-profile-editor label>span svg{width:16px;height:16px}
.agent-art-editor{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px;position:relative}
.agent-art-editor>img{width:72px;height:72px;object-fit:cover;border-radius:12px}
.agent-art-editor input[type=file]{position:absolute;width:1px;height:1px;opacity:0;padding:0;border:0;min-height:0;overflow:hidden}
.agent-upload{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #14140f26;border-radius:8px;cursor:pointer}
.agent-upload[aria-disabled=true]{opacity:.5;cursor:default}.agent-art-editor:focus-within .agent-upload{outline:2px solid;outline-offset:4px}
.agent-profile-editor details{margin:12px 0}.agent-profile-editor summary{min-height:44px;cursor:pointer;display:flex;align-items:center;color:var(--claus-muted,#64645b);font-size:14px}
.agent-profile-editor details label{margin-bottom:12px}.agent-profile-editor input{font-size:16px}
.agent-workspace-tabs{margin-top:24px;display:grid;gap:8px}.agent-workspace-tabs>details{background:var(--claus-paper);padding:0 16px;border-radius:8px}
.agent-workspace-tabs>details>summary{cursor:pointer;min-height:52px;align-content:center;font-size:16px}.agent-workspace-tabs>details[open]{padding-bottom:16px}
#managed-profile .agent-profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.agent-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:12px 0;font-size:14px}.agent-history-row time{grid-column:1/-1;font-size:12px;color:var(--claus-muted,#64645b)}
.agent-change-row{padding:12px 0;overflow-wrap:anywhere}.agent-change-row p{margin:0 0 4px}.agent-change-row span{font-size:14px;color:var(--claus-muted,#64645b)}
@media(max-width:600px){#launch-fields{display:block}#launch-profile{margin-bottom:24px}.agent-profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-profile-fields label:first-child{grid-column:1/-1}#managed-profile .agent-profile-fields{grid-template-columns:1fr}.launch-work{padding:20px 16px}.agent-history-row{grid-template-columns:1fr}}

.agent-fee-details summary{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.agent-fee-details summary span{font-variant-numeric:tabular-nums;font-weight:500}

/* Private resident workspace: one focused panel at a time. */
.agent-workspace{margin-block:24px}
.agent-panel-nav{display:flex;gap:8px;flex-wrap:wrap;margin-block:0 20px}
.native-launch .agent-panel-nav button{border-color:transparent;padding:10px 12px}
.native-launch .agent-panel-nav button[aria-pressed=true]{background:var(--claus-orange,#ff6b35);color:var(--claus-ink)}
.agent-conversation{display:flex;flex-direction:column;gap:14px;max-height:340px;overflow:auto;overscroll-behavior:contain;padding:4px 8px 12px 0}
.agent-conversation:empty{display:none}
.agent-message{max-width:90%;padding:14px 16px;background:var(--claus-paper);border-radius:12px}
.agent-message.from-owner{align-self:flex-end;background:#ff6b3515}
.agent-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}
.agent-message small,.message-author{font-size:12px;color:#64645b}
.agent-message-form label{margin-top:16px}
.agent-message-form button,#agent-file-form button,#api-form button{margin-top:12px}
.agent-current-task{margin-block:16px}
.agent-file-actions,.agent-file-list{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.agent-file-list button{overflow-wrap:anywhere;text-align:left}
#agent-file-form label:not(:first-child),#api-form label{margin-top:16px}
#agent-file-text,#source-text{font-family:ui-monospace,SFMono-Regular,monospace;font-size:14px;tab-size:2}
#source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto}
#source-text:empty,#source-name:empty,#source-more:empty{display:none}
.agent-api-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.agent-api-options select{font:inherit;width:100%;min-height:44px;background:var(--claus-paper);color:inherit;border:1px solid #14140f30;border-radius:8px;padding:8px}
.agent-api-row{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:12px}
.agent-api-row span{display:block;font-size:13px;color:#64645b;overflow-wrap:anywhere}
.agent-panel-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:13px}
#workspace-status{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
#workspace-status:empty{display:none}
@media(max-width:560px){.agent-panel-nav{gap:2px}.native-launch .agent-panel-nav button{font-size:14px;padding-inline:8px}.agent-message{max-width:96%}.agent-conversation{max-height:300px}.agent-api-options{gap:10px}#agent-file-text{font-size:16px}}
