/* B v1 / accepted V2.1 native shell. */
:root{--navy:#050B16;--coral:#FF5C64;--ink:#111827;--slate:#4B5563;--paper:#F4F6FA;--line:#DCE2EA;--font:"Avenir Next",Avenir,"Helvetica Neue",Helvetica,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--navy);color:#fff;font:16px/1.6 var(--font);-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin-top:0}a{color:inherit;text-underline-offset:4px}button,input,textarea{font:inherit}[hidden]{display:none!important}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--coral);outline-offset:4px}.skip{position:absolute;left:20px;top:-100px;z-index:20;padding:12px;background:#fff;color:var(--ink)}.skip:focus{top:12px}.wrap{max-width:1240px;margin:auto;padding:0 32px}.preview-bar{background:#0A1A33;color:#C9D2DF;padding:10px 24px;text-align:center;font-size:13px;border-bottom:1px solid #22314A}.preview-dot{display:none}.nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:20px;padding-bottom:20px}.brand{display:block;flex-shrink:0;width:268px;padding:14px;line-height:0}.brand img{display:block;width:240px;height:auto}.back-link{color:#D5DCE6;font-size:15px;min-height:44px;display:flex;align-items:center}
.setup-layout{max-width:1240px;margin:auto;padding:16px 32px 96px;display:flex;flex-wrap:wrap;gap:40px 72px;align-items:flex-start}.setup-story{flex:1 1 300px;min-width:0}.setup-story h2{margin:0 0 12px;font-size:clamp(32px,3.4vw,46px);line-height:1.1;letter-spacing:-.03em;font-weight:600}.setup-story>p{color:#C9D2DF;font-size:17px;max-width:24em}.setup-story .setup-footnote{color:#9FAABB;font-size:14px;border-top:1px solid #22314A;padding-top:18px}.setup-steps{list-style:none;margin:28px 0;padding:0;display:flex;flex-direction:column;gap:4px}.setup-steps li{display:flex;align-items:center;gap:14px;padding:10px 0;color:#9FAABB;font-size:16px}.setup-steps span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;border:1px solid #3A4A64}.setup-steps li[aria-current=step]{color:#fff;font-weight:600}.setup-steps li[aria-current=step] span{background:var(--coral);color:var(--navy);border-color:var(--coral)}.setup-form{flex:1.35 1 520px;min-width:0;background:#fff;color:var(--ink);border-radius:12px;padding:clamp(24px,3vw,44px)}.form-heading h1{font-size:30px;line-height:1.2;letter-spacing:-.02em;font-weight:600;margin:0 0 8px}.form-heading h1 em{font:inherit}.form-heading>p{font-size:17px;color:var(--slate);margin-bottom:28px}.eyebrow{font-size:12px;letter-spacing:.1em;font-weight:600}.field{margin:24px 0}label{display:block;font-size:15px;font-weight:600;margin-bottom:8px}input{display:block;width:100%;min-width:0;min-height:48px;padding:10px 14px;font-size:16px;border:1px solid #8B96A6;border-radius:6px;background:#fff;color:var(--ink)}.field-help,.hint{font-size:14px;color:var(--slate);margin:8px 0}.form-note{font-size:14px;color:var(--slate);text-align:center;margin:12px 0}.preview-notice,.collection-privacy{padding:16px 18px;background:var(--paper);border-radius:8px;font-size:14px;margin:20px 0}.preview-notice p:last-child,.collection-privacy p:last-child{margin-bottom:0}.workspace a{color:#B4232E}.workspace .button{width:100%;display:flex;justify-content:center;align-items:center;gap:20px;font-size:17px;border-radius:6px;min-height:52px}.workspace .button span{display:none}.address{display:block;background:var(--paper);padding:16px;border-radius:6px;overflow-wrap:anywhere;font-weight:600}.actions{display:flex;gap:12px;flex-wrap:wrap}.legal-footer{border-top:1px solid #22314A;color:#B7C2D3;font-size:14px}.legal-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 32px;padding-top:28px;padding-bottom:36px}.legal-footer nav{display:flex;flex-wrap:wrap;gap:8px 24px}.legal-footer p{flex-basis:100%;margin:0}.legal-page{max-width:900px;margin:32px auto 80px;padding:32px;background:#fff;color:var(--ink);border-radius:12px}.legal-page a{color:#B4232E}.legal-page h1{font-size:32px;line-height:1.2}.legal-status{border-left:3px solid var(--coral);padding:16px;background:var(--paper)}
@media(max-width:640px){.wrap{padding-left:24px;padding-right:24px}.nav{gap:12px}.brand{width:202px;padding:11px}.brand img{width:180px}.setup-layout{padding:16px 32px 64px;gap:40px}.setup-story,.setup-form{flex-basis:100%}.setup-form{padding:24px}.back-link{font-size:14px}.legal-page{margin:24px;padding:24px}.legal-page h1{font-size:28px}.workspace button{max-width:100%}.setup-story h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Native owner controls retain their IDs, evidence handling and version binding. */
.workspace h1,#heading,#access-closed h1{font-size:32px;line-height:1.2;letter-spacing:-.035em;margin:0 0 14px;font-weight:550}
.workspace h3{font-size:17px;line-height:1.4;margin:0 0 12px}
.workspace .eyebrow{color:#59667b;margin-bottom:14px}
.workspace p{overflow-wrap:anywhere}
.workspace button{border:1px solid var(--navy);border-radius:3px;background:var(--navy);color:#fff;font:inherit;font-size:13px;font-weight:650;cursor:pointer;padding:13px 18px;min-height:44px}
.workspace button:hover{background:#25334a}
.workspace button:disabled{opacity:.5;cursor:default}
.workspace .secondary{background:#f3f5f8;color:var(--ink);border-color:#9da7b5}
.workspace .quiet,.workspace .text-action{background:none;color:var(--slate);border:0;padding:10px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.workspace .text-action:hover,.workspace .quiet:hover{background:none;color:var(--ink)}
#notice:empty{display:none}
#notice:not(:empty){padding:14px;background:#fff0f0;border-left:3px solid #c4434b;margin-bottom:22px;font-size:14px;overflow-wrap:anywhere}
#notice:focus-visible,#heading:focus-visible{outline:3px solid var(--coral);outline-offset:4px}
#description{font-size:14px;color:var(--slate);line-height:1.8}
#revoke{display:block;margin:0 0 20px}
#verification{margin:24px 0}
#review{min-width:0}
#prepare{margin:12px 0}
.hint{font-size:12px;color:var(--slate);line-height:1.7}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.address{display:block;background:#f3f5f8;padding:16px;margin:12px 0 20px;overflow-wrap:anywhere;font-size:14px;font-weight:650}
textarea{display:block;width:100%;min-width:0;padding:14px;border:1px solid #9da7b5;border-radius:3px;font:inherit;color:var(--ink);background:#fff;resize:vertical}
textarea:focus{outline:3px solid var(--navy);outline-offset:3px}
#context-editor label{margin-bottom:10px}
@media(max-width:760px){.workspace h1,#heading,#access-closed h1{font-size:29px}.workspace .form-heading h1{font-size:29px}.workspace textarea{font-size:16px}.onboarding .setup-story{order:2}}
#presentation-review{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}#presentation-review h3{font-size:17px;margin:0 0 8px}#presentation-review p{font-size:13px;margin:8px 0;overflow-wrap:anywhere}#presentation-preview{width:100%;min-height:350px;border:1px solid var(--line);background:#fff;margin:12px 0}

/* Read the prepared information first; original evidence remains independently inspectable. */
#review-version{margin:0 0 15px}
.review-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:4px 0 15px}
.review-heading h3,#review-gaps h3,#source-review h3{font-size:17px;line-height:1.4;margin:0;font-weight:600}
.text-action{background:none;border:0;color:var(--ink);padding:5px 0;font-size:12px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.text-action:hover{background:none;color:var(--navy)}
#prepared-text{font-size:15px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
#context-editor label{margin-top:4px}
#context-editor textarea{min-height:20rem}
#read-context{margin:0 0 4px}
#review-gaps{margin-top:24px;padding:16px 18px;background:var(--paper);border-left:3px solid #c4434b}
#gaps{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#gaps p{margin:10px 0 0}
#gaps ul{margin:10px 0 0;padding-left:20px}
#gaps li+li{margin-top:10px}
.review-actions{position:sticky;top:0;z-index:2;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;box-shadow:0 7px 12px #123c3809}
.review-actions .secondary:hover,#read-context:hover{background:#ffe4e5;color:var(--ink)}
#review summary,#review a,#review button,#review textarea{scroll-margin-top:9rem}
#source-review{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
#source-note{margin:10px 0 18px}
#sources{font-size:13px;line-height:1.7}
#sources ul{list-style:none;padding:0;margin:0}
#sources .source-card{margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:3px;background:var(--paper)}
#sources .source-heading{display:block;font-weight:600;overflow-wrap:anywhere;color:var(--ink)}
#sources .source-associations{display:block;font-size:12px;color:var(--slate);margin:8px 0;white-space:pre-wrap}
#sources details{margin-top:12px;padding:12px 0 0;border-bottom:0}
#sources summary{font-size:12px}
#sources .evidence-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:16rem;overflow:auto;margin:12px 0;padding:12px 14px;border-left:2px solid #b7c6bf;background:#fff;font-size:12px;line-height:1.65;tab-size:2}
#sources .source-provenance{font-size:12px;color:var(--slate)}
#sources .source-empty{font-size:12px;color:var(--slate);margin:12px 0 0}
#presentation-review .technical-details{margin:12px 0;padding:10px 0}
@media(max-width:500px){.review-heading{flex-wrap:wrap;gap:4px 12px}#review-gaps{padding:14px}.review-actions button{flex:1 1 150px}#sources .source-card{padding:12px}#sources .evidence-excerpt{padding:10px;max-height:14rem}}
@media(max-height:480px){.review-actions{position:static}}

#sources .evidence-content{max-height:26rem;max-height:min(26rem,50vh);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:12px;padding:0 4px 4px 0;scroll-margin-top:9rem}
#sources .evidence-content .evidence-excerpt{max-height:none;overflow:visible}
#sources .evidence-content:focus-visible,#sources .evidence-excerpt:focus-visible{outline:3px solid var(--coral);outline-offset:3px}

/* Shared trial participation preserves the V2 layout and readable controls. */
.participation-notice{font-size:12px;line-height:1.7;color:var(--slate);border-top:1px solid var(--line);padding-top:18px;margin:8px 0 22px}
.participation-notice p:last-child{margin-bottom:0}
.participants{border-top:1px solid var(--line);padding-top:22px;margin-top:28px}
.participant-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.participant-row>div{min-width:0}.participant-row strong{font-size:13px;overflow-wrap:anywhere}.participant-row p{margin:5px 0 0}.participant-row button{flex-shrink:0}
#tester-context{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
@media(max-width:400px){.participant-row{align-items:flex-start;flex-wrap:wrap}.participant-row button{min-height:44px}.participation-notice{font-size:12px}}

/* Separate address copying from mailto and owner-only lifecycle controls. */
.trial-stop-control{border:1px solid #e1bdc0;border-left:3px solid #c4434b;border-radius:3px;background:#fff8f8;padding:14px 16px;margin:20px 0 26px}
.trial-stop-control .hint{margin:0 0 12px;color:#5b3c43}
.workspace .stop-trial{background:#fff;color:#8d2634;border-color:#a33c49;min-height:44px;text-decoration:none}
.workspace .stop-trial:hover{background:#fff0f0}
#revoke{margin:0;display:inline-block}
.assistant-address-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin:12px 0 20px;min-width:0}
.assistant-address-controls .address{min-width:0;margin:0;overflow-wrap:anywhere;user-select:text}
.copy-status{grid-column:1/-1;margin:0;min-height:0}
.copy-status:empty{display:none}
.workspace button:focus-visible,.workspace a:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
@media(max-width:760px){.assistant-address-controls{grid-template-columns:minmax(0,1fr)}.assistant-address-controls .address{padding:12px}.copy-address{justify-self:start}.trial-stop-control{padding:14px;margin:16px 0 22px}.trial-stop-control .hint{margin-bottom:9px}.workspace .stop-trial{max-width:100%;white-space:normal;text-align:left}}

@media(max-width:760px){.onboarding .setup-story{order:0}}

/* V2.1 reading sizes and expandable sharing details. */
.participation-notice,.participation-notice summary,.workspace .hint,#description,#tester-description{font-size:14px}
.participation-notice summary{font-weight:600;cursor:pointer;padding:4px 0}
#browser-access{font-size:14px;line-height:1.7}
.trial-stop-control .hint{font-size:14px}

.workspace .secondary:hover{background:#E3E8EF;color:var(--ink)}
