/* Sfera CRM • Projects detail 2.27.0
   Visual reference: Dashboard Sfera and Opportunities (v9).
   This stylesheet is intentionally fresh: the former v2.26 detail skin is no
   longer loaded. Critical workstream/filter geometry uses new isolated classes. */

#projects-view .projects-shell--detail{
  --pd-navy:#0e2166;--pd-blue:#0b7ff0;--pd-success:#268a6a;
  --pd-ink:#173762;--pd-muted:#5e7290;--pd-border:#dfe7f3;
  --pd-canvas:#f5f7fc;--pd-paper:#fff;
  --pd-ease:cubic-bezier(.22,.78,.24,1);
  width:100%;max-width:none;min-width:0;margin:0;
  padding:clamp(9px,1.35vw,22px);
  color:var(--pd-ink);background:transparent;border:0;box-shadow:none;
  font-family:"Open Sans",sans-serif;
}
#projects-view .projects-shell--detail *,
#projects-view .projects-shell--detail *::before,
#projects-view .projects-shell--detail *::after{box-sizing:border-box}
#projects-view .projects-shell--detail [hidden]{display:none!important}
#projects-view .projects-shell--detail .projects-detail{width:100%;min-width:0;padding:0}
#projects-view .projects-shell--detail .projects-back{display:none!important}
#projects-view .projects-shell--detail :is(button,summary,input,select,textarea,[role=button]):focus-visible{
  outline:2px solid #8abcf6;outline-offset:2px;
}
/* Blue anchored bar follows the same typographic and control rhythm as Aziende. */
#signed-in.app-shell .app-topbar .sfera-projects-topbar__back[hidden]{display:none!important}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__back:not([hidden]){
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:35px;min-height:35px;padding:0 10px;margin:0;
  border:1px solid rgba(203,221,251,.24);border-radius:9px;
  color:#eef6ff;background:rgba(255,255,255,.07);
  font:550 11px/1.2 "Open Sans",sans-serif;cursor:pointer;
  transition:background-color .15s ease;
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__back:is(:hover,:focus-visible){
  background:rgba(255,255,255,.16);outline-offset:2px;
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__back svg{
  display:block;width:16px;height:16px;flex:0 0 16px;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
/* The project identity sits above the actual white workspace, not inside a giant card. */
#projects-view .projects-shell--detail .projects-detail__top{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:83px;margin:0 0 11px;padding:7px 4px 12px;
  border:0;border-radius:0;background:transparent;box-shadow:none;
}
#projects-view .projects-shell--detail .projects-detail__heading{
  display:flex;align-items:center;gap:13px;flex:1 1 auto;min-width:0;
}
#projects-view .projects-shell--detail .projects-detail__heading>div{min-width:0}
#projects-view .projects-shell--detail .projects-detail__monogram{
  display:grid;place-items:center;flex:0 0 44px;
  width:44px;height:44px;border-radius:12px;
  background:#0e2166;color:#fff;box-shadow:none;
  font:600 19px/1 Poppins,"Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-detail__top h1{
  margin:0 0 5px;max-width:100%;color:#0e2166;
  font:600 clamp(18px,1.55vw,24px)/1.25 Poppins,"Open Sans",sans-serif;
  letter-spacing:-.018em;overflow-wrap:break-word;
}
#projects-view .projects-shell--detail .projects-detail__top p{
  margin:0;color:#526a8a;font:450 11px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-detail__meta{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:7px 0 0;
}
#projects-view .projects-shell--detail .projects-detail__meta .projects-badge{
  margin:0;padding:4px 8px;border-radius:7px;
  font:600 10px/1.15 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-detail__deadline{
  color:#5c7393;font:500 10px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-detail__deadline strong{
  color:#345a89;font-weight:650;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions{
  display:flex;align-items:center;justify-content:flex-end;
  flex:0 0 auto;min-width:0;gap:6px;flex-wrap:wrap;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions button{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;min-width:36px;max-width:36px;height:36px;min-height:36px;
  margin:0;padding:0;border:1px solid #dce6f3;border-radius:10px;
  background:#fff;color:#2f6db6;box-shadow:none;
  font:550 11px/1 "Open Sans",sans-serif;
  transition:background-color .15s ease,border-color .15s ease,transform .15s ease;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions button:not(.projects-icon-button){
  width:auto;max-width:none;padding:0 12px;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions button svg{
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions button:is(:hover,:focus-visible){
  border-color:#b9d5f5;background:#edf5ff;transform:translateY(-1px);
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions .projects-danger{
  color:#af515d;border-color:#eddae0;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions .projects-danger:hover{
  background:#fff2f4;
}
/* One white workspace, same structural approach as Opportunities. */
#projects-view .projects-shell--detail .sfera-pd-workspace{
  min-width:0;padding:0;margin:0 0 24px;
  border:1px solid #dde7f4;border-radius:17px;
  background:#fff;box-shadow:0 7px 23px rgba(23,52,107,.052);
  overflow:hidden;
}
#projects-view .projects-shell--detail .projects-detail__tabs{
  display:flex;align-items:center;justify-content:flex-start;gap:4px;
  min-height:55px;margin:0;padding:0 19px;
  border:0;border-bottom:1px solid #e5edf7;border-radius:0;
  background:#fff;box-shadow:none;
  overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d0def1 transparent;
}
#projects-view .projects-shell--detail .projects-detail__tabs>button{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;gap:8px;min-height:54px;margin:0;padding:12px 16px;
  border:0!important;border-radius:0!important;background:transparent!important;
  color:#6a7e9a;font:550 11.5px/1.3 Poppins,"Open Sans",sans-serif;
  white-space:nowrap;box-shadow:none!important;
  transition:background-color .15s ease,color .15s ease;
}
#projects-view .projects-shell--detail .projects-detail__tabs>button::after{
  position:absolute;bottom:0;left:15px;right:15px;
  height:3px;content:"";background:transparent;border-radius:3px 3px 0 0;
}
#projects-view .projects-shell--detail .projects-detail__tabs>button[aria-selected=true]{
  color:#0e2166!important;font-weight:650!important;
}
#projects-view .projects-shell--detail .projects-detail__tabs>button[aria-selected=true]::after{
  background:#0b7ff0;
}
#projects-view .projects-shell--detail .projects-detail__tabs>button:is(:hover,:focus-visible){
  color:#154787!important;background:#f3f7fd!important;
}
#projects-view .projects-shell--detail .projects-detail__tabs svg{
  display:block;width:17px;height:17px;flex:0 0 17px;stroke-width:1.8;
}
#projects-view .projects-shell--detail .projects-detail__tabs .admin-restricted-key{opacity:.56}
#projects-view .projects-shell--detail .projects-detail__body{
  min-width:0;padding:clamp(14px,1.65vw,23px) clamp(14px,1.6vw,24px) 24px;
}
/* Five informative readings, not five disconnected cards. */
#projects-view .projects-shell--detail .sfera-pd-metrics{
  display:grid;grid-template-columns:minmax(175px,1.45fr) repeat(4,minmax(100px,1fr));
  gap:0;margin:0 0 18px;min-width:0;
  border:1px solid #e1e9f3;border-radius:12px;background:#fff;
  overflow:hidden;box-shadow:0 2px 9px rgba(21,51,101,.028);
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  grid-column:auto;min-width:0;min-height:94px;
  margin:0;padding:13px 15px;border:0;border-radius:0;
  border-right:1px solid #e7edf6;background:#fff;box-shadow:none;transform:none;
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi:first-child{
  grid-column:auto;background:#f7fbff;
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi:last-child{border-right:0}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi>small{
  display:block;margin:0 0 6px;color:#5b7191;
  font:550 10.5px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi>strong{
  display:block;margin:0;color:#0e2166;
  font:650 clamp(22px,2vw,29px)/1.12 Poppins,sans-serif;
  letter-spacing:-.023em;font-variant-numeric:tabular-nums;
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi>span{
  margin:5px 0 0;color:#607590;font:450 10px/1.35 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi--danger>strong{
  color:#b05561;
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi--success:not(:first-child)>strong{
  color:#268a6a;
}
#projects-view .projects-shell--detail .sfera-pd-metrics .projects-kpi__progress-track{
  display:block;width:100%;height:5px;margin-top:10px;
  border-radius:5px;background:#dceaf9;overflow:hidden;
}
#projects-view .projects-shell--detail .sfera-pd-metrics .projects-kpi__progress-track>i{
  display:block;height:100%;border-radius:inherit;background:#0b7ff0;
  transform-origin:left;transition:transform .65s var(--pd-ease);
}
#projects-view .projects-shell--detail .projects-warning{
  margin:0 0 14px;padding:10px 13px;
  border:1px solid #e9d8b8;border-left:3px solid #b68c50;
  border-radius:9px;background:#fffaf1;color:#795e38;
  font:450 11px/1.5 "Open Sans",sans-serif;
}
/* Overview: true split in two intentionally different modules. */
#projects-view .projects-shell--detail .sfera-pd-overview{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,285px);
  gap:16px;align-items:start;min-width:0;margin:0 0 23px;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams{
  min-width:0;overflow:hidden;
  border:1px solid #e2e9f3;border-radius:13px;background:#fff;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__heading{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:53px;margin:0;padding:13px 16px;
  border-bottom:1px solid #e7edf5;background:#f8faff;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__heading h2,
#projects-view .projects-shell--detail .sfera-pd-insights-title h2{
  min-width:0;margin:0;color:#183864;
  font:600 14.5px/1.3 Poppins,"Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__heading>span{
  color:#536f95;font:550 10px/1.3 "Open Sans",sans-serif;white-space:nowrap;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
  width:100%;min-width:0;margin:0;padding:0;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream{
  display:flex;flex-direction:column;justify-content:center;
  width:100%;min-width:0;min-height:111px;
  margin:0;padding:12px 15px;border:0;border-bottom:1px solid #ebeff6;
  border-radius:0;background:#fff;box-shadow:none;
  cursor:pointer;transition:background-color .16s ease;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream:nth-child(odd){
  border-right:1px solid #ebeff6;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream:is(:hover,:focus-visible){
  background:#f3f8ff;
}
#projects-view .projects-shell--detail .sfera-pd-stream__top{
  display:flex;align-items:center;gap:10px;width:100%;min-width:0;
}
#projects-view .projects-shell--detail .sfera-pd-stream__icon{
  display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;
  border-radius:9px;background:#eaf2fe;color:#3973b9;
}
#projects-view .projects-shell--detail .sfera-pd-stream__icon svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;
}
#projects-view .projects-shell--detail .sfera-pd-stream.is-blocked .sfera-pd-stream__icon{
  background:#fff0f2;color:#b35863;
}
#projects-view .projects-shell--detail .sfera-pd-stream.is-complete .sfera-pd-stream__icon{
  background:#e7f4eb;color:#268a6a;
}
#projects-view .projects-shell--detail .sfera-pd-stream__top h3{
  flex:1 1 auto;min-width:0;max-width:100%;
  margin:0;color:#1f436f;
  font:600 11.5px/1.4 Poppins,"Open Sans",sans-serif;
  white-space:normal;word-break:normal;overflow-wrap:break-word;
  letter-spacing:normal;
}
#projects-view .projects-shell--detail .sfera-pd-stream__arrow{
  flex:0 0 13px;color:#6584b0;text-align:right;
  font:450 20px/1 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-stream__bottom{
  display:flex;align-items:center;gap:9px;width:100%;min-width:0;
  margin:12px 0 3px;
}
#projects-view .projects-shell--detail .sfera-pd-stream__track{
  flex:1 1 auto;display:block;height:6px;min-width:30px;
  border-radius:6px;background:#e8eef8;overflow:hidden;
}
#projects-view .projects-shell--detail .sfera-pd-stream__track i{
  display:block;height:100%;border-radius:inherit;background:#3b80d8;
  transform-origin:left;transition:transform .75s var(--pd-ease);
}
#projects-view .projects-shell--detail .sfera-pd-stream.is-complete .sfera-pd-stream__track i{
  background:#268a6a;
}
#projects-view .projects-shell--detail .sfera-pd-stream__bottom strong{
  flex:0 0 auto;color:#22568b;font:650 11px/1.2 Poppins,sans-serif;
  font-variant-numeric:tabular-nums;
}
#projects-view .projects-shell--detail .sfera-pd-stream>p{
  margin:4px 0 0;color:#617996;
  font:450 10px/1.35 "Open Sans",sans-serif;
  white-space:normal;word-break:normal;
}
#projects-view .projects-shell--detail .sfera-pd-context{
  min-width:0;margin:0;padding:15px 16px 17px;
  border:1px solid #e1e9f4;border-radius:13px;
  background:#f9fbff;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-context h2{
  margin:0 0 14px;color:#1c406f;
  font:600 13.5px/1.35 Poppins,"Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-context .projects-info-grid{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:13px;margin:0;
}
#projects-view .projects-shell--detail .sfera-pd-context .projects-info{
  display:flex;flex-direction:column;gap:4px;
  min-width:0;padding:0 0 11px;border:0;
  border-bottom:1px solid #e7edf5;
}
#projects-view .projects-shell--detail .sfera-pd-context .projects-info:last-child{border-bottom:0}
#projects-view .projects-shell--detail .sfera-pd-context dt{
  margin:0;color:#657b99;font:500 10px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-context dd{
  margin:0;color:#204777;font:600 11px/1.4 "Open Sans",sans-serif;
  overflow-wrap:break-word;
}
#projects-view .projects-shell--detail .sfera-pd-context>.projects-description{
  max-height:145px;overflow-y:auto;margin:9px 0 0;padding:11px 0 0;
  border:0;border-top:1px solid #e2eaf5;border-radius:0;
  background:transparent;color:#526d8b;
  font:450 10.5px/1.5 "Open Sans",sans-serif;white-space:pre-wrap;
}
/* Analytic area uses varied functional widgets as on the dashboard. */
#projects-view .projects-shell--detail .sfera-pd-insights-title{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  margin:0 0 12px;padding:0 0 11px;border-bottom:1px solid #e2e9f3;
}
#projects-view .projects-shell--detail .sfera-pd-insights-title p{
  margin:4px 0 0;color:#657c99;font:450 10.5px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:13px;min-width:0;
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card{
  min-width:0;margin:0;padding:clamp(15px,1.4vw,21px);
  border:1px solid #e2e9f4;border-radius:13px;
  background:#fff;box-shadow:0 3px 12px rgba(20,51,101,.026);
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card h2{
  margin:0 0 15px;color:#183966;
  font:600 13px/1.3 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-detail-card--assignees{grid-column:span 7}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-detail-card--distribution{grid-column:span 5;background:#fafdff}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-detail-card--due,
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-detail-card--overdue{grid-column:span 6}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-detail-card--trend{grid-column:1/-1;background:#fbfdff}
#projects-view .projects-shell--detail .projects-assignee-chart{
  display:grid;grid-template-columns:minmax(135px,.8fr) minmax(0,1.2fr);
  align-items:center;gap:14px;
}
#projects-view .projects-shell--detail .projects-assignees .projects-donut{
  display:grid;place-items:center;width:clamp(145px,13vw,183px);height:auto;
  max-width:100%;aspect-ratio:1;margin:auto;border-radius:50%;
}
#projects-view .projects-shell--detail .projects-assignees .projects-donut>div{
  display:grid;place-content:center;justify-items:center;gap:3px;
  width:74%;height:74%;border-radius:50%;background:#fff;
}
#projects-view .projects-shell--detail .projects-assignees .projects-donut strong{
  color:#0e2166;font:650 30px/1 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .projects-assignees .projects-donut span{
  color:#5e7491;font:450 10px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-chart-legend{
  display:grid;gap:0;margin:0;padding:0;list-style:none;
}
#projects-view .projects-shell--detail .projects-chart-legend li{
  display:grid;grid-template-columns:9px minmax(0,1fr) auto 42px;
  align-items:center;gap:8px;padding:7px 0;
  border-bottom:1px solid #ebf0f6;color:#365777;
  font:500 10.5px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-chart-legend li:last-child{border-bottom:0}
