/* Sfera Studio — original dashboard language inspired by the compositional
   clarity of modern analytical CRMs. Existing metrics, routes and permissions
   remain supplied by dashboard.js; this stylesheet never invents data. */
:root {
  --sfera-topbar-height:56px;
  --studio-ink:#152747;
  --studio-muted:#687997;
  --studio-blue:#4168CF;
  --studio-outline:#E5EAF4;
  --studio-ease:cubic-bezier(.2,.8,.2,1);
}

/* Keep the Sfera sidebar and top navigation as one fixed navy surface. */
#signed-in.app-shell { padding-top:var(--sfera-topbar-height)!important; }
#signed-in .app-topbar {
  z-index:500;
  height:var(--sfera-topbar-height)!important;
  padding:0 clamp(13px,1.6vw,26px)!important;
  border:0!important;
  border-bottom:1px solid rgba(165,197,244,.12)!important;
  background:#132652!important;
  color:#EFF5FF!important;
  box-shadow:none!important;
}
#signed-in #app-navigation-drawer .portal-sidebar__header {
  min-height:var(--sfera-topbar-height)!important;
  height:var(--sfera-topbar-height)!important;
  flex:0 0 var(--sfera-topbar-height)!important;
  padding:6px 11px!important;
  border-bottom-color:rgba(165,197,244,.12);
}
#signed-in .sfera-nav-brand__mark {
  width:40px;height:40px;flex-basis:40px;
  border-radius:12px;box-shadow:0 3px 10px rgba(2,14,40,.16);
}
#signed-in .sfera-nav-brand__mark img { width:29px;height:29px; }
#signed-in .app-topbar .portal-topbar__actions { gap:9px; }
#signed-in .app-topbar #collaboration-bell {
  display:grid;width:36px;height:36px;min-width:36px;padding:7px;
  border:1px solid rgba(192,216,255,.2);border-radius:11px;
  background:rgba(255,255,255,.075);color:#E8F3FF;box-shadow:none;
  transition:background .18s ease,border-color .18s ease;
}
#signed-in .app-topbar #collaboration-bell:hover,
#signed-in .app-topbar #collaboration-bell:focus-visible {
  border-color:rgba(196,224,255,.48);background:rgba(255,255,255,.15);
}
#signed-in .app-topbar #account-menu-toggle.account-toggle {
  box-sizing:border-box;display:flex;width:auto;min-width:0;max-width:240px;
  height:40px;min-height:40px;gap:10px;padding:4px 11px 4px 4px;
  align-items:center;justify-content:center;border:1px solid transparent!important;
  border-radius:12px;background:transparent!important;
  color:#F1F6FF!important;box-shadow:none!important;
  transition:background .18s ease,border-color .18s ease;
}
#signed-in .app-topbar #account-menu-toggle:hover,
#signed-in .app-topbar #account-menu-toggle:focus-visible {
  border-color:rgba(196,224,255,.19)!important;background:rgba(126,168,237,.13)!important;
}
#signed-in .app-topbar #account-menu-toggle .account-toggle__avatar {
  display:grid;place-items:center;width:31px;height:31px;min-width:31px;flex:0 0 31px;
  margin:0;border:1px solid rgba(180,213,255,.28);
  background-color:#4164A2;background-image:linear-gradient(135deg,#4269B7,#263E79);
  color:#F4F8FF;font-size:13px;line-height:1;transform:translateY(-1px);
}
#signed-in .app-topbar #account-menu-toggle .account-toggle__name {
  display:flex;align-items:center;align-self:center;min-width:0;height:100%;
  overflow:hidden;color:inherit!important;
  font:650 13px/1 "Open Sans",sans-serif;text-overflow:ellipsis;white-space:nowrap;
  transform:translateY(-1px);
}
#signed-in #account-menu { top:calc(var(--sfera-topbar-height) + 7px); }
#signed-in .app-content { padding-top:20px; }

/* One white CRM canvas; inside it, a deliberately asymmetric bento layout. */
#dashboard-view.dashboard-studio {
  background:transparent;
  color:var(--studio-ink);
  min-height:calc(100vh - var(--sfera-topbar-height));
  padding:0 0 26px;
}
#dashboard-view.dashboard-studio .dashboard-canvas {
  box-sizing:border-box;
  width:calc(100% - 34px);max-width:1980px;margin:0 auto;
  padding:21px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:14px;align-items:start;
  background:#FFFFFF;border:1px solid #E2E7F0;border-radius:20px;
  box-shadow:0 14px 36px rgba(24,48,83,.035);
}
#dashboard-view.dashboard-studio .dashboard-canvas > * { box-sizing:border-box;min-width:0; }
#dashboard-view.dashboard-studio .dashboard-canvas > :is(
  .dashboard-welcome,.dashboard-quick-actions,.dashboard-workspace,
  .dashboard-daily-dock,.dashboard-section,.dashboard-team-kpis,
  .dashboard-customize-panel,#dashboard-warning
) {
  width:100%!important;max-width:none!important;margin:0!important;
}
#dashboard-view.dashboard-studio .dashboard-canvas > :is(
  .dashboard-welcome,.dashboard-quick-actions,.dashboard-team-kpis,
  .dashboard-section--resources,.dashboard-customize-panel,#dashboard-warning:not(:empty)
) { grid-column:1/-1; }
#dashboard-view.dashboard-studio .dashboard-canvas > #dashboard-warning:empty,
#dashboard-view.dashboard-studio .dashboard-customize-panel[hidden],
#dashboard-view.dashboard-studio .dashboard-quick-actions:not(:has(:not([hidden]))) { display:none!important; }
#dashboard-view.dashboard-studio .dashboard-canvas > .dashboard-workspace { grid-column:span 7; }
#dashboard-view.dashboard-studio .dashboard-canvas > .dashboard-daily-dock { grid-column:span 2; }
#dashboard-view.dashboard-studio .dashboard-canvas > .dashboard-section--portfolio { grid-column:span 3; }
#dashboard-view.dashboard-studio .dashboard-canvas > :is(.dashboard-workspace,.dashboard-daily-dock,.dashboard-section--portfolio) { align-self:stretch; }

