/* 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-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-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. */
.team-file-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.8fr);gap:32px;align-items:start;padding-top:28px}
.team-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px;align-items:start;min-width:0}
.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-file-tile[aria-pressed=true]{border-color:var(--ink);background:var(--team-surface)}
.team-thumbnail{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:var(--team-surface);width:100%;overflow:hidden;border-radius:3px;color:var(--muted);text-align:center;font-size:.75rem}
.team-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.team-file-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.76rem;line-height:1.55;margin-top:8px;min-height:2.4em;overflow-wrap:anywhere}
.team-selected-file{position:sticky;top:28px;min-width:0;padding-left:28px;border-left:1px solid var(--rule)}
.team-selected-file h2{font-size:1.05rem;margin:20px 0 16px}
.team-file-preview{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:var(--team-surface);overflow:hidden;border-radius:4px;text-align:center;padding:8px}
.team-file-preview img,.team-file-preview video{width:100%;height:100%;max-height:360px;object-fit:contain}
.team-file-preview audio{max-width:100%;width:100%}
.team-format{font-size:.85rem;letter-spacing:.05em;font-weight:600}
.team-format small{display:block;font-weight:400;font-size:.75rem;letter-spacing:0;margin-top:12px}
.team-selected-file dl{font-size:.82rem;margin:0 0 20px}
.team-selected-file dt{color:var(--muted);font-size:.75rem;margin:16px 0 4px}
.team-selected-file dd{margin:0;line-height:1.7}
/* Outline editor: narrative first, then a quiet chronological manuscript. */
.team-draft-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:10;background:var(--paper);padding:14px 0;border-bottom:1px solid var(--rule)}
.team-draft-toolbar>span{font-size:.8rem;color:var(--muted)}
.team-content .team-draft-title{margin-top:28px}
.team-content .team-draft-title input{font-family:var(--serif);font-size:1.6rem;background:transparent}
.team-content .team-narrative textarea,.team-content .team-event-story textarea{background:var(--team-white);line-height:1.9;padding:20px;font-size:1rem}
.team-narrative{padding-bottom:26px}
.team-event{position:relative;padding:30px 0 24px;border-top:1px solid var(--rule);scroll-margin-top:80px}
.team-event-heading{display:flex;align-items:center;gap:12px}
.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-shrink:0;gap:4px}
.team-event-order .text-btn{width:44px;padding:0;text-align:center}
.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:24px;flex-wrap:wrap;padding-left:56px}
.team-event-meta .field{flex:1;min-width:180px;max-width:360px}
.team-content .team-event-meta .field input{padding:8px 0;border:0;border-radius:0;border-bottom:1px solid var(--rule)}
.team-event-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.team-event-details{font-size:.8rem;max-width:420px;flex:1}
.team-event-details summary{text-align:right}
.team-media-strip{display:flex;gap:14px;flex-wrap:wrap;min-height:80px;padding:14px 0}
.team-draft-media{position:relative;width:132px;min-width:0}
.team-draft-media .team-thumbnail{aspect-ratio:4/3}
.team-media-caption{display:block;font-size:.7rem;line-height:1.4;height:2.8em;overflow:hidden;overflow-wrap:anywhere;margin:7px 0}
.team-media-handle{position:absolute;top:4px;right:4px;background:var(--team-white);box-shadow:0 1px 4px #192b431a}
.team-draft-media select{width:100%;min-height:44px;border:1px solid var(--rule);border-radius:4px;background:var(--paper);color:var(--ink);font:inherit;font-size:.75rem;padding:6px}
.team-unassigned{margin-top:28px;padding:26px 0;border-top:1px solid var(--rule)}
.team-unassigned h2{font-size:1.1rem}
.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-generation{border-top:1px solid var(--rule);padding-top:14px}
.team-shell .error{white-space:pre-wrap}
@media(min-width:1450px){.team-main{padding-inline:64px}}
@media(max-width:1150px){.team-main{padding-inline:32px}.team-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-columns{gap:32px}.team-story{grid-template-columns:minmax(0,1fr) auto}.team-story>.btn{grid-column:1/-1;justify-self:start}.team-file-workspace{gap:22px}.team-selected-file{padding-left:20px}}
@media(max-width:1050px){.team-file-workspace{grid-template-columns:1fr}.team-file-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.team-selected-file{position:static;border-left:0;border-top:1px solid var(--rule);padding:26px 0}.team-selected-file .team-file-preview{max-width:620px}.team-columns{grid-template-columns:1fr;gap:0}}
@media(max-width:800px){.team-shell{display:block}.team-main{padding:0 24px max(40px,env(safe-area-inset-bottom))}.team-content{padding-top:max(24px,env(safe-area-inset-top))}.team-heading{padding-left:52px;min-height:58px;padding-bottom:22px;gap:12px;align-items:flex-start;flex-wrap:wrap}.team-content h1{font-size:2rem}.team-menu{display:flex;position:fixed;left:20px;top:max(22px,env(safe-area-inset-top));width:44px;height:44px;z-index:25;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,visibility .18s}.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-file-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}.team-event-heading{gap:6px}.team-event-heading h2{font-size:1.3rem}.team-event-meta{padding-left:0;gap:0 16px}.team-event-order{gap:0}.team-event-bottom{flex-wrap:wrap;gap:8px}.team-event-details{min-width:100%;max-width:none}.team-event-details summary{text-align:left}.team-draft-toolbar{top:0;gap:12px;padding:12px 0}.team-draft-toolbar>span{max-width:150px;font-size:.75rem}.team-content .team-narrative textarea,.team-content .team-event-story textarea{padding:14px}.team-draft-media{width:calc((100% - 28px)/3)}.team-media-strip{gap:14px}.team-content .team-draft-title input{font-size:1.35rem}.team-event{scroll-margin-top:80px}.team-content .team-event-meta .field{max-width:none}.team-content .team-event-order .text-btn{font-size:1rem}}
@media(max-width:450px){.team-main{padding-inline:18px}.team-menu{left:16px}.team-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-draft-media{width:calc((100% - 14px)/2)}.team-event-heading{flex-wrap:wrap}.team-event-heading h2{flex-basis:calc(100% - 50px)}.team-event-order{margin-left:44px}.team-story{grid-template-columns:1fr}.team-heading .btn{margin-top:8px}.team-draft-toolbar .btn{padding-inline:16px}.team-draft-toolbar>span{max-width:130px}}
@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}
@media(max-width:800px){.team-draft-toolbar{padding-left:52px}.team-draft-toolbar>span{max-width:120px}}