#projects-view .projects-shell--detail .projects-chart-legend i{
  width:8px;height:8px;border-radius:50%;
}
#projects-view .projects-shell--detail .projects-chart-legend strong{
  color:#1f4678;font:650 12px Poppins,sans-serif;
}
#projects-view .projects-shell--detail .projects-chart-legend small{
  text-align:right;color:#637b99;font:450 10px "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-chart-note,
#projects-view .projects-shell--detail .projects-detail-card--overdue>small,
#projects-view .projects-shell--detail .projects-detail-card--trend>small{
  display:block;margin:12px 0 0;padding:10px 0 0;
  border-top:1px solid #edf2f8;color:#627c9a;
  font:450 10px/1.45 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-chart-bars{
  display:grid;gap:13px;margin:8px 0 0;
}
#projects-view .projects-shell--detail .projects-chart-bars>div{
  display:grid;grid-template-columns:minmax(90px,1fr) minmax(85px,1.35fr) 32px;
  align-items:center;gap:9px;color:#516b89;
  font:500 10.5px/1.35 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-chart-bars strong{
  color:#1d4575;font:650 11px/1.2 Poppins,sans-serif;text-align:right;
}
#projects-view .projects-shell--detail .projects-chart-track{
  display:block;height:8px;overflow:hidden;
  border-radius:6px;background:#e9eff7;
}
#projects-view .projects-shell--detail .projects-chart-track i{
  display:block;height:100%;background:#4a82d2;border-radius:inherit;
  transform-origin:left;transition:transform .65s var(--pd-ease);
}
#projects-view .projects-shell--detail .projects-chart-track i.is-success{background:#268a6a}
#projects-view .projects-shell--detail .projects-chart-track i.is-warning{background:#ae8349}
#projects-view .projects-shell--detail .projects-chart-track i.is-danger{background:#b85964}
#projects-view .projects-shell--detail .projects-positive{
  padding:14px;border:0;border-radius:8px;background:#eef7f2;color:#277858;
  font:550 11px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .projects-trend{
  display:flex;align-items:flex-end;justify-content:stretch;gap:clamp(4px,.85vw,13px);
  height:175px;margin:7px 0 0;padding:9px 6px 0;
  border-bottom:1px solid #dce7f5;
  background:repeating-linear-gradient(to top,transparent 0,transparent 40px,#edf2f8 41px,transparent 42px);
}
#projects-view .projects-shell--detail .projects-trend>div{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:4px;flex:1 1 0;height:100%;min-width:0;
}
#projects-view .projects-shell--detail .projects-trend i{
  display:block;width:min(100%,32px);max-height:125px;min-height:3px;
  background:#4c83d1;border-radius:5px 5px 0 0;
  transform-origin:bottom;transition:transform .7s var(--pd-ease);
}
#projects-view .projects-shell--detail .projects-trend>div:nth-child(even) i{background:#7695bf}
#projects-view .projects-shell--detail .projects-trend :is(span,small){
  color:#58718f;font:450 10px/1.2 "Open Sans",sans-serif;
}
/* Operational tab: filters live in a single deliberately designed search surface. */
#projects-view .projects-shell--detail .sfera-pd-summary{
  display:flex;align-items:center;gap:17px;flex-wrap:wrap;
  margin:0 0 14px;padding:0 1px 12px;
  border:0;border-bottom:1px solid #e6edf6;border-radius:0;
  background:transparent;color:#657993;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-summary>span{
  display:inline-flex;align-items:baseline;gap:7px;
  color:#5c7291;font:500 10.5px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-summary>span+span{
  padding-left:16px;border-left:1px solid #dce6f1;
}
#projects-view .projects-shell--detail .sfera-pd-summary strong{
  color:#0e2166;font:650 17px/1.2 Poppins,sans-serif;
  font-variant-numeric:tabular-nums;
}
#projects-view .projects-shell--detail .sfera-pd-filters{
  display:grid;grid-template-columns:minmax(230px,1.55fr) repeat(3,minmax(140px,1fr)) 99px;
  align-items:end;gap:10px;margin:0 0 8px;
  padding:15px;border:1px solid #e0e8f3;
  border-radius:12px;background:#f8faff;box-shadow:none;
  width:100%;min-width:0;
}
#projects-view .projects-shell--detail .sfera-pd-filters>label{
  display:flex;flex-direction:column;gap:6px;min-width:0;
  color:#5e7390;font:550 10.5px/1.25 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-filters :is(input,select){
  display:block;width:100%;min-width:0;height:39px;min-height:39px;
  padding:8px 11px;margin:0;border:1px solid #d8e3f1;border-radius:8px;
  background:#fff;color:#294e7d;box-shadow:none;
  font:500 11px/1.25 "Open Sans",sans-serif;
  transition:border-color .15s ease;
}
#projects-view .projects-shell--detail .sfera-pd-filters :is(input,select):is(:hover,:focus-visible){
  border-color:#91baf0;
}
#projects-view .projects-shell--detail .sfera-pd-filters [data-project-task-action=new]{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:39px;height:39px;
  margin:0;padding:8px 12px;border:1px solid #0b7ff0;border-radius:8px;
  background:#0b7ff0;color:#fff;white-space:nowrap;box-shadow:none;
  font:600 11px/1.2 "Open Sans",sans-serif;
  transition:background-color .15s ease;
}
#projects-view .projects-shell--detail .sfera-pd-filters [data-project-task-action=new]:hover{
  background:#086cd0;
}
#projects-view .projects-shell--detail .sfera-pd-hint{
  margin:0 0 13px;padding:0 3px;color:#5f7695;
  font:450 10.5px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board{
  min-width:0;margin:0;padding:0 0 2px;
  border:1px solid #e1e9f4;border-radius:13px;
  background:#fff;box-shadow:0 2px 10px rgba(23,52,107,.027);overflow:hidden;
}
#projects-view .projects-shell--detail .sfera-pd-task-board>.projects-task-group{
  margin:0;border:0;border-bottom:1px solid #e5ecf5;
  border-radius:0;background:#fff;box-shadow:none;overflow:hidden;
}
#projects-view .projects-shell--detail .sfera-pd-task-board>.projects-task-group:last-child{
  border-bottom:0;
}
#projects-view .projects-shell--detail .sfera-pd-task-board>.projects-task-group>summary{
  display:flex;align-items:center;gap:11px;
  min-height:62px;margin:0;padding:12px 15px;
  border:0;border-radius:0;background:#f9fbff;
  cursor:pointer;list-style:none;
  transition:background-color .15s ease;
}
#projects-view .projects-shell--detail .sfera-pd-task-board>.projects-task-group>summary:hover{
  background:#eef5ff;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-state{
  display:grid;place-items:center;flex:0 0 31px;
  width:31px;height:31px;border-radius:9px;
  background:#e9f2fe;color:#3e72b4;
  font:650 14px/1 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task-group.is-complete .projects-group-state{
  background:#e9f5ef;color:#268a6a;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-title{
  display:flex;flex-direction:column;gap:3px;
  flex:1 1 auto;min-width:0;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-title strong{
  color:#193d6d;font:600 12.5px/1.3 Poppins,sans-serif;
  overflow-wrap:break-word;word-break:normal;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-title small{
  color:#647a96;font:450 10px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-progress{
  display:flex;align-items:center;gap:10px;
  flex:0 1 220px;min-width:140px;max-width:220px;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-progress__track{
  display:block;flex:1 1 auto;min-width:40px;height:7px;
  border-radius:6px;background:#e5edf7;overflow:hidden;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-progress__track i{
  display:block;height:100%;border-radius:inherit;background:#3d80d2;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task-group.is-complete .projects-group-progress__track i{
  background:#268a6a;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-progress>b{
  color:#345a89;font:600 10px/1.3 Poppins,sans-serif;white-space:nowrap;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-chevron{
  flex:0 0 18px;color:#6783a9;text-align:center;font:500 18px/1 Poppins,sans-serif;
  transition:transform .15s ease;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task-group[open] .projects-group-chevron{
  transform:rotate(180deg);
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task-list{
  display:grid;gap:0;margin:0;border:0;border-top:1px solid #e8eef7;background:#fff;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task[data-plan-task]{
  display:grid;grid-template-columns:35px minmax(0,1fr) auto;
  align-items:start;gap:11px;
  min-width:0;margin:0;padding:13px 15px;
  border:0;border-bottom:1px solid #edf1f7;border-radius:0;
  background:#fff;box-shadow:none;
  transition:background-color .14s ease;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task[data-plan-task]:last-child{
  border-bottom:0;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task[data-plan-task]:hover{
  background:#f8fbff;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task[data-plan-task].is-overdue{
  background:#fffcfc;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task--child,
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-microtask-hotfix,
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-microtask-polished{
  margin-left:17px;width:calc(100% - 17px);
  border-left:2px solid #cedff4;border-radius:0;
  background:#fcfdff;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task--child::before,
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task--child::after{
  display:none;content:none;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-check-toggle{
  display:grid;place-items:center;width:31px;height:31px;
  min-width:31px;min-height:31px;margin:0;padding:0;
  border:1px solid #d7e4f2;border-radius:9px;
  background:#fff;color:#426da4;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-check-toggle.is-done{
  background:#ebf6ef;color:#268a6a;border-color:#c6e6d4;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__subject{
  min-width:0;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__title{
  display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 5px;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__title strong{
  color:#1e406c;font:600 12px/1.4 Poppins,"Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__subject>p{
  margin:5px 0 8px;color:#516b8c;font:450 11px/1.5 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__meta{
  display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;
  color:#607998;font:450 10.5px/1.35 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__meta strong{
  color:#3a608e;font-weight:600;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-outcome,
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-hierarchy-badge{
  display:inline-flex;align-items:center;padding:4px 8px;
  border:0;border-radius:6px;
  font:600 9.5px/1.15 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-outcome.is-todo{
  color:#426da5;background:#eaf3fe;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-outcome.is-done{
  color:#267c5f;background:#e6f5ed;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-blocked-badge{
  display:inline-flex;align-items:center;
  padding:4px 8px;border:0;border-radius:6px;
  color:#ad5660;background:#fff1f2;
  font:600 9.5px/1.2 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__dependencies{
  margin:8px 0;padding:8px 9px;
  border-radius:7px;background:#fff8ee;color:#855f32;
  font:450 10.5px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task-note{
  margin:9px 0 0;padding:9px 11px;
  border:0;border-left:2px solid #c7dbf6;border-radius:0 7px 7px 0;
  background:#f4f8fe;color:#365b89;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task-note p{
  margin:4px 0 0;font:450 10.5px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions{
  display:flex;align-items:center;justify-content:flex-end;gap:5px;
  grid-column:3;grid-row:1;flex:0 0 auto;min-width:0;flex-wrap:wrap;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions button{
  display:grid;place-items:center;
  min-height:33px;height:33px;min-width:33px;
  padding:0 9px;margin:0;
  border:1px solid #dce6f2;border-radius:8px;
  background:#fff;color:#3d73ae;box-shadow:none;
  font:500 10px/1 "Open Sans",sans-serif;
  transition:background-color .14s ease;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions .projects-icon-button{
  width:33px;max-width:33px;padding:0;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions button:hover{
  background:#edf5ff;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions button[data-danger],
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions button[data-project-task-action=delete]{
  color:#b45a64;border-color:#ecd9de;
}
#projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions button svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;
}
/* History: a day-grouped, readable timeline; all original filters/data untouched. */
#projects-view .projects-shell--detail .sfera-pd-history-filters{
  display:grid;grid-template-columns:minmax(170px,1.1fr) repeat(3,minmax(140px,1fr)) minmax(180px,1.3fr) 104px;
  align-items:end;gap:10px;
  min-width:0;margin:0 0 13px;padding:14px;
  border:1px solid #e1e9f4;border-radius:12px;
  background:#f8faff;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-toggle{
  display:flex;align-items:center;gap:8px;
  min-height:39px;padding:8px 9px;
  border:1px solid #d8e5f2;border-radius:8px;
  background:#fff;color:#526f92;
  font:550 10px/1.35 "Open Sans",sans-serif;cursor:pointer;
}
#projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-toggle input{
  appearance:auto;width:16px;height:16px;min-height:0;margin:0;
  accent-color:#0b7ff0;
}
#projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-filter{
  display:flex;flex-direction:column;gap:6px;min-width:0;
  color:#5e7493;font:550 10px/1.25 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-filter :is(select,input){
  width:100%;min-width:0;min-height:39px;height:39px;margin:0;
  padding:8px 10px;border:1px solid #dce6f3;border-radius:8px;
  background:#fff;color:#28517e;
  font:500 10.5px/1.25 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-reset{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:39px;height:39px;padding:8px 10px;
  border:1px solid #d8e4f2;border-radius:8px;
  background:#fff;color:#3768a2;white-space:nowrap;
  font:550 10.5px/1.25 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-reset:hover{
  background:#edf5ff;
}
#projects-view .projects-shell--detail .projects-event-filter-summary{
  display:inline-flex;align-items:center;
  min-height:29px;margin:0 0 12px;padding:6px 9px;
  border:0;border-radius:7px;background:#eaf3ff;color:#376ca4;
  font:550 10px/1.25 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline{
  position:relative;display:grid;gap:0;list-style:none;
  margin:0;padding:0 0 0 44px;
}
#projects-view .projects-shell--detail .sfera-pd-timeline::before{
  content:"";position:absolute;left:18px;top:12px;bottom:12px;
  width:2px;background:#e4ebf4;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event-day{
  position:relative;display:flex;align-items:center;
  min-height:39px;margin:9px 0 0;padding:0;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event-day time{
  display:inline-block;padding:6px 9px;
  background:#ecf4fe;color:#315f98;border-radius:7px;
  font:600 10px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event{
  position:relative;display:block;min-width:0;padding:0;margin:0;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event::before{display:none}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event-dot{
  position:absolute;left:-42px;top:13px;z-index:1;
  display:grid;place-items:center;width:34px;height:34px;
  border:4px solid #fff;border-radius:50%;
  background:#e6f0ff;color:#3e70b3;
  font:650 14px/1 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event--completion .projects-event-dot{
  background:#e5f4eb;color:#268a6a;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event>div{
  padding:13px 12px;margin:0 0 4px;
  border:0;border-bottom:1px solid #e8edf5;border-radius:0;
  background:#fff;box-shadow:none;
  transition:background-color .15s ease;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event>div:hover{
  background:#f6faff;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event time{
  color:#647d9d;font:450 10px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event h3{
  margin:4px 0;color:#193b69;font:600 12.5px/1.35 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event strong{
  display:block;color:#3e5d82;font:550 11px/1.4 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event p{
  margin:6px 0;color:#556d8b;font:450 10.5px/1.5 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event small{
  display:block;margin:7px 0 0;color:#637d9c;font:500 10px/1.35 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-timeline .projects-event-empty{
  padding:22px 15px;border:1px dashed #d4e0ef;border-radius:10px;
  background:#fbfdff;color:#617894;font:550 11px/1.4 "Open Sans",sans-serif;
}
/* Reveal animates data and sections, not the entire viewport. */
#projects-view .projects-shell--detail .projects-detail-reveal{
  opacity:.91;transform:translateY(7px);
  transition:opacity .36s var(--pd-ease),transform .36s var(--pd-ease);
}
#projects-view .projects-shell--detail .projects-detail-reveal.projects-detail-reveal--visible{
  opacity:1;transform:translateY(0);
}
#projects-view .projects-shell--detail .projects-detail-reveal:not(.projects-detail-reveal--visible)
:is(.projects-chart-track i,.sfera-pd-stream__track i,.projects-kpi__progress-track>i){
  transform:scaleX(.04);
}
#projects-view .projects-shell--detail .projects-detail-reveal--visible
:is(.projects-chart-track i,.sfera-pd-stream__track i,.projects-kpi__progress-track>i){
  transform:scaleX(1);
}
#projects-view .projects-shell--detail .projects-detail-reveal:not(.projects-detail-reveal--visible) .projects-trend i{
  transform:scaleY(.03);
}
#projects-view .projects-shell--detail .projects-detail-reveal--visible .projects-trend i{
  transform:scaleY(1);
}
/* Tablet and small viewport behavior is based on actual usable width. */
@media(max-width:1280px){
  #projects-view .projects-shell--detail .sfera-pd-overview{
    grid-template-columns:minmax(0,1fr) 250px;
  }
  #projects-view .projects-shell--detail .sfera-pd-filters{
    grid-template-columns:minmax(190px,1.45fr) repeat(3,minmax(115px,.85fr)) 88px;
  }
  #projects-view .projects-shell--detail .sfera-pd-history-filters{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-filter--search{
    grid-column:span 2;
  }
}
@media(max-width:1060px){
  #projects-view .projects-shell--detail .projects-detail__top{
    align-items:flex-start;flex-direction:column;gap:10px;
  }
  #projects-view .projects-shell--detail .projects-detail__top>.projects-actions{
    align-self:flex-end;
  }
  #projects-view .projects-shell--detail .sfera-pd-overview{
    grid-template-columns:minmax(0,1fr);
  }
  #projects-view .projects-shell--detail .sfera-pd-context .projects-info-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card{
    grid-column:span 6;
  }
  #projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-detail-card--trend{
    grid-column:1/-1;
  }
  #projects-view .projects-shell--detail .sfera-pd-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-filters>label:first-child{
    grid-column:span 2;
  }
  #projects-view .projects-shell--detail .sfera-pd-filters>label:nth-child(4){
    grid-column:auto;
  }
  #projects-view .projects-shell--detail .sfera-pd-filters [data-project-task-action=new]{
    grid-column:2;justify-self:end;width:auto;min-width:95px;
  }
}
@media(max-width:720px){
  #projects-view .projects-shell--detail{
    padding:8px 4px;
  }
  #projects-view .projects-shell--detail .projects-detail__top{
    padding:4px 0 10px;
  }
  #projects-view .projects-shell--detail .sfera-pd-workspace{border-radius:13px}
  #projects-view .projects-shell--detail .projects-detail__tabs{
    padding:0 8px;min-height:47px;
  }
  #projects-view .projects-shell--detail .projects-detail__tabs>button{
    padding:9px 10px;min-height:46px;font-size:10.5px;gap:6px;
  }
  #projects-view .projects-shell--detail .projects-detail__tabs svg{
    width:15px;height:15px;flex-basis:15px;
  }
  #projects-view .projects-shell--detail .projects-detail__body{
    padding:13px;
  }
  #projects-view .projects-shell--detail .sfera-pd-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi:first-child{
    grid-column:1/-1;border-right:0;border-bottom:1px solid #e7edf6;
  }
  #projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi:not(:first-child){
    min-height:79px;border-bottom:1px solid #e7edf6;
  }
  #projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi:nth-child(3){
    border-right:0;
  }
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:minmax(0,1fr);
  }
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream:nth-child(odd){
    border-right:0;
  }
  #projects-view .projects-shell--detail .sfera-pd-context .projects-info-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card{
    grid-column:1/-1;
  }
  #projects-view .projects-shell--detail .projects-assignee-chart{
    grid-template-columns:minmax(0,1fr);justify-items:center;
  }
  #projects-view .projects-shell--detail .projects-assignees .projects-donut{max-width:170px}
  #projects-view .projects-shell--detail .sfera-pd-task-board .projects-task[data-plan-task]{
    grid-template-columns:32px minmax(0,1fr);
    padding:12px 10px;
  }
  #projects-view .projects-shell--detail .sfera-pd-task-board .projects-task__actions{
    grid-column:2;grid-row:auto;justify-content:flex-start;
  }
  #projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-progress{
    flex:0 0 auto;min-width:52px;
  }
  #projects-view .projects-shell--detail .sfera-pd-task-board .projects-group-progress__track{
    display:none;
  }
  #projects-view .projects-shell--detail .sfera-pd-history-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-filter--search{
    grid-column:span 2;
  }
}
@media(max-width:460px){
  #signed-in.app-shell .app-topbar .sfera-projects-topbar__back:not([hidden]){
    width:34px;min-width:34px;max-width:34px;padding:0;
  }
  #signed-in.app-shell .app-topbar .sfera-projects-topbar__back span{display:none}
  #projects-view .projects-shell--detail .projects-detail__top>.projects-actions{
    align-self:flex-start;
  }
  #projects-view .projects-shell--detail .projects-detail__top h1{
    font-size:18px;
  }
  #projects-view .projects-shell--detail .sfera-pd-context .projects-info-grid{
    grid-template-columns:minmax(0,1fr);
  }
  #projects-view .projects-shell--detail .sfera-pd-filters{
    grid-template-columns:minmax(0,1fr);padding:12px;
  }
  #projects-view .projects-shell--detail .sfera-pd-filters>label:first-child,
  #projects-view .projects-shell--detail .sfera-pd-filters>label:nth-child(4){
    grid-column:auto;
  }
  #projects-view .projects-shell--detail .sfera-pd-filters [data-project-task-action=new]{
    grid-column:auto;justify-self:stretch;width:100%;
  }
  #projects-view .projects-shell--detail .sfera-pd-history-filters{
    grid-template-columns:minmax(0,1fr);padding:12px;
  }
  #projects-view .projects-shell--detail .sfera-pd-history-filters .projects-event-filter--search{
    grid-column:auto;
  }
  #projects-view .projects-shell--detail .projects-chart-bars>div{
    grid-template-columns:minmax(72px,1fr) minmax(72px,1fr) 28px;gap:6px;
  }
}
@media(prefers-reduced-motion:reduce){
  #projects-view .projects-shell--detail *,
  #projects-view .projects-shell--detail *::before,
  #projects-view .projects-shell--detail *::after{
    animation:none!important;transition:none!important;scroll-behavior:auto!important;
  }
  #projects-view .projects-shell--detail .projects-detail-reveal{
    opacity:1!important;transform:none!important;
  }
  #projects-view .projects-shell--detail
  :is(.projects-chart-track i,.sfera-pd-stream__track i,.projects-kpi__progress-track>i,.projects-trend i){
    transform:none!important;
  }
}