/* Readable editorial hierarchy: no 9–11px dashboard body text. */
#dashboard-view.dashboard-studio .dashboard-welcome {
  min-height:59px;padding:1px 3px 15px!important;
  border-bottom:1px solid var(--studio-outline)!important;
}
#dashboard-view.dashboard-studio .dashboard-welcome h1 {
  margin:0;color:#11264D;font-size:clamp(25px,2vw,31px)!important;
  font-weight:750;letter-spacing:-.045em;line-height:1.15;
}
#dashboard-view.dashboard-studio .dashboard-welcome__actions { gap:9px; }
#dashboard-view.dashboard-studio .dashboard-welcome__actions > button {
  position:static!important;top:auto!important;right:auto!important;
  height:37px;min-height:37px;max-height:37px;transform:none!important;
  border-radius:11px;font-size:13px;font-weight:650;
}
#dashboard-view.dashboard-studio #dashboard-guide,
#dashboard-view.dashboard-studio #dashboard-refresh {
  border:1px solid #E0E7F3;background:#F7F9FD;color:#25456F;
  padding:0 13px;box-shadow:none;
}
#dashboard-view.dashboard-studio .dashboard-welcome__actions > button:hover {
  border-color:#B6CAEC;background:#EDF3FF;box-shadow:0 3px 9px rgba(25,55,100,.06);
}

/* Quick commands behave like an app toolbar, not enormous white cards. */
#dashboard-view.dashboard-studio .dashboard-quick-actions {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;padding:0!important;overflow:visible;
}
#dashboard-view.dashboard-studio .dashboard-quick-actions > [hidden] { display:none!important; }
#dashboard-view.dashboard-studio .dashboard-quick-actions__btn,
#dashboard-view.dashboard-studio #dashboard-new-task.dashboard-quick-actions__btn--task-refined,
#dashboard-view.dashboard-studio #dashboard-new-activity.dashboard-quick-actions__btn--activity {
  box-sizing:border-box;width:100%;min-height:63px;gap:13px;
  padding:10px 16px;border:1px solid #DCE6F8!important;border-radius:14px;
  background:linear-gradient(110deg,#EDF4FF,#F7FAFF)!important;
  box-shadow:none!important;transform:none!important;transition:
    background .18s ease,border-color .18s ease,box-shadow .18s ease,translate .18s var(--studio-ease)!important;
}
#dashboard-view.dashboard-studio #dashboard-new-activity.dashboard-quick-actions__btn--activity {
  border-color:#D5ECE7!important;
  background:linear-gradient(110deg,#E9F7F3,#F7FCFB)!important;
}
#dashboard-view.dashboard-studio .dashboard-quick-actions__icon,
#dashboard-view.dashboard-studio #dashboard-new-task .dashboard-quick-actions__icon,
#dashboard-view.dashboard-studio #dashboard-new-activity .dashboard-quick-actions__icon {
  width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#3268BA!important;
}
#dashboard-view.dashboard-studio #dashboard-new-activity .dashboard-quick-actions__icon { background:#238779!important; }
#dashboard-view.dashboard-studio .dashboard-quick-actions__label {
  font-size:13px;font-weight:750;letter-spacing:.025em;color:#204777;
}
#dashboard-view.dashboard-studio .dashboard-quick-actions__subtitle {
  display:none!important;
}
#dashboard-view.dashboard-studio .dashboard-quick-actions__btn:hover,
#dashboard-view.dashboard-studio .dashboard-quick-actions__btn:focus-visible {
  border-color:#BAD0F2!important;box-shadow:0 5px 14px rgba(37,78,132,.075)!important;
  translate:0 -2px;
}
#dashboard-view.dashboard-studio #dashboard-new-activity:hover { border-color:#A4D9CD!important; }
#dashboard-view.dashboard-studio .dashboard-quick-actions__btn:focus-visible { outline:3px solid #A3C3FF;outline-offset:2px; }

/* Operations: a single featured workspace, with typography and hierarchy
   instead of a second matrix of uniform miniature cards. */
