/* Free pilot samples use the existing staff shell and native customer pages. */
.tour-sample-note{font-size:.85rem;color:var(--muted);margin:12px 0 28px!important}
.pilot-tour-choices{border-top:1px solid var(--rule)}
.pilot-tour-choice{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:27px 0;border-bottom:1px solid var(--rule)}
.team-content .pilot-tour-choice h2{font-family:var(--serif);font-size:1.45rem;margin:0 0 7px}
.pilot-tour-choice p{max-width:580px;color:var(--muted);font-size:.95rem}
.pilot-tour-choice>.btn{flex-shrink:0;min-height:44px}
.tour-fresh{margin:26px 0}
.tour-fresh .text-btn,.tour-fresh a{min-height:44px;display:inline-flex;align-items:center}
.tour-details{margin-top:28px}
.team-tour a[aria-current=page]{text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.pilot-tour-choice{align-items:flex-start;flex-direction:column;gap:12px;padding:22px 0}.pilot-tour-choice>.btn{width:100%;justify-content:center}}
/* Staff-only shell. All routes keep the same navigation and content measure. */
.team-shell{--team-surface:#f3f0e9;--team-highlight:#e6e8e9;--team-white:#fffdf8;height:100%;min-height:0;display:grid;grid-template-columns:248px minmax(0,1fr);color:var(--ink,#192b43);background:var(--paper,#faf7f1);font-size:16px;line-height:1.6}
.team-sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:32px 22px 20px;border-right:1px solid var(--rule);background:var(--team-surface);overscroll-behavior:contain}
.team-brand{display:flex;align-items:flex-start;flex-direction:column;gap:4px;text-decoration:none;margin:0 10px 36px}
.team-brand img{width:132px;height:44px;object-fit:contain}
.team-brand span{font-size:.75rem;color:var(--muted);letter-spacing:.03em}
#team-navigation{display:flex;flex-direction:column;gap:5px}
#team-navigation a,.team-sidebar-bottom a,.team-sidebar-bottom button{display:flex;align-items:center;min-height:44px;padding:9px 12px;font-size:.9rem;text-decoration:none;border-radius:5px;font-weight:500;line-height:1.5}
#team-navigation a:hover,.team-sidebar-bottom a:hover{background:var(--team-highlight)}
#team-navigation a[aria-current=page]{background:var(--ink);color:var(--paper);font-weight:600}
.team-current-story{margin:30px 12px 10px;font-weight:600;font-size:.85rem;line-height:1.5;overflow-wrap:anywhere}
.team-sidebar-bottom{display:flex;flex-direction:column;padding-top:40px;margin-top:auto}
.team-sidebar-bottom button{border:0;justify-content:flex-start;text-align:left;background:transparent}
.team-sidebar-bottom small{font-size:.7rem;color:var(--muted);padding:14px 12px 0}
.team-main{height:100%;position:relative;padding:0 48px max(56px,env(safe-area-inset-bottom));min-width:0;min-height:0}
.team-content{max-width:1100px;width:100%;margin:0 auto;overflow-wrap:anywhere;min-height:100%;padding-top:40px}
.team-main[aria-busy=true]{cursor:progress}
.team-main[aria-busy=true]:before{content:'';position:sticky;display:block;top:0;z-index:8;height:3px;margin-bottom:-3px;background:var(--berry);animation:team-loading 1s ease-in-out infinite;pointer-events:none}
@keyframes team-loading{50%{opacity:.3}}
.team-mobile-bar,.team-menu,.team-drawer-close{display:none}
.team-scrim{position:fixed;inset:0;z-index:30;background:#192b4366;border:0;border-radius:0}
.team-content h1{font-family:var(--serif);font-size:clamp(1.9rem,3vw,2.6rem);line-height:1.18;margin:0;letter-spacing:-.02em}
.team-content h2{font-family:var(--sans);font-size:1.3rem;line-height:1.4;margin:0 0 18px;letter-spacing:-.02em}
.team-content h3{font-size:1rem;line-height:1.5;margin:0 0 8px}
.team-content h4{font-size:.95rem;margin:16px 0 8px}
.team-content p{margin:10px 0;max-width:none}
.team-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 28px;border-bottom:1px solid var(--rule);min-height:78px}
.team-content .team-subheading{margin-top:34px}
.team-muted,.team-meta{color:var(--muted)}
.team-meta{font-size:.8rem;line-height:1.6}
.team-heading>span{font-size:.85rem}
.team-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}
.team-section{padding:28px 0;border-bottom:1px solid var(--rule);min-width:0}
.team-section:last-child{border-bottom:0}
.team-content .field{margin:16px 0 22px}
.team-content .field>span{font-size:.85rem;font-weight:500}
.team-content .field :is(input,select,textarea){width:100%;max-width:100%;min-height:44px;font:inherit;font-size:16px;color:var(--ink);background:transparent;border:1px solid var(--rule);border-radius:4px;padding:12px;line-height:1.6}
.team-content .field textarea{resize:vertical}
.team-content .field :is(input,select,textarea):focus{border-color:var(--ink)}
.team-shell :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.team-shell :is(button,a,summary,select){-webkit-tap-highlight-color:transparent}
.team-content .btn,.team-shell .text-btn{min-height:44px;font-size:.85rem}
.team-shell button{cursor:pointer}
.team-shell button:disabled{cursor:default;opacity:.45}
.team-shell .checkbox-label{min-height:44px;align-items:center;margin:8px 0;font-size:.8rem}
.team-shell .checkbox-label input{width:20px;height:20px;margin:0;accent-color:var(--ink)}
.team-status{font-size:.75rem;padding:5px 10px;background:var(--team-highlight);border-radius:4px;display:inline-block}
.team-story{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:28px;align-items:center;padding:28px 0;border-bottom:1px solid var(--rule)}
.team-story h2{font-family:var(--serif);font-size:1.4rem;margin:0 0 8px}
.team-story h2 a{text-decoration:none}
.team-story a[href^=mailto]{font-size:.85rem}
.team-answer{padding:22px 0;border-bottom:1px solid var(--rule)}
.team-answer:last-child{border:0}
.team-answer p,.team-selected-file dd{white-space:pre-wrap}
.team-answers{padding-top:0}
.team-content .team-no-answers{margin:22px 0 0}
.team-unanswered ul{margin-top:0}
.team-technical{margin:20px 0;font-size:.84rem;color:var(--muted)}
.team-technical summary,.team-event-details summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--ink)}
.team-technical ul{padding-left:20px}
.team-technical li{padding:7px 0}
.team-technical .text-btn{display:block;text-align:left}
.team-outdated{border-left:3px solid var(--berry);padding:10px 16px;background:#f2e5e9;font-size:.85rem}
.team-content [id]{scroll-margin-top:24px}
/* Files: only the selected original mounts video/audio controls. */
/* Files share the same preview dialog as the draft. */
.team-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:20px 14px;align-items:start;min-width:0;padding-top:24px}
.team-file-tile{min-width:0;display:block;width:100%;border:1px solid transparent;background:transparent;padding:5px;border-radius:5px;color:inherit;text-align:left}
.team-file-tile:hover{background:var(--team-surface)}
.team-thumbnail{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:var(--team-surface);width:100%;overflow:hidden;border-radius:3px;color:var(--muted);text-align:center;font-size:.75rem}
.team-thumbnail img,.team-thumbnail video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.team-video-label{position:absolute;left:8px;bottom:8px;padding:2px 7px;border-radius:3px;background:var(--ink);color:var(--paper);font-size:.75rem;line-height:1.5;pointer-events:none}
.team-file-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.8rem;line-height:1.5;margin-top:8px;min-height:3em;overflow-wrap:anywhere}
.team-format{font-size:.85rem;letter-spacing:.05em;font-weight:600}
.team-format small{display:block;font-weight:400;font-size:.8rem;letter-spacing:0;margin-top:12px}
/* The manuscript leads; controls stay beside the material they affect. */
.team-draft-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.team-draft-actions form{margin:0}
.team-draft-status{display:flex;gap:20px;flex-wrap:wrap;min-height:0;color:var(--muted);font-size:.78rem;padding-top:8px}
.team-draft-intro{padding:8px 0 12px}
.team-content .team-draft-title{margin:0}
.team-content .team-draft-title input{font-family:var(--serif);font-size:1.3rem;background:transparent;border:1px solid transparent;padding:4px 0}
.team-content .team-narrative{margin:0}
.team-content .team-narrative textarea{background:transparent;border:1px solid transparent;padding:4px 0;font-size:.9rem;line-height:1.7;min-height:60px}
.team-content #story-draft-form textarea{max-height:none;resize:none;overflow:hidden}
.team-content .team-draft-title input:hover,.team-content .team-narrative textarea:hover{border-bottom-color:var(--rule)}
.team-event{position:relative;padding:22px 0 24px;border-top:1px solid var(--rule);scroll-margin-top:20px}
.team-event-heading{display:flex;align-items:center;gap:10px}
.team-content .team-event-heading h2{flex:1;margin:0;font-family:var(--serif);font-size:1.5rem;min-width:0}
.team-content .copy-title{min-height:44px;font:inherit;line-height:inherit;text-align:left;color:inherit;background:transparent;padding:0;border:0}
.team-content .copy-title:after{content:none}
.team-content .title-copy-icon{display:inline-flex;width:15px;height:15px;margin-left:9px;opacity:.3;vertical-align:middle}
.team-content .title-copy-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}
.team-event-order{display:flex;flex-wrap:wrap;gap:12px}
.team-drag-handle{width:44px;min-width:44px;height:44px;border:0;background:transparent;color:var(--muted);font-size:1.6rem;line-height:1;touch-action:none;cursor:grab!important;user-select:none;border-radius:4px}
.team-drag-handle:hover,.team-drag-handle.is-dragging{background:var(--team-highlight);color:var(--ink)}
.team-drag-handle.is-dragging{cursor:grabbing!important}
.team-event-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-left:54px}
.team-content .team-event-meta .field{margin:0;min-width:140px;flex:0 1 280px}
.team-content .team-event-meta .field input{padding:3px 0;border:1px solid transparent;border-radius:0;min-height:36px;font-size:.9rem}
.team-content .team-event-meta .field input:hover{border-bottom-color:var(--rule)}
.team-event-details{font-size:.8rem;flex:0 0 auto;position:relative;align-self:flex-start;margin-top:6px}
.team-event-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--muted);padding:0 8px}
.team-event-settings{position:absolute;top:44px;right:0;width:min(380px,calc(100vw - 60px));z-index:12;background:var(--paper);border:1px solid var(--rule);border-radius:5px;padding:8px 20px 16px;box-shadow:0 8px 30px #192b431f;max-height:65vh;overflow:auto}
.team-media-strip{display:flex;gap:12px;flex-wrap:wrap;min-height:60px;padding:12px 0}
.team-draft-media{position:relative;width:148px;min-width:0}
.team-media-open{display:block;background:transparent;border:0;padding:0;width:100%;text-align:left;color:inherit;border-radius:4px}
.team-media-open:hover .team-thumbnail{outline:1px solid var(--ink);outline-offset:2px}
.team-media-caption{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.75rem;line-height:1.5;overflow:hidden;overflow-wrap:anywhere;margin:6px 0}
.team-media-handle{position:absolute;top:4px;right:4px;background:var(--team-white);box-shadow:0 1px 4px #192b431a}
.team-media-menu{border:0;background:transparent;color:var(--muted);font:inherit;font-size:.75rem;padding:0 4px;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.team-content .team-event-story{margin:4px 0 0}
.team-content .team-event-story textarea{background:transparent;border:1px solid transparent;padding:8px 0;font-size:1rem;line-height:1.85;min-height:70px;resize:vertical;overflow:hidden}
.team-content .team-event-story textarea:hover{border-bottom-color:var(--rule)}
.team-unassigned{margin-top:20px;padding:22px 0;border-top:1px solid var(--rule)}
.team-content .team-unassigned h2{font-size:1rem;margin-bottom:4px}
.team-drop-active{outline:2px dashed var(--berry);outline-offset:5px;background:var(--team-surface)}
.team-drop-hint{font-size:.8rem;display:flex;align-items:center}
.team-draft-settings{padding:24px 0}
.team-shell .error{white-space:pre-wrap}
/* Native dialogs isolate focus and background interaction. */
.team-modal{--team-surface:#f3f0e9;--team-white:#fffdf8;color:var(--ink,#192b43);background:var(--paper,#faf7f1);border:1px solid var(--rule,#dcd8d0);border-radius:8px;width:min(1080px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #101b3266}
.team-modal::backdrop{background:#101b32b3}
.team-modal-bar{display:flex;justify-content:flex-end;position:sticky;top:0;background:var(--paper,#faf7f1);z-index:2;border-bottom:1px solid var(--rule,#dcd8d0);padding:4px 16px}
.team-modal-bar button{min-height:44px;color:var(--ink,#192b43)}
.team-modal-content{padding:24px;min-width:0}
.team-modal-preview{display:flex;align-items:center;justify-content:center;min-height:120px;background:var(--team-surface);border-radius:4px}
.team-modal-preview img{display:block;max-width:100%;height:auto;object-fit:contain}
.team-modal-preview video{display:block;width:100%;max-height:68dvh;object-fit:contain}
.team-modal-preview audio{width:min(100%,600px);margin:40px 12px}
.team-modal-preview .team-format{padding:40px 20px;text-align:center}
.team-modal-context{max-width:760px;margin:24px auto 0;overflow-wrap:anywhere}
.team-modal h2{font:500 1.4rem/1.4 var(--serif);margin:0 0 20px}
.team-modal dl{margin:0 0 20px;font-size:.95rem;line-height:1.7}
.team-modal dt{font-size:.8rem;color:var(--muted);margin:16px 0 4px}
.team-modal dd{margin:0;white-space:pre-wrap}
.team-modal dd p{margin:4px 0}
.team-modal :is(button,a,select):focus-visible{outline:2px solid var(--ink,#192b43);outline-offset:3px}
.team-modal-compact{width:min(480px,calc(100vw - 40px))}
.team-move-targets{display:flex;flex-direction:column;gap:10px}
.team-move-targets button{text-align:left;white-space:normal;min-height:44px}
/* Timeline dates are independent of the AI event manuscript. */
.team-file-views{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:.8rem}
.team-file-views [aria-pressed=true]{font-weight:650;text-decoration-thickness:2px}
.team-timeline-status{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:.8rem;color:var(--muted);min-height:44px;padding-top:8px}
.team-timeline-lane{padding:24px 0;border-bottom:1px solid var(--rule);scroll-margin-top:20px}
.team-content .team-timeline-lane h2{font-family:var(--serif);font-size:1.4rem;margin:0 0 14px}
.team-timeline-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:20px 14px;min-height:64px}
.team-timeline-file{min-width:0;max-width:240px}
.team-content .team-timeline-date{margin:2px 5px;font-size:.72rem;color:var(--muted);line-height:1.6}
.team-timeline-date span{display:block}
.team-provisional{color:var(--berry)}
.team-timeline-controls{display:flex;align-items:center;gap:12px;padding-inline:4px}
.team-timeline-controls .text-btn{font-size:.75rem}
.team-modal .field{margin:16px 0}
.team-modal .field :is(input,select){min-height:44px;padding:10px 12px}
.team-modal .checkbox-label{min-height:44px;align-items:center}
.team-modal .checkbox-label input{margin-top:0}
.team-modal .actions{margin-top:16px}
@media(max-width:600px){.team-timeline-files{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}.team-timeline-file{max-width:none}.team-file-views{gap:16px}.team-timeline-lane{padding:20px 0}.team-content .team-timeline-lane h2{font-size:1.2rem}}
@media(min-width:1450px){.team-main{padding-inline:64px}}
@media(max-width:1150px){.team-main{padding-inline:32px}.team-columns{gap:32px}.team-story{grid-template-columns:minmax(0,1fr) auto}.team-story>.btn{grid-column:1/-1;justify-self:start}}
@media(max-width:1050px){.team-columns{grid-template-columns:1fr;gap:0}.team-heading{align-items:flex-start;flex-wrap:wrap}.team-draft-actions{justify-content:flex-start}}
@media(max-width:800px){.team-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.team-mobile-bar{display:flex;position:relative;z-index:20;align-items:center;gap:12px;padding:max(8px,env(safe-area-inset-top)) 24px 8px;border-bottom:1px solid var(--rule);min-width:0;background:var(--paper)}.team-mobile-context{min-width:0;font-size:.85rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.team-main{padding:0 24px max(40px,env(safe-area-inset-bottom))}.team-content{padding-top:24px}.team-heading{min-height:58px;padding-bottom:16px;gap:12px;align-items:flex-start;flex-wrap:wrap}.team-content h1{font-size:2rem}.team-menu{display:flex;flex:0 0 44px;width:44px;height:44px;align-items:center;justify-content:center;background:var(--paper);border:1px solid var(--rule);border-radius:5px;color:var(--ink)}.team-menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}.team-sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:min(300px,calc(100% - 48px));padding-top:max(28px,env(safe-area-inset-top));transform:translateX(-100%);visibility:hidden;transition:transform .18s ease}.drawer-open .team-sidebar{transform:translateX(0);visibility:visible}.team-drawer-close{display:flex;position:absolute;top:20px;right:16px;align-items:center;gap:8px;font-size:.75rem!important}.team-drawer-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}.team-brand{margin-top:40px;margin-bottom:28px}.team-story{gap:16px}.team-event-heading{gap:6px}.team-content .team-event-heading h2{font-size:1.3rem}.team-event-meta{padding-left:0;gap:0 12px}.team-draft-media{width:calc((100% - 24px)/3)}.team-event{scroll-margin-top:20px}.team-draft-actions{gap:4px 8px}.team-draft-actions .btn{padding-inline:12px}.team-file-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}.team-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.team-modal-content{padding:16px}.team-modal-context{margin-top:20px}.team-event-settings{max-height:60dvh}}
@media(max-width:450px){.team-main{padding-inline:18px}.team-mobile-bar{padding-inline:18px}.team-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-draft-media{width:calc((100% - 12px)/2)}.team-story{grid-template-columns:1fr}.team-draft-actions .btn{margin-top:0}.team-draft-actions{width:100%}.team-event-heading>.team-drag-handle{width:32px;min-width:32px}.team-event-details summary{padding-inline:4px}.team-content .team-event-heading h2{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){.team-sidebar{transition:none}.team-main[aria-busy=true]:before{animation:none}}
.team-conflict{color:var(--ink);font-size:.85rem;white-space:normal}.team-conflict p{white-space:pre-wrap}.team-conflict .actions{flex-wrap:wrap}
#team-timeline-status:empty{display:none}
.team-date-control{display:flex;align-items:center;gap:4px;max-width:100%;flex:0 1 310px;min-width:0}
.team-content .team-date-control .field{flex:1;min-width:0}
.team-content .team-date-control input{width:100%;min-height:44px!important}
.team-date-open{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;background:transparent;border:0;border-radius:5px;color:var(--muted)}
.team-date-open:hover{color:var(--ink);background:var(--team-surface)}
.team-date-open svg,.team-calendar-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.team-date-dialog{width:min(390px,calc(100vw - 20px))}
.team-date-dialog .team-modal-content{padding:12px 20px 20px}
.team-date-dialog h2{margin-bottom:16px}
.team-date-dialog .field{margin:0 0 16px}
.team-date-dialog .field input{width:100%;font-size:16px}
.team-date-dialog .checkbox-label{font-size:.85rem;margin:12px 0}
.team-calendar{border-block:1px solid var(--rule);padding:10px 0}
.team-calendar-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 78px 44px;align-items:center;gap:4px;margin-bottom:8px}
.team-calendar-nav button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;background:transparent;color:var(--ink);border:0;border-radius:5px}
.team-calendar-month{font-size:1rem;font-weight:600;padding-left:4px}
.team-calendar-year input{width:100%;min-height:44px;padding:8px 4px;background:transparent;border:1px solid var(--rule);border-radius:4px;font:inherit;font-size:16px;text-align:center;color:var(--ink)}
.team-calendar-grid [role=row]{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.team-calendar-grid [role=gridcell]{display:flex;justify-content:center;min-width:0}
.team-calendar-weekdays{text-align:center;color:var(--muted);font-size:.72rem;padding:4px 0 8px}
.team-calendar-grid button{width:100%;min-height:44px;padding:8px 0;line-height:1;font-size:.875rem;color:var(--ink);background:transparent;border:0;border-radius:50%}
.team-calendar-grid button:hover,.team-calendar-nav button:hover{background:var(--team-surface)}
.team-calendar-grid [aria-selected=true] button{background:var(--ink);color:var(--paper);font-weight:600}
.team-calendar-grid button[aria-current=date]{text-decoration:underline;text-underline-offset:5px}
.team-date-control :is(input,button):focus-visible,.team-date-dialog :is(input,button):focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.team-calendar-grid button:focus-visible{outline-offset:-3px}
.team-calendar-grid [aria-selected=true] button:focus-visible{outline-color:var(--paper)}
.team-date-dialog .actions{gap:16px;margin-top:12px}
@media(max-width:450px){.team-date-dialog .team-modal-content{padding-inline:16px}.team-date-control{flex-basis:100%}}

/* A quiet reminder beside navigation; the workspace remains the focus. */
.team-sidebar-bottom .team-preview-label{align-self:flex-start;display:inline-block;margin:14px 12px 0;padding:3px 8px;border:1px solid var(--rule);border-radius:4px;font-size:.7rem;line-height:1.5;color:var(--muted);cursor:help}
/* Readable manuscript; editing lives in a right-hand drawer. */
.team-story-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0 6px}
.team-content .team-story-heading h2{font-family:var(--serif);font-size:1.6rem;margin:0}
.team-story-prose{font-size:1rem;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap}
.team-story-prose[role=button]{cursor:text;border-radius:4px}
.team-story-prose[role=button]:hover{background:#192b4305}
.team-story-prose p{margin:0 0 1em}
.team-story-prose :is(ul,ol){margin:0 0 1em;padding-left:1.8em}
.team-story-prose li{padding:0 0 .3em;white-space:pre-wrap}
.team-content .team-event-story{margin:12px 0 18px}
.team-canvas-date{background:transparent;border:0;color:var(--muted);font:inherit;font-size:.85rem;min-height:44px;padding:0;text-align:left;cursor:pointer}
.team-content .team-event-order{font-size:.75rem;color:var(--muted);gap:16px}
.team-edit-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(800px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0;border:0;border-left:1px solid var(--rule,#dcd9d2);border-radius:0;background:var(--paper,#faf7f1);color:var(--ink,#192b43);box-shadow:-12px 0 60px #192b4333;overflow:hidden}
.team-edit-drawer::backdrop{background:#192b4366}
.team-edit-drawer[open]{display:flex;flex-direction:column}
.team-edit-header{display:flex;align-items:center;gap:18px;flex:none;padding:16px 28px;border-bottom:1px solid var(--rule,#dcd9d2);min-height:76px;box-sizing:border-box}
.team-edit-header h2{font-family:var(--serif);font-size:1.5rem;margin:0;flex:1}
.team-edit-header [role=status]{font-size:.75rem;color:var(--muted);max-width:150px}
.team-edit-header button{min-height:44px;white-space:nowrap;font-size:.85rem;color:inherit}
.team-edit-body{padding:8px 32px max(32px,env(safe-area-inset-bottom));overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
.team-edit-form .field{display:block;margin:20px 0}
.team-edit-form .field>span{display:block;font-size:.85rem;font-weight:500;margin-bottom:8px}
.team-edit-form .field input{font:inherit;font-size:16px;line-height:1.6;width:100%;padding:10px 12px;min-height:48px;box-sizing:border-box;border:1px solid var(--rule,#dcd9d2);border-radius:4px;background:transparent;color:inherit}
.team-edit-form .checkbox-label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.8rem;margin:4px 0}
.team-edit-form .checkbox-label input{width:20px;height:20px;accent-color:var(--ink);margin:0}
.team-edit-date{display:flex;gap:8px;align-items:flex-end}
.team-edit-date .field{flex:1;min-width:0;margin-bottom:0}
.team-edit-date .team-date-open{margin-bottom:2px}
.team-edit-form .team-editor-label{margin-bottom:8px}
.team-edit-drawer .ql-toolbar.ql-snow{border-color:var(--rule,#dcd9d2);border-radius:4px 4px 0 0;padding:6px;background:#f3f0e9;display:flex;gap:8px;flex-wrap:wrap}
.team-edit-drawer .ql-snow .ql-formats{margin:0;display:flex}
.team-edit-drawer .ql-toolbar.ql-snow button{width:44px;height:44px;padding:11px}
.team-edit-drawer .ql-container.ql-snow{font:inherit;font-size:16px;border-color:var(--rule,#dcd9d2);border-radius:0 0 4px 4px;min-height:264px;height:auto}
.team-edit-drawer .ql-editor{min-height:264px;line-height:1.8;padding:16px;overflow-wrap:anywhere}
.team-edit-drawer .ql-editor.ql-blank:before{font-style:normal;color:var(--muted)}
.team-edit-drawer .ql-snow .ql-stroke{stroke:var(--ink)}
.team-edit-drawer .ql-snow .ql-fill{fill:var(--ink)}
.team-edit-drawer .ql-snow button.ql-active{background:#efbdce66;border-radius:4px}
.team-edit-drawer .team-review-check{margin-top:20px}
.team-edit-drawer .error{white-space:normal;font-size:.85rem}
.team-edit-drawer :is(input,button,[contenteditable=true]):focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(max-width:600px){.team-edit-drawer{width:100vw;border:0}.team-edit-header{padding:12px 18px;gap:10px}.team-edit-header h2{font-size:1.3rem}.team-edit-header [role=status]{font-size:.7rem;max-width:90px}.team-edit-body{padding:4px 18px max(28px,env(safe-area-inset-bottom))}.team-story-heading{gap:12px}.team-content .team-story-heading h2{font-size:1.4rem}}

/* Collection and handoff: the next decision leads, with source context nearby. */
.team-next-action{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 0;border-bottom:1px solid var(--rule)}
.team-next-action h2{font-family:var(--serif);font-size:1.6rem;margin:0 0 8px}
.team-next-action p{font-size:.9rem;max-width:720px;color:var(--muted)}
.team-next-action .btn{flex-shrink:0}
.team-readiness{margin:0;font-size:.9rem}
.team-readiness>div{display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;padding:12px 0;border-bottom:1px solid var(--rule)}
.team-readiness>div:last-child{border:0}
.team-readiness dt{color:var(--muted)}
.team-readiness dd{margin:0}
.team-source-text{white-space:pre-wrap;font-size:.9rem;line-height:1.8}
.team-section .team-source-text+h3{margin-top:24px}
.team-tour{border-top:1px solid var(--rule);padding-top:10px;margin-top:10px}
.staff-tour{display:flex;justify-content:flex-end;gap:20px;padding:0 4px 8px;font-size:.75rem;flex-wrap:wrap}
.staff-tour a{min-height:36px;display:flex;align-items:center}
.team-content .actions{flex-wrap:wrap;gap:16px;align-items:center}
.team-modal .checkbox-label{display:flex;gap:10px;font-size:.85rem;line-height:1.6;align-items:flex-start}
.team-modal .checkbox-label input{flex:0 0 20px;width:20px;height:20px;accent-color:var(--ink);margin-top:3px}
@media(max-width:800px){.team-next-action{align-items:flex-start;flex-direction:column;gap:16px;padding:24px 0}.team-next-action h2{font-size:1.4rem}.team-readiness>div{grid-template-columns:minmax(100px,.65fr) minmax(0,1fr);gap:16px}.staff-tour{padding-inline:24px;justify-content:flex-start}}
@media(max-width:450px){.team-readiness>div{grid-template-columns:1fr;gap:4px}.staff-tour{padding-inline:18px}.team-content .actions .btn{white-space:normal}}

.team-transfer-progress{padding:24px 0;margin-top:20px;border-top:1px solid var(--rule)}
.team-transfer-progress progress{display:block;width:100%;height:10px;margin:16px 0;accent-color:var(--ink)}
.team-destination-options{padding:0;margin:24px 0;border:0}
.team-destination-options legend{font-size:.9rem;font-weight:600;margin-bottom:12px}
.team-destination{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:16px 0;border-bottom:1px solid var(--rule);cursor:pointer}
.team-destination input{width:20px;height:20px;flex:0 0 20px;margin-top:4px;accent-color:var(--ink)}
.team-destination small{display:block;font-size:.8rem;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}

.staff-tour .staff-preview{display:flex;align-items:center;color:var(--muted);font-size:.7rem;margin-right:auto}

@media(max-width:800px){.pilot-header-nav .pilot-secondary{display:none}.pilot-header-nav>a,.pilot-header-nav>button{white-space:nowrap}.pilot-header-nav{flex-wrap:nowrap}}
.team-guide{padding:24px 0 32px;border-top:1px solid var(--rule);max-width:1100px}.team-guide h2{margin:0 0 14px}.team-guide video{display:block;width:100%;aspect-ratio:16/9;background:var(--ink,#192b43);border-radius:4px}.team-guide .guide-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px}.sales-walkthrough video{display:block;width:100%;aspect-ratio:16/9;border-radius:4px;background:var(--ink,#192b43)}.app-top-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}.app-top-actions a{display:inline-flex;align-items:center;min-height:44px}.team-guide:target{scroll-margin-top:24px}
@media(max-width:800px){.app-top-actions{gap:14px}.team-guide{padding:20px 0 26px}.team-guide .guide-actions{gap:12px}}

.team-tour a[aria-current="page"]{font-weight:600;text-decoration:underline;text-underline-offset:5px}

/* Source groups help staff browse large collections without rearranging them. */
.team-file-jumps{display:flex;flex-wrap:wrap;gap:4px 20px;padding:18px 0;border-bottom:1px solid var(--rule);font-size:.8rem}
.team-file-jumps a{display:inline-flex;align-items:center;gap:5px;min-height:40px;text-underline-offset:4px}
.team-file-group{padding:24px 0;border-bottom:1px solid var(--rule)}
.team-file-group:last-child{border-bottom:0}
.team-file-group h2{margin:0}
.team-file-groups .team-file-name{display:block;overflow:visible;-webkit-line-clamp:unset;min-height:0}
