:root{color-scheme:light;--white:#fff;--surface:#f7f7f8;--ink:#111;--muted:#666;--rule:#d6d6d8;--blue:#002fa7;--green:#008f4c;--rail:17rem;--header:5rem;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--ink);background:var(--white)}
:root[data-theme=dark]{color-scheme:dark;--white:#0b0d12;--surface:#151821;--ink:#f7f7f8;--muted:#a9acb5;--rule:#343844;--blue:#82a7ff;--green:#5ee09b}
*{box-sizing:border-box}body{margin:0;min-width:320px;font-size:15px;background:var(--white)}a{color:var(--blue);text-underline-offset:3px}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{touch-action:manipulation}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3vw,3rem);letter-spacing:-.05em;font-weight:500;line-height:1.08;margin-bottom:.65rem}h2{font-size:1.25rem;letter-spacing:-.025em;font-weight:500;margin:0}h3{font-weight:500}p{line-height:1.6}.muted,.help{color:var(--muted)}.help{font-size:.85rem;margin:.45rem 0 0}.skip-link{position:fixed;top:-5rem;left:1rem;z-index:100;background:var(--blue);color:var(--white);padding:1rem}.skip-link:focus{top:1rem}.icon{height:22px;width:22px;flex:0 0 auto}.masthead{position:fixed;inset:0 0 auto;height:var(--header);display:flex;align-items:center;gap:2.5rem;padding:0 1.6rem;background:var(--white);border-bottom:1px solid var(--rule);z-index:30}.brand{color:var(--ink);text-decoration:none;letter-spacing:-.06em;font-size:1.8rem;font-weight:600;white-space:nowrap}.brand span{display:block;font-size:.7rem;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:.15rem}.breadcrumb{color:var(--blue);border-left:1px solid var(--rule);padding-left:2rem}.identity{margin-left:auto;display:flex;align-items:center;gap:1rem;font-size:.85rem;min-width:0;overflow:hidden}.badge{border:1px solid var(--rule);padding:.45rem .7rem;white-space:nowrap;font-size:.73rem;color:var(--muted)}.side-rail{position:fixed;top:var(--header);bottom:0;left:0;width:var(--rail);padding:1.5rem 1.1rem 1rem;background:var(--white);border-right:1px solid var(--rule);display:flex;flex-direction:column;z-index:25}.team-switch{padding:0 .6rem 1.4rem;border-bottom:1px solid var(--rule);margin-bottom:1rem}.team-switch label{font-size:.72rem;color:var(--muted);display:block;margin-bottom:.65rem}.team-switch select{width:100%;font-size:.85rem;padding:.6rem}.side-rail nav{overflow:auto}.nav-link{display:flex;align-items:center;gap:1rem;min-height:3rem;width:100%;border:0;border-left:3px solid transparent;background:none;color:var(--ink);padding:.7rem .8rem;text-decoration:none;font-size:.9rem;text-align:left}.nav-link:hover{color:var(--blue);background:var(--surface)}.nav-link.active{color:var(--blue);border-left-color:var(--blue);background:var(--surface)}.nav-heading{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:1.5rem .9rem .5rem}.rail-footer{margin-top:auto;border-top:1px solid var(--rule);padding-top:.7rem}.content{margin:var(--header) 0 0 var(--rail);padding:2.5rem 3rem 4rem;max-width:1800px}.page-heading{display:flex;justify-content:space-between;gap:2rem;align-items:center;margin-bottom:2rem}.page-heading p{margin:0;color:var(--muted)}.page-heading .count{font-size:4.5rem;color:var(--blue);font-weight:400;letter-spacing:-.07em;font-variant-numeric:tabular-nums}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}.section-heading a{font-size:.85rem}.panel{border-top:1px solid var(--rule);padding:1.5rem 0;margin-top:1.5rem}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--ink);border-bottom:1px solid var(--rule);margin:2.5rem 0 3rem}.metrics a{display:flex;flex-direction:column;gap:.6rem;padding:1.5rem 1.5rem 1.5rem 0;text-decoration:none;color:var(--muted);font-size:.85rem}.metrics a+a{border-left:1px solid var(--rule);padding-left:1.8rem}.metric-number{font-size:4.5rem;line-height:1.2;letter-spacing:-.06em;color:var(--blue);font-variant-numeric:tabular-nums}.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.team-card{border:1px solid var(--rule);padding:1.3rem;text-decoration:none;color:var(--ink)}.team-card:hover{border-color:var(--blue)}.team-card h3{font-size:1.3rem;margin:.8rem 0}.team-card p{font-size:.85rem;color:var(--muted);margin-bottom:0}.team-number{font-size:.8rem;color:var(--blue);font-variant-numeric:tabular-nums}.empty{padding:2rem;background:var(--surface);color:var(--muted)}.empty h3{color:var(--ink)}.empty p:last-child{margin:0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}th{font-size:.72rem;text-transform:uppercase;letter-spacing:.035em;color:var(--muted);font-weight:500;background:var(--surface);white-space:nowrap}td,th{padding:1rem;border-bottom:1px solid var(--rule);vertical-align:middle}td:first-child,th:first-child{padding-left:.8rem}td a{font-weight:500;text-decoration:none}tbody tr:hover{background:var(--surface)}.status{display:inline-block;padding:.25rem .5rem;border:1px solid var(--rule);font-size:.75rem}.status.succeeded{color:var(--green)}.status.failed{color:#b33a35}.status.pending{color:var(--muted)}.chip{display:inline-flex;padding:.3rem .5rem;border:1px solid var(--rule);font-size:.75rem;margin:.15rem}.button,button.primary{display:inline-flex;align-items:center;justify-content:center;gap:1.2rem;padding:.8rem 1.1rem;border:1px solid var(--blue);background:var(--blue);color:var(--white);font-weight:500;text-decoration:none;font-size:.9rem;white-space:nowrap}.button.secondary,button.secondary{background:transparent;color:var(--blue);border:1px solid var(--rule);padding:.75rem 1rem;text-decoration:none}.button:hover,button.primary:hover{filter:brightness(1.1)}button.text-button{border:0;background:transparent;color:var(--blue);padding:.35rem;text-decoration:underline;font-size:.8rem}.danger{color:#b33a35!important}.toolbar{display:flex;gap:1rem;align-items:center;margin:1.5rem 0;flex-wrap:wrap}.toolbar input{min-width:16rem}.toolbar .spacer{flex:1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 2rem;max-width:1000px}.form-grid .wide{grid-column:1/-1}.field>label{display:block;font-weight:500;font-size:.85rem;margin-bottom:.6rem}input:not([type=checkbox]),select,textarea{border:1px solid var(--rule);background:var(--white);color:var(--ink);padding:.7rem .8rem;width:100%;border-radius:0}input[readonly]{background:var(--surface);color:var(--muted)}textarea{min-height:7rem;resize:vertical}select[multiple]{min-height:9rem}.checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.55rem 1rem}.checklist label{display:flex;gap:.65rem;align-items:center;font-size:.85rem;padding:.4rem 0}input[type=checkbox]{accent-color:var(--blue);width:17px;height:17px}.actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:1.8rem}.inline-form{display:inline-flex;align-items:center;gap:.5rem}.notice{border-left:3px solid var(--blue);background:var(--surface);padding:1rem 1.3rem;margin-bottom:1.5rem}.notice p{margin:0}.field-error{color:#b33a35;font-size:.8rem}.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem}dl{margin:0}dt{color:var(--muted);font-size:.8rem;margin-bottom:.5rem}dd{margin:0;font-size:1rem;overflow-wrap:anywhere}.login-page>header{display:flex;align-items:center;justify-content:space-between;padding:2rem 3rem;border-bottom:1px solid var(--rule)}.login-panel{max-width:620px;margin:10vh auto;padding:2rem}.login-panel h1{font-size:clamp(3rem,6vw,4.8rem);margin:2rem 0 1.5rem}.login-panel p{color:var(--muted);max-width:360px}.login-panel .button{margin:1.2rem 0;padding:1rem 1.4rem;min-width:270px;justify-content:space-between}.login-rule{display:block;width:5rem;height:5px;background:var(--blue)}.mobile-menu{display:none}.scrim{display:none}code{font-size:.8rem;overflow-wrap:anywhere}.pagination{display:flex;justify-content:space-between;margin-top:1rem}.small{font-size:.8rem}
@media(min-width:1600px){.content{padding:3rem 4rem}}@media(max-width:1050px){:root{--rail:15rem}.content{padding:2rem}.identity .badge{display:none}.masthead{gap:1.5rem}}@media(max-width:760px){.masthead{height:4.5rem;padding:0 1rem;gap:.9rem}.brand{font-size:1.4rem}.brand span{font-size:.6rem}.breadcrumb{display:none}.identity{font-size:.75rem;max-width:8rem}.mobile-menu{display:block;background:none;border:0;color:var(--ink);font-size:1.3rem;padding:.3rem}.side-rail{top:4.5rem;transform:translateX(-100%);width:17rem}.nav-open .side-rail{transform:translateX(0)}.nav-open .scrim{display:block;position:fixed;inset:4.5rem 0 0;background:#0005;z-index:20}.content{margin:4.5rem 0 0;padding:1.6rem 1rem}.page-heading{gap:1rem}.page-heading .count{font-size:3rem}.metrics{margin:1.8rem 0 2rem;grid-template-columns:repeat(2,minmax(0,1fr))}.metrics a{padding:1rem 0}.metrics a+a{padding-left:1rem}.metrics a:nth-child(3){border-top:1px solid var(--rule);grid-column:1/-1;border-left:0;padding-left:0}.metric-number{font-size:3.3rem}.form-grid,.details-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.section-heading{align-items:baseline;flex-wrap:wrap}.toolbar{gap:.7rem}.toolbar input{min-width:0}.login-page>header{padding:1.3rem}.login-panel{margin:5vh auto;padding:1.6rem}.team-grid{grid-template-columns:1fr}.inline-form{flex-wrap:wrap}td,th{padding:.85rem .65rem}}
.stack{margin-top:1.5rem}.stack>fieldset,.stack>.field{margin:1.4rem 0}fieldset{border:1px solid var(--rule);padding:1rem;min-width:0}legend{font-size:.85rem;padding:0 .5rem} .toolbar select{max-width:32rem} .chip form{margin-left:.4rem}.field{min-width:0}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.global-search{display:flex;align-items:center;min-width:10rem;max-width:34rem;flex:1;margin-left:auto;border:1px solid var(--rule);background:var(--surface)}.global-search:focus-within{border-color:var(--blue)}.global-search input[type=search]{border:0;background:transparent;min-width:0;padding:.65rem .8rem;flex:1;width:100%;outline:0}.global-search kbd{font:inherit;font-size:.75rem;color:var(--muted);border:1px solid var(--rule);min-width:1.5rem;text-align:center;padding:.1rem}.global-search button{border:0;background:none;color:var(--blue);padding:.45rem .65rem;display:flex}.global-search .icon{width:18px;height:18px}.masthead .identity{margin-left:0;flex:0 1 auto}.search-summary{color:var(--muted);margin-bottom:2rem}.search-summary strong{color:var(--ink)}.search-section{border-top:1px solid var(--rule);padding:1.2rem 0 1.6rem}.search-section h2{color:var(--blue);font-size:1rem;margin-bottom:.8rem}.search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.5rem}.search-results a{display:flex;flex-direction:column;gap:.3rem;border:1px solid var(--rule);padding:1rem;text-decoration:none;color:var(--ink)}.search-results a:hover{border-color:var(--blue);color:var(--blue)}.search-results small{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:1050px){.global-search{max-width:none}.masthead .identity{display:none}}
@media(max-width:760px){.masthead{gap:.65rem}.brand{font-size:1.2rem}.brand span{font-size:.53rem}.global-search{min-width:0}.global-search kbd{display:none}.global-search input[type=search]{padding:.6rem}.global-search input::placeholder{font-size:.82rem}.global-search button{padding:.45rem}.search-results{grid-template-columns:1fr}}
.header-photo,.profile-photo{display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--rule);background:var(--surface);color:var(--muted);flex:none}.header-photo{width:2.25rem;height:2.25rem}.profile-photo{width:7.5rem;height:7.5rem}.header-photo img,.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-photo .icon{width:3.5rem;height:3.5rem}.profile-heading{display:flex;align-items:center;gap:1.5rem;margin-bottom:1.5rem}.profile-heading p{margin:0}.photo-form{border-top:1px solid var(--rule);padding:1.2rem 0 1.5rem;max-width:42rem}.photo-form label{display:block;font-size:.85rem;font-weight:500;margin-bottom:.6rem}.photo-controls{display:flex;align-items:center;gap:.8rem}.photo-controls input{min-width:0}.photo-controls button{white-space:nowrap}@media(max-width:760px){.profile-photo{width:5.5rem;height:5.5rem}.photo-controls{align-items:stretch;flex-direction:column}.header-photo{width:1.9rem;height:1.9rem}}
.person-cell{display:inline-flex;align-items:center;gap:.75rem;min-width:0}.person-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.5rem;height:2.5rem;overflow:hidden;border:1px solid var(--rule);background:var(--surface);color:var(--muted)}.person-avatar img{display:block;width:100%;height:100%;object-fit:cover}.person-avatar .icon{width:1.4rem;height:1.4rem}.search-results a.search-person{flex-direction:row;align-items:center;gap:.75rem}.search-person-copy{display:flex;flex-direction:column;min-width:0}.search-person-copy small{overflow-wrap:anywhere}
@media(max-width:760px){.member-table thead,.assignment-table thead{display:none}.member-table,.member-table tbody,.member-table tr,.member-table td,.assignment-table,.assignment-table tbody,.assignment-table tr,.assignment-table td{display:block;width:100%}.member-table tr,.assignment-table tr{padding:.75rem 0;border-bottom:1px solid var(--rule)}.member-table td,.assignment-table td{border:0;padding:.25rem 0!important}.member-table td:not(:first-child),.assignment-table td:not(:first-child){padding-left:3.25rem!important}.member-table .chip{margin-left:0}}
.photo-privacy-form{max-width:42rem;padding:0 0 1.5rem;border-bottom:1px solid var(--rule)}.photo-privacy-choice{display:flex;align-items:center;gap:.65rem;font-size:.9rem;font-weight:500}.photo-privacy-form .help{margin:.5rem 0 1rem}
.survey-list{border-top:1px solid var(--rule)}.survey-list-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem .5rem;border-bottom:1px solid var(--rule);text-decoration:none;color:var(--ink)}.survey-list-item:hover{background:var(--surface)}.survey-list-item strong,.survey-list-item small{display:block}.survey-list-item small{font-size:.82rem;color:var(--muted);margin-top:.3rem}.survey-question{margin:1rem 0}.survey-question .form-grid{max-width:none}.survey-check{display:flex;align-items:center;gap:.55rem;margin:1rem 0}.survey-row-actions{display:flex;gap:.7rem;flex-wrap:wrap}.survey-audience{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:1000px}.survey-audience>.survey-check{grid-column:1/-1}.survey-answer{max-width:800px;margin:1rem 0 1.5rem}.survey-answer legend{font-size:1rem;font-weight:500}.survey-required{font-size:.72rem;color:var(--muted);font-weight:400}.survey-options{display:grid;gap:.65rem;margin:.8rem 0}.survey-options label{display:flex;align-items:center;gap:.6rem}.survey-rating{display:flex;gap:1.2rem}.survey-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1rem}.survey-result{border:1px solid var(--rule);padding:1.2rem}.survey-result dl{display:grid;grid-template-columns:1fr;gap:.3rem}.survey-result dt{margin-top:.7rem}.survey-result dd{white-space:pre-wrap}.survey-result .section-heading{margin-bottom:.5rem}.metrics>div{display:flex;flex-direction:column;gap:.6rem;padding:1.5rem 1.5rem 1.5rem 0;font-size:.85rem;color:var(--muted)}.metrics>div+div{border-left:1px solid var(--rule);padding-left:1.8rem}
@media(max-width:760px){.survey-audience{grid-template-columns:1fr}.survey-audience>.survey-check{grid-column:auto}.survey-list-item{align-items:flex-start}.survey-results{grid-template-columns:1fr}.metrics>div{padding:1rem 0}.metrics>div+div{padding-left:1rem}.metrics>div:nth-child(3){border-top:1px solid var(--rule);grid-column:1/-1;border-left:0;padding-left:0}}
.profile-bio{max-width:42rem}.profile-bio h2{margin-bottom:1rem}.profile-bio label{display:block;font-size:.85rem;font-weight:500;margin-bottom:.6rem}.profile-bio textarea{display:block}.profile-bio .help{margin:.5rem 0 1rem}.bio-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}
.desktop-menu{display:flex;align-items:center;justify-content:center;flex:none;width:2.75rem;height:2.75rem;margin-left:-1rem;border:1px solid var(--rule);background:var(--white);color:var(--ink)}.desktop-menu:hover{color:var(--blue);background:var(--surface)}
@media(min-width:761px){
  :root.nav-interacting .side-rail{transition:width .28s ease,padding .28s ease}
  :root.nav-interacting .content{transition:margin-left .28s ease}
  .side-rail nav{overflow-x:hidden}
  .nav-label{display:inline-block;overflow:hidden;white-space:nowrap;max-width:14rem;opacity:1}
  .team-switch{max-height:6rem;overflow:hidden;opacity:1}
  .nav-heading{max-height:1.5rem;overflow:hidden;opacity:1}
  :root.nav-interacting .nav-label{transition:max-width .28s ease,opacity .15s ease}
  :root.nav-interacting .team-switch{transition:max-height .28s ease,opacity .2s ease,padding .28s ease,margin .28s ease,border-bottom-width .28s ease,visibility 0s linear .28s}
  :root.nav-interacting .nav-heading{transition:max-height .28s ease,opacity .2s ease,margin .28s ease,visibility 0s linear .28s}
  :root[data-nav-collapsed=true] .side-rail{width:5rem;padding:1.5rem .5rem 1rem}
  :root[data-nav-collapsed=true] .content{margin-left:5rem}
  :root[data-nav-collapsed=true] .team-switch{visibility:hidden;max-height:0;margin-bottom:0;padding-bottom:0;border-bottom-width:0;opacity:0;pointer-events:none}
  :root[data-nav-collapsed=true] .nav-heading{visibility:hidden;max-height:0;margin-top:0;margin-bottom:0;opacity:0}
  :root[data-nav-collapsed=true] .side-rail .nav-link{justify-content:center;gap:0;padding-left:.4rem;padding-right:.4rem}
  :root[data-nav-collapsed=true] .nav-label{max-width:0;opacity:0}
}
@media(prefers-reduced-motion:reduce){:root.nav-interacting .side-rail,:root.nav-interacting .content,:root.nav-interacting .nav-label,:root.nav-interacting .team-switch,:root.nav-interacting .nav-heading{transition:none}}
@media(max-width:760px){.desktop-menu{display:none}}
.nav-tooltip{position:fixed;z-index:40;left:5.75rem;transform:translateY(-50%);padding:.5rem .7rem;background:var(--ink);color:var(--white);border:1px solid var(--rule);font-size:.8rem;white-space:nowrap;pointer-events:none}.nav-tooltip[hidden]{display:none}