#dashboard-view.dashboard-studio .dashboard-workspace {
  position:relative;isolation:isolate;overflow:hidden;
  min-height:352px;padding:23px 24px 20px;border:0;border-radius:19px;
  background:linear-gradient(120deg,#224D92 0%,#152B56 62%,#101F43 100%);
  box-shadow:0 10px 27px rgba(20,43,87,.11);color:#FFF;
}
#dashboard-view.dashboard-studio .dashboard-workspace::before {
  content:"";position:absolute;right:-90px;top:-160px;width:370px;height:370px;
  border-radius:50%;border:1px solid rgba(198,225,255,.17);
  box-shadow:0 0 0 49px rgba(163,201,255,.025),0 0 0 100px rgba(163,201,255,.018);
  pointer-events:none;z-index:-1;
}
#dashboard-view.dashboard-studio .dashboard-workspace::after {
  content:"";position:absolute;right:-40px;bottom:-125px;width:270px;height:270px;
  border-radius:50%;background:radial-gradient(circle,rgba(68,117,203,.25),transparent 68%);
  pointer-events:none;z-index:-1;
}
#dashboard-view.dashboard-studio .dashboard-section-heading {
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:0 0 17px;
}
#dashboard-view.dashboard-studio .dashboard-section-heading__index {
  margin:0 0 6px;color:#8098B9;font-size:12px;font-weight:750;
  letter-spacing:.09em;text-transform:uppercase;
}
#dashboard-view.dashboard-studio .dashboard-section-heading h2 {
  margin:0;color:#162C4D;font-size:clamp(20px,1.5vw,24px);
  font-weight:750;line-height:1.2;letter-spacing:-.035em;
}
#dashboard-view.dashboard-studio .dashboard-section-heading--inverse h2 { color:#FFFFFF; }
#dashboard-view.dashboard-studio .dashboard-section-heading--inverse .dashboard-section-heading__index { color:#B5D0F9; }
#dashboard-view.dashboard-studio .dashboard-section-heading__aside {
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(196,216,255,.18);background:rgba(255,255,255,.075);
  color:#C4D9FA;font-size:12px;font-weight:550;white-space:nowrap;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;width:100%!important;max-width:none;margin:0;padding:0;align-items:stretch;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-widget {
  min-width:0;grid-column:span 1!important;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-metric-card--open { grid-column:span 2!important; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-metric-card--activities { grid-column:1/-1!important; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card {
  position:relative;min-width:0;min-height:135px;
  display:flex;flex-direction:column;gap:11px;
  margin:0;padding:15px 14px;border:1px solid rgba(196,218,255,.12);
  border-radius:15px;background:rgba(255,255,255,.075);
  box-shadow:none;color:#FFF;transition:background .18s ease,translate .18s var(--studio-ease);
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--open {
  background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.045));
  min-height:145px;padding:15px 19px;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--overdue { background:rgba(238,112,125,.09); }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--activities {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  min-height:76px;padding:12px 17px;gap:8px;
  background:rgba(13,32,65,.26);
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__top {
  display:flex;align-items:start;justify-content:space-between;gap:9px;
}
#dashboard-view.dashboard-studio .dashboard-metric-card__titles { min-width:0; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__eyebrow {
  color:#B5C9EA;font-size:12px;line-height:1.3;font-weight:650;letter-spacing:.035em;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__title {
  color:#FFF;font-size:clamp(14px,1.1vw,16px);line-height:1.27;font-weight:650;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__value-row {
  display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;
  margin-top:auto;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__value {
  color:#FFF;font-size:clamp(35px,3vw,46px);line-height:1;font-weight:740;letter-spacing:-.06em;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--open .dashboard-metric-card__value {
  font-size:clamp(49px,4.3vw,64px);
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--overdue .dashboard-metric-card__value { color:#FFAEB5; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__hint,
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__meta {
  color:#C9D7ED;font-size:12px;line-height:1.45;letter-spacing:0;text-transform:none;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__meta { margin-top:auto; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--activities .dashboard-metric-card__meta {
  grid-column:1/-1;margin:0;font-size:12px;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--activities .dashboard-metric-card__value-row {
  grid-column:2;grid-row:1;justify-content:end;
}
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--activities .dashboard-metric-card__value { font-size:38px; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-card-icon {
  width:36px;height:36px;flex:0 0 36px;
  border:1px solid rgba(199,225,255,.12);border-radius:11px;
  background:rgba(179,211,255,.11);color:#DBEAFE;
}
#dashboard-view.dashboard-studio .dashboard-workspace button.dashboard-metric-card:hover:not(:disabled),
#dashboard-view.dashboard-studio .dashboard-workspace button.dashboard-metric-card:focus-visible {
  background:rgba(255,255,255,.15);translate:0 -2px;box-shadow:0 7px 17px rgba(7,22,54,.12);
}
#dashboard-view.dashboard-studio .dashboard-workspace button.dashboard-metric-card .dashboard-card-icon {
  transition:background .2s ease,transform .25s var(--studio-ease);
}
#dashboard-view.dashboard-studio .dashboard-workspace button.dashboard-metric-card:hover .dashboard-card-icon,
#dashboard-view.dashboard-studio .dashboard-workspace button.dashboard-metric-card:focus-visible .dashboard-card-icon {
  background:rgba(211,234,255,.19);transform:rotate(-8deg) scale(1.07);
}

/* The four actual categories form an interactive curve, not a fabricated
   historical trend. Hover, focus or select a category for its exact value. */
#dashboard-view.dashboard-studio .studio-workload-chart:not([hidden]) {
  display:grid;grid-template-columns:minmax(0,1fr);
  align-items:stretch;gap:5px;margin-top:13px;padding:12px 2px 1px;
  border:0;border-top:1px solid rgba(199,222,255,.18);
  background:transparent;
}
#dashboard-view.dashboard-studio .studio-workload-chart__heading {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
#dashboard-view.dashboard-studio .studio-workload-chart__heading > strong {
  color:#EDF5FF;font-size:14px;font-weight:720;line-height:1.3;
}
#dashboard-view.dashboard-studio .studio-workload-chart__readout {
  display:flex;align-items:baseline;gap:9px;min-width:0;
}
#dashboard-view.dashboard-studio .studio-workload-chart__readout-value {
  color:#BCE8FF;font-size:25px;line-height:1;font-weight:760;letter-spacing:-.045em;
}
#dashboard-view.dashboard-studio .studio-workload-chart__readout-label { color:#B7CDEF;font-size:12px;white-space:nowrap; }
#dashboard-view.dashboard-studio .studio-workload-chart__visual {
  position:relative;display:block;height:clamp(105px,10vw,145px);min-width:0;overflow:visible;
}
#dashboard-view.dashboard-studio .studio-workload-chart__visual svg {
  display:block;width:100%;max-width:690px;height:100%;margin:0 auto;
  overflow:visible;
}
#dashboard-view.dashboard-studio .studio-workload-chart__grid {
  fill:none;stroke:rgba(197,221,255,.13);stroke-width:.9;stroke-dasharray:3 6;
}
#dashboard-view.dashboard-studio .studio-workload-chart__area {
  fill:url(#studio-workload-area);animation:studio-area-appear .5s ease both;
}
#dashboard-view.dashboard-studio .studio-workload-chart__line {
  fill:none;stroke:url(#studio-workload-line);stroke-width:3.5;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:100;stroke-dashoffset:100;
  animation:studio-line-draw .7s var(--studio-ease) forwards;
}
#dashboard-view.dashboard-studio .studio-workload-chart__marker {
  stroke:#D6F2FF;stroke-width:2.5;fill:#8DCBF3;
  opacity:.8;transform-box:fill-box;transform-origin:center;
  transition:fill .18s ease,stroke-width .18s ease,r .18s ease;
}
#dashboard-view.dashboard-studio .studio-workload-chart__marker.is-active {
  fill:#FFF;stroke:#8DE0F9;stroke-width:4;r:7;
}
#dashboard-view.dashboard-studio .studio-workload-chart__selectors {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;
}
#dashboard-view.dashboard-studio .studio-workload-chart__selector {
  min-width:0;min-height:30px;margin:0;padding:6px 5px;
  background:transparent;border:1px solid transparent;border-radius:9px;
  color:#C6DAF6;font:650 12px/1.25 "Open Sans",sans-serif;
  cursor:pointer;white-space:normal;text-align:center;
  transition:background .17s ease,border-color .17s ease,color .17s ease;
}
#dashboard-view.dashboard-studio .studio-workload-chart__selector:hover,
#dashboard-view.dashboard-studio .studio-workload-chart__selector[aria-pressed="true"] {
  background:rgba(170,207,255,.13);border-color:rgba(198,228,255,.18);color:#FFF;
}
#dashboard-view.dashboard-studio .studio-workload-chart__selector:focus-visible {
  outline:2px solid #BFEAFF;outline-offset:2px;
}

