.founder-wrap{max-width:1120px;margin:auto;padding:38px 24px 72px}.founder-heading,.founder-section-heading,.founder-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.founder-heading{margin-bottom:24px}.founder-heading h1{font-size:28px;letter-spacing:-.03em;margin:6px 0}.founder-heading p,.founder-help{color:var(--muted);font-size:13px}.founder-eyebrow{font-size:12px;color:var(--signal);font-weight:600}.founder-saved{display:flex;align-items:center;gap:12px;margin-bottom:20px}.founder-saved select{min-width:240px;padding:8px;border:1px solid var(--line);border-radius:8px;font:inherit;max-width:100%}.founder-steps{list-style:none;display:flex;gap:22px;margin:24px 0}.founder-steps li{flex:1;display:flex;gap:10px;align-items:center;border-bottom:2px solid var(--line);padding-bottom:15px;color:var(--faint)}.founder-steps li span{width:26px;height:26px;border-radius:50%;background:var(--raise);display:grid;place-items:center}.founder-steps li.on{color:var(--signal);border-color:var(--signal)}.founder-steps li.on span{color:white;background:var(--signal)}.founder-pane{padding:30px}.founder-field{display:block;font-weight:600;font-size:13px}.founder-field>span{color:var(--signal)}.founder-field input,.founder-field textarea,.founder-editor textarea{display:block;width:100%;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel);padding:12px 14px;margin:9px 0 20px;outline:none;font:inherit;line-height:1.7}.founder-field input:focus,.founder-field textarea:focus,.founder-editor textarea:focus{border-color:var(--signal);box-shadow:0 0 0 3px var(--signal-soft)}.founder-section-heading{margin:10px 0 18px;align-items:flex-start}.founder-section-heading h2,.founder-preview-heading h2,.founder-publish h2{font-size:18px}.founder-section-heading span{font-size:12px;color:var(--muted)}.founder-upload-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.founder-drop{border:1px dashed var(--line-strong);border-radius:12px;min-height:186px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px 12px;cursor:pointer;background:var(--panel-2);position:relative}.founder-drop:hover,.founder-drop:focus-within{border-color:var(--signal);background:var(--signal-soft)}.founder-drop input,.founder-other input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.founder-drop input:focus-visible{outline:2px solid var(--signal)}.founder-file-icon{width:38px;height:38px;border-radius:10px;background:var(--signal-soft);color:var(--signal);display:grid;place-items:center;font-weight:700;font-size:16px;margin-bottom:3px}.founder-drop small{color:var(--muted);font-size:11px;text-align:center}.founder-pick{color:var(--signal);font-size:12px}.founder-files{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.founder-file-row{display:flex;gap:10px;align-items:center;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:10px 14px}.founder-file-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.founder-file-row small{display:block;color:var(--muted)}.founder-other{display:inline-block;position:relative;color:var(--signal);cursor:pointer;font-size:13px;margin-bottom:12px}.founder-other:focus-within{outline:2px solid var(--signal)}.founder-help{margin-top:8px}.founder-notice{margin:18px 0;background:var(--signal-soft);border-left:3px solid var(--signal);border-radius:0 8px 8px 0;padding:12px 16px;color:var(--signal-deep);font-size:13px;overflow-wrap:anywhere}.founder-notice.error{background:#fff1f0;border-color:var(--red);color:#a43b31}.founder-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:24px;flex-wrap:wrap}.founder-actions .btn:disabled,.founder-chat-send:disabled{opacity:.55;cursor:wait}.founder-sources{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin-bottom:24px}.founder-sources summary{cursor:pointer;color:var(--signal);font-size:13px}.founder-source{border-top:1px solid var(--line);padding:12px 0;overflow-wrap:anywhere}.founder-source pre{white-space:pre-wrap;font-size:12px;line-height:1.7;max-height:220px;overflow:auto;color:var(--muted);margin-top:8px}.founder-editor{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.founder-editor label{font-weight:600;font-size:13px}.founder-editor label:first-child,.founder-editor label:last-child{grid-column:1/-1}.founder-editor textarea{font-weight:400;min-height:120px;resize:vertical;margin-bottom:18px}.founder-preview-heading{margin:24px 0 18px}.founder-showcase{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:20px;align-items:start}.founder-project{padding:28px;min-width:0}.founder-project-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}.founder-avatar{width:52px;height:52px;flex-shrink:0;background:linear-gradient(135deg,var(--signal-mid),var(--signal-deep));color:#fff;border-radius:14px;display:grid;place-items:center;font-size:24px}.founder-project h1{font-size:24px;overflow-wrap:anywhere}.founder-project h2{font-size:13px;color:var(--signal);margin-bottom:6px}.founder-summary{font-size:15px;line-height:1.8;margin-bottom:22px;white-space:pre-wrap}.founder-detail{border-top:1px solid var(--line-soft);padding-top:16px;margin-top:16px}.founder-detail p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--body);font-size:13px;line-height:1.8}.founder-media{margin-top:20px}.founder-media video{display:block;width:100%;max-height:340px;background:#17111a;border-radius:10px;margin:10px 0 16px}.founder-media small{color:var(--muted);overflow-wrap:anywhere}.founder-chat{position:sticky;top:76px;overflow:hidden}.founder-chat-head{padding:20px 22px;border-bottom:1px solid var(--line)}.founder-chat-head h2{font-size:16px}.founder-chat-head p{font-size:12px;color:var(--muted);margin-top:4px}.founder-messages{height:350px;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:14px}.founder-bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;padding:12px 14px;background:var(--raise);max-width:95%;font-size:13px;line-height:1.8;align-self:flex-start}.founder-bubble.user{background:var(--signal-soft);color:var(--signal-deep);align-self:flex-end}.founder-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 14px}.founder-suggestions button{font-size:11px;border:1px solid var(--line);padding:5px 8px;border-radius:6px;color:var(--muted)}.founder-chat-form{border-top:1px solid var(--line);padding:14px;display:flex;gap:10px;align-items:flex-end}.founder-chat-form textarea{resize:vertical;flex:1;min-width:0;min-height:64px;max-height:160px;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:10px;font-size:13px;line-height:1.6}.founder-chat-disc{font-size:11px;color:var(--muted);padding:0 18px 16px}.founder-publish{padding:24px;margin-top:22px}.founder-check{display:flex;gap:9px;align-items:flex-start;font-size:13px;margin-top:14px;line-height:1.8}.founder-check input{margin-top:5px;accent-color:var(--signal)}.founder-publish a{color:var(--signal);text-decoration:underline;overflow-wrap:anywhere}.founder-loading{display:inline-block;width:14px;height:14px;border:2px solid var(--signal-mid);border-right-color:transparent;border-radius:50%;animation:founder-spin 1s linear infinite;margin-right:8px;vertical-align:middle}@keyframes founder-spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}@media(max-width:850px){.founder-upload-grid{grid-template-columns:1fr 1fr}.founder-showcase{grid-template-columns:1fr}.founder-chat{position:static}.founder-messages{height:300px}}@media(max-width:560px){.founder-wrap{padding:24px 14px 50px}.founder-heading,.founder-section-heading,.founder-preview-heading{align-items:flex-start;flex-direction:column}.founder-heading h1{font-size:24px}.founder-pane,.founder-project{padding:20px}.founder-steps{gap:8px}.founder-steps li{font-size:12px;gap:6px}.founder-steps li span{width:22px;height:22px}.founder-editor{grid-template-columns:1fr}.founder-editor label{grid-column:1}.nav{padding:0 14px;gap:10px}.nav .tag{display:none}.founder-saved{align-items:flex-start;flex-direction:column}.founder-actions>.btn-primary{width:100%}.founder-drop{padding:14px 8px;min-height:168px}.founder-drop b{font-size:12px}.founder-check{font-size:12px}}@media(prefers-reduced-motion:reduce){.founder-loading{animation:none}}
.founder-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:18px}.founder-media video{max-height:230px}.founder-detail a{color:var(--signal);text-decoration:underline}

.founder-research{display:grid;grid-template-columns:1fr 3fr;gap:20px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--panel-2);margin-bottom:18px}.founder-research .founder-drop{min-height:156px;background:var(--panel)}.founder-research textarea{margin-bottom:8px;font-weight:400;resize:vertical}.founder-research small{font-size:11px;font-weight:400;color:var(--muted)}@media(max-width:560px){.founder-research{grid-template-columns:1fr;padding:14px}.founder-research .founder-drop{min-height:140px}}
.founder-drop.has-files{border-color:var(--signal);background:var(--signal-soft)}.founder-drop:focus-visible,.founder-other:focus-visible{outline:2px solid var(--signal);outline-offset:3px}