/* Teams directory and team detail */
.teams-page,.team-detail-page{max-width:1380px}
.teams-hero,.team-detail-hero{display:flex;justify-content:space-between;gap:3rem;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.teams-hero{align-items:end;min-height:285px;padding:2.1rem 0 2rem}
.teams-hero-copy,.team-detail-hero>div:first-child{min-width:0}
.teams-eyebrow{margin:0 0 1.6rem;color:var(--blue);font-size:.76rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.teams-hero h1{font-size:clamp(5rem,11vw,10rem);font-weight:500;letter-spacing:-.085em;line-height:.85;margin:0 0 1.4rem}
.teams-title-dot{color:var(--blue)}
.teams-hero-copy>p:last-child{color:var(--muted);font-size:1rem;margin:0}
.teams-hero-stat,.team-member-count{display:flex;flex-direction:column;align-items:flex-end;flex:none;color:var(--blue);font-variant-numeric:tabular-nums}
.teams-hero-stat strong,.team-member-count strong{font-size:clamp(4rem,7vw,7.5rem);line-height:.9;font-weight:400;letter-spacing:-.085em}
.teams-hero-stat span,.team-member-count span{margin-top:.6rem;font-size:.8rem;color:var(--muted)}
.teams-directory{margin-top:2.4rem}
.teams-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1rem}
.teams-section-heading h2{font-size:1.15rem;font-weight:600;letter-spacing:-.035em}
.teams-section-heading>span{font-size:.8rem;color:var(--muted)}
.teams-list{border-top:1px solid var(--ink)}
.teams-list-item{display:grid;grid-template-columns:3rem 4.5rem minmax(0,1fr) auto;align-items:center;gap:1.3rem;min-height:125px;padding:1.4rem 1.1rem 1.4rem .3rem;border-bottom:1px solid var(--rule);color:var(--ink);text-decoration:none;transition:background .2s ease,padding-left .2s ease}
.teams-list-item:hover{background:var(--surface);padding-left:1rem}
.teams-list-item:focus-visible{outline-offset:-3px}
.teams-list-number{align-self:start;padding-top:.3rem;font-size:.8rem;color:var(--blue);font-variant-numeric:tabular-nums}
.teams-list-photo,.team-detail-photo,.team-photo-preview{display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none;border:1px solid var(--rule);background:var(--surface);color:var(--blue)}
.teams-list-photo{width:4.5rem;height:4.5rem}
.teams-list-photo img,.team-detail-photo img,.team-photo-preview img{width:100%;height:100%;display:block;object-fit:cover}
.teams-list-photo .icon{width:2rem;height:2rem}
.teams-list-copy{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.teams-list-copy strong{font-size:clamp(1.7rem,3vw,2.65rem);font-weight:500;letter-spacing:-.055em;line-height:1.08;overflow-wrap:anywhere}
.teams-list-copy>span{font-size:.9rem;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.teams-list-action{font-size:.85rem;color:var(--blue);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.teams-list-empty{padding:2rem 0;border-bottom:1px solid var(--rule);color:var(--muted)}
.teams-create{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1.3fr);gap:3rem;border-top:1px solid var(--ink);margin-top:4rem;padding-top:1.7rem}
.teams-create-intro h2{font-size:1.5rem;margin-bottom:.4rem}
.teams-create-intro p{font-size:.9rem;color:var(--muted)}
.teams-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem}
.teams-create-form textarea{min-height:5rem}
.teams-create-form button{justify-self:start;grid-column:1/-1}
.team-detail-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}
.team-back{display:inline-block;color:var(--blue);font-size:.85rem;text-decoration:none}
.team-back:hover{text-decoration:underline}
.team-edit-link{min-width:8rem}
.team-detail-hero{align-items:end;min-height:220px;padding:2rem 0}
.team-detail-identity{display:flex;align-items:center;gap:1.8rem;min-width:0}
.team-detail-photo{width:9rem;height:9rem}
.team-detail-photo .icon{width:4rem;height:4rem}
.team-detail-hero h1{font-size:clamp(3.2rem,7vw,6.5rem);font-weight:500;letter-spacing:-.075em;line-height:.94;margin:0 0 1rem;overflow-wrap:anywhere}
.team-detail-description{font-size:1rem;color:var(--muted);margin:0;max-width:45rem}
.team-description{max-width:62rem;padding:1.5rem 0;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}
.team-description>*:last-child{margin-bottom:0}
.team-description h1,.team-description h2,.team-description h3{font-size:1.3rem;line-height:1.3;letter-spacing:-.03em;margin:1.1rem 0 .5rem}
.team-description h1:first-child,.team-description h2:first-child,.team-description h3:first-child{margin-top:0}
.team-description p,.team-description ul,.team-description ol{margin-bottom:.8rem;line-height:1.65}
.team-description ul,.team-description ol{padding-left:1.3rem}
.team-description li{margin:.2rem 0}
.team-description blockquote{margin:1rem 0;padding:.2rem 1rem;border-left:2px solid var(--blue);color:var(--muted)}
.team-description code{background:var(--surface);padding:.15rem .3rem}
.team-description pre{background:var(--surface);padding:1rem;overflow:auto}
.team-description pre code{padding:0}
.team-profile-editor{display:grid;grid-template-columns:minmax(160px,.55fr) minmax(0,1.45fr);gap:3rem;border-top:1px solid var(--ink);padding-top:1.7rem;margin-top:2.5rem}
.team-profile-editor h2{font-size:1.5rem;margin-bottom:.4rem}
.team-profile-fields{display:grid;gap:2rem;min-width:0}
.team-photo-editor{display:flex;align-items:flex-start;gap:1.2rem}
.team-photo-preview{width:7rem;height:7rem}
.team-photo-preview .icon{width:3rem;height:3rem}
.team-photo-editor>div:last-child{flex:1;min-width:0;max-width:35rem}
.team-photo-editor .field{margin-bottom:.4rem}
.team-photo-editor .help{margin:.35rem 0 .8rem}
.team-photo-remove{margin-top:.7rem}
.team-description-form textarea{min-height:10rem}
.team-description-form .help{margin-top:.55rem}
.team-description-form .actions{margin-top:1rem}
.team-description-preview{border:1px solid var(--rule);background:var(--surface);padding:1.2rem;max-width:50rem}
.team-description-preview h3{font-size:.85rem;font-weight:600;margin-bottom:.8rem}
.team-description-preview>.team-description{border:0;padding:0}
.team-description-preview>.muted{margin:0}
.team-roster{margin-top:2.5rem}
.team-roster-table{border-top:1px solid var(--ink)}
.team-roster-table th{background:transparent;border-bottom:1px solid var(--rule);padding:.85rem .6rem}
.team-roster-table td{padding:1rem .6rem}
.team-roster-table td:first-child,.team-roster-table th:first-child{padding-left:.2rem;width:42%}
.team-roster-table .team-member-action{text-align:right}
.team-roster-table tbody tr:hover{background:var(--surface)}
.team-roster-table .person-cell{color:var(--ink);font-size:1.05rem;font-weight:500;letter-spacing:-.025em}
.team-roster-table .person-cell:hover{color:var(--blue)}
.team-roster-table .person-avatar{width:3rem;height:3rem}
.team-role-list{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}
.team-role-list .chip{margin:0;align-items:center;gap:.55rem;background:var(--surface);padding:.3rem .35rem .3rem .6rem;font-size:.8rem}
.team-role-list .chip form{margin:0}
.team-remove-role,.team-remove-member{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;color:var(--muted);padding:0}
.team-remove-role{width:1.6rem;height:1.6rem;border-left-color:var(--rule)}
.team-remove-role .icon{width:.75rem;height:.75rem}
.team-remove-member{width:2.4rem;height:2.4rem;border-color:var(--rule)}
.team-remove-member .icon{width:1.1rem;height:1.1rem}
.team-remove-role:hover,.team-remove-member:hover{color:#b33a35;background:var(--surface);border-color:#b33a35}
.team-member-action form{display:inline-flex}
.team-roster-empty{text-align:left!important;color:var(--muted);padding:2rem .2rem!important}
.team-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--rule);border:1px solid var(--rule);margin-top:3.5rem}
.team-management-card{background:var(--white);padding:1.6rem}
.team-management-card h2{font-size:1.4rem;margin-bottom:.3rem}
.team-management-card .help{margin-bottom:1.4rem}
.team-management-card .field{margin-bottom:1rem}
.team-management-card form{max-width:31rem}
.team-management-card button:disabled{opacity:.45;cursor:not-allowed}
.team-settings{display:grid;grid-template-columns:minmax(160px,.55fr) minmax(0,1.45fr);gap:3rem;border-top:1px solid var(--ink);margin-top:3.5rem;padding-top:1.7rem}
.team-settings h2{font-size:1.5rem;margin-bottom:.4rem}
.team-settings .form-grid{gap:1rem;max-width:none}
.team-settings .actions{margin-top:1rem}
@media(max-width:900px){.teams-create,.team-settings,.team-profile-editor{grid-template-columns:1fr;gap:1rem}.teams-hero,.team-detail-hero{gap:1.2rem}}
@media(max-width:760px){.teams-hero{min-height:0;padding:1.6rem 0}.teams-eyebrow{margin-bottom:1rem}.teams-hero h1{font-size:clamp(4.3rem,17vw,7rem)}.teams-hero-stat strong,.team-member-count strong{font-size:3.8rem}.teams-hero-stat span,.team-member-count span{text-align:right}.teams-list-item{grid-template-columns:2rem 3rem minmax(0,1fr);gap:.7rem;min-height:108px;padding:1rem .2rem}.teams-list-photo{width:3rem;height:3rem}.teams-list-photo .icon{width:1.4rem;height:1.4rem}.teams-list-action{grid-column:3;font-size:.78rem}.teams-list-copy strong{font-size:1.7rem}.teams-create{margin-top:3rem}.teams-create-form,.team-management-grid{grid-template-columns:1fr}.teams-create-form button{grid-column:1}.team-detail-hero{min-height:0}.team-detail-identity{gap:1rem}.team-detail-photo{width:4.5rem;height:4.5rem}.team-detail-photo .icon{width:2.2rem;height:2.2rem}.team-detail-hero h1{font-size:clamp(2.8rem,11vw,4.5rem)}.team-roster-table .team-member-action{text-align:left}.team-roster-table .person-avatar{width:2.5rem;height:2.5rem}.team-roster-table td:not(:first-child){padding-left:3.25rem!important}.team-management-grid,.team-settings{margin-top:2.5rem}}
@media(max-width:480px){.teams-hero-stat strong{font-size:3rem}.teams-hero-stat span{max-width:5rem}.team-member-count strong{font-size:3rem}.team-detail-hero{align-items:flex-start}.team-detail-photo{width:3.8rem;height:3.8rem}.team-detail-photo .icon{width:1.8rem;height:1.8rem}.team-photo-editor{flex-direction:column}.team-photo-preview{width:6rem;height:6rem}}
@media(prefers-reduced-motion:reduce){.teams-list-item{transition:none}}