/* Date and daily insight live OUTSIDE the blue workspace. */
#dashboard-view.dashboard-studio .dashboard-daily-dock {
  min-width:0;min-height:0;align-self:stretch;
}
#dashboard-view.dashboard-studio .dashboard-daily-dock:has(.dashboard-daily-widgets:empty) { display:none; }
#dashboard-view.dashboard-studio .dashboard-daily-widgets {
  box-sizing:border-box;display:grid;
  grid-template-rows:minmax(min-content,1fr) minmax(min-content,1.13fr);
  gap:12px;width:100%;height:100%;min-height:min-content;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets > .dashboard-metric-card {
  box-sizing:border-box;display:flex;flex-direction:column;gap:11px;
  min-width:0;min-height:min-content;overflow:visible;
  padding:17px 15px;border:1px solid #E5EBF5;border-radius:18px;
  box-shadow:0 6px 17px rgba(30,60,100,.035);
  transition:border-color .22s ease,box-shadow .22s ease,translate .22s var(--studio-ease);
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets > .dashboard-metric-card:hover {
  border-color:#C8D9EF;box-shadow:0 9px 22px rgba(33,71,124,.065);translate:0 -2px;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card--date {
  background:linear-gradient(155deg,#F6F8FF 0%,#EEF2FC 100%);
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card--pill {
  background:linear-gradient(155deg,#EDF8F6 0%,#E5F4F2 100%);
  border-color:#D8EBE7;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__top { gap:8px;align-items:start; }
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__eyebrow {
  color:#7183A4;font-size:12px;font-weight:700;letter-spacing:.06em;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__title {
  color:#214266;font-size:16px;font-weight:720;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-card-icon {
  width:33px;height:33px;flex:0 0 33px;border-radius:10px;
  background:#E2EAF8;color:#446FB2;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card--pill .dashboard-card-icon { background:#D5EBE6;color:#2A8275; }
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-date {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:8px 11px;margin:auto 0;text-align:center;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-date__day {
  min-width:0;color:#1A3D76;font-size:clamp(44px,3.5vw,55px);line-height:.95;
  font-weight:780;letter-spacing:-.075em;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-date__meta { display:grid;justify-items:center;min-width:0;gap:1px; }
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-date__weekday {
  font-size:15px;font-weight:700;color:#19365E;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-date__month,
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-date__year {
  color:#647997;font-size:12px;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__pill-wrap {
  display:grid;place-items:center;min-width:0;min-height:0;flex:1;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__pill-text {
  margin:0;color:#285C59;font-size:14px;font-weight:560;line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere;
}
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__pill-text::before { display:none; }
#dashboard-view.dashboard-studio .dashboard-daily-widgets .dashboard-metric-card__meta {
  display:block;min-width:0;margin-top:auto;padding-top:9px;
  border-top:1px solid rgba(90,128,172,.13);
  color:#7386A0;font-size:12px;line-height:1.4;
}

/* The portfolio is a small data story: exact counters plus an interactive
   split of the combined company + lead record counts. */
#dashboard-view.dashboard-studio .dashboard-section--portfolio {
  position:relative;min-height:352px;display:flex;flex-direction:column;gap:11px;
  padding:20px 18px;border:1px solid #E2E5F4;border-radius:19px;
  background:linear-gradient(148deg,#F8F9FE,#F0F2FE 92%);
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-section-heading { margin:0 0 3px; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-section-heading__index { color:#777BAA; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-section-heading h2 { font-size:20px; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-counters {
  display:grid;grid-template-columns:1fr;gap:9px;
  width:100%!important;max-width:none;margin:0;padding:0;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card {
  display:flex;flex-direction:column;justify-content:space-between;
  min-width:0;min-height:100px;margin:0;padding:13px 15px;
  border:1px solid #E7EAF5;border-radius:14px;background:#FFF;
  box-shadow:0 3px 9px rgba(52,64,119,.026);color:#24436C;
  transition:translate .18s var(--studio-ease),box-shadow .18s ease,border-color .18s ease;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card--leads { background:#F6F6FF; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card__eyebrow {
  color:#687797;font-size:13px;font-weight:650;letter-spacing:0;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card__body { gap:12px;align-items:center;flex-direction:row; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card__value {
  color:#223F7D;font-size:clamp(32px,2.5vw,40px);font-weight:780;
  line-height:1;letter-spacing:-.045em;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card__label { color:#7A86A0;font-size:12px;line-height:1.35; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-card-icon {
  width:35px;height:35px;flex:0 0 35px;border-radius:11px;
  background:#E8EEFC;color:#4266B4;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card::after {
  right:16px;bottom:12px;color:#456CBA;font-size:12px;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio button.counter-card:hover:not(:disabled),
#dashboard-view.dashboard-studio .dashboard-section--portfolio button.counter-card:focus-visible {
  border-color:#BED2F3;background:#F7FAFF;
  translate:0 -2px;box-shadow:0 6px 15px rgba(37,69,116,.075);
}
#dashboard-view.dashboard-studio .dashboard-portfolio-comparison {
  display:grid;justify-items:center;gap:14px;
  padding:15px 1px 1px;margin-top:auto;min-width:0;
}
#dashboard-view.dashboard-studio .dashboard-portfolio-comparison[hidden] { display:none; }
#dashboard-view.dashboard-studio .studio-portfolio-donut {
  display:grid;place-items:center;position:relative;isolation:isolate;
  width:clamp(125px,10.8vw,176px);aspect-ratio:1;border-radius:50%;
  background:conic-gradient(#5E80DE 0 var(--studio-company-share),#31A99F var(--studio-company-share) 100%);
  box-shadow:0 9px 20px rgba(53,81,147,.09),inset 0 0 0 1px rgba(255,255,255,.36);
  animation:studio-donut-reveal .48s var(--studio-ease) both;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut::before {
  content:"";position:absolute;inset:16%;z-index:0;
  border-radius:50%;background:linear-gradient(145deg,#FCFDFF,#EFF2FC);
  box-shadow:inset 0 0 0 1px rgba(54,82,136,.08);
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__center {
  position:relative;z-index:1;display:grid;justify-items:center;gap:2px;
  min-width:0;padding:0 4px;text-align:center;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__amount {
  color:#24447E;font-size:clamp(24px,2.1vw,33px);line-height:1;
  font-weight:790;letter-spacing:-.055em;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__caption {
  color:#677BA1;font-size:12px;font-weight:650;line-height:1.22;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__legend {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;width:100%;max-width:340px;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category {
  display:grid;gap:6px;min-width:0;min-height:59px;margin:0;
  padding:11px;border:1px solid #DFE5F3;border-radius:12px;
  background:rgba(255,255,255,.68);color:#385279;
  cursor:pointer;text-align:left;
  transition:background .18s ease,border-color .18s ease,translate .18s var(--studio-ease);
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category:hover,
#dashboard-view.dashboard-studio .studio-portfolio-donut__category[aria-pressed="true"] {
  border-color:#B8C9EA;background:#FFF;translate:0 -2px;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category:focus-visible {
  outline:2px solid #527BCA;outline-offset:2px;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category-name {
  display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category-name::before {
  content:"";display:block;width:8px;height:8px;flex:0 0 8px;
  border-radius:3px;background:#5E80DE;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category--leads .studio-portfolio-donut__category-name::before {
  background:#31A99F;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category-stats {
  display:flex;align-items:baseline;justify-content:space-between;gap:5px;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category-stats strong {
  color:#244376;font-size:18px;font-weight:760;line-height:1;
}
#dashboard-view.dashboard-studio .studio-portfolio-donut__category-stats small {
  color:#7487A3;font-size:12px;font-weight:620;
}

/* Team is a purposeful expandable analytics rail. */
#dashboard-view.dashboard-studio .dashboard-team-kpis {
  overflow:hidden;border:1px solid #DEE7F4;border-radius:15px;
  background:#F7F9FE;box-shadow:none;
}
#dashboard-view.dashboard-studio .dashboard-team-kpis__summary {
  min-height:70px;display:flex;align-items:center;
  padding:15px 20px;background:linear-gradient(90deg,#F2F6FE,#F8FAFF);
  transition:background .18s ease;
}
#dashboard-view.dashboard-studio .dashboard-team-kpis__summary:hover { background:#EAF2FF; }
#dashboard-view.dashboard-studio .dashboard-team-kpis__heading::before {
  width:39px;height:39px;flex:0 0 39px;border-radius:12px;
  background:#315FA8;color:#FFF;font-size:22px;
}
#dashboard-view.dashboard-studio .dashboard-team-kpis__title {
  color:#203A60;font-size:18px;font-weight:750;
}
#dashboard-view.dashboard-studio .dashboard-team-kpis__toggle {
  border-radius:12px;background:#FFF;border:1px solid #E5EAF5;
  padding:9px 12px;box-shadow:0 2px 6px rgba(33,60,111,.04);
}
#dashboard-view.dashboard-studio .dashboard-team-kpis__toggle-label { color:#375A92;font-size:13px;font-weight:650; }
#dashboard-view.dashboard-studio .dashboard-team-kpis__content { padding:16px;background:#F7F9FE; }
#dashboard-view.dashboard-studio .dashboard-team-kpis__grid { gap:12px; }
#dashboard-view.dashboard-studio .dashboard-team-kpis__member { border:1px solid #E1E9F5;border-radius:14px;box-shadow:0 3px 10px rgba(33,57,101,.03); }

/* Analytics: unlike the old same-size four cards, each module has its own
   content grammar. Opportunity is the visual feature, notes a working list,
   guides a resource sheet, and changelog a horizontal release feed. */
#dashboard-view.dashboard-studio .dashboard-section--resources {
  padding:4px 0 0;border:0;background:transparent;
}
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-section-heading { margin-bottom:12px; }
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics {
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:13px;align-items:stretch;
  width:100%!important;max-width:none;margin:0;padding:0;
}
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-widget {
  min-width:0;grid-column:span 4!important;
}
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-business-card { grid-column:span 5!important; }
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--notes { grid-column:span 3!important; }
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--guides { grid-column:span 4!important; }
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--changelog { grid-column:1/-1!important; }
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card {
  position:relative;min-height:256px;display:flex;flex-direction:column;gap:0;
  margin:0;padding:20px;border:1px solid #E3E8F2;border-radius:17px;
  box-shadow:0 3px 12px rgba(26,51,92,.025);
  transition:translate .18s var(--studio-ease),box-shadow .18s ease,border-color .18s ease;
}
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--notes { background:#F3F6FF; }
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--guides { background:#F0F8F6; }
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog {
  min-height:91px;padding:16px 19px;
  background:linear-gradient(90deg,#FFF,#FBFCFF);
}
#dashboard-view.dashboard-studio .dashboard-quick-card__header { gap:12px; }
#dashboard-view.dashboard-studio .dashboard-quick-card__eyebrow {
  color:#7785A0;font-size:12px;font-weight:720;letter-spacing:.065em;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__title {
  color:#18365F;font-size:20px;font-weight:740;letter-spacing:-.025em;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__visual {
  width:37px;height:37px;flex:0 0 37px;border-radius:11px;
  background:rgba(255,255,255,.75);color:#4874B7;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__body { margin-top:14px; }
#dashboard-view.dashboard-studio .dashboard-quick-card__body--items { display:grid;gap:8px; }
#dashboard-view.dashboard-studio .dashboard-quick-card__item {
  min-height:40px;margin:0;padding:9px 11px;
  border:1px solid rgba(109,145,193,.14);border-radius:10px;
  background:rgba(255,255,255,.81);color:#1F3F6F;
  transition:background .16s ease,border-color .16s ease,translate .16s ease;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__item:hover,
#dashboard-view.dashboard-studio .dashboard-quick-card__item:focus-visible {
  background:#FFF;border-color:#BDCEE9;translate:3px 0;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__item-title { font-size:13px;font-weight:620;line-height:1.35; }
#dashboard-view.dashboard-studio .dashboard-quick-card__item-meta { font-size:12px;color:#7889A4; }
#dashboard-view.dashboard-studio .dashboard-quick-card__more {
  display:block;margin-top:auto;padding-top:14px;color:#416CAC;font-size:13px;font-weight:700;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__release { display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0; }
#dashboard-view.dashboard-studio .dashboard-quick-card__version {
  padding:4px 9px;border-radius:7px;background:#EAF0FF;color:#3158A7;
  font-size:13px;font-weight:750;
}
#dashboard-view.dashboard-studio .dashboard-quick-card__date { font-size:12px;color:#8490A4; }
#dashboard-view.dashboard-studio .dashboard-quick-card__list { display:grid;gap:5px;margin-top:9px; }
#dashboard-view.dashboard-studio .dashboard-quick-card__list li {
  padding:0;border:0;background:none;color:#576A85;font-size:13px;line-height:1.5;
}
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog .dashboard-quick-card__body {
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:6px 0 0;
}
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog .dashboard-quick-card__list {
  margin:0;display:flex;flex-wrap:wrap;gap:8px 17px;flex:1;
}
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog .dashboard-quick-card__list li {
  max-width:550px;
}
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog .dashboard-quick-card__more {
  position:absolute;top:20px;right:20px;margin:0;padding:0;
}
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog .dashboard-quick-card__header { padding-right:110px; }
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card:hover,
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card:focus-visible {
  border-color:#C8D7ED;box-shadow:0 9px 22px rgba(32,62,104,.065);translate:0 -2px;
}

/* Notes are a quiet editorial notebook, not a stack of navigational boxes. */
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--notes {
  background:linear-gradient(150deg,#F5F7FF,#EAF0FE);
  border-color:#DDE6FA;
}
#dashboard-view.dashboard-studio .studio-notes-list.dashboard-quick-card__body--items {
  display:grid;gap:0;padding:0 2px;margin-top:13px;
  border-top:1px solid rgba(84,120,183,.16);
}
#dashboard-view.dashboard-studio .dashboard-quick-card--notes .studio-note-row.dashboard-quick-card__item {
  display:flex;align-items:center;gap:13px;min-height:47px;
  margin:0;padding:10px 3px;border:0;border-bottom:1px solid rgba(84,120,183,.16);
  border-radius:0;background:transparent;box-shadow:none;translate:none;
  transition:background .15s ease,padding-left .15s ease;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--notes .studio-note-row::before { display:none; }
#dashboard-view.dashboard-studio .dashboard-quick-card--notes .studio-note-row:hover,
#dashboard-view.dashboard-studio .dashboard-quick-card--notes .studio-note-row:focus-visible {
  padding-left:8px;background:rgba(255,255,255,.47);
}
#dashboard-view.dashboard-studio .dashboard-quick-card--notes .studio-note-row:focus-visible {
  outline:2px solid #8FB1E8;outline-offset:-1px;
}
#dashboard-view.dashboard-studio .studio-note-row__number {
  flex:0 0 29px;color:#7290C0;font-size:12px;font-weight:780;
  letter-spacing:.06em;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--notes .studio-note-row .dashboard-quick-card__item-title {
  grid-column:auto;min-width:0;color:#2A4571;font-size:14px;
  font-weight:650;line-height:1.4;white-space:normal;
}

/* Guides are an asymmetric set of learning tiles with independent geometry. */
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--guides {
  background:linear-gradient(145deg,#F0F9F6,#E8F5F1);
  border-color:#D6EDE5;
}
#dashboard-view.dashboard-studio .studio-guide-gallery.dashboard-quick-card__body--items {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;align-content:start;margin-top:13px;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile.dashboard-quick-card__item {
  position:relative;display:flex;flex-direction:column;align-items:start;
  min-width:0;min-height:105px;gap:7px;padding:13px;
  border:1px solid #D0E6DE;border-radius:13px;
  background:rgba(255,255,255,.7);box-shadow:none;translate:none;
  transition:background .18s ease,border-color .18s ease,translate .18s var(--studio-ease);
}
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile:first-child {
  grid-column:1/-1;min-height:80px;display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;gap:12px;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile::before { display:none; }
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile:hover,
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile:focus-visible {
  background:#FFF;border-color:#99CDBD;translate:0 -3px;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile:focus-visible {
  outline:2px solid #3E9684;outline-offset:2px;
}
#dashboard-view.dashboard-studio .studio-guide-tile__number {
  color:#489A8C;font-size:21px;font-weight:790;
  line-height:1;letter-spacing:-.055em;
}
#dashboard-view.dashboard-studio .studio-guide-tile .dashboard-quick-card__item-copy { display:grid;gap:4px;min-width:0; }
#dashboard-view.dashboard-studio .studio-guide-tile .dashboard-quick-card__item-title {
  color:#285C56;font-size:13px;font-weight:730;line-height:1.35;
  white-space:normal;overflow-wrap:anywhere;
}
#dashboard-view.dashboard-studio .studio-guide-tile .dashboard-quick-card__item-meta {
  color:#70928A;font-size:12px;line-height:1.3;
}
#dashboard-view.dashboard-studio .studio-guide-tile__launch {
  margin-top:auto;align-self:end;color:#378C7F;font-size:17px;line-height:1;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile:first-child .studio-guide-tile__launch { margin:0; }

/* Changelog is a real release spotlight: deep-blue identity panel, milestones
   and the primary navigation affordance anchored at bottom-right. */
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card--changelog {
  display:grid;grid-template-columns:minmax(185px,27%) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;gap:0;
  min-height:190px;padding:0;overflow:hidden;
  border-color:#DCE6F4;border-radius:18px;
  background:linear-gradient(115deg,#F7FAFF,#EDF3FD);
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__header {
  grid-column:1;grid-row:1/3;display:flex;flex-direction:column;
  align-items:start;gap:16px;position:relative;
  padding:22px 22px 20px;
  background:linear-gradient(150deg,#274D8C,#172E60);
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__header::after {
  content:"";position:absolute;right:-35px;bottom:-74px;
  width:155px;height:155px;border:1px solid rgba(211,232,255,.15);
  border-radius:50%;pointer-events:none;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__title {
  color:#FFF;font-size:23px;line-height:1.2;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__visual {
  position:absolute;top:19px;right:18px;background:rgba(255,255,255,.09);
  border:1px solid rgba(223,235,255,.15);color:#D7E8FF;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__visual[data-quick-icon="release"]::before {
  content:"✦";font-size:20px;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__release {
  display:grid;justify-items:start;gap:8px;margin:auto 0 0;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__version {
  padding:7px 12px;border-radius:10px;
  background:rgba(192,216,255,.17);color:#F5F9FF;
  font-size:19px;font-weight:770;letter-spacing:-.035em;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__date {
  color:#C4D8F5;font-size:12px;font-weight:570;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .studio-changelog-body {
  grid-column:2;grid-row:1;display:block;min-width:0;
  margin:0;padding:24px 25px 7px;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__list {
  display:grid;gap:14px;margin:0;padding:0;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__list li {
  display:block;position:relative;max-width:none;
  padding:1px 0 1px 23px;border:0;background:none;
  color:#3F587C;font-size:14px;line-height:1.5;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__list li::before {
  content:"";position:absolute;top:8px;left:0;width:9px;height:9px;
  border-radius:50%;background:#4F8FCC;box-shadow:0 0 0 4px #E0EEFC;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .studio-changelog-footer {
  grid-column:2;grid-row:2;display:flex;justify-content:flex-end;
  padding:4px 20px 18px;
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__more {
  display:inline-flex;position:static;margin:0;padding:10px 13px;
  border-radius:11px;background:#E2ECFC;color:#2E5794;
  font-size:13px;font-weight:740;
  transition:background .18s ease,translate .18s var(--studio-ease);
}
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog:hover .dashboard-quick-card__more,
#dashboard-view.dashboard-studio .dashboard-quick-card--changelog:focus-visible .dashboard-quick-card__more {
  background:#D3E2FA;translate:2px 0;
}

/* Conversion gauge and real-value readouts replace a static opportunity box. */
#dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-business-card {
  position:relative;overflow:hidden;min-height:256px;display:flex;flex-direction:column;
  padding:20px;border:1px solid #34599D;border-radius:17px;
  background:radial-gradient(circle at 100% 0%,rgba(123,159,241,.32),transparent 48%),
    linear-gradient(138deg,#3769C0,#183B81 90%);
  color:#FFF;box-shadow:0 6px 20px rgba(35,73,137,.09);
  transition:translate .18s var(--studio-ease),box-shadow .18s ease;
}
#dashboard-view.dashboard-studio .dashboard-business-card .insight-card__header {
  display:flex;align-items:start;gap:13px;
  padding:0;border:0;background:none;
}
#dashboard-view.dashboard-studio .dashboard-business-card .insight-card__eyebrow {
  color:#C7DAFF;font-size:12px;font-weight:750;letter-spacing:.06em;
}
#dashboard-view.dashboard-studio .dashboard-business-card .insight-card__title {
  color:#FFF!important;font-size:21px;font-weight:750;line-height:1.2;
}
#dashboard-view.dashboard-studio .dashboard-business-card .insight-card__subtitle {
  color:#DAE7FF!important;font-size:13px;line-height:1.4;
}
#dashboard-view.dashboard-studio .studio-opportunity-mark {
  display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;
  border:1px solid rgba(215,232,255,.27);border-radius:12px;
  background:rgba(255,255,255,.1);color:#FFF;font-size:21px;
}
#dashboard-view.dashboard-studio .studio-opportunity-overview {
  display:flex;justify-content:space-between;align-items:center;
  min-height:108px;gap:15px;margin:10px 0 3px;
}
#dashboard-view.dashboard-studio .studio-opportunity-count { display:grid;gap:2px; }
#dashboard-view.dashboard-studio .studio-opportunity-number {
  color:#FFF;font-size:clamp(42px,3.1vw,55px);line-height:1;font-weight:760;letter-spacing:-.055em;
}
#dashboard-view.dashboard-studio .studio-opportunity-caption { color:#D1E1FF;font-size:13px;font-weight:600; }
#dashboard-view.dashboard-studio .studio-opportunity-gauge {
  display:grid;place-items:center;flex:0 0 100px;width:100px;height:100px;
  border-radius:50%;
  --studio-gauge-current:var(--closure-rate);
  background:conic-gradient(#A9EDF0 var(--studio-gauge-current),rgba(228,240,255,.2) var(--studio-gauge-current));
  box-shadow:0 0 0 1px rgba(255,255,255,.1);
  animation:studio-gauge-rise .65s var(--studio-ease) both;
}
#dashboard-view.dashboard-studio .studio-opportunity-gauge__inner {
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  width:77px;height:77px;border-radius:50%;
  background:#2753A1;color:#FFF;
}
#dashboard-view.dashboard-studio .studio-opportunity-gauge__inner strong { font-size:18px;line-height:1.15;letter-spacing:-.025em; }
#dashboard-view.dashboard-studio .studio-opportunity-gauge__inner small { font-size:12px;color:#C9E0FF; }
#dashboard-view.dashboard-studio .dashboard-business-card .dashboard-opportunity-progress {
  height:5px;margin:5px 0 12px;border-radius:999px;background:rgba(255,255,255,.23);overflow:hidden;
}
#dashboard-view.dashboard-studio .dashboard-opportunity-progress > span {
  display:block;height:100%;width:var(--dashboard-rate,0%);
  border-radius:inherit;background:#A9EDF0;transform-origin:left;
  animation:studio-progress-rise .55s var(--studio-ease) both;
}

/* Data visuals animate briefly; cards themselves no longer fade/reflow on each
   refresh, so repeated data updates stay responsive and easy to scan. */
@property --studio-gauge-current {
  syntax:"<percentage>";
  inherits:false;
  initial-value:0%;
}
@keyframes studio-gauge-rise {
  from { --studio-gauge-current:0%; }
  to { --studio-gauge-current:var(--closure-rate); }
}
@keyframes studio-progress-rise {
  from { transform:scaleX(0); }
  to { transform:scaleX(1); }
}
@keyframes studio-line-draw {
  from { stroke-dashoffset:100; }
  to { stroke-dashoffset:0; }
}
@keyframes studio-area-appear {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes studio-donut-reveal {
  from { opacity:.7;transform:scale(.94); }
  to { opacity:1;transform:scale(1); }
}
#dashboard-view.dashboard-studio .dashboard-business-card .opportunity-stats {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:auto;
}
#dashboard-view.dashboard-studio .dashboard-business-card .opportunity-stats > div {
  min-width:0;padding:10px 11px;border:1px solid rgba(231,243,255,.16);
  border-radius:11px;background:rgba(255,255,255,.10);
}
#dashboard-view.dashboard-studio .dashboard-business-card .opportunity-stats dt {
  color:#CBDEFA;font-size:12px;font-weight:650;line-height:1.35;
}
#dashboard-view.dashboard-studio .dashboard-business-card .opportunity-stats dd {
  color:#FFF;font-size:clamp(14px,1.2vw,19px);font-weight:740;
  line-height:1.25;margin-top:5px;overflow-wrap:anywhere;
}
#dashboard-view.dashboard-studio button.dashboard-business-card:hover:not(:disabled),
#dashboard-view.dashboard-studio button.dashboard-business-card:focus-visible {
  translate:0 -2px;box-shadow:0 12px 26px rgba(23,64,132,.17);
}

/* Preserve readable fallback cards if the snapshot contains unfamiliar widgets. */
#dashboard-view.dashboard-studio .dashboard-widget { min-width:0; }
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-counters > .dashboard-quick-card {
  grid-column:1/-1;min-height:200px;
}
#dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-counters > :is(.dashboard-metric-card,.insight-card) { min-height:145px; }
#dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > :is(.counter-card,.insight-card,.dashboard-quick-card) {
  grid-column:span 2!important;
}
#dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > :is(.counter-card,.dashboard-metric-card) { min-height:180px; }

@media(max-width:1480px) {
  #dashboard-view.dashboard-studio .dashboard-canvas > .dashboard-workspace { grid-column:span 7; }
  #dashboard-view.dashboard-studio .dashboard-canvas > .dashboard-daily-dock { grid-column:span 5; }
  #dashboard-view.dashboard-studio .dashboard-canvas > .dashboard-section--portfolio {
    grid-column:1/-1;min-height:0;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(235px,32%);
    grid-template-rows:auto 1fr;gap:14px 20px;align-items:center;
  }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-section-heading { grid-column:1/-1;margin:0; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-counters {
    grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-portfolio-comparison {
    grid-column:2;grid-row:2;max-width:none;margin:0;padding:0;
    grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;gap:15px;
  }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .studio-portfolio-donut { width:142px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .studio-portfolio-donut__legend { grid-template-columns:1fr;gap:7px; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-business-card { grid-column:span 6!important; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--notes { grid-column:span 6!important; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--guides { grid-column:span 6!important; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--changelog {
    grid-column:span 6!important;display:flex;flex-direction:column;min-height:256px;
  }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__header {
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;gap:9px;flex:0 0 auto;padding:17px 19px;
  }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__header .dashboard-quick-card__visual {
    position:static;grid-column:2;grid-row:1;
  }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__release {
    grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:12px;margin:0;
  }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__version { font-size:16px; }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .studio-changelog-body {
    display:block;flex:1 1 auto;padding:16px 19px 8px;
  }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .studio-changelog-footer { padding:0 19px 17px; }
}
@media(max-width:1040px) {
  #dashboard-view.dashboard-studio .dashboard-canvas > :is(.dashboard-workspace,.dashboard-daily-dock,.dashboard-section--portfolio) { grid-column:1/-1; }
  #dashboard-view.dashboard-studio .dashboard-daily-dock { min-height:0; }
  #dashboard-view.dashboard-studio .dashboard-daily-widgets {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;
    height:auto;min-height:0;gap:12px;
  }
  #dashboard-view.dashboard-studio .dashboard-daily-widgets > .dashboard-metric-card { min-height:176px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio { display:flex;flex-direction:column;align-items:stretch; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-counters { width:100%; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-portfolio-comparison {
    display:grid;grid-template-columns:180px minmax(0,1fr);justify-items:center;
    max-width:500px;width:100%;margin:0 auto;
  }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .studio-portfolio-donut { width:154px; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-widget { grid-column:span 6!important; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--changelog { grid-column:span 6!important; }
}
@media(max-width:900px) {
  #signed-in #app-navigation-drawer.app-drawer { top:var(--sfera-topbar-height)!important; }
  #signed-in #app-navigation-backdrop:not([hidden]) { top:var(--sfera-topbar-height)!important; }
  #signed-in .app-topbar .portal-topbar__logo { width:54px;height:46px; }
  #signed-in .app-topbar #app-menu-toggle { width:38px;min-width:38px;min-height:38px;padding:7px; }
  #signed-in .app-topbar .portal-topbar__menu-bars { background:#E8F2FF; }
  #signed-in .app-content { padding-top:16px; }
  #dashboard-view.dashboard-studio .dashboard-canvas { width:calc(100% - 22px);padding:15px;gap:12px; }
}
@media(max-width:680px) {
  #signed-in .app-topbar { padding:0 11px!important; }
  #signed-in .app-topbar .portal-topbar__actions { gap:7px; }
  #signed-in .app-topbar #account-menu-toggle.account-toggle {
    max-width:42px;width:40px;padding:3px;justify-content:center;
  }
  #signed-in .app-topbar #account-menu-toggle .account-toggle__name { display:none; }
  #dashboard-view.dashboard-studio .dashboard-canvas { padding:13px;gap:12px;border-radius:15px; }
  #dashboard-view.dashboard-studio .dashboard-welcome {
    min-height:56px;flex-wrap:wrap;gap:10px;
  }
  #dashboard-view.dashboard-studio .dashboard-welcome h1 { font-size:25px!important; }
  #dashboard-view.dashboard-studio .dashboard-welcome__actions > button { min-height:35px;height:35px;max-height:35px; }
  #dashboard-view.dashboard-studio .dashboard-quick-actions { grid-template-columns:1fr;gap:9px; }
  #dashboard-view.dashboard-studio .dashboard-quick-actions__btn,
  #dashboard-view.dashboard-studio #dashboard-new-task.dashboard-quick-actions__btn--task-refined,
  #dashboard-view.dashboard-studio #dashboard-new-activity.dashboard-quick-actions__btn--activity { min-height:62px; }
  #dashboard-view.dashboard-studio .dashboard-workspace { min-height:0;padding:20px 17px; }
  #dashboard-view.dashboard-studio .dashboard-section-heading__aside { display:none; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets { grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-metric-card--open { grid-column:1/-1!important;min-height:157px; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-metric-card--today,
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-metric-card--overdue { min-height:165px; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-metric-card--activities { grid-column:1/-1!important; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card { padding:13px; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card__title { font-size:14px; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-metric-card--open .dashboard-metric-card__value { font-size:55px; }
  #dashboard-view.dashboard-studio .studio-workload-chart:not([hidden]) { gap:5px;margin-top:12px;padding:12px 0 0; }
  #dashboard-view.dashboard-studio .studio-workload-chart__visual { height:100px; }
  #dashboard-view.dashboard-studio .studio-workload-chart__selectors { gap:4px; }
  #dashboard-view.dashboard-studio .studio-workload-chart__selector { padding:6px 2px;font-size:12px; }
  #dashboard-view.dashboard-studio .dashboard-daily-widgets { grid-template-columns:1fr; }
  #dashboard-view.dashboard-studio .dashboard-daily-widgets > .dashboard-metric-card { min-height:151px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio { padding:18px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-counters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card { min-height:128px;padding:13px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card__body { align-items:start;flex-direction:column;gap:7px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .counter-card__value { font-size:36px; }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .dashboard-portfolio-comparison {
    grid-template-columns:1fr;justify-items:center;gap:12px;
  }
  #dashboard-view.dashboard-studio .dashboard-section--portfolio .studio-portfolio-donut__legend {
    grid-template-columns:repeat(2,minmax(0,1fr));width:100%;
  }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-widget,
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-business-card,
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--notes,
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--guides {
    grid-column:1/-1!important;
  }
  #dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-quick-card { min-height:0;padding:18px; }
  #dashboard-view.dashboard-studio .dashboard-analytics > .dashboard-business-card { min-height:280px;padding:19px; }
  #dashboard-view.dashboard-studio .dashboard-section--resources .dashboard-analytics > .dashboard-quick-card--changelog {
    grid-column:1/-1!important;min-height:0;padding:0;
  }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .dashboard-quick-card__header { padding:17px; }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .studio-changelog-body { padding:16px 17px 8px; }
  #dashboard-view.dashboard-studio .dashboard-quick-card--changelog .studio-changelog-footer { padding:0 17px 17px; }
  #dashboard-view.dashboard-studio .dashboard-team-kpis__summary { padding:12px 14px; }
  #dashboard-view.dashboard-studio .dashboard-team-kpis__title { font-size:16px; }
}
@media(max-width:360px) {
  #dashboard-view.dashboard-studio .dashboard-canvas { padding:10px; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets { grid-template-columns:1fr; }
  #dashboard-view.dashboard-studio .dashboard-workspace .dashboard-widgets > .dashboard-widget { grid-column:1/-1!important; }
  #dashboard-view.dashboard-studio .studio-workload-chart__selectors { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #dashboard-view.dashboard-studio .studio-workload-chart__heading { flex-wrap:wrap; }
  #dashboard-view.dashboard-studio .studio-guide-gallery.dashboard-quick-card__body--items { grid-template-columns:1fr; }
  #dashboard-view.dashboard-studio .dashboard-quick-card--guides .studio-guide-tile:first-child {
    grid-column:1;display:flex;flex-direction:column;align-items:start;
  }
  #dashboard-view.dashboard-studio .dashboard-business-card .opportunity-stats { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  #dashboard-view.dashboard-studio *,
  #signed-in .app-topbar #collaboration-bell,
  #signed-in .app-topbar #account-menu-toggle {
    scroll-behavior:auto!important;transition:none!important;animation:none!important;
  }
  #dashboard-view.dashboard-studio .studio-opportunity-gauge { --studio-gauge-current:var(--closure-rate); }
}
