/* Projects (ttc-projects.js) */
.tpj-main{gap:16px}
.tpj-loading{padding:40px;color:#8FA6AD;text-align:center}
.tpj-back{display:inline-flex;align-items:center;gap:4px;color:#8FA6AD!important;font-size:14px;font-weight:600;align-self:flex-start}
.tpj-back .tf-ic{width:18px;height:18px}
.tpj-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;flex-wrap:wrap;background:linear-gradient(135deg,#123039,#111D22 60%)}
.tpj-hero .ta-h1{margin:0}
.tpj-hero p{margin:6px 0 0!important}
.tpj-cards{display:flex;flex-direction:column;gap:12px}
.tpj-card{display:flex;align-items:center;gap:18px;padding:18px;color:#E8F1F3!important;transition:border-color .15s,transform .15s}
.tpj-card:hover{border-color:#2C4A54;transform:translateY(-1px)}
.tpj-card-art{flex:none;width:64px;height:64px;border-radius:16px;background:radial-gradient(circle at 30% 30%,#1F4650,#0E191D);display:flex;align-items:center;justify-content:center;color:#3FD2E8}
.tpj-card-art .tf-ic{width:30px;height:30px}
.tpj-card-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#ttc-feed-app .tpj-card h2{margin:2px 0 0;font:700 20px 'Space Grotesk',Inter,sans-serif}
.tpj-card p{margin:0!important}
.tpj-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tpj-card-stats{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:#8FA6AD;margin-top:4px}
.tpj-card-stats strong{color:#E8F1F3}
.tpj-go{width:22px;height:22px;color:#5C747B;flex:none}
.tpj-pill{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;background:#15242A;color:#C9D8DC}
.tpj-pill .tf-ic{width:13px;height:13px}
.tpj-pill.open{background:#7BD88F22;color:#7BD88F}
.tpj-pill.draft{background:#F5C97F22;color:#F5C97F}
.tpj-pill.closed{background:#8FA6AD22;color:#8FA6AD}
.tpj-pill.yes{background:#3FD2E81f;color:#3FD2E8}
.tpj-pill.mine{background:#3FD2E8;color:#062026}
.tpj-empty{padding:28px;text-align:center;color:#8FA6AD}
.tpj-foot{text-align:center}
/* Project page */
.tpj-phero{padding:22px 24px;display:flex;flex-direction:column;gap:18px;background:linear-gradient(135deg,#123039,#111D22 55%)}
.tpj-phero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.tpj-phero-text{min-width:0;flex:1 1 360px}
.tpj-phero .ta-h1{margin:8px 0 4px}
.tpj-lede{font-size:15px!important;margin:0!important}
.tpj-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tpj-stat{background:#0E191D99;border:1px solid #1E2F36;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column}
.tpj-stat strong{font:700 26px 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
.tpj-stat span{color:#8FA6AD;font-size:13px}
.tpj-interest{height:48px;padding:0 22px;font-size:15px!important}
.tpj-cta{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;max-width:460px;font-size:14px;color:#C9D8DC}
.tpj-cta .tf-ic{width:20px;height:20px;flex:none}
.tpj-cta.yes{background:#3FD2E814;border:1px solid #3FD2E844}.tpj-cta.yes .tf-ic{color:#3FD2E8}
.tpj-cta.mine{background:#7BD88F14;border:1px solid #7BD88F44}.tpj-cta.mine .tf-ic{color:#7BD88F}
.tpj-cta.pop{animation:tpj-pop .8s ease-out}
@keyframes tpj-pop{0%{transform:scale(.9);box-shadow:0 0 0 0 #3FD2E888}40%{transform:scale(1.04)}100%{transform:scale(1);box-shadow:0 0 0 18px #3FD2E800}}
.tpj-adminbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px}
.tpj-adminbar>strong{font-size:13px;color:#F5C97F;text-transform:uppercase;letter-spacing:.06em;margin-right:6px}
.tpj-danger{color:#FF8A8A!important}
.tpj-cols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.tpj-left,.tpj-right{display:flex;flex-direction:column;gap:16px;min-width:0}
#ttc-feed-app .tpj-h2{font:700 18px 'Space Grotesk',Inter,sans-serif;margin:4px 0 -4px}
.tpj-mapcard{padding:0;overflow:hidden}
.tpj-map{height:440px;background:#0B1418;position:relative;z-index:0;isolation:isolate}
.tpj-map.dark .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6)}
.tpj-map .leaflet-control-attribution{background:#0B1418cc;color:#8FA6AD}
.tpj-map .leaflet-control-attribution a{color:#3FD2E8}
.tpj-map .leaflet-popup-content-wrapper,.tpj-map .leaflet-popup-tip{background:#111D22;color:#E8F1F3;border:1px solid #23363D}
.tpj-pop{display:flex;flex-direction:column;gap:3px;font:13px Inter,sans-serif}
.tpj-pop strong{font-size:14px}
.tpj-pop a{color:#3FD2E8;font-weight:600}
.tpj-mapfail{padding:20px}
.tpj-legend{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px 4px}
.tpj-legend-all{display:flex;gap:6px;width:100%}
.tpj-legend .tpj-allbtn{height:30px;font-size:12px;font-weight:600;padding:0 12px}
.tpj-legend .tpj-allbtn[aria-pressed=true]{background:#E8F1F3;color:#062026!important}
.tpj-legend .tpj-rchip{box-shadow:inset 0 0 0 1.5px var(--rc,#3FD2E8);background:#13232A;color:#E8F1F3!important;transition:opacity .15s,background .15s}
.tpj-legend .tpj-rchip[aria-pressed=false]{box-shadow:inset 0 0 0 1px #22343B;background:transparent;color:#71878F!important}
.tpj-legend .tpj-rchip[aria-pressed=false] .tpj-dot{background:#05090B!important;box-shadow:0 0 0 1.5px #53656C}
.tpj-legend .tpj-rchip[aria-pressed=false] .tpj-n{opacity:.6}
.tpj-lockic{width:13px!important;height:13px!important;color:#7BD88F;flex:none}
.tpj-legend .tpj-rchip[aria-pressed=false] .tpj-lockic{color:#71878F}
.tpj-covered{display:flex;align-items:center;gap:10px;flex:1 1 180px;min-width:0;padding:6px 12px 6px 10px;border-radius:12px;background:#7BD88F14;box-shadow:inset 0 0 0 1px #7BD88F55}
.tpj-covered>.tf-ic{width:18px;height:18px;color:#7BD88F;flex:none}
.tpj-covered>span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.tpj-covered strong{color:#7BD88F;font-size:13px}
.tpj-covered small{color:#E8F1F3;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpj-covered .tf-av{width:28px!important;height:28px!important;font-size:10px!important;flex:none}
.tpj-region.covered{box-shadow:inset 3px 0 0 #7BD88F}
.tpj-taken .tf-ic{width:14px;height:14px}
.tpj-pop-covered{color:#2E9C4A;font-weight:600}
.tpj-mapnote{margin:0!important;padding:4px 14px 12px}
.tpj-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none;vertical-align:middle;margin-right:6px;box-shadow:0 0 0 2px #0B1418}
.tpj-dot.big{width:14px;height:14px;margin:0}
.tpj-n{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#0E191D;color:#8FA6AD;font-size:12px;font-weight:700;margin-left:6px}
.tpj-regions{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.tpj-region{padding:14px;display:flex;flex-direction:column;gap:10px;transition:border-color .15s}
.tpj-region.on{border-color:#3FD2E8}
.tpj-region.mine{background:linear-gradient(135deg,#7BD88F12,#111D22 70%)}
.tpj-region-head{all:unset;cursor:pointer;display:flex;align-items:flex-start;gap:10px}
.tpj-region-head:focus-visible{outline:2px solid #3FD2E8;outline-offset:4px;border-radius:8px}
.tpj-region-head .tpj-dot{margin-top:4px}
.tpj-region-name{min-width:0;display:flex;flex-direction:column;gap:2px}
.tpj-region-name strong{font-size:16px;color:#E8F1F3}
.tpj-region-name small{font-size:13px;color:#8FA6AD}
.tpj-region-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.tpj-taken{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#7BD88F}
.tpj-taken .tf-av{width:24px!important;height:24px!important;font-size:9px!important}
.tpj-open{font-weight:700;color:#F5C97F}
.tpj-done{color:#7BD88F;font-weight:600}
.tpj-faces{display:flex;gap:4px;flex-wrap:wrap}
.tpj-faces .tf-av{width:28px!important;height:28px!important;font-size:10px!important}
.tpj-assign{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tpj-contract{display:flex;align-items:center;gap:6px;margin:10px 0 0;font-size:13px;color:#8FA6AD}
.tpj-contract .tf-ic{width:15px;height:15px;flex-shrink:0}
.tpj-contract.st-signed{color:#6FDCA0}
.tpj-contract.st-sent{color:#F2B26B}
.tpj-contract.st-declined{color:#FF8A8A}
.tpj-select{height:40px;border-radius:10px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:14px Inter,sans-serif;padding:0 10px;min-width:0;flex:1 1 150px}
.tpj-select.sm{height:34px;flex:none;font-size:13px}
.tpj-rename{flex:none}
.tpj-input,#ttc-feed-app .tpj-dialog input.tpj-input{width:100%;box-sizing:border-box;height:44px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:0 12px;margin:0}
.tpj-input:focus,.tpj-select:focus{outline:none;border-color:#3FD2E8}
/* Side cards */
.tpj-side{padding:16px 18px;display:flex;flex-direction:column;gap:10px}
#ttc-feed-app .tpj-side h2{margin:0;font:700 17px 'Space Grotesk',Inter,sans-serif;display:flex;align-items:center}
.tpj-side p{margin:0!important}
.tpj-plan{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tpj-plan li{display:flex;align-items:center;gap:4px;font-size:14px}
.tpj-plan li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpj-plan li strong{font-size:13px;color:#C9D8DC}
.tpj-steps{margin:4px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:#8FA6AD}
.tpj-steps strong{color:#E8F1F3}
.tpj-intro{font-size:15px;line-height:1.5;color:#E8F1F3}
.tpj-part h3{margin:6px 0 6px;font:700 13px Inter,sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#3FD2E8}
.tpj-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.45;color:#C9D8DC}
.tpj-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tpj-links a{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#3FD2E8!important}
.tpj-links .tf-ic{width:16px;height:16px}
.tpj-people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.tpj-people li{display:flex;gap:10px;align-items:flex-start}
.tpj-people li>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.tpj-people strong{font-size:14px}
.tpj-tags{display:flex;gap:4px;flex-wrap:wrap}
.tpj-tag{font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:#3FD2E81f;color:#3FD2E8}
.tpj-tag.wk{background:#F5C97F1f;color:#F5C97F}
.tpj-note{font-size:13px;color:#C9D8DC;background:#0E191D;border-radius:10px;padding:6px 10px}
/* Sites table */
.tpj-sites{padding:0;overflow:hidden}
.tpj-sites-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px}
#ttc-feed-app .tpj-sites-head h2{margin:0 auto 0 0;font:700 17px 'Space Grotesk',Inter,sans-serif}
.tpj-search{height:38px;border-radius:19px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:14px Inter,sans-serif;padding:0 14px;min-width:0;flex:0 1 240px;margin:0}
.tpj-minebox{font-size:13px!important}
.tpj-table-wrap{overflow-x:auto;max-height:640px;overflow-y:auto;border-top:1px solid #1E2F36}
.tpj-table{width:100%;border-collapse:collapse;font-size:13px}
.tpj-table th,.tpj-table td{text-align:left;padding:9px 12px;border-bottom:1px solid #1A2A30;vertical-align:top}
.tpj-table thead th{position:sticky;top:0;background:#14232A;color:#8FA6AD;font-weight:600;z-index:1;white-space:nowrap}
.tpj-table .tpj-group th{background:#0E191D;color:#E8F1F3;font-size:14px;font-weight:700;position:sticky;top:34px}
.tpj-table td a{color:#3FD2E8}
.tpj-table tr.st-done td{opacity:.55}
.tpj-table .c-where small{display:block;color:#8FA6AD;font-size:12px;margin-top:2px}
.tpj-table .c-contact{display:table-cell}.tpj-table .c-contact>*{display:block}
.tpj-table .c-date,.tpj-table .c-wo{white-space:nowrap}
.tpj-table tr.st-problem td:first-child{box-shadow:inset 3px 0 #FF8A8A}
.tpj-st{font-size:12px;font-weight:700;color:#8FA6AD}.tpj-st.done{color:#7BD88F}.tpj-st.problem{color:#FF8A8A}
.tpj-none{padding:20px 16px}
/* Dialogs */
#ttc-feed-app .tpj-dialog label,#ttc-feed-app .tpj-main label{margin:0}
#ttc-feed-app .tpj-select{display:block;height:40px;padding:0 10px;margin:0;width:auto}
#ttc-feed-app .tpj-select.sm{height:34px}
#ttc-feed-app .tpj-search{display:block;width:auto;padding:0 14px}
#ttc-feed-app .tpj-dialog textarea{margin:0}
#ttc-feed-app dialog.tpj-dialog.tpj-wide{width:min(720px,calc(100vw - 32px))}
.tpj-dialog h3{margin:8px 0 0;font:700 14px Inter,sans-serif;color:#3FD2E8;text-transform:uppercase;letter-spacing:.06em}
.tpj-picks{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow-y:auto}
.tpj-pickrow{padding:10px 12px;border:1px solid #1E2F36;border-radius:12px;background:#0E191D}
.tpj-pickrow span{display:flex;flex-direction:column;gap:2px;min-width:0}
.tpj-pickrow strong{color:#E8F1F3;font-size:14px}
.tpj-pickrow.any{border-color:#3FD2E855}
.tpj-pickrow:has(input:checked){border-color:#3FD2E8;background:#3FD2E80f}
.tpj-pickrow:has(input:disabled){opacity:.5}
.tpj-weeks{display:flex;flex-direction:column;gap:6px}
.tpj-weeks>strong{font-size:13px;color:#8FA6AD}
.tpj-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpj-cols-map{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tpj-cols-map p{grid-column:1/-1;margin:0!important}
.tpj-colrow{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#C9D8DC}
.tpj-colrow .tpj-select{max-width:55%}
.tpj-region-names{display:flex;flex-direction:column;gap:6px}
.tpj-region-row{display:flex;align-items:center;gap:10px}
.tpj-region-row .tpj-input{flex:1;height:40px}
.tpj-region-row span{flex:none;font-size:12px}
.tpj-step{display:flex;flex-direction:column;gap:10px}
.tpj-file{color:#C9D8DC;font-size:14px}
@media(max-width:1100px){.tpj-cols{display:flex;flex-direction:column;align-items:stretch}.tpj-left,.tpj-right{display:contents}.tpj-right>*{order:2}.tpj-sites{order:3}}
@media(max-width:759px){
  .tpj-main{padding:12px 12px 0!important;gap:12px}
  .tpj-hero,.tpj-phero{padding:16px}
  .tpj-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpj-stat strong{font-size:22px}
  .tpj-interest{width:100%;justify-content:center}
  .tpj-cta{max-width:none;width:100%}
  .tpj-map{height:58vh}
  .tpj-card{padding:14px;gap:12px}.tpj-card-art{width:48px;height:48px}
  .tpj-regions{grid-template-columns:1fr}
  .tpj-search{flex:1 1 100%}
  .tpj-table-wrap{max-height:none}
  .tpj-table thead{display:block;border-bottom:1px solid #1A2A30}
  .tpj-table thead tr{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px}
  .tpj-table thead th{display:block;position:static;padding:4px 6px 4px 10px;border:0;border-radius:14px;background:#15242A}
  .tpj-table,.tpj-table tbody{display:block;width:100%}
  .tpj-table .tpj-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:2px;padding:10px 14px;border-bottom:1px solid #1A2A30}
  .tpj-table .tpj-row td{border:0;padding:0;display:block}
  .tpj-table .c-store{grid-column:1}.tpj-table .c-date{grid-column:2;grid-row:1;color:#C9D8DC;text-align:right}
  .tpj-table .c-where{grid-column:1}.tpj-table .c-status{grid-column:2;grid-row:2;text-align:right}
  .tpj-table .c-contact,.tpj-table .c-wo{grid-column:1/-1;color:#C9D8DC}
  .tpj-table .c-contact>*{display:inline;margin-right:10px}
  .tpj-table .c-contact:empty,.tpj-table .c-wo:empty{display:none}
  .tpj-table .tpj-group{display:block}
  .tpj-table .tpj-group th{display:block;position:static;padding:10px 14px}
  .tpj-grid2,.tpj-cols-map{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.tpj-card,.tpj-cta.pop{transition:none;animation:none}}
#ttc-feed-app .ta-field .tpj-select{flex:none;height:40px;padding:0 10px;width:100%}

/* Map tools */
.tpj-mapwrap{position:relative}
.tpj-maptools{position:absolute;top:10px;right:10px;left:56px;z-index:500;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;pointer-events:none}
.tpj-maptools>*{pointer-events:auto}
.tpj-tool{height:34px;padding:0 12px;border-radius:17px;border:1px solid #2C4A54;background:#0B1418e6;color:#E8F1F3;font:600 13px Inter,sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer;box-shadow:0 4px 14px #0006;margin:0}
.tpj-tool .tf-ic{width:16px;height:16px}
.tpj-tool:hover{background:#15242Af2}
.tpj-tool.pri{background:#3FD2E8;border-color:#3FD2E8;color:#062026}
.tpj-tool.pri.on{background:#FFFFFF;border-color:#FFFFFF;animation:tpj-pulse 1.2s ease-in-out infinite}
@keyframes tpj-pulse{50%{box-shadow:0 0 0 6px #FFFFFF33}}
.tpj-styles{display:inline-flex;border:1px solid #2C4A54;border-radius:17px;overflow:hidden;background:#0B1418e6;box-shadow:0 4px 14px #0006}
.tpj-styles button{height:32px;padding:0 10px;border:0;background:none;color:#C9D8DC;font:600 12px Inter,sans-serif;cursor:pointer;margin:0}
.tpj-styles button[aria-pressed=true]{background:#E8F1F3;color:#062026}
.tpj-map.tpj-lasso{cursor:crosshair;touch-action:none}
.tpj-mapcard.tpj-full{position:fixed;inset:0;z-index:2000;border-radius:0;display:flex;flex-direction:column}
.tpj-mapcard.tpj-full .tpj-mapwrap{flex:1;display:flex}
.tpj-mapcard.tpj-full .tpj-map{flex:1;height:auto}
body.tpj-noscroll{overflow:hidden}
.tpj-linkbtn{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;color:#3FD2E8;font-size:13px;font-weight:600}
.tpj-linkbtn .tf-ic{width:15px;height:15px}
/* Planner */
.tpj-planner{padding:16px 18px;display:flex;flex-direction:column;gap:12px;border-color:#3FD2E855;background:linear-gradient(160deg,#0F2A31,#111D22 60%)}
.tpj-plan-head{display:flex;align-items:center;justify-content:space-between}
#ttc-feed-app .tpj-plan-head h2{margin:0;font:700 19px 'Space Grotesk',Inter,sans-serif}
.tpj-planner p{margin:0!important}
.tpj-plan-tools{display:flex;gap:8px;flex-wrap:wrap}
.tpj-plan-regions{padding:0}
.tpj-plan-regions .tf-chip[aria-pressed=true]{background:#3FD2E8;color:#062026!important}
.tpj-plan-pick{font-size:15px}
.tpj-plan-dates{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.tpj-plan-dates .tpj-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#8FA6AD}
#ttc-feed-app .tpj-input.sm{height:40px;width:170px}
.tpj-plan-checks{display:flex;gap:14px;flex-wrap:wrap;padding-bottom:8px}
#ttc-feed-app .tpj-small{font-size:13px}
.tpj-plan-math{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tpj-plan-math>div{background:#0B1418;border:1px solid #1E2F36;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column}
.tpj-plan-math strong{font:700 24px 'Space Grotesk',Inter,sans-serif}
.tpj-plan-math .big{border-color:#3FD2E8}.tpj-plan-math .big strong{color:#3FD2E8;font-size:30px}
.tpj-plan-math span{font-size:12px;color:#8FA6AD}
.tpj-plan-actions{display:flex;gap:8px;flex-wrap:wrap}
.tpj-days{display:flex;flex-direction:column;gap:8px}
.tpj-plan-sum{font-size:14px}
.tpj-day{border:1px solid #1E2F36;border-radius:12px;background:#0B1418;padding:10px 12px}
.tpj-day summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
.tpj-day summary::-webkit-details-marker{display:none}
.tpj-day summary .ta-dim{margin-left:auto}
.tpj-day ol{margin:8px 0 6px;padding-left:24px;font-size:13px;color:#C9D8DC;display:flex;flex-direction:column;gap:3px}
.tpj-gmaps{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#3FD2E8!important}
.tpj-gmaps .tf-ic{width:15px;height:15px}
@media(max-width:759px){
  .tpj-maptools{left:50px;top:8px;right:8px}
  .tpj-tool{height:32px;padding:0 10px;font-size:12px}
  .tpj-plan-math{grid-template-columns:1fr 1fr}.tpj-plan-math .big{grid-column:1/-1;order:-1}
  #ttc-feed-app .tpj-input.sm{width:150px}
}

/* Excel-style sort and filter */
.tpj-thwrap{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.tpj-th{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-weight:600;color:#8FA6AD}
.tpj-th:hover{color:#E8F1F3}
.tpj-arrow{font-size:10px;color:#3FD2E8}
.tpj-funnel{all:unset;cursor:pointer;width:20px;height:20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:#5C747B}
.tpj-funnel:hover{background:#1E2F36;color:#E8F1F3}
.tpj-funnel.on{background:#3FD2E8;color:#062026}
.tpj-active-filters{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:0 16px 10px}
.tpj-active-filters .tf-chip.on{background:#3FD2E81f;color:#3FD2E8!important;height:30px}
.tpj-active-filters .tf-ic{width:14px;height:14px}
.tpj-count{margin-left:auto}
.tpj-table .c-region{white-space:nowrap}
.tpj-menu{position:fixed;z-index:3000;background:#111D22;border:1px solid #2C4A54;border-radius:14px;box-shadow:0 20px 50px #000a;padding:8px;display:flex;flex-direction:column;gap:6px;font:14px Inter,sans-serif;color:#E8F1F3}
.tpj-menu hr{border:0;border-top:1px solid #1E2F36;margin:2px 0;width:100%}
.tpj-menu-item{all:unset;cursor:pointer;padding:8px 10px;border-radius:8px}
.tpj-menu-item:hover{background:#15242A}
.tpj-menu .tpj-search{flex:none;width:100%;box-sizing:border-box;display:block}
.tpj-menu-list{max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:2px}
.tpj-menu-list label{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:8px;margin:0}
.tpj-menu-list label:hover{background:#15242A}
.tpj-menu-list label span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpj-menu-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
@media(max-width:759px){.tpj-table .c-region{grid-column:1/-1;font-size:12px;color:#8FA6AD}}

/* Projects strip on Today and Jobs */
.tpj-strip{display:flex;flex-direction:column;gap:8px}
.tpj-strip-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#8FA6AD;text-transform:uppercase;letter-spacing:.06em}
.tpj-strip-head a{text-transform:none;letter-spacing:0;color:#3FD2E8;font-weight:600}
.tpj-strip-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;border:1px solid #3FD2E844;background:linear-gradient(135deg,#123039,#111D22 70%);color:#E8F1F3!important}
.tpj-strip-ic{flex:none;width:40px;height:40px;border-radius:12px;background:#0E191D;color:#3FD2E8;display:flex;align-items:center;justify-content:center}
.tpj-strip-ic .tf-ic{width:22px;height:22px}
.tpj-strip-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tpj-strip-text strong{font-size:15px}
.tpj-strip-text small{font-size:12px;color:#8FA6AD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ta-phone .tpj-strip{margin:0 0 12px}
/* Who viewed a project (office) */
#ttc-feed-app dialog.tpj-viewdlg{width:min(560px,calc(100vw - 24px))}
.tpj-viewers{display:flex;flex-direction:column;gap:8px;max-height:min(62vh,600px);overflow-y:auto;margin:6px -4px 0;padding:0 4px}
#ttc-feed-app .tpj-viewers h3{margin:10px 0 2px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#8FA6AD}
.tpj-vsum{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;padding:12px;border-radius:14px;background:#0E191D;border:1px solid #1E2F36}
.tpj-vsum strong{font:800 22px 'Space Grotesk',Inter,sans-serif}
.tpj-vbar{flex-basis:100%;height:8px;border-radius:999px;background:#1C2C33;overflow:hidden;margin-top:6px}
.tpj-vbar-fill{display:block;height:100%;background:linear-gradient(90deg,#3FD2E8,#A6E3B5);border-radius:inherit}
.tpj-vlist{display:flex;flex-direction:column;gap:2px}
.tpj-vlist.dim .tpj-vrow{opacity:.75}
.tpj-vrow{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;color:#E8F1F3!important;text-decoration:none}
.tpj-vrow:hover{background:#15242A}
.tpj-vmain{flex:1;min-width:0;display:flex;flex-direction:column}
.tpj-vmain strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpj-vmain small{font-size:12px}
.tpj-vtags{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.tpj-vtag{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.tpj-vtag .tf-ic{width:12px;height:12px}
.tpj-vtag.yes{background:#F5C97F22;color:#F5C97F}
.tpj-vtag.mine{background:#3FD2E822;color:#3FD2E8}
.tpj-vnote{font-size:12px;margin:4px 0 0}

/* The office's "viewed" eye and count on project cards (Projects list, and the Projects strip on Today and Jobs). */
.tpj-strip-card{position:relative}
.tpj-strip-text{color:inherit!important;text-decoration:none}
.tpj-strip-text::after{content:'';position:absolute;inset:0;border-radius:16px}
.tpj-strip-text:focus-visible{outline:none}
.tpj-strip-card:focus-within{outline:2px solid #3FD2E8;outline-offset:2px}
@media(hover:hover){.tpj-strip-card:has(.tpj-strip-text:hover){border-color:#3FD2E888}}
.tpj-viewed-badge{position:relative;z-index:1;flex:none;display:inline-flex;align-items:center;gap:5px;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tpj-viewed-badge .tf-ic{width:16px;height:16px}
.tpj-strip-viewed{min-height:34px;padding:0 11px;border-radius:999px;border:1px solid #3FD2E833;background:#0E191D;color:#9FE6F1;font-size:13px}
.tpj-strip-viewed strong{color:#E8F1F3;font-size:14px}
.tpj-strip-viewed .tpj-vb-word{display:none}
.tpj-strip-card:has(.tpj-strip-viewed) .tpj-strip-text small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tpj-card-viewed{padding:0;border:0;background:none;color:#8FA6AD;font-size:13px}
.tpj-card-viewed strong{color:#E8F1F3}
.tpj-card-viewed .tf-ic{color:#3FD2E8}
@media(hover:hover){.tpj-strip-viewed:hover{background:#15242A;border-color:#3FD2E866}.tpj-card-viewed:hover{color:#E8F1F3;text-decoration:underline}}
.tpj-viewed-badge:active{transform:scale(.96)}