@media(max-width:640px){
  .tag-assignment-table{table-layout:fixed;width:100%}
  .tag-assignment-table .tag-count-column{display:none}
  .tag-assignment-table th,.tag-assignment-table td{padding:.65rem;overflow-wrap:anywhere}
  .tag-assignment-table th:first-child{width:32%}
  .tag-assignment-table th:nth-child(2){width:25%}
  .tag-assignment-table button{max-width:100%;padding:.65rem;overflow-wrap:anywhere}
}

/* Tag administration keeps definitions and mappings separate from person assignments. */
.access-tabs{display:flex;gap:1.8rem;flex-wrap:wrap;border-bottom:1px solid var(--rule);margin-bottom:2rem}.access-tabs a{padding:.8rem 0;text-decoration:none;color:var(--muted)}.access-tabs a[aria-current=page]{color:var(--blue);border-bottom:2px solid var(--blue)}
.tag-catalogue{border-top:1px solid var(--rule)}.tag-catalogue-row{display:grid;grid-template-columns:minmax(0,1.2fr) 6rem minmax(0,1fr) auto;align-items:center;gap:1.5rem;padding:1.35rem .4rem;border-bottom:1px solid var(--rule)}.tag-catalogue-name>a{font-size:1.12rem;font-weight:500}.tag-catalogue-name .help{max-width:40ch}.tag-catalogue-count{color:var(--muted);font-variant-numeric:tabular-nums}.tag-catalogue-groups{min-width:0;overflow-wrap:anywhere}.tag-catalogue-groups span,.tag-catalogue-groups small{display:block}.tag-catalogue-groups small{color:var(--muted);margin:.25rem 0 .4rem}
.tag-settings-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:3rem}.tag-settings-layout .panel{margin-top:0;min-width:0}.tag-definition .stack{max-width:none}.tag-definition h2,.tag-mappings h2{margin-bottom:.7rem}.tag-mapping-list{margin:1.3rem 0 2rem}.tag-mapping-row{padding:1rem 0;border-bottom:1px solid var(--rule)}.tag-mapping-row h3{font-size:1rem;margin:0;overflow-wrap:anywhere}.tag-mapping-row .actions{margin-top:.6rem}.mapping-empty{padding:1.2rem 0;color:var(--muted)}.mapping-form .field{margin-bottom:1rem}.mapping-form input,.mapping-form select{width:100%;min-width:0}.mapping-form [hidden]{display:none}.mapping-impact{display:flex;flex-wrap:wrap;gap:2.5rem;padding:1rem 0}.mapping-impact dt{color:var(--muted);font-size:.85rem}.mapping-impact dd{margin:.5rem 0 0;font-size:1.5rem;font-variant-numeric:tabular-nums}.mapping-review{max-width:52rem}.mapping-review .notice{padding:1rem}.mapping-form button:disabled,.mapping-review button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:900px){.tag-settings-layout{grid-template-columns:1fr;gap:1.5rem}.tag-catalogue-row{grid-template-columns:minmax(0,1fr) auto;gap:.75rem 1rem}.tag-catalogue-groups{grid-column:1}.tag-catalogue-row>a:last-child{grid-column:2;grid-row:2}.tag-catalogue-count{text-align:right}}
@media(max-width:640px){.tag-assignment-table thead{display:none}.tag-assignment-table,.tag-assignment-table tbody,.tag-assignment-table tr,.tag-assignment-table td{display:block;width:100%}.tag-assignment-table tr{padding:1rem 0;border-bottom:1px solid var(--rule)}.tag-assignment-table td{border:0;padding:.35rem 0}.tag-assignment-table td:nth-child(2){color:var(--muted)}.tag-assignment-table .tag-count-column{display:none}.tag-assignment-table .help{max-width:42ch}.access-tabs{gap:1.3rem}.mapping-impact{gap:1.5rem}}
