.marketing-metric--late { border-color: #edb5b5 !important; }
.marketing-metric--late > strong { color: #bf3b3b; }
#main.marketing-workspace .marketing-status-filter { width: 190px; max-width: 100%; flex: 0 0 auto; }
.marketing-section-heading > div:first-child { flex: 1; min-width: 0; }
.marketing-insights-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.marketing-insight-card { min-width: 0; border: 1px solid var(--ictus-border); border-radius: 12px; padding: 20px; background: var(--ictus-white); }
.marketing-insight-card--wide { grid-column: 1 / -1; }
.marketing-insight-card .marketing-section-heading { margin-bottom: 16px; }
.marketing-area-row + .marketing-area-row { border-top: 1px solid var(--ictus-border); padding-top: 17px; margin-top: 17px; }
.marketing-area-row strong, .marketing-area-row small { display: block; }
.marketing-area-row strong { color: var(--ictus-blue); font-size: .84rem; }
.marketing-area-row small { font-size: .7rem; color: var(--marketing-muted); margin-top: 5px; }
.marketing-area-bar { display: flex; height: 9px; border-radius: 10px; background: var(--ictus-border); overflow: hidden; margin: 13px 0 8px; }
.marketing-area-bar .is-completed, .marketing-chart-legend .is-completed { background: #329d70; }
.marketing-area-bar .is-open, .marketing-chart-legend .is-open { background: var(--ictus-ocean); }
.marketing-area-row footer { display: flex; justify-content: space-between; gap: 10px; font-size: .7rem; color: var(--marketing-muted); }
.marketing-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: .65rem; color: var(--marketing-muted); }
.marketing-chart-legend span { display: flex; align-items: center; gap: 5px; }
.marketing-chart-legend i { width: 8px; height: 8px; background: var(--ictus-border); border-radius: 50%; }
.marketing-insight-empty { font-size: .78rem; color: var(--marketing-muted); padding: 20px 0; }
#main.marketing-workspace .marketing-deadline-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; max-width: none; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ictus-border); border-radius: 0; text-align: left; background: transparent; color: var(--ictus-blue); }
.marketing-deadline-row > span:nth-child(2) { flex: 1; min-width: 0; }
.marketing-deadline-row > span:nth-child(2) strong { display: block; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.marketing-deadline-row > span:nth-child(2) small { display: block; font-size: .68rem; color: var(--marketing-muted); margin-top: 5px; }
.marketing-deadline-date { flex: 0 0 44px; width: 44px; padding: 8px 4px; text-align: center; border-radius: 9px; background: rgba(var(--ictus-cyan-rgb),.1); }
.marketing-deadline-date strong, .marketing-deadline-date small { display: block; line-height: 1.2; }
.marketing-deadline-date strong { font-size: 1.1rem; }
.marketing-deadline-date small { font-size: .63rem; margin-top: 4px; }
.marketing-deadline-date.is-late { color: #b13b3b; background: rgba(204,64,64,.08); }
.marketing-stage-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); gap: 12px; }
.marketing-stage-summary article { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; padding: 15px; border-radius: 10px; background: var(--ictus-screen); color: var(--ictus-blue); }
.marketing-stage-summary article > span { font-size: .77rem; font-weight: 600; }
.marketing-stage-summary article > strong { font-size: 1.6rem; line-height: 1; }
.marketing-stage-summary article > small { font-size: .67rem; color: var(--marketing-muted); }
.marketing-date-range { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; border: 1px solid var(--ictus-border); border-radius: 10px; padding: 16px; margin-bottom: 22px; background: var(--ictus-screen); }
.marketing-date-range > div { flex: 0 1 190px; min-width: 0; }
.marketing-date-range label { display: block; font-size: .73rem; font-weight: 600; color: var(--ictus-blue); margin-bottom: 6px; }
.marketing-date-range > small { color: var(--marketing-muted); font-size: .7rem; margin-bottom: 10px; }
.marketing-timeline-group { margin-top: 24px; }
.marketing-timeline-group > header { display: flex; align-items: center; gap: 10px; color: var(--ictus-ocean); padding-bottom: 14px; }
.marketing-timeline-group > header h5 { font-size: 1rem; margin: 0; }
.marketing-timeline-group > header > span { font-size: .7rem; color: var(--marketing-muted); margin-left: auto; }
.marketing-timeline-card { border: 1px solid var(--ictus-border); border-radius: 12px; padding: 20px; margin-bottom: 16px; background: var(--ictus-white); }
#main.marketing-workspace .marketing-timeline-card__heading { display: flex; align-items: flex-start; gap: 12px; justify-content: flex-start; width: 100%; max-width: none; padding: 0; text-align: left; border: 0; background: transparent; color: var(--ictus-blue); }
.marketing-timeline-card__heading > span:first-child { flex: 1; min-width: 0; }
.marketing-timeline-card__heading strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.marketing-timeline-card__heading small { display: block; font-size: .73rem; margin-top: 6px; color: var(--marketing-muted); }
.marketing-timeline-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.marketing-timeline-steps li { display: flex; align-items: flex-start; gap: 9px; flex: 1; min-width: 0; position: relative; padding: 12px; border-radius: 10px; background: var(--ictus-screen); border: 1px solid var(--ictus-border); }
.marketing-timeline-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: var(--ictus-border); color: var(--marketing-muted); font-size: .7rem; font-weight: 700; }
.marketing-timeline-steps li > div { min-width: 0; }
.marketing-timeline-steps strong { display: block; color: var(--ictus-blue); font-size: .75rem; overflow-wrap: anywhere; }
.marketing-timeline-steps small { display: block; margin-top: 5px; font-size: .65rem; color: var(--marketing-muted); }
.marketing-timeline-steps .is-completed .marketing-timeline-step-dot { background: #329d70; color: #fff; }
.marketing-timeline-steps .is-current { border-color: var(--ictus-ocean); background: rgba(var(--ictus-cyan-rgb),.06); }
.marketing-timeline-steps .is-current .marketing-timeline-step-dot { background: var(--ictus-ocean); color: #fff; }
.marketing-timeline-card > footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ictus-border); padding-top: 14px; font-size: .72rem; color: var(--marketing-muted); }
body.theme-dark .marketing-insight-card, body.theme-dark .marketing-timeline-card { background: var(--ictus-dark-surface); }
body.theme-dark .marketing-area-row strong, body.theme-dark .marketing-date-range label, body.theme-dark #main.marketing-workspace .marketing-deadline-row, body.theme-dark #main.marketing-workspace .marketing-timeline-card__heading, body.theme-dark .marketing-timeline-steps strong { color: var(--ictus-screen); }
body.theme-dark .marketing-date-range, body.theme-dark .marketing-timeline-steps li, body.theme-dark .marketing-stage-summary article { background: var(--ictus-midnight); color: var(--ictus-screen); }
body.theme-dark .marketing-timeline-steps .is-current { background: rgba(var(--ictus-cyan-rgb),.09); }
body.theme-dark .marketing-date-range input { color-scheme: dark; }
@media (max-width: 767.98px) {
  .marketing-metrics > .marketing-metric:last-child { grid-column: 1 / -1; }
  .marketing-insights-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .marketing-insight-card { padding: 16px; }
  .marketing-date-range { gap: 12px; padding: 12px; }
  .marketing-date-range > div { flex: 1 1 110px; }
  .marketing-date-range > small { flex-basis: 100%; margin: 0; }
  .marketing-timeline-card { padding: 15px; }
  .marketing-timeline-card__heading { flex-wrap: wrap; }
  .marketing-timeline-card__heading > span:first-child { flex: 1 1 100%; }
  .marketing-timeline-steps { grid-template-columns: minmax(0,1fr); gap: 10px; margin: 18px 0; }
  .marketing-timeline-steps li { width: 100%; }
  .marketing-timeline-group > header { flex-wrap: wrap; }
}

/* Dashboard: scoped to keep the shared shell and Timeline unchanged. */
.marketing-dashboard { --dash-open: var(--ictus-ocean); --dash-completed: #2c9870; --dash-cancelled: #b7c4d3; --dash-late: #bc3845; min-width: 0; }
.marketing-dashboard__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.marketing-dashboard__heading > div { min-width: 0; }
.marketing-dashboard__heading h4 { font-size: 1.3rem; margin-bottom: 6px; }
.marketing-dashboard__heading > .btn { flex-shrink: 0; min-height: 36px; }
.marketing-dashboard__heading p, .marketing-dashboard__panel-heading p { font-size: .78rem; color: var(--marketing-muted); }
#main.marketing-workspace .marketing-dashboard__metrics, .marketing-dashboard__loading { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
#main.marketing-workspace .marketing-dashboard .marketing-metric { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; padding: 17px; border-radius: 10px; border: 1px solid var(--ictus-border); box-shadow: none; text-align: left; }
.marketing-dashboard .marketing-metric:hover { border-color: var(--ictus-border); box-shadow: none; }
.marketing-dashboard .marketing-metric__icon { position: absolute; top: 15px; right: 14px; width: 30px; height: 30px; min-width: 30px; flex: 0 0 30px; border-radius: 8px; font-size: .95rem; }
#main.marketing-workspace .marketing-dashboard .marketing-dashboard__metric-label { display: block; min-height: 34px; padding-right: 34px; font-size: .76rem; line-height: 1.4; font-weight: 650; }
#main.marketing-workspace .marketing-dashboard .marketing-metric > strong { font-size: 1.8rem; line-height: 1.15; margin: 5px 0 7px; color: var(--ictus-blue); }
#main.marketing-workspace .marketing-dashboard .marketing-metric > small { display: block; width: auto; font-size: .68rem; line-height: 1.4; }
.marketing-dashboard .marketing-metric--late .marketing-metric__icon { background: #fcebed; color: var(--dash-late); }
#main.marketing-workspace .marketing-dashboard .marketing-metric--late > strong { color: var(--dash-late); }
.marketing-dashboard .marketing-metric--today .marketing-metric__icon { background: #fff4dc; color: #996000; }
.marketing-dashboard .marketing-metric--completed .marketing-metric__icon { background: #e7f6ef; color: #237b59; }
.marketing-dashboard__grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; gap: 20px; margin-bottom: 22px; }
.marketing-dashboard .marketing-insight-card { padding: 20px; border-radius: 12px; min-width: 0; }
.marketing-dashboard__panel-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.marketing-dashboard__panel-heading > div:first-child { flex: 1 1 200px; min-width: 0; }
.marketing-dashboard__panel-heading h5 { font-size: 1rem; margin-bottom: 6px; }
#main.marketing-workspace .marketing-dashboard__text-action { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; width: auto; max-width: none; margin: 0; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: var(--ictus-ocean); text-align: left; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.marketing-dashboard__text-action:hover { text-decoration: underline; }
.marketing-dashboard__text-action:focus-visible, .marketing-dashboard__setup > summary:focus-visible, .marketing-dashboard .marketing-deadline-row:focus-visible { outline: 2px solid var(--ictus-cyan); outline-offset: 3px; }
.marketing-dashboard .marketing-deadline-row:first-of-type { padding-top: 4px; }
.marketing-dashboard .marketing-deadline-row:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
.marketing-dashboard .marketing-deadline-date { flex: 0 0 46px; width: 46px; padding: 10px 4px; }
.marketing-dashboard .marketing-deadline-date small { text-transform: uppercase; }
.marketing-dashboard__deadline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.marketing-dashboard__deadline-tags > span { display: inline-flex; padding: 3px 7px; border-radius: 5px; background: var(--ictus-screen); color: var(--marketing-muted); font-size: .64rem; }
.marketing-dashboard__deadline-tags > .is-late { color: var(--dash-late); background: #fcebed; }
.marketing-dashboard__deadline-tags > .is-today, .marketing-dashboard .marketing-deadline-date.is-today { color: #996000; background: #fff4dc; }
.marketing-dashboard__status-bar { display: flex; height: 12px; overflow: hidden; border-radius: 8px; background: var(--ictus-border); margin: 4px 0 18px; }
.marketing-dashboard .is-open { background-color: var(--dash-open); }
.marketing-dashboard .is-completed { background-color: var(--dash-completed); }
.marketing-dashboard .is-cancelled { background-color: var(--dash-cancelled); }
.marketing-dashboard__situations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 20px; }
.marketing-dashboard__situations > div { min-width: 0; }
.marketing-dashboard__situations dt { display: flex; align-items: flex-start; gap: 5px; min-height: 30px; color: var(--marketing-muted); font-size: .67rem; line-height: 1.4; font-weight: 500; }
.marketing-dashboard__situations dt > i { display: block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; margin-top: 4px; }
.marketing-dashboard__situations dd { margin: 0; color: var(--ictus-blue); font-size: 1.2rem; font-weight: 700; }
.marketing-dashboard__stages { padding-top: 18px; border-top: 1px solid var(--ictus-border); }
.marketing-dashboard__stages h6 { font-size: .76rem; color: var(--marketing-muted); margin-bottom: 16px; }
.marketing-dashboard__stages article + article { margin-top: 16px; }
.marketing-dashboard__stages article > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: var(--ictus-blue); font-size: .77rem; }
.marketing-dashboard__stages strong { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.marketing-dashboard__stages article > div:first-child > span { flex-shrink: 0; font-weight: 700; }
.marketing-dashboard__stage-bar { height: 6px; background: var(--ictus-screen); border-radius: 5px; margin: 8px 0 5px; overflow: hidden; }
.marketing-dashboard__stage-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--dash-open); }
.marketing-dashboard__late-text { color: var(--dash-late); font-size: .68rem; }
.marketing-dashboard__areas { grid-column: 1 / -1; }
.marketing-dashboard .marketing-chart-legend { margin: 0; font-size: .66rem; }
.marketing-dashboard__area-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); gap: 14px; }
.marketing-dashboard .marketing-area-row { margin: 0; padding: 16px; border: 1px solid var(--ictus-border); border-radius: 9px; min-width: 0; }
.marketing-dashboard__area-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.marketing-dashboard__area-label > strong { min-width: 0; overflow-wrap: anywhere; font-size: .79rem; }
.marketing-dashboard__area-label > span { flex-shrink: 0; font-size: .68rem; color: var(--marketing-muted); }
.marketing-dashboard .marketing-area-row footer { flex-wrap: wrap; font-size: .66rem; }
.marketing-dashboard__setup { border: 1px solid var(--ictus-border); border-radius: 10px; margin-top: 22px; background: var(--ictus-white); }
.marketing-dashboard__setup > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 16px; color: var(--ictus-blue); }
.marketing-dashboard__setup > summary::-webkit-details-marker { display: none; }
.marketing-dashboard__setup > summary > .bi:first-child { color: var(--ictus-ocean); font-size: 1.1rem; flex-shrink: 0; }
.marketing-dashboard__setup > summary > span { flex: 1; min-width: 0; }
.marketing-dashboard__setup summary strong { display: block; font-size: .8rem; }
.marketing-dashboard__setup summary small { display: block; font-size: .7rem; margin-top: 4px; color: var(--marketing-muted); }
.marketing-dashboard__setup[open] summary > .bi:last-child { transform: rotate(180deg); }
.marketing-dashboard__setup .marketing-setup__grid { padding: 0 16px 16px; }
.marketing-dashboard__setup .marketing-setup__grid > button > .bi:first-child { flex-shrink: 0; margin-left: 0; color: var(--ictus-ocean); font-size: 1rem; }
.marketing-dashboard__footnote { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0 !important; color: var(--marketing-muted); font-size: .68rem !important; line-height: 1.5; }
.marketing-dashboard__footnote .bi { flex-shrink: 0; margin-top: 2px; }
.marketing-dashboard__empty, .marketing-dashboard__panel-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 30px 20px; text-align: center; }
.marketing-dashboard__empty { border: 1px dashed var(--ictus-border); border-radius: 12px; margin-bottom: 22px; }
.marketing-dashboard__empty-icon { display: inline-flex; justify-content: center; align-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 15px; background: var(--ictus-cyan-mist); color: var(--ictus-ocean); font-size: 1.4rem; }
.marketing-dashboard__empty h5 { font-size: 1rem; margin: 4px 0 0; }
.marketing-dashboard__empty p { max-width: 470px; }
.marketing-dashboard__empty > small { color: var(--marketing-muted); font-size: .73rem; }
.marketing-dashboard__panel-empty > .bi { font-size: 1.5rem; color: var(--ictus-ocean); }
.marketing-dashboard__panel-empty strong { color: var(--ictus-blue); font-size: .82rem; }
.marketing-dashboard__error, .marketing-dashboard__approval { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--ictus-border); border-radius: 10px; margin-bottom: 22px; }
.marketing-dashboard__error > .bi, .marketing-dashboard__approval > .bi { flex: 0 0 25px; font-size: 1.3rem; color: var(--ictus-ocean); }
.marketing-dashboard__error > div, .marketing-dashboard__approval > div { flex: 1 1 220px; min-width: 0; }
.marketing-dashboard__error strong, .marketing-dashboard__approval strong { display: block; font-size: .8rem; color: var(--ictus-blue); }
.marketing-dashboard__approval { background: var(--ictus-cyan-mist); }
.marketing-dashboard__approval small { display: block; color: var(--marketing-muted); font-size: .7rem; margin-top: 4px; }
.marketing-dashboard__approval .btn { display: inline-flex; align-items: center; gap: 8px; }
.marketing-dashboard__skeleton { padding: 17px; border: 1px solid var(--ictus-border); border-radius: 10px; }
.marketing-dashboard__skeleton > * { display: block; background: var(--ictus-border); border-radius: 4px; }
.marketing-dashboard__skeleton > span { width: 65%; height: 12px; margin: 5px 0 18px; }
.marketing-dashboard__skeleton > strong { width: 30%; height: 25px; margin-bottom: 12px; }
.marketing-dashboard__skeleton > small { width: 80%; height: 9px; }
body.theme-dark .marketing-dashboard { --dash-completed: #50ba91; --dash-cancelled: #4b6178; --dash-late: #ff9fa7; }
body.theme-dark #main.marketing-workspace .marketing-dashboard .marketing-metric > strong, body.theme-dark .marketing-dashboard__situations dd, body.theme-dark .marketing-dashboard__stages article > div:first-child, body.theme-dark .marketing-dashboard__setup summary, body.theme-dark .marketing-dashboard__error strong, body.theme-dark .marketing-dashboard__approval strong, body.theme-dark .marketing-dashboard__panel-empty strong { color: var(--ictus-screen); }
body.theme-dark .marketing-dashboard__setup { background: var(--ictus-dark-surface); }
body.theme-dark .marketing-dashboard .marketing-metric--late .marketing-metric__icon, body.theme-dark .marketing-dashboard .marketing-deadline-date.is-late, body.theme-dark .marketing-dashboard__deadline-tags > .is-late { background: #422637; color: var(--dash-late); }
body.theme-dark #main.marketing-workspace .marketing-dashboard .marketing-metric--late > strong { color: var(--dash-late); }
body.theme-dark .marketing-dashboard .marketing-metric--today .marketing-metric__icon, body.theme-dark .marketing-dashboard .marketing-deadline-date.is-today, body.theme-dark .marketing-dashboard__deadline-tags > .is-today { background: #3c3426; color: #ffd58a; }
body.theme-dark .marketing-dashboard .marketing-metric--completed .marketing-metric__icon { background: #123d38; color: #7de0b1; }
body.theme-dark .marketing-dashboard__approval, body.theme-dark .marketing-dashboard__empty-icon { background: rgba(var(--ictus-cyan-rgb),.09); }
body.theme-dark .marketing-dashboard__deadline-tags > span { background: var(--ictus-midnight); }
body.theme-dark .marketing-dashboard__stage-bar { background: var(--ictus-midnight); }
body.theme-dark .marketing-dashboard__heading > .btn, body.theme-dark .marketing-dashboard__error .btn { color: var(--ictus-cyan-light); border-color: var(--ictus-cyan-light); }
@media (min-width: 1400px) { #main.marketing-workspace .marketing-dashboard__metrics, .marketing-dashboard__loading { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 991.98px) { .marketing-dashboard__grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 767.98px) {
  #main.marketing-workspace .marketing-dashboard__metrics, .marketing-dashboard__loading { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .marketing-dashboard__metrics > .marketing-metric:last-child { grid-column: auto; }
  #main.marketing-workspace .marketing-dashboard .marketing-metric { padding: 13px; }
  #main.marketing-workspace .marketing-dashboard .marketing-metric > strong { font-size: 1.65rem; }
  .marketing-dashboard .marketing-metric__icon { top: 12px; right: 11px; width: 26px; height: 26px; min-width: 26px; font-size: .84rem; }
  #main.marketing-workspace .marketing-dashboard .marketing-dashboard__metric-label { font-size: .72rem; padding-right: 28px; min-height: 39px; }
  .marketing-dashboard__heading { margin-bottom: 18px; }
  .marketing-dashboard__heading h4 { font-size: 1.13rem; }
  .marketing-dashboard__grid { gap: 16px; }
  .marketing-dashboard .marketing-insight-card { padding: 16px; }
  .marketing-dashboard__panel-heading > div:first-child { flex-basis: 160px; }
  .marketing-dashboard__area-grid { grid-template-columns: minmax(0,1fr); }
  .marketing-dashboard .marketing-area-row { padding: 13px; }
  .marketing-dashboard__area-label { flex-wrap: wrap; gap: 5px; }
  .marketing-dashboard__approval > .btn { margin-left: auto; }
}

/* Catalog-first area overview. Zero-demand areas stay useful, not invisible. */
.marketing-dashboard__area-overview { margin: 28px 0; min-width: 0; }
.marketing-dashboard__area-overview > .marketing-dashboard__panel-heading { align-items: flex-end; }
.marketing-area-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--marketing-muted); font-size: .67rem; }
.marketing-area-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.marketing-area-legend i { width: 7px; height: 7px; border-radius: 50%; }
.marketing-dashboard .marketing-area-card__urgency .is-normal, .marketing-area-legend .is-normal { background: #2c9870; }
.marketing-dashboard .marketing-area-card__urgency .is-urgent, .marketing-area-legend .is-urgent { background: #d18a1d; }
.marketing-dashboard .marketing-area-card__urgency .is-very-urgent, .marketing-area-legend .is-very-urgent { background: #bc3845; }
.marketing-dashboard__area-overview .marketing-dashboard__area-grid { grid-template-columns: repeat(auto-fill,minmax(min(285px,100%),1fr)); gap: 16px; }
.marketing-dashboard .marketing-area-card { display: flex; flex-direction: column; gap: 0; padding: 18px; border-radius: 12px; border-top: 3px solid var(--area-color); background: var(--ictus-white); transition: box-shadow .15s ease; }
.marketing-dashboard .marketing-area-card:hover { box-shadow: 0 4px 16px rgba(0,40,85,.07); }
.marketing-area-card__header { display: flex; align-items: flex-start; gap: 10px; min-width: 0; margin-bottom: 20px; }
.marketing-area-card__header > div { min-width: 0; flex: 1; }
.marketing-area-card__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; color: var(--area-color); background: color-mix(in srgb,var(--area-color) 10%,transparent); font-size: 1rem; }
#main.marketing-workspace .marketing-area-card__title { display: block; padding: 0; margin: 0; width: auto; max-width: 100%; min-height: 0; border: 0; background: transparent; color: var(--ictus-blue); font-size: .82rem; line-height: 1.45; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.marketing-area-card__title:hover { text-decoration: underline; }
.marketing-area-card__header small { display: block; margin-top: 4px; font-size: .66rem; color: var(--marketing-muted); }
#main.marketing-workspace .marketing-area-card__settings, #main.marketing-workspace .marketing-area-card__link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; max-width: none; min-height: 28px; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 7px; background: transparent; color: var(--marketing-muted); }
.marketing-area-card__settings:hover, .marketing-area-card__link:hover { background: var(--ictus-screen) !important; color: var(--ictus-ocean) !important; }
.marketing-area-card button:focus-visible { outline: 2px solid var(--ictus-cyan); outline-offset: 3px; }
.marketing-area-card__numbers { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.marketing-area-card__ring { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; padding: 5px; background: conic-gradient(var(--area-color) var(--area-rate),var(--ictus-border) 0); }
.marketing-area-card__ring.is-empty { background: var(--ictus-border); }
.marketing-area-card__ring > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ictus-white); color: var(--ictus-blue); font-size: .81rem; font-weight: 750; }
.marketing-area-card__numbers dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); flex: 1; min-width: 0; gap: 6px; margin: 0; }
.marketing-area-card__numbers dl > div { min-width: 0; text-align: left; }
.marketing-area-card__numbers dt { color: var(--marketing-muted); font-size: .62rem; font-weight: 500; line-height: 1.5; margin-top: 4px; }
.marketing-area-card__numbers dd { color: var(--ictus-blue); font-size: 1.25rem; line-height: 1.25; font-weight: 750; margin: 0; }
.marketing-area-card__numbers .is-on-time dd { color: #237b59; }
.marketing-area-card__numbers .is-overdue dd { color: var(--dash-late); }
.marketing-area-card__urgency { display: flex; height: 5px; border-radius: 5px; overflow: hidden; background: var(--ictus-border); margin-bottom: 14px; }
.marketing-area-card__urgency > span { display: block; height: 100%; }
#main.marketing-workspace .marketing-area-card__deadline, .marketing-area-card__no-deadline { display: flex; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; max-width: none; min-height: 58px; margin: 0 0 16px; padding: 10px; border: 0; border-left: 3px solid var(--area-color); border-radius: 7px; background: var(--ictus-screen); color: var(--ictus-blue); text-align: left; }
.marketing-area-card__deadline > .bi, .marketing-area-card__no-deadline > .bi { flex-shrink: 0; font-size: .9rem; color: var(--area-color); }
.marketing-area-card__deadline > span { min-width: 0; flex: 1; }
.marketing-area-card__deadline small { display: block; color: var(--marketing-muted); font-size: .6rem; line-height: 1.5; }
.marketing-area-card__deadline strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; font-size: .73rem; font-weight: 600; }
.marketing-area-card__deadline time { flex-shrink: 0; font-size: .73rem; font-weight: 700; }
.marketing-area-card__deadline.is-late { border-left-color: var(--dash-late) !important; }
.marketing-area-card__deadline.is-late time, .marketing-area-card__deadline.is-late > .bi { color: var(--dash-late); }
.marketing-area-card__no-deadline { color: var(--marketing-muted); font-size: .7rem; border-left-color: transparent; }
.marketing-dashboard .marketing-area-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; border-top: 1px solid var(--ictus-border); padding-top: 12px; }
.marketing-area-card__footer > span { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; font-size: .67rem; color: var(--marketing-muted); }
.marketing-area-card__footer .bi { color: var(--area-color); font-size: .9rem; margin-right: 3px; }
.marketing-area-card__footer strong { color: var(--ictus-blue); }
.marketing-area-card__closed { font-size: .63rem; color: var(--marketing-muted); margin: 8px 0 0 !important; }
.marketing-area-overview__note { display: flex; align-items: flex-start; gap: 7px; font-size: .68rem !important; color: var(--marketing-muted); margin: 14px 0 0 !important; }
body.theme-dark .marketing-dashboard .marketing-area-card, body.theme-dark .marketing-area-card__ring > span { background: var(--ictus-dark-surface); }
body.theme-dark #main.marketing-workspace .marketing-area-card__title, body.theme-dark .marketing-area-card__ring > span, body.theme-dark .marketing-area-card__numbers dd, body.theme-dark .marketing-area-card__footer strong, body.theme-dark #main.marketing-workspace .marketing-area-card__deadline { color: var(--ictus-screen); }
body.theme-dark #main.marketing-workspace .marketing-area-card__deadline, body.theme-dark .marketing-area-card__no-deadline { background: var(--ictus-midnight); }
body.theme-dark .marketing-area-card__numbers .is-on-time dd { color: #7de0b1; }
body.theme-dark .marketing-area-card__numbers .is-overdue dd { color: var(--dash-late); }
@media (max-width: 767.98px) {
  .marketing-dashboard .marketing-area-card { padding: 15px; }
  .marketing-area-card__numbers { gap: 12px; }
  .marketing-area-card__ring { width: 56px; height: 56px; flex-basis: 56px; }
  .marketing-dashboard__area-overview > .marketing-dashboard__panel-heading > div:first-child { flex-basis: 100%; }
  .marketing-area-card__settings, .marketing-area-card__link { min-width: 32px; min-height: 32px !important; }
}
