/* STRIVE V2 component contract. Every V2 surface consumes these tokens and primitives. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--strive-control-height:44px;--button-height:44px;--control-radius:8px;--surface-radius:16px;--v2-content:640px}
.v2-stack{display:grid;gap:var(--space-6)}
.v2-row{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.v2-surface{background:var(--box);border:1px solid var(--rule);border-radius:var(--surface-radius);overflow:hidden}
.v2-pad{padding:var(--space-6)}
.v2-field{display:grid;gap:var(--space-2);font-size:14px;font-weight:500}
.v2-field :is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;min-height:var(--strive-control-height);padding:12px 14px;border:1px solid var(--rule);border-radius:var(--control-radius);background:var(--box);color:var(--ink);font:inherit;font-weight:400}
.v2-field textarea{min-height:112px;resize:vertical}
.v2-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:1px solid var(--rule);border-radius:999px;background:var(--box);color:var(--ink);font:600 14px/1 'IBM Plex Sans',sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.v2-button.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.v2-button:hover{background:var(--blue-wash);color:var(--blue)}
.v2-button.primary:hover{background:#003bd6;color:#fff}
.v2-button:disabled{opacity:.5;cursor:default}
.v2-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--blue-wash);overflow:hidden}
.v2-avatar img{width:100%;height:100%;object-fit:cover}
.v2-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--rule);border-radius:999px;font-size:13px;max-width:100%;overflow-wrap:anywhere}
.v2-empty{padding:var(--space-8);display:grid;justify-items:start;gap:var(--space-3)}
.v2-empty :is(h2,p){margin:0}.v2-empty p{max-width:45ch}
.v2-footer{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-3);padding-top:var(--space-4)}
.v2-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4)}
.v2-heading :is(h1,h2){margin:0}.v2-help{font-size:13px;line-height:1.5;color:var(--soft)}
.v2-heading h1{font-size:28px;line-height:1.2}
.library-page{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 'IBM Plex Sans',sans-serif}
.library-page *{box-sizing:border-box}.library-page header{border-bottom:1px solid var(--rule);background:#fff}
.library-page header>div{max-width:1048px;margin:auto;min-height:68px;padding:12px 24px;display:flex;align-items:center;gap:20px}
.library-mark{font-size:24px;font-weight:600;color:var(--blue);text-decoration:none;letter-spacing:-1px}
.library-page main{max-width:1048px;margin:auto;padding:32px 24px 64px}
.library-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}
.library-page h2{font-size:20px;line-height:1.3;margin:0}.library-page h3{font-size:15px;margin:0}
.library-title{margin-bottom:24px}.library-title p{max-width:64ch}
.library-ruler{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.library-ruler span{font-size:12px;display:grid;gap:8px;justify-items:center}.library-ruler i{display:block;background:var(--blue);height:16px;width:var(--size)}
.library-feed{padding:24px;display:grid;gap:16px}.library-feed p{margin:0}.library-feed h3{font-size:22px}
@media(max-width:650px){.library-layout{grid-template-columns:1fr}.v2-pad,.library-feed{padding:20px}.library-page main{padding:24px 16px}.v2-heading h1{font-size:24px}.v2-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:no-preference){.v2-button{transition:background .16s ease-out,color .16s ease-out}.v2-step-panel{animation:v2-step .2s ease-out}@keyframes v2-step{from{transform:translateY(5px)}to{transform:translateY(0)}}}

/* Project composer keeps its frame and image slots in place during preview and upload. */
.manual-post .v2-stack{gap:20px}.manual-post #link-preview-state{min-height:40px;margin:0}.manual-post #manual-photos{min-height:128px}.manual-post .v2-import-extra{font-size:13px}.manual-post .v2-footer{justify-content:flex-end}.manual-post #manualbox>label{margin:0}.manual-post #manualbox .v2-field{gap:8px}.manual-post .photo-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}.manual-post .photo-grid-add{width:88px;height:88px;min-height:88px}.manual-post :is(.photo-grid-cell,.photo-tile){aspect-ratio:1;width:88px;min-height:88px}#manual-preview-content{scroll-margin-top:90px}
#app .manual-post #manualbox>.v2-field{margin:0;padding:0}
#app .manual-post .v2-field>select{min-height:44px;padding:10px 12px;border-radius:8px}
#app .manual-post button.v2-button:not(.primary){background:#fff;color:var(--ink);border:1px solid var(--rule)}
#app .manual-post .photo-editor-grid{grid-template-columns:repeat(auto-fill,88px);gap:8px;min-height:88px}
#app .manual-post :is(.photo-add-tile,.photo-tile){width:88px;min-width:88px;height:88px;min-height:88px;aspect-ratio:1}
#app .manual-post .photo-add-tile>label{min-height:88px;padding:8px;font-size:12px}
#app .manual-post .photo-editor{margin:0}.manual-post #manual-photos{min-height:120px}
#app .v2-field>select{height:44px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23272e40' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}
#app .post-setup.v2-stack{display:grid;gap:24px;padding:24px;border:1px solid var(--rule);border-radius:var(--surface-radius)}
#app .post-setup h2{font-size:22px;margin:0}#app .post-setup p{margin:0}.post-setup #setup-editor[hidden]{display:none}
.v2-journey{display:flex;gap:16px;font-size:13px;border-bottom:1px solid var(--rule);padding-bottom:16px;flex-wrap:wrap}
.v2-journey [aria-current=step]{color:var(--blue);font-weight:600}
#setup-editor .cmd{border:1px solid var(--rule);border-radius:8px;background:var(--paper);padding:12px;align-items:start}#setup-editor code{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;font-size:12px}
#setup-editor details{margin:0}#setup-editor summary{min-height:44px;display:flex;align-items:center}
#setup-editor #post-plugin-link-row{margin:0}.v2-alternatives{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid var(--rule);border-radius:16px;padding:24px;color:var(--ink);background:#fff}
.v2-alternatives::backdrop{background:#17203966}.connect-connections{margin-top:24px}.connect-connections h2{font-size:18px}.connect-connections .account-actions{margin-top:16px}
@media(max-width:650px){#app .post-setup.v2-stack{padding:20px}.v2-journey{gap:12px}.v2-alternatives{padding:20px}#setup-editor .cmd{flex-direction:column;align-items:stretch}}
#app .post-setup button.v2-button:not(.primary){background:#fff;color:var(--ink);border:1px solid var(--rule)}
#app .post-setup button.v2-button{width:auto;align-self:start}#app .post-setup #connect-alternatives-open{justify-self:start}#app .post-setup .cmd .v2-button{flex:none}

.agent-review-invite{margin-top:24px}.agent-review-invite h2{font-size:20px;margin:0 0 8px}.agent-review-invite p{margin:0}.agent-review-request{box-sizing:border-box;width:100%;min-height:190px;padding:14px;border:1px solid var(--rule);border-radius:8px;font:14px/1.5 'IBM Plex Sans',sans-serif;resize:vertical}.agent-review-invite .v2-alternatives>*+*{margin-top:16px}#app .agent-review-invite button.v2-button:not(.primary){background:white;color:var(--ink);border:1px solid var(--rule)}

/* One reserved frame from first paint through decoded images. */
.activity-post .run-media-slot{height:300px;min-height:300px;max-height:300px;overflow:hidden}
.activity-post .run-media-slot .run-media-gallery{height:100%!important;min-height:0;max-height:none;aspect-ratio:auto!important;margin:0!important}
.activity-post>.post-workline,.activity-post>.post-open,.activity-post>.post-trail{padding-left:0;padding-right:0}
.dc-comments:not([hidden]){border-top:1px solid var(--rule);padding:var(--space-4);background:var(--blue-wash);margin:0;border-radius:0 0 var(--surface-radius) var(--surface-radius)}
.fc-face img{position:absolute;inset:0}.fc-face{position:relative}
@media(max-width:700px){.activity-post .run-media-slot{height:240px;min-height:240px;max-height:240px}}

.v2-profile-tabs{display:flex;gap:8px;overflow:auto;padding:8px 0 20px;scrollbar-width:none}.v2-profile-tabs .v2-button{flex:none;font-size:13px;padding:0 14px}.v2-profile-tabs [aria-pressed=true]{background:var(--blue)!important;color:#fff!important;border-color:var(--blue)}
.v2-projects .pp-grid{display:grid;grid-template-columns:1fr;gap:12px}.v2-projects .pp-card{display:grid;grid-template-columns:104px minmax(0,1fr);border-radius:var(--surface-radius);min-height:112px}.v2-projects .pp-hero{height:100%;min-height:112px;aspect-ratio:auto}.v2-projects .pp-hero img{height:100%;object-fit:contain}.v2-projects .pp-body{padding:16px}.v2-projects .pp-headline{font-size:16px;line-height:1.3;margin:6px 0}.v2-projects .pp-pitch{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.v2-projects .pp-facts,.v2-projects .pp-x{display:none}.v2-projects .pp-card:not(:has(.pp-hero)){grid-template-columns:1fr}.v2-projects .pp-links{gap:12px;margin-top:8px}.v2-profile-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v2-profile-media a{aspect-ratio:4/3;background:var(--rule-2);border-radius:var(--surface-radius);overflow:hidden}.v2-profile-media img{width:100%;height:100%;object-fit:contain}.profile-edit-dialog{border-radius:var(--surface-radius);width:min(600px,calc(100vw - 32px))}.profile-edit-dialog .dialog-body{display:grid;gap:16px}.profile-edit-dialog label{margin:0}.profile-edit-dialog :is(input,textarea){border-radius:var(--control-radius);min-height:44px;padding:12px}.v2-profile-tools h2{margin:0 0 20px}
.v2-profile-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:8px}.v2-profile-tabs .v2-button{flex:0 0 auto;font-size:13px;padding:0 14px;min-width:max-content;white-space:nowrap}.v2-profile-tabs .v2-button[aria-pressed=false]{background:var(--box)!important;color:var(--ink)!important;border:1px solid var(--rule)!important}.v2-projects .pp-cta{display:none}

.run-share-sheet.v2-surface{max-width:640px;margin:24px auto}.run-share-sheet [data-show-image]{background:var(--box)!important;color:var(--ink)!important;border:1px solid var(--rule);margin-top:24px}.run-share-sheet .share-image-actions{margin:24px 0 16px}.run-share-sheet h2{margin:0 0 12px}.share-image-options{margin-top:20px}.run-share-sheet nav{gap:8px}
.queue-one{max-width:680px;margin:24px auto}.queue-one>header h2{font-size:24px;margin:8px 0}.queue-one .v2-row{gap:8px}.queue-one .v2-button:not(.primary){background:var(--box)!important;color:var(--ink)!important;border:1px solid var(--rule)!important}.queue-one [data-state]{min-height:24px}.queue-one .v2-button{white-space:normal;text-align:center}

.account .account-section{border-radius:var(--surface-radius);padding:var(--space-6)!important;margin-bottom:16px}.account .account-section h2{font-size:18px;margin:0 0 12px}.photo-editor .photo-editor-grid{min-height:112px}.photo-editor .photo-tile,.photo-editor .photo-add-tile{width:88px;height:88px;aspect-ratio:1}.photo-editor .photo-tile>img{width:100%;height:100%;object-fit:contain}.account .v2-button{background:var(--box)!important;color:var(--ink)!important}

.post-setup .v2-row>.v2-button:not(.primary){background:var(--box)!important;color:var(--ink)!important;border:1px solid var(--rule)}.v2-agent-link{font-size:14px;line-height:1.5;background:var(--blue-wash);border-radius:var(--control-radius);padding:12px 16px}.v2-agent-link p{margin:0}.post-setup h3{font-size:16px;margin:0}.post-setup #post-manual-config{border-top:1px solid var(--rule);padding-top:12px}
/* Oscar: the project form needs less air between its ordinary fields. */
.post-composer.v2-stack{gap:12px}.post-composer .v2-field{gap:6px}.post-composer .v2-field :is(input,select){padding:10px 12px}.post-composer .v2-field textarea{min-height:88px}.post-composer #manual-photos{min-height:100px}.post-composer .link-enrichment{margin:0}.post-composer .v2-pad{padding:16px}.post-composer{gap:12px!important}
#manualbox.v2-stack{gap:12px;padding:16px}#manualbox .v2-field{gap:6px}#manualbox .v2-field textarea{min-height:88px}#manualbox #manual-photos{min-height:100px}#manualbox .link-enrichment{margin:0}#manualbox .optional-github{margin:0}#manualbox .v2-footer{padding-top:12px}
#manualbox .v2-field{margin:0}#manualbox .link-enrichment{min-height:24px;padding:0}#manualbox .link-enrichment:empty{height:24px}#manualbox :is(h3,h4){margin:0 0 8px}#manualbox .photo-editor{margin:0}#manualbox .photo-editor p{margin:4px 0}#manualbox .v2-footer{margin-top:0}#manualbox #manual-photos{min-height:100px}

.activity-post .v2-activity-strip{width:100%;max-width:none;margin:12px 0;padding:0;box-sizing:border-box}.v2-activity-strip svg{display:block;width:100%!important;height:120px;max-width:none!important}.v2-activity-strip .activity-area{fill:#0047ff18}.v2-activity-strip .activity-line{fill:none;stroke:var(--blue);stroke-width:2;vector-effect:non-scaling-stroke}.v2-activity-strip .activity-grid{stroke:var(--rule);stroke-width:1;fill:none}.v2-activity-strip .post-trail-axis{font-size:11px;color:var(--soft)}.v2-activity-strip .post-trail-label{font-size:13px;margin-bottom:8px}

.feature-requests{max-width:680px;margin:20px auto}.feature-requests .fr-public{display:flex;gap:10px;align-items:center;font-size:14px;margin:0}.fr-public input{width:18px;height:18px}.feature-requests #fr-list{display:grid;gap:12px}.feature-requests .feature-request{border-radius:var(--surface-radius);margin:0;padding:20px}.feature-requests #fr-state{min-height:20px;margin:0;font-size:14px}.feature-requests .v2-field{margin:0}.feature-requests h3{font-size:18px}.feature-requests .count-chip{border:0;background:none;padding:0}.feature-requests .author-kind{display:none}.feature-requests form{gap:16px}

.v2-start-steps{display:grid;grid-template-columns:1fr 1.2fr 1.6fr;gap:8px;max-width:680px;margin:12px auto 20px;color:var(--soft);font-size:13px}.v2-start-steps span{display:flex;align-items:center;gap:6px;min-width:0}.v2-start-steps b{display:grid;place-items:center;border:1px solid var(--rule);border-radius:50%;width:24px;height:24px;flex:none;font-size:12px}.v2-start-steps [aria-current]{color:var(--blue);font-weight:600}.v2-start-steps [aria-current] b{background:var(--blue);color:#fff;border-color:var(--blue)}@media(max-width:500px){.v2-start-steps{font-size:11px;gap:4px}.v2-start-steps b{width:20px;height:20px;font-size:11px}}

.v2-editor-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v2-editor-choices .v2-button{display:flex;flex-direction:column;gap:10px;padding:16px 8px;border-radius:var(--control-radius);height:88px;white-space:normal}.v2-editor-choices .v2-button,.v2-choice-row .v2-button{background:var(--box)!important;color:var(--ink)!important;border:1px solid var(--rule)!important}.v2-editor-choices .v2-button[aria-pressed=true],.v2-choice-row .v2-button[aria-pressed=true]{background:var(--blue-wash)!important;color:var(--blue)!important;border-color:var(--blue)!important}.v2-choice-row{display:flex;gap:6px;flex-wrap:wrap}.v2-choice-row .v2-button{padding:0 12px;font-size:12px}#manualbox #link-preview-state{margin:0;min-height:0;font-size:12px}#manualbox #link-preview-state:empty{display:none}#manualbox .photo-editor .photo-editor-grid{margin:0;min-height:88px}#manualbox #manual-photos{min-height:88px;margin:0}.v2-choice-row .v2-button:focus-visible,.v2-editor-choices .v2-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Reserve the same outer photo frame before and after its metadata arrives. */
.activity-post.card .run-media-slot,.activity-post.card .run-media-slot[data-media-count="1"]{height:300px!important;min-height:300px!important;max-height:300px!important;aspect-ratio:auto!important;box-sizing:border-box}
@media(max-width:700px){.activity-post.card .run-media-slot,.activity-post.card .run-media-slot[data-media-count="1"]{height:240px!important;min-height:240px!important;max-height:240px!important}}
.activity-post .v2-activity-strip svg{height:120px!important}
.activity-post .dc-comments{display:block;min-height:88px;border-top:1px solid var(--rule);padding:16px;margin:0}
.activity-post .dc-comments .reply-form{display:flex;align-items:center;gap:8px;margin:0}
.activity-post .dc-comments textarea{min-height:44px;flex:1;border-radius:8px;resize:vertical;font:inherit}
.activity-post .dc-comments .thread-signin{width:100%;text-align:left;min-height:44px;background:#f6f8fc!important;color:var(--soft)!important;border:1px solid var(--rule)!important;border-radius:8px}
.activity-post .dc-comments .thread-empty{margin:0}

/* Link status sits in the existing gap without moving the photo controls. */
#manualbox .v2-link-status{position:relative;height:0;margin:0;min-height:0}
#manualbox #link-preview-state{position:absolute;inset:-10px 0 auto;max-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.activity-post .dc-comments{min-height:88px;box-sizing:border-box}.activity-post .fc-foot{min-height:45px;box-sizing:border-box}

/* A single settings surface, with quiet actions and a separate destructive area. */
.account .account-preferences{padding:4px 24px}
.account .account-preferences .account-section{border:0;border-radius:0;box-shadow:none;background:none;margin:0;padding:20px 0!important}
.account .account-preferences .account-section+.account-section{border-top:1px solid var(--rule)}
.account .account-preferences .account-section h2{font-size:17px;margin-bottom:8px}
#app .account :is(.act,.v2-button){min-height:44px;height:auto;width:auto!important;min-width:0;padding:0 14px!important;border-radius:8px!important;font-size:13px;line-height:1.4;background:white!important;color:var(--blue)!important;border:1px solid var(--rule)!important}
.account .account-actions{margin-top:10px;gap:8px}.account .account-danger{margin-top:24px}
.profile-header{padding:24px!important;margin:0 0 16px}.profile-header .phero{align-items:flex-start;gap:16px;margin:0!important}.profile-header .profile-name{min-width:0}.profile-header .profile-name h1{font-size:28px;line-height:1.15;letter-spacing:-.5px;margin:0 0 6px!important}.profile-header .profile-name .h{margin:0;line-height:1.4}.profile-header .profile-name p{margin:12px 0 0;line-height:1.5}.profile-header .fc-face{flex:none}.profile-header .profile-actions{align-self:flex-start}.v2-profile-tabs{padding-top:0;margin:0 0 16px}
@media(max-width:700px){.profile-header{padding:16px!important}.profile-header .phero{gap:12px;flex-wrap:wrap}.profile-header .profile-name h1{font-size:24px}.profile-header .profile-name{flex:1;min-width:190px}.account .account-preferences{padding:0 16px}}
.post-project-label,.run-project-heading>span{display:block;font-size:11px;line-height:1.4;font-weight:400;color:var(--soft);margin-bottom:4px}.run-project-heading{padding:0 20px;margin:16px 0 8px;font-size:16px;font-weight:600}.run-project-heading a{color:var(--blue)}

/* Text keeps a full spacing step from the story accent and comment surface. */
.activity-post .post-story{padding:16px;box-sizing:border-box}
:is(#app,.library-page) .v2-segmented{display:inline-flex;align-items:stretch;gap:4px;max-width:100%;min-width:0;border:1px solid var(--rule);border-radius:var(--control-radius);padding:4px;margin:0 0 12px;background:var(--rule-2);box-sizing:border-box}
:is(#app,.library-page) .v2-segmented label{position:relative;display:flex;align-items:stretch;margin:0;cursor:pointer;min-width:0}
:is(#app,.library-page) .v2-segmented input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
:is(#app,.library-page) .v2-segmented span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:5px;font-size:14px;font-weight:500;color:var(--soft);line-height:1.4}
:is(#app,.library-page) .v2-segmented input:checked+span{background:var(--box);color:var(--ink);box-shadow:0 1px 3px #14203818}
:is(#app,.library-page) .v2-segmented input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