.founder-sharing{display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:10px}.founder-sharing input{margin-top:4px;accent-color:var(--signal);flex-shrink:0}.founder-conversation-toolbar{display:flex;gap:7px;margin-left:auto;flex-shrink:0}.founder-conversation-toolbar .btn{font-size:11px;padding:5px 9px;white-space:nowrap}.founder-conversation-state{padding:9px 24px;font-size:11px;color:var(--signal);background:var(--signal-soft)}.founder-conversation-state.error{color:#a43b31;background:#fff1f0}.founder-agent-layout .founder-message.error .founder-bubble{color:var(--faint);background:transparent;border-style:dashed}.founder-history{font-size:11px;color:var(--signal);align-self:center;padding:5px 10px}.founder-invite-card{border:1px solid #ead5e1;background:white;border-radius:11px;padding:15px 17px;max-width:430px;min-width:250px;font-size:12px;color:var(--body)}.founder-invite-card header{display:flex;gap:18px;align-items:center;padding-bottom:10px;border-bottom:1px solid var(--line-soft)}.founder-invite-card header b{font-size:12px}.founder-invite-card header span{font-size:10px;color:#a47a3a;background:#fbf1e4;border-radius:4px;padding:2px 6px;white-space:nowrap}.founder-invite-card header .accepted{color:#52805c;background:#edf5ee}.founder-invite-card header .declined{color:var(--faint);background:var(--raise)}.founder-invite-card dl{display:grid;grid-template-columns:30px 1fr;gap:6px 12px;margin:12px 0}.founder-invite-card dt{color:var(--faint)}.founder-invite-card dd,.founder-invite-card p,.founder-invite-response{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.founder-invite-response{border-top:1px solid var(--line-soft);margin-top:12px;padding-top:10px;color:var(--muted)}.founder-invite-dialog{margin:auto;width:min(480px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:25px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);box-shadow:var(--shadow-md)}.founder-invite-dialog::backdrop{background:#19121e55}.founder-invite-dialog header{display:flex;justify-content:space-between;align-items:center;gap:14px}.founder-invite-dialog h2{font-size:17px}.founder-invite-dialog header button{font-size:24px;color:var(--faint)}.founder-invite-dialog form>p{font-size:12px;color:var(--muted);margin:10px 0 18px}.founder-invite-dialog form>label:not(.founder-sharing){display:block;font-size:12px;margin:13px 0}.founder-invite-dialog input:not([type="checkbox"]),.founder-invite-dialog textarea{display:block;width:100%;border:1px solid var(--line-strong);border-radius:8px;padding:10px 12px;margin-top:7px;font-size:12px;line-height:1.8;background:var(--panel);resize:vertical}.founder-invite-dialog .founder-sharing{margin-top:18px}.founder-invite-dialog form>.founder-invite-help{font-size:10px;color:var(--faint);line-height:1.8}.founder-invite-dialog form>.founder-invite-error{color:#a43b31;margin:5px 0;font-size:11px}.founder-invite-dialog [type="submit"]{width:100%}
@media(max-width:1200px){.founder-agent-layout .founder-chat-head:has(.founder-conversation-toolbar)>p{display:none}}
@media(max-width:560px){.founder-agent-layout .founder-chat-head:has(.founder-conversation-toolbar){flex-wrap:wrap;gap:7px}.founder-conversation-toolbar{gap:5px}.founder-conversation-toolbar .btn{font-size:10px;padding:5px 7px}.founder-agent-layout .founder-chat-head:has(.founder-conversation-toolbar) .founder-mobile-details{margin-left:auto}.founder-sharing{font-size:10px}.founder-conversation-state{padding:8px 12px}.founder-invite-card{min-width:0;max-width:100%;padding:13px;font-size:11px}.founder-invite-card header{gap:10px}.founder-invite-dialog{padding:20px}}

/* Published agents and their owner previews use the same chat layout. */
.founder-page{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.founder-page>.nav{flex-shrink:0}
.founder-page>.founder-wrap{flex:1;min-height:0;max-width:none;width:100%;margin:0;padding:0;display:flex;flex-direction:column}
.founder-page #publicFounder{flex:1;min-height:0}
.founder-page #publicFounder>p{padding:24px}
.founder-page #founderStatus{margin:0;flex-shrink:0}
.founder-agent-layout{display:flex;gap:0;align-items:stretch;height:100%;min-height:0}
#founderPreview>.founder-agent-layout{height:740px;max-height:85vh;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.founder-agent-side{width:320px;flex-shrink:0;border-right:1px solid var(--line);background:var(--panel);overflow-y:auto;padding:24px;display:flex;flex-direction:column}
.founder-agent-side>*{flex-shrink:0}
.founder-agent-side .founder-agent-overview{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.founder-agent-side .founder-avatar{width:56px;height:56px;font-size:21px;font-weight:700}
.founder-agent-side h1{font-size:17px;margin-top:12px;overflow-wrap:anywhere}
.founder-agent-intro{font-size:12.5px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.founder-agent-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.founder-agent-summary{margin-top:22px}
.founder-agent-summary>h2{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--faint);margin-bottom:10px}
.founder-agent-dimension{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:8px;background:var(--panel-2)}
.founder-agent-dimension h3{font-size:12px;color:var(--signal)}
.founder-agent-dimension p{font-size:12px;color:var(--body);margin-top:2px;line-height:1.6;overflow-wrap:anywhere}
.founder-agent-intro,.founder-agent-dimension p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.founder-agent-actions{margin-top:auto;padding-top:14px}
.founder-agent-actions .btn{width:100%;margin-top:8px}
.founder-agent-layout .founder-chat{position:static;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg);overflow:hidden}
.founder-agent-layout .founder-chat-head{display:flex;align-items:center;gap:10px;padding:12px 24px;background:var(--panel);flex-shrink:0}
.founder-agent-layout .founder-chat-head h2{font-size:14px;overflow-wrap:anywhere}
.founder-agent-layout .founder-chat-head p{margin:0 0 0 auto;font-size:11.5px;color:var(--faint)}
.founder-agent-layout .founder-messages{flex:1;min-height:0;height:auto;overflow-y:auto;padding:24px;gap:16px;overscroll-behavior:contain}
.founder-message{max-width:640px;display:flex;gap:10px;align-self:flex-start;min-width:0}
.founder-message-avatar{width:32px;height:32px;border-radius:9px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--signal-mid),var(--signal-deep))}
.founder-agent-layout .founder-bubble{min-width:0;max-width:none;padding:11px 15px;font-size:13.5px;line-height:1.75;background:var(--panel);border:1px solid var(--line)}
.founder-message.user{align-self:flex-end;flex-direction:row-reverse}
.founder-message.user .founder-message-avatar{background:var(--raise);color:var(--muted)}
.founder-message.user .founder-bubble{background:var(--signal);border-color:var(--signal);color:#fff}
.founder-agent-layout .founder-suggestions{gap:8px;padding:0 24px 10px;flex-shrink:0}
.founder-agent-layout .founder-suggestions button{border:1px solid var(--line-strong);border-radius:999px;padding:6px 13px;font-size:12px;background:var(--panel);transition:all .15s}
.founder-agent-layout .founder-suggestions button:hover{border-color:var(--signal);color:var(--signal)}
.founder-inputbar{padding:12px 24px 18px;flex-shrink:0}
.founder-agent-layout .founder-chat-form{border:1px solid var(--line-strong);border-radius:12px;padding:10px 12px;background:var(--panel);box-shadow:var(--shadow-sm)}
.founder-agent-layout .founder-chat-form:focus-within{border-color:var(--signal)}
.founder-agent-layout .founder-chat-form textarea{min-height:36px;max-height:120px;border:0;border-radius:0;padding:6px 0;background:transparent;resize:none;outline:none;font-size:13.5px}
.founder-agent-layout .founder-chat-send{width:36px;height:36px;border-radius:9px;background:var(--signal);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.founder-agent-layout .founder-chat-send:hover{background:var(--signal-deep)}
.founder-agent-layout .founder-chat-disc{padding:0;margin-top:8px;text-align:center;font-size:11px;color:var(--ghost)}
.founder-agent-layout .founder-mobile-details{display:none}
.founder-archive{margin:auto;width:min(900px,calc(100% - 32px));max-height:calc(100% - 40px);color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:0;box-shadow:var(--shadow-md);overscroll-behavior:contain}
.founder-archive::backdrop{background:rgba(20,22,28,.35)}
.founder-archive-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;position:sticky;top:0;background:var(--panel);border-bottom:1px solid var(--line);z-index:1}
.founder-archive-head h2{font-size:15px}
.founder-archive-head button{font-size:24px;line-height:1;padding:6px 10px}
.founder-agent-layout button:focus-visible{outline:2px solid var(--signal);outline-offset:3px}
@media(max-width:900px){.founder-agent-side{display:none}.founder-agent-layout .founder-mobile-details{display:inline-flex;margin-left:auto;white-space:nowrap;font-size:12px;padding:5px 9px}.founder-agent-layout .founder-chat-head p{display:none}}
@media(max-width:560px){.founder-page .nav{gap:10px;height:56px;padding:0 12px}.founder-page .nav .brand{font-size:18px}.founder-page .nav .links{flex:1;min-width:0;overflow-x:auto;white-space:nowrap;gap:4px}.founder-page .nav .links a{font-size:12px;padding:6px 8px}.founder-page .nav .right{gap:8px}.founder-agent-layout .founder-chat-head{padding:12px}.founder-agent-layout .founder-chat-head h2{font-size:13px}.founder-agent-layout .founder-messages{padding:16px 12px}.founder-agent-layout .founder-suggestions{padding:0 12px 8px;gap:6px}.founder-agent-layout .founder-suggestions button{font-size:11px;padding:6px 9px}.founder-inputbar{padding:8px 12px 12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.founder-agent-layout .founder-chat-disc{font-size:10px}.founder-archive{width:calc(100% - 20px);max-height:calc(100% - 20px)}.founder-archive-head{padding:12px 16px}.founder-archive .founder-project{padding:20px}}

/* Use the radar's compact desktop scale, with viewport heights adjusted for zoom. */
@supports (zoom: .8) {
  @media (min-width:1100px) {
    html[data-founder-density="compact"]{zoom:.8;--founder-viewport-height:calc(100dvh / .8)}
    .founder-onboarding>.founder-wrap{max-width:2000px;padding:28px 32px 56px}
    .founder-page{height:var(--founder-viewport-height)}
    #founderPreview>.founder-agent-layout{height:min(860px,calc(var(--founder-viewport-height) - 96px));max-height:none}
    .founder-agent-side{width:300px;padding:18px}
    .founder-agent-side .founder-avatar{width:44px;height:44px;border-radius:12px;font-size:19px}
    .founder-agent-side h1{margin-top:8px}
    .founder-agent-tags{margin-top:8px}
    .founder-agent-summary{margin-top:16px}
    .founder-agent-summary>h2{margin-bottom:8px}
    .founder-agent-dimension{padding:8px 10px;margin-bottom:6px}
    .founder-agent-actions{padding-top:8px}
    .founder-agent-actions .btn{margin-top:6px;padding:7px 12px}
    .founder-agent-layout .founder-chat-head{padding:10px 20px}
    .founder-agent-layout .founder-messages{padding:20px;gap:14px}
    .founder-agent-layout .founder-suggestions{padding:0 20px 8px}
    .founder-inputbar{padding:8px 20px 14px}
    .founder-agent-layout .founder-chat-form{padding:8px 10px}
    .founder-archive{max-height:calc(var(--founder-viewport-height) - 40px)}
    .founder-invite-dialog{max-height:calc(var(--founder-viewport-height) - 24px)}
  }
}
