/* 1156: Hub › Team, to the Figma (design system v2) */
#view-teamold .tm{--ink:#192341;--ink2:#3D4663;--mut:#6B7390;--dim:#9AA0B8;--line:#E3E6EF;--bd:#C9CEDC;--pg:#F5F6FA;--or:#EC720E;
  max-width:1280px;margin:0 auto;padding:24px 28px 80px;display:flex;flex-direction:column;gap:18px;color:var(--ink);font-family:var(--cl-font,Inter,system-ui,sans-serif)}
.tm .tmload{padding:40px;color:var(--mut)}
.tm h1{margin:0;font-size:28px;line-height:36px;font-weight:700}
.tm h2{margin:0;font-size:15px;font-weight:600}
.tm .tmhead{display:flex;align-items:center;gap:14px}
.tm .tmdate{font-size:14px;color:var(--dim)}
.tm .tmsp{flex:1}
.tm .tmmut{color:var(--mut);font-size:13px}
.tm .tmav{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:700;overflow:hidden;flex:none;line-height:1}
.tm .tmav img{width:100%;height:100%;object-fit:cover}
.tm .tmcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.tm .tmrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tm .tmbtn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--bd);background:#fff;color:var(--ink);border-radius:8px;font:600 14px inherit;font-family:inherit;cursor:pointer;text-decoration:none;white-space:nowrap}
.tm .tmbtn:hover{background:#F5F6FA;border-color:var(--dim)}
.tm .tmbtn.sm{height:30px;padding:0 10px;font-size:13px;border-radius:6px}
.tm .tmicon{border:0;background:transparent;color:var(--ink2);width:34px;height:34px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.tm .tmicon:hover{background:#ECEEF4}
.tm .tmlink{border:0;background:none;color:#4A6CF7;font:600 13px inherit;font-family:inherit;cursor:pointer;padding:0}
.tm .tmnote{margin:10px 0 0;font-size:12.5px;color:var(--mut)}
/* office strip */
.tm .tmstrip{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 18px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.tm .tmss{display:flex;align-items:baseline;gap:6px;font-size:13px;color:var(--mut);position:relative}
.tm .tmss b{font-size:22px;color:var(--ink)}
.tm .tmss em{font-style:normal;font-weight:600;color:var(--or)}
.tm .tmss em.pink{color:#E81F7C}
.tm .tmavs{display:flex;align-items:center;gap:0;padding-left:16px;border-left:1px solid var(--line)}
.tm .tmavs .tmav{margin-left:-5px;border:2px solid #fff}
.tm .tmavs .tmav:first-child{margin-left:0}
.tm .tmavs .tmmut{margin-left:10px}
.tm .tmmore{margin-left:-5px;background:#ECEEF4;color:var(--mut);font-size:11px;font-weight:700;border-radius:999px;padding:5px 7px;border:2px solid #fff}
.tm .tmtom{padding-left:16px;border-left:1px solid var(--line);cursor:default;outline:none}
.tm .tmtomp{display:none;position:absolute;left:12px;top:calc(100% + 8px);z-index:30;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(25,35,65,.18);padding:12px 14px;min-width:240px;flex-direction:column;gap:8px;color:var(--ink);font-size:13px}
.tm .tmtom:hover .tmtomp,.tm .tmtom:focus-within .tmtomp,.tm .tmtom.open .tmtomp{display:flex}
.tm .tmtr{display:flex;align-items:center;gap:8px}.tm .tmtr span{flex:1}.tm .tmtr i{font-style:normal;color:var(--mut);font-size:12px}
.tm .tmdk{white-space:nowrap}
/* chips and tiles */
.tm .tmlegend{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}
.tmchip{display:inline-flex;align-items:center;gap:5px;background:var(--t);color:var(--x);border-radius:6px;padding:4px 8px;font-size:12.5px;font-weight:600;white-space:nowrap}
.tmchip.need{border:1px solid #F2B8C2}
.tmtile{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:30px;background:var(--s);color:#fff}
.tmtile.past{background:var(--t);color:var(--x);opacity:.85}
.tmtile.need{background:#fff;color:#D4243F;box-shadow:inset 0 0 0 1.5px #D4243F}
/* my week */
.tm .tmmy{display:flex;align-items:center;gap:22px;flex-wrap:wrap;cursor:pointer}
.tm .tmmy.open{display:block;cursor:default}
.tm .tmmini{display:flex;gap:8px}
.tm .tmmini>div{display:flex;flex-direction:column;align-items:center;gap:3px}
.tm .tmmini i{font-style:normal;font-size:11px;color:var(--mut)}
.tm .tmmini .past i{color:#B8BED3}.tm .tmmini .today i{color:var(--or);font-weight:600}
.tm .tmmini .tmtile{width:24px;height:24px;min-height:24px;border-radius:5px}
.tm .tmmini .tmtile svg{width:13px;height:13px}
.tm .tmneed{font-size:12.5px;font-weight:600;color:#B01C33;background:#FDE7EB;border-radius:6px;padding:3px 8px}
.tm .tmmyrow{display:grid;grid-template-columns:90px repeat(5,minmax(0,1fr));gap:10px;margin-top:14px;align-items:start}
.tm .tmmyl{font-size:13px;color:var(--mut);padding-top:6px}
.tm .tmmyd{display:flex;flex-direction:column;gap:5px;padding:8px;border-radius:10px}
.tm .tmmyd.today{background:#FFF6EE}
.tm .tmmyd>b{font-size:14px}.tm .tmmyd.today>b,.tm .tmmyd.today em{color:var(--or)}.tm .tmmyd.past>b{color:var(--dim)}
.tm .tmmyd>span{font-size:12px;color:var(--mut)}.tm .tmmyd small{font-size:12px;color:var(--mut)}.tm .tmmyd em{font-style:normal;font-weight:600}
.tm .tmpill{display:flex;align-items:center;gap:6px;height:30px;padding:0 9px;border:0;border-radius:6px;background:var(--s);color:#fff;font:600 13px inherit;font-family:inherit;cursor:pointer;text-align:left;overflow:hidden}
.tm .tmpill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm .tmpill.past{background:var(--t);color:var(--x)}
.tm .tmpill.need{background:#fff;color:#B01C33;box-shadow:inset 0 0 0 1.5px #D4243F}
.tm .tmpill:focus-visible,.tm .tmh:focus-visible,.tm button:focus-visible{outline:2px solid #8900B5;outline-offset:2px}
/* the schedule */
.tm .tmseg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.tm .tmseg button,.tmpick .tmseg button{border:0;background:#fff;color:var(--mut);height:32px;padding:0 12px;font:500 13px inherit;font-family:inherit;cursor:pointer}
.tm .tmseg button.on,.tmpick .tmseg button.on{background:#192341;color:#fff;font-weight:600}
.tm .tmgridw{max-height:560px;overflow:auto;margin:6px -18px -16px;border-top:1px solid var(--line)}
.tm .tmgrid{border-collapse:separate;border-spacing:0;width:100%;min-width:760px}
.tm .tmgrid.both{min-width:1400px}
.tm .tmgrid thead th{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid var(--line);padding:10px 4px 6px;font-weight:400;vertical-align:bottom}
.tm .tmgrid .tmname{position:sticky;left:0;z-index:2;background:#fff;text-align:left;padding:6px 10px 6px 18px;white-space:nowrap;min-width:150px;font-size:14px}
.tm .tmgrid thead .tmname{z-index:4;font-size:12px;color:var(--mut)}
.tm .tmwl{display:block;font-size:12px;color:var(--dim);margin-bottom:18px}
.tm .tmday{cursor:pointer;text-align:center;min-width:120px}
.tm .tmday b{display:block;font-size:15px;font-weight:600}.tm .tmday span{display:block;font-size:12px;font-weight:600;color:var(--ink2)}
.tm .tmday em{display:block;font-style:normal;font-size:11px;color:var(--or)}.tm .tmday em.hol{color:var(--mut)}
.tm .tmday.past b,.tm .tmday.past span{color:#B8BED3}
.tm .tmday.today b,.tm .tmday.today span{color:var(--or)}
.tm .tmday.sel{background:#F5F6FA;box-shadow:inset 0 -2px 0 #192341}
.tm .tmamp{display:flex;margin-top:6px}.tm .tmamp i{flex:1;font-style:normal;font-size:10px;color:var(--dim)}
.tm .tmgrid tbody td{padding:5px 4px;border-bottom:1px solid #F0F1F5}
.tm .tmgrid tbody td.tmc.sel{background:#FAFAFC}
.tm .tmgrid tbody tr.me td{background:#F3FAEC}
.tm .tmgrid tbody tr.me td.tmc.sel{background:#EAF4DF}
.tm .tmgrid .tmname{display:table-cell}
.tm .tmgrid tbody .tmname>*{vertical-align:middle}
.tm .tmgrid tbody .tmname span{margin-left:8px}
.tm .tmsplit{display:flex;gap:2px;border-radius:6px;overflow:hidden;height:38px}
.tm .tmc.today .tmsplit{outline:2px solid var(--or);outline-offset:2px;border-radius:6px}
.tm .tmh{flex:1;display:flex;border:0;padding:0;background:none;cursor:pointer;min-width:0}
.tm span.tmh{cursor:default}
.tm .tmh:hover .tmtile:not(.past){filter:brightness(1.08)}
.tm .tmpin{border:0;background:transparent;color:var(--dim);cursor:pointer;width:24px;height:24px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;margin-left:4px;opacity:0;vertical-align:middle}
.tm tr:hover .tmpin,.tm .tmpin.on,.tm .tmpc .tmpin{opacity:1}
.tm .tmpin.on{color:#192341}.tm .tmpin.on svg{fill:currentColor}
.tm .tmpin:hover{background:#ECEEF4}
.tm .tmdiv td{padding:0!important;border-bottom:2px solid var(--line)!important;height:0}
.tm .tmfoot td{position:sticky;bottom:0;background:#FAFAFC;border-top:1px solid var(--line);text-align:center;font-size:12px;color:var(--mut);padding:8px 4px}
.tm .tmfoot td.tmname{z-index:3;background:#FAFAFC;color:var(--mut);font-size:13px}
.tm .tmfoot b{display:block;color:var(--ink2)}.tm .tmfoot b.full{color:var(--ink)}
.tm .tmfoot td.past b{color:#B8BED3}
.tm .tmfull{display:inline-block;background:#FDE4D3;color:var(--or);font-size:10px;font-weight:600;border-radius:4px;padding:0 5px;margin-top:2px}
.tm .tmdaynav{display:flex;align-items:center;gap:6px}
/* team */
.tm .tmover{font-size:12px;font-weight:600;letter-spacing:.6px;color:var(--mut);text-transform:uppercase}
.tm .tmsearch{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 10px;height:34px;color:var(--dim)}
.tm .tmsearch input{border:0;outline:0;font:14px inherit;font-family:inherit;width:150px;color:var(--ink);background:transparent}
.tm .tmfilters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}
.tm .tmf{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font:600 13px inherit;font-family:inherit;cursor:pointer}
.tm .tmf i{font-style:normal;font-size:11px;font-weight:700;background:var(--t,#ECEEF4);color:var(--x,var(--mut));border-radius:999px;padding:1px 7px}
.tm .tmf.on{background:#192341;border-color:#192341;color:#fff}.tm .tmf.on i{background:#3D4663;color:#fff}
.tm .tmcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.tm .tmpc{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px}
.tm .tmpch{display:flex;align-items:flex-start;gap:10px}
.tm .tmpcn{flex:1;min-width:0;padding-top:2px}.tm .tmpcn b{display:block;font-size:16px;font-weight:600}
.tm .tmme{display:inline-block;background:#E6EEFF;color:#4A6CF7;font-size:11px;font-weight:600;border-radius:4px;padding:1px 6px;margin-top:3px}
.tm .tmbadge{display:inline-flex;align-items:center;gap:4px;background:var(--s);color:var(--x);font-size:10px;font-weight:700;text-transform:uppercase;border-radius:4px;padding:3px 6px;white-space:nowrap}
.tm .tmbadge.need{background:#FDE7EB;color:#B01C33}
.tm .tmpres{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--mut)}
.tm .tmpres>i{width:8px;height:8px;border-radius:50%;background:#C9CEDC}.tm .tmpres>i.on{background:#22C55E}
.tm .tmquote{font-size:13px;color:var(--dim);font-style:italic;min-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm .tmruler{display:flex;justify-content:space-between;font-size:9px;color:var(--dim);margin-top:4px}
.tm .tmtrack{position:relative;height:6px;background:#ECEEF4;border-radius:999px}
.tm .tmtrack>i{position:absolute;top:0;height:100%;border-radius:999px}
.tm .tmnow{position:absolute;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#192341;box-shadow:0 0 0 2px #fff}
.tm .tmpcf{display:flex;align-items:center;gap:6px;margin-top:4px}
.tm .tmpcf .tmchip{font-size:11.5px;padding:3px 6px}
.tm .tmempty{padding:28px;text-align:center;color:var(--mut);background:#fff;border:1px dashed var(--line);border-radius:12px}
/* the picker */
.tmpick{position:fixed;z-index:2200;width:300px;background:#fff;border:1px solid #E3E6EF;border-radius:12px;box-shadow:0 12px 36px rgba(25,35,65,.22);padding:12px;display:flex;flex-direction:column;gap:10px;font-family:var(--cl-font,Inter,system-ui,sans-serif);color:#192341}
.tmpick .tmpkh{display:flex;flex-direction:column}.tmpick .tmpkh b{font-size:14px}.tmpick .tmpkh span{font-size:12px;color:#6B7390}
.tmpick .tmseg{display:flex;border:1px solid #E3E6EF;border-radius:8px;overflow:hidden}.tmpick .tmseg button{flex:1;height:30px}
.tmpick .tmpkl{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tmpick .tmpko{display:flex;align-items:center;gap:6px;height:34px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:var(--t);color:var(--x);font:600 12.5px inherit;font-family:inherit;cursor:pointer;text-align:left}
.tmpick .tmpko:hover{border-color:var(--s)}
.tmpick .tmpko.on{background:var(--s);color:#fff}
.tmpick .tmlink{border:0;background:none;color:#D4243F;font:600 12.5px inherit;font-family:inherit;cursor:pointer;align-self:flex-start;padding:0}
@media (max-width:1023px){#view-teamold .tm{padding:18px 16px 80px}.tm .tmmyrow{grid-template-columns:repeat(5,minmax(0,1fr))}.tm .tmmyl{grid-column:1/-1;padding:0}}
@media (max-width:767px){
  .tm h1{font-size:22px;line-height:28px}
  .tm .tmavs,.tm .tmtom{border-left:0;padding-left:0}
  .tm .tmmyrow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm .tmgrid{min-width:0}.tm .tmgrid.both{min-width:0}
  .tm .tmgridw{max-height:none}
  .tm .tmday{min-width:0}
  .tm .tmgrid .tmname{min-width:118px;padding-left:12px}
  .tm .tmgrid td.tmc,.tm .tmgrid th.tmday{width:58%}
  .tm .tmgrid tbody .tmname span{max-width:70px;display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
  .tm .tmlegend,.tm .tmfilters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .tm .tmcards{grid-template-columns:1fr}
  .tm .tmpin{opacity:1}
  .tm .tmh,.tm .tmpill,.tm .tmf,.tm .tmbtn{min-height:44px}
}

/* 1157: Working From - who is on it, and usual places */
.tmov{position:fixed;inset:0;z-index:2300;background:rgba(25,35,65,.35);display:flex;align-items:center;justify-content:center;padding:16px}
.tmov .tmmod{background:#fff;border-radius:14px;box-shadow:0 20px 50px rgba(25,35,65,.3);width:min(620px,100%);max-height:min(720px,90vh);display:flex;flex-direction:column;padding:18px 20px;gap:6px;color:#192341;font-family:var(--cl-font,Inter,system-ui,sans-serif)}
.tmov h2{margin:0;font-size:16px;font-weight:600}
.tmov .tmrow{display:flex;align-items:center;gap:10px}
.tmov .tmsp{flex:1}
.tmov .tmnote{margin:0 0 6px;font-size:12.5px;color:#6B7390}
.tmov .tmicon{border:0;background:transparent;width:32px;height:32px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#3D4663}
.tmov .tmicon:hover{background:#ECEEF4}
.tmov .tmprefs{overflow:auto;display:flex;flex-direction:column;border-top:1px solid #E3E6EF}
.tmov .tmpref{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #EEF0F5;flex-wrap:wrap;font-size:13.5px}
.tmov .tmav{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:700;overflow:hidden;flex:none;line-height:1}
.tmov .tmav img{width:100%;height:100%;object-fit:cover}
.tmov .tmchk,.tmov .tmus{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#3D4663}
.tmov select{height:30px;border:1px solid #C9CEDC;border-radius:6px;padding:0 6px;font:13px inherit;font-family:inherit;color:#192341;background:#fff}
.tm .tmwf h2+.tmlink{font-size:12.5px;margin-left:8px}
@media (max-width:767px){.tmov .tmpref b{flex:1 1 60%}.tmov .tmpref .tmsp{display:none}}

/* 1160: opened from the Dashboard on a person */
.tm .tmpc.tmflash{box-shadow:0 0 0 3px #EC720E,0 8px 24px rgba(25,35,65,.16);transition:box-shadow .3s}

/* 1193: ‹ › to plan later weeks */
.tm .tmwnav{display:inline-flex;align-items:center;gap:4px;margin-right:8px}
.tm .tmwnav .tmicon[disabled]{opacity:.35;cursor:default}
.tm .tmwnav .tmlink{margin-left:6px;white-space:nowrap}