/* ===== Sfera Projects v2.28 • fluid detail, independent insight panels, popup filters =====
   The companies directory uses a full-width viewport: remove the old 1760px
   Projects-only cap exclusively while a project detail is displayed. */
#projects-view:not([hidden]):has(.projects-shell--detail){
  box-sizing:border-box;width:100%!important;min-width:0!important;
  max-width:none!important;margin:0!important;
}
#projects-view .projects-shell--detail{
  box-sizing:border-box;width:100%!important;min-width:0!important;
  max-width:none!important;margin:0!important;
  padding:clamp(8px,1.1vw,18px)!important;
}
#projects-view .projects-shell--detail [data-projects-content],
#projects-view .projects-shell--detail .projects-detail{
  width:100%!important;min-width:0!important;max-width:none!important;
}
/* Identity becomes one compact, quiet information card. */
#projects-view .projects-shell--detail .projects-detail__top{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;min-height:85px;margin:0 0 12px;padding:14px 18px;
  border:1px solid #e1e8f2!important;border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 4px 15px rgba(20,48,98,.043)!important;
}
#projects-view .projects-shell--detail .projects-detail__heading{
  min-width:0;flex:1 1 auto;gap:12px;
}
#projects-view .projects-shell--detail .projects-detail__monogram{
  flex-basis:42px;width:42px;height:42px;border-radius:11px;
  background:#0e2166;box-shadow:none;
}
#projects-view .projects-shell--detail .projects-detail__top h1{
  font:600 clamp(17px,1.35vw,21px)/1.26 Poppins,"Open Sans",sans-serif;
  letter-spacing:-.013em;margin:0 0 4px;color:#0e2166;
}
#projects-view .projects-shell--detail .projects-detail__meta{
  margin:6px 0 0;gap:7px;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions{
  align-self:center;gap:7px;flex-wrap:wrap;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions button{
  border-radius:9px;border:1px solid #dce6f3;
  background:#fff;color:#3469ae;
  width:35px;min-width:35px;max-width:35px;
  height:35px;min-height:35px;padding:0;
  box-shadow:none;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions button:hover{
  background:#edf5ff;border-color:#c2daf7;
}
#projects-view .projects-shell--detail .projects-detail__top>.projects-actions .projects-danger{
  color:#ac535d;border-color:#eedde1;
}
/* No more white monolith around all charts. The gray CRM canvas separates modules. */
#projects-view .projects-shell--detail .sfera-pd-workspace{
  display:block;min-width:0;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  overflow:visible!important;
}
#projects-view .projects-shell--detail .projects-detail__tabs{
  display:flex;min-height:50px;
  padding:0 12px;margin:0 0 13px!important;
  border:1px solid #e0e8f3!important;border-radius:12px!important;
  background:#fff!important;box-shadow:0 3px 11px rgba(17,48,103,.03);
}
#projects-view .projects-shell--detail .projects-detail__tabs>button{
  min-height:49px;padding:11px 15px;
}
#projects-view .projects-shell--detail .projects-detail__body{
  display:block;min-width:0;margin:0!important;
  padding:0!important;background:transparent!important;
}
#projects-view .projects-shell--detail .sfera-pd-metrics{
  margin:0 0 15px;background:#fff;box-shadow:0 3px 12px rgba(20,50,98,.032);
}
#projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi{
  min-height:88px;padding:12px 14px;
}
/* All 17 macrosections can use the whole available width; no context sidebar. */
#projects-view .projects-shell--detail .sfera-pd-workstreams{
  display:block;width:100%;min-width:0;margin:0 0 17px;
  border:1px solid #e0e8f3;border-radius:14px;
  background:#fff;box-shadow:0 3px 14px rgba(17,48,103,.038);
  overflow:hidden;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__heading{
  min-height:53px;padding:14px 18px;border-bottom:1px solid #e4ebf5;
  background:#f8faff;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__heading h2{
  font:600 14.5px/1.3 Poppins,sans-serif;color:#173763;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  width:100%;min-width:0;gap:0;margin:0;
  background:#fff;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream,
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream:nth-child(odd){
  width:100%;min-width:0;min-height:105px;
  margin:0;padding:15px 17px;
  border:0;border-right:1px solid #edf1f7;
  border-bottom:1px solid #edf1f7;border-radius:0;
  background:#fff;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream:is(:hover,:focus-visible){
  background:#f2f7fe;border-bottom-color:#d7e6fa;
}
#projects-view .projects-shell--detail .sfera-pd-stream__top h3{
  font:600 12px/1.4 Poppins,sans-serif;
  min-width:0;white-space:normal;word-break:normal;overflow-wrap:break-word;
}
#projects-view .projects-shell--detail .sfera-pd-stream__track{
  background:#e8eef7;
}
#projects-view .projects-shell--detail .sfera-pd-stream>p{
  line-height:1.45;color:#5c7593;
}
/* Each analytic widget is a separate white panel with gray canvas between. */
#projects-view .projects-shell--detail .sfera-pd-insights-title{
  margin:0 0 13px;padding:0 2px 10px;
  border-bottom:1px solid #dce6f2;
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(12px,1.35vw,19px);
  width:100%;min-width:0;background:transparent;
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card{
  display:block;min-width:0;margin:0;
  padding:clamp(16px,1.55vw,24px);
  border:1px solid #e0e8f4;border-radius:14px;
  background:#fff;box-shadow:0 5px 18px rgba(19,50,106,.043);
  overflow:visible;
}
#projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card:nth-child(2){
  background:#fff;
}
/* Animated SVG donut: facts are still computed from the original assignees. */
#projects-view .projects-shell--detail .projects-assignees .sfera-pd-donut{
  display:block;position:relative;
  width:clamp(165px,13.5vw,202px);max-width:100%;aspect-ratio:1;
  margin:auto;border-radius:50%;
  background:transparent!important;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-donut>svg{
  display:block;width:100%;height:100%;overflow:visible;
}
#projects-view .projects-shell--detail .sfera-pd-donut__arc{
  stroke-dasharray:0 282.744;stroke-linecap:butt;
  transition:stroke-dasharray 1s cubic-bezier(.2,.7,.2,1);
}
#projects-view .projects-shell--detail .projects-detail-reveal--visible .sfera-pd-donut__arc{
  stroke-dasharray:var(--pd-arc) 282.744;
}
#projects-view .projects-shell--detail .sfera-pd-donut .sfera-pd-donut__center{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:100%;gap:4px;margin:0;
  border-radius:50%;background:transparent!important;
}
#projects-view .projects-shell--detail .sfera-pd-donut__center strong{
  color:#0e2166;font:650 27px/1 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-donut__center span{
  color:#627996;font:450 10px/1.2 "Open Sans",sans-serif;
}
/* Filter area is absent until the funnel is selected. No empty summary spacers. */
#projects-view .projects-shell--detail .sfera-pd-filter-panel[hidden]{
  display:none!important;
}
#projects-view .projects-shell--detail .sfera-pd-filter-panel{
  display:block;position:relative;z-index:15;
  margin:0 0 13px;padding:16px 18px 17px;
  border:1px solid #dae6f4;border-radius:13px;
  background:#fff;box-shadow:0 8px 23px rgba(18,51,106,.07);
  animation:sfera-pd-filter-enter .2s ease-out both;
}
@keyframes sfera-pd-filter-enter{
  from{opacity:.4;transform:translateY(-5px)}
  to{opacity:1;transform:translateY(0)}
}
#projects-view .projects-shell--detail .sfera-pd-filter-panel__header{
  display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;
  margin:0 0 13px;padding:0 0 11px;
  border-bottom:1px solid #e7edf6;
}
#projects-view .projects-shell--detail .sfera-pd-filter-panel__header strong{
  color:#163667;font:600 13px/1.3 Poppins,sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-filter-panel__header>span{
  color:#637996;font:450 10px/1.35 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-filter-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  align-items:end;gap:12px;min-width:0;
}
#projects-view .projects-shell--detail .sfera-pd-filter-grid--history{
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(155px,1.15fr);
}
#projects-view .projects-shell--detail .sfera-pd-field{
  display:flex;flex-direction:column;gap:6px;min-width:0;
  color:#557091;font:550 10.5px/1.3 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-field>span{
  display:block;color:#647b98;font:550 10px/1.2 "Open Sans",sans-serif;
}
#projects-view .projects-shell--detail .sfera-pd-field>input{
  width:100%;min-width:0;height:39px;min-height:39px;margin:0;padding:8px 11px;
  border:1px solid #d8e4f2;border-radius:8px;
  background:#fff;color:#264e80;
  font:500 11px/1.3 "Open Sans",sans-serif;box-shadow:none;
}
#projects-view .projects-shell--detail .sfera-pd-select{
  position:relative;min-width:0;width:100%;
}
#projects-view .projects-shell--detail .sfera-pd-select__native{
  position:absolute!important;width:1px!important;height:1px!important;
  min-height:0!important;opacity:0!important;
  pointer-events:none!important;clip-path:inset(50%)!important;
  padding:0!important;margin:0!important;border:0!important;
}
#projects-view .projects-shell--detail .sfera-pd-select__trigger{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;min-width:0;height:39px;min-height:39px;
  margin:0;padding:9px 12px;border:1px solid #d8e4f2;border-radius:8px;
  background:#fff;color:#2d5484;box-shadow:none;cursor:pointer;
  font:550 11px/1.25 "Open Sans",sans-serif;text-align:left;
  transition:border-color .15s ease,background-color .15s ease;
}
#projects-view .projects-shell--detail .sfera-pd-select__trigger:hover,
#projects-view .projects-shell--detail .sfera-pd-select__trigger[aria-expanded=true]{
  background:#f7faff;border-color:#aacbf2;
}
#projects-view .projects-shell--detail .sfera-pd-select__trigger:disabled{
  opacity:.52;cursor:not-allowed;background:#f1f4f8;
}
#projects-view .projects-shell--detail .sfera-pd-select__trigger [data-pd-current]{
  display:block;flex:1 1 auto;min-width:0;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;
}
#projects-view .projects-shell--detail .sfera-pd-select__trigger svg{
  flex:0 0 15px;width:15px;height:15px;stroke:#54769e;
  fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#projects-view .projects-shell--detail .sfera-pd-select__options{
  position:absolute;left:0;right:0;top:calc(100% + 5px);
  z-index:40;min-width:190px;max-height:min(310px,52vh);
  overflow-x:hidden;overflow-y:auto;padding:5px;
  border:1px solid #dbe6f3;border-radius:10px;
  background:#fff;box-shadow:0 16px 38px rgba(14,33,102,.14);
  scrollbar-color:#b3cbe9 #f5f8fd;
}
#projects-view .projects-shell--detail .sfera-pd-select__options[hidden]{
  display:none!important;
}
#projects-view .projects-shell--detail .sfera-pd-select__option{
  display:flex;align-items:center;width:100%;min-height:35px;
  padding:8px 10px;margin:0;border:0;border-radius:7px;
  background:transparent;color:#345b8b;
  font:500 11px/1.3 "Open Sans",sans-serif;
  text-align:left;white-space:normal;overflow-wrap:break-word;cursor:pointer;
}
#projects-view .projects-shell--detail .sfera-pd-select__option:is(:hover,:focus-visible){
  background:#eef5fe;color:#0e2166;
}
#projects-view .projects-shell--detail .sfera-pd-select__option.is-selected{
  color:#1266ba;background:#eaf3ff;font-weight:650;
}
#projects-view .projects-shell--detail .sfera-pd-select__option:disabled{
  cursor:default;opacity:.45;
}
#projects-view .projects-shell--detail .sfera-pd-clear-filters{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:105px;min-height:39px;height:39px;
  padding:9px 12px;margin:0;border:1px solid #dbe6f3;border-radius:8px;
  background:#f8faff;color:#31669f;white-space:nowrap;
  font:550 10.5px/1.2 "Open Sans",sans-serif;cursor:pointer;
}
#projects-view .projects-shell--detail .sfera-pd-clear-filters:hover{
  background:#eaf4ff;border-color:#aeccec;
}
#projects-view .projects-shell--detail .sfera-pd-check{
  display:flex;align-items:center;gap:9px;min-height:39px;
  padding:9px 10px;border:1px solid #dce7f4;border-radius:8px;
  color:#345e8a;background:#f8fbff;
  font:550 10.5px/1.25 "Open Sans",sans-serif;cursor:pointer;
}
#projects-view .projects-shell--detail .sfera-pd-check input{
  width:16px;height:16px;margin:0;accent-color:#0b7ff0;
}
#projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-field--search{
  grid-column:span 2;
}
#projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-check{
  grid-column:3;
}
#projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-clear-filters{
  grid-column:4;
}
#projects-view .projects-shell--detail .sfera-pd-screen-reader-status{
  position:absolute!important;width:1px!important;height:1px!important;
  clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
  overflow:hidden!important;white-space:nowrap!important;
}
#projects-view .projects-shell--detail .sfera-pd-history-card{
  margin:0;padding:18px 20px 20px;
  border:1px solid #e0e8f3;border-radius:14px;
  background:#fff;box-shadow:0 4px 15px rgba(19,50,104,.04);
}
#projects-view .projects-shell--detail .sfera-pd-task-board{
  margin:0;border-radius:13px;
}
/* Contextual actions in the same sticky navy CRM toolbar. */
#signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search{
  display:flex;align-items:center;position:relative;
  flex:1 1 330px;min-width:120px;max-width:min(485px,38vw);
  height:36px;margin:0 0 0 auto;
  border:1px solid rgba(220,232,255,.23);border-radius:10px;
  background:rgba(255,255,255,.08);
  transition:border-color .15s ease,background-color .15s ease;
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search:is(:hover,:focus-within){
  border-color:rgba(235,244,255,.5);background:rgba(255,255,255,.12);
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search>svg{
  display:block;width:17px;height:17px;flex:0 0 17px;
  margin:0 0 0 11px;fill:none;stroke:#d3e6ff;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search input{
  display:block;min-width:0;width:100%;height:34px;min-height:34px;
  margin:0;padding:0 11px;border:0;border-radius:10px;
  outline:none;box-shadow:none;background:transparent;
  color:#fff;font:500 11px/1.2 "Open Sans",sans-serif;
  appearance:none;-webkit-appearance:none;
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search input::placeholder{
  color:#d5e4fa;opacity:.95;
}
#signed-in.app-shell .app-topbar button.sfera-projects-topbar__detail-filter{
  position:relative;
}
#signed-in.app-shell .app-topbar button.sfera-projects-topbar__detail-filter.is-active{
  background:rgba(169,206,255,.19);border-color:rgba(219,237,255,.55);
}
#signed-in.app-shell .app-topbar button.sfera-projects-topbar__detail-filter.has-active-filters::after{
  position:absolute;top:4px;right:4px;content:"";
  width:6px;height:6px;border-radius:50%;
  border:1px solid #0e2166;background:#62c59c;
}
#signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search-toggle{
  display:none!important;
}
/* Small screens: the search expands under the topbar, preserving the blue row. */
@media(max-width:1100px){
  #signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search{
    max-width:min(340px,31vw);
  }
}
@media(max-width:880px){
  #signed-in.app-shell .app-topbar .sfera-projects-topbar__detail-search{
    display:none!important;
  }
  #signed-in.app-shell .app-topbar .sfera-projects-topbar.detail-search-open
  .sfera-projects-topbar__detail-search:not([hidden]){
    display:flex!important;position:absolute;top:calc(100% - 2px);
    left:clamp(7px,2vw,20px);right:clamp(7px,2vw,20px);
    width:auto;max-width:none;min-width:0;z-index:80;
    margin:0;padding:0;border:1px solid #a9c8f0;
    border-radius:10px;background:#143174;
    box-shadow:0 13px 26px rgba(14,33,102,.21);
  }
  #signed-in.app-shell .app-topbar button.sfera-projects-topbar__detail-search-toggle:not([hidden]){
    display:grid!important;
  }
  #signed-in.app-shell .app-topbar .sfera-projects-topbar__back:not([hidden]){
    width:35px;min-width:35px;max-width:35px;padding:0;
  }
  #signed-in.app-shell .app-topbar .sfera-projects-topbar__back:not([hidden]) span{display:none}
}
@media(max-width:1100px){
  #projects-view .projects-shell--detail .sfera-pd-filter-grid,
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-field--search{
    grid-column:1/-1;
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-check{
    grid-column:auto;
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-clear-filters{
    grid-column:auto;
  }
}
@media(max-width:730px){
  #projects-view .projects-shell--detail .projects-detail__top{
    padding:12px 13px;align-items:flex-start;flex-direction:column;gap:11px;
  }
  #projects-view .projects-shell--detail .projects-detail__top>.projects-actions{
    align-self:flex-start;
  }
  #projects-view .projects-shell--detail .sfera-pd-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-metrics>.projects-kpi:first-child{
    grid-column:1/-1;min-height:74px;
  }
  #projects-view .projects-shell--detail .sfera-pd-insights-grid>.projects-card{
    grid-column:1/-1;
  }
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid>.sfera-pd-stream{
    min-height:101px;padding:12px;
  }
}
@media(max-width:480px){
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:minmax(0,1fr);
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-grid,
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history{
    grid-template-columns:minmax(0,1fr);
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-field--search,
  #projects-view .projects-shell--detail .sfera-pd-filter-grid--history .sfera-pd-clear-filters{
    grid-column:auto;
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-panel{
    padding:12px;
  }
  #projects-view .projects-shell--detail .sfera-pd-filter-panel__header{
    align-items:flex-start;flex-direction:column;gap:3px;
  }
  #projects-view .projects-shell--detail .sfera-pd-history-card{
    padding:12px 9px;
  }
  #projects-view .projects-shell--detail .projects-detail__top h1{
    font-size:17px;
  }
  #projects-view .projects-shell--detail .projects-detail__tabs{
    padding:0 5px;
  }
}
@media(prefers-reduced-motion:reduce){
  #projects-view .projects-shell--detail .sfera-pd-filter-panel,
  #projects-view .projects-shell--detail .sfera-pd-donut__arc{
    animation:none!important;transition:none!important;
  }
  #projects-view .projects-shell--detail .sfera-pd-donut__arc{
    stroke-dasharray:var(--pd-arc) 282.744!important;
  }
}

/* A deliberate column cap avoids 12–14 tiny macro tiles on 32-inch displays. */
@media(max-width:1680px){
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:1250px){
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:850px){
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:480px){
  #projects-view .projects-shell--detail .sfera-pd-workstreams__grid{
    grid-template-columns:minmax(0,1fr);
  }
}
