@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

/* Visual declarations ported from the Call Quality Workbench stylesheet. Keep application layout, text, and control markup in the original templates. */

body:has(.app-layout > .app-sidebar),
html body.owner-app {
  --bg: #020205;
  --panel: #071024;
  --ink: #EAF1FF;
  --line: #1b2b46;
  --green: #2FE3E9;
  --lime: #2F7BFF;
  --amber: #e3bc78;
  --red: #f08b9b;
  color-scheme: dark;
}

body:has(.app-layout > .app-sidebar),
html body.owner-app {
  font-family: 'DM Sans',sans-serif;
  font-size: 13px;
  color: #EAF1FF;
  background: #020205;
  -webkit-font-smoothing: antialiased;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .top .h1,
html body.owner-app .owner-page-header h1 {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.15px;
  line-height: 1.3;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .top .sub,
html body.owner-app .owner-page-subtitle {
  font-size: 12px;
  color: #91a6c9;
}

.app-layout:has(> .app-sidebar) > .app-sidebar {
  background: #040914;
  border-right: 1px solid #1C2D49;
  padding: 30px 18px 0;
  border-color: #16233b;
}

.app-layout:has(> .app-sidebar) .sidebar-brand-lockup img,
html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-logo {
  width: 183px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-layout:has(> .app-sidebar) .app-sidebar .sidebar-nav a:not(.module-pill),
html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-nav a {
  gap: 11px;
  color: #9aaecd;
  font-size: 12px;
  font-weight: 500;
  padding: 12px 13px;
  text-align: left;
  border-radius: 6px;
}

.app-layout:has(> .app-sidebar) .app-sidebar .sidebar-nav a.active:not(.module-pill) {
  color: #c6dcff;
  background: #2f7bff21;
  font-weight: 700;
  box-shadow: inset 2px 0 #2f7bff;
}

.app-layout:has(> .app-sidebar) .app-sidebar .module-switcher {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: #09152b;
  border-radius: 8px;
  box-shadow: 0 3px 14px #0003;
  border-color: #1d3152;
}

.app-layout:has(> .app-sidebar) .app-sidebar .sidebar-nav .module-pill {
  padding: 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aaecd;
  box-shadow: none;
  text-align: left;
}

.app-layout:has(> .app-sidebar) .app-sidebar .sidebar-nav .module-pill:hover {
  background: #0c1931;
  color: #c6dcff;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.panel,.card,.chart-box),
html body.owner-app :is(.panel,.owner-card,.ops-panel,.listen-panel) {
  background: #071024;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  border-color: #1a2b47;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.kpi-card,.campaign-kpi),
html body.owner-app .panel.owner-kpi {
  border: 1px solid var(--line);
  background: #071024;
  border-radius: 7px;
  padding: 16px 17px 14px;
  min-width: 0;
  border-color: #1a2b47;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(button.btn, a.btn, .button-link),
html body.owner-app .owner-page :is(button, a.btn) {
  height: 35px;
  padding: 0 13px;
  border: 1px solid #1C2D49;
  border-radius: 5px;
  background: #0c1931;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
  color: #c4d7f6;
  border-color: #253c60;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(button.btn.primary, a.btn.primary),
html body.owner-app .owner-page :is(button.primary,a.btn.primary) {
  background: #2F7BFF;
  border-color: #2F7BFF;
  color: #fff;
  box-shadow: 0 3px 15px #2f7bff13;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea),
html body.owner-app .owner-page :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea) {
  border: 1px solid #1C2D49;
  background: #0b1b34;
  min-height: 35px;
  border-radius: 4px;
  font-size: 12px;
  color: #c5d8f3;
  border-color: #294366;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .pill,
html body.owner-app .owner-status {
  border: 1px solid #1C2D49;
  background: #10203a;
  color: #9db3d5;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  border-color: #203857;
}

html body.owner-app .owner-status:is(.owner-status--healthy,.owner-status--active,.owner-status--settled,.owner-status--connected,.owner-status--ready) {
  background: #0a232f;
  border-color: #194752;
  color: #73d7dd;
}

html body.owner-app .owner-status:is(.owner-status--warning,.owner-status--pending,.owner-status--paused,.owner-status--stale) {
  background: #221e25;
  border-color: #504534;
  color: #dfc18d;
}

html body.owner-app .owner-status:is(.owner-status--error,.owner-status--failed,.owner-status--cancelled,.owner-status--refunded,.owner-status--reversed,.owner-status--denied) {
  background: #271626;
  border-color: #503045;
  color: #ed9ca9;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .campaign-kpi-grid,
html body.owner-app:has(> .owner-page > #kpis) .owner-page > #kpis {
  background: radial-gradient(ellipse at 100% 0,#12356680,transparent 65%),#08162d;
  border: 1px solid #2e5687;
  border-radius: 12px;
  box-shadow: 0 12px 50px #0002;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .top,
html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-session {
  background: #040a17;
  border-bottom: 1px solid var(--line);
  border-color: #17243c;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .card .hd,
html body.owner-app .owner-page .panel > h2 {
  font-size: 14px;
  letter-spacing: -.2px;
  color: #dce8fc;
}

/* Fit the existing console markup to the Workbench shell. */
body:has(.app-layout > .app-sidebar)::before,
body:has(.app-layout > .app-sidebar)::after,
.app-layout:has(> .app-sidebar)::before,
html body.owner-app::before {
  display: none;
}

.app-layout:has(> .app-sidebar) { background: none; }

.app-layout:has(> .app-sidebar) > .app-sidebar {
  box-shadow: none;
  backdrop-filter: none;
}

.app-layout:has(> .app-sidebar) .sidebar-brand-lockup {
  background: transparent;
  border-color: transparent;
  justify-content: flex-start;
  padding-inline: 9px;
}

.app-sidebar .sidebar-workspace-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-block-start: 1px solid #1a2b47;
  color: #c8d8f1;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-workspace-row > .nav-label {
  color: #879fc3;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.app-layout:has(> .app-sidebar) .sidebar-nav {
  gap: 5px;
}

.app-layout:has(> .app-sidebar) .sidebar-collapse-toggle {
  flex: 0 0 32px;
  width: 32px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  color: #a4bee3;
  background: #0b1931;
  border: 1px solid #263c5e;
  border-radius: 6px;
}

.app-layout:has(> .app-sidebar) .sidebar-collapse-toggle:hover {
  background: #132445;
  color: #eaf1ff;
}

.app-layout:has(> .app-sidebar) .sidebar-collapse-toggle:focus-visible {
  outline: 2px solid #83b0f8;
  outline-offset: 2px;
}

.app-layout.sidebar-collapsed .sidebar-collapse-arrow {
  transform: scaleX(-1);
  transform-box: fill-box;
  transform-origin: center;
}

.app-layout:has(> .app-sidebar) .sidebar-nav a:not(.module-pill),
html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-nav a {
  background: transparent;
  border-color: transparent;
  min-height: 42px;
  padding-block: 10px;
  line-height: 1.5;
  box-shadow: none;
}

.app-layout:has(> .app-sidebar) .sidebar-nav a.active:not(.module-pill) {
  background: #2f7bff21;
  box-shadow: inset 2px 0 #2f7bff;
}

.app-layout:has(> .app-sidebar) .sidebar-nav a:not(.module-pill):hover,
html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-nav a:hover {
  background: #0c1931;
  color: #c6dcff;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(h1,h2,.h1),
html body.owner-app .owner-page :is(h1,h2) {
  font-family: Manrope, "DM Sans", sans-serif;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.panel,.card,.chart-box),
html body.owner-app :is(.panel,.owner-card,.ops-panel,.listen-panel) {
  box-shadow: none;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.btn,.button-link):not(.primary):hover,
html body.owner-app .owner-page .btn:not(.primary):hover {
  background: #132445;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.btn.bad,.btn.danger) {
  color: #ed9ca9;
  background: #271626;
  border-color: #503045;
}

.app-layout:has(> .app-sidebar) :is(a,button,input,select,textarea):focus-visible,
html body.owner-app .owner-page :is(a,button,input,select,textarea):focus-visible {
  outline: 2px solid #83b0f8;
  outline-offset: 2px;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) {
  padding: 0;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .wrap {
  max-width: 1580px;
  padding-inline: clamp(14px, 3vw, 42px);
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .top {
  padding: 17px clamp(14px, 3vw, 42px);
  margin: 0 calc(-1 * clamp(14px, 3vw, 42px)) 28px;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .campaign-kpi-grid,
html body.owner-app:has(> .owner-page > #kpis) .owner-page > #kpis {
  padding: clamp(12px, 2vw, 24px);
  gap: 10px;
  margin-bottom: 16px;
  min-width: 0;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .campaign-kpi .value,
html body.owner-app .owner-page .owner-kpi__value {
  font-family: Manrope, "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .card .hd {
  background: transparent;
  border-color: #1a2b47;
  padding: 16px 20px;
}

.app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .grid {
  align-items: start;
}

html body.owner-app:has(> .owner-page > #kpis) .owner-page {
  width: auto;
  max-width: 1580px;
  padding: 0 clamp(14px, 3vw, 42px) 48px;
  gap: 14px;
}

html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-page-header {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-session {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #879fc3;
  font-size: 11px;
}

@media (min-width: 1021px) {
  .app-layout:has(> .app-sidebar):not(.sidebar-collapsed) {
    grid-template-columns: clamp(213px, 18vw, 253px) minmax(0, 1fr);
  }

  .app-layout:has(> .app-sidebar) > .app-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .app-layout.sidebar-collapsed:has(> .app-sidebar) > .app-sidebar {
    padding: 24px 0 12px;
    scrollbar-gutter: stable both-edges;
  }

  .app-layout.sidebar-collapsed:has(> .app-sidebar) .sidebar-brand-lockup {
    justify-content: center;
    min-height: 48px;
    margin-bottom: 8px;
    padding: 0;
  }

  .app-layout.sidebar-collapsed .sidebar-workspace-row {
    justify-content: center;
    padding-inline: 0;
  }

  .app-layout.sidebar-collapsed:has(> .app-sidebar) :is(.sidebar-nav a:not(.module-pill), .sidebar-footer a) {
    width: min(42px, 100%);
    min-width: 0;
    margin-inline: auto;
    padding: 0;
  }

  html body.owner-app:has(> .owner-page > #kpis) {
    --owner-rail-width: clamp(213px, 18vw, 253px);
    padding-inline-start: var(--owner-rail-width);
  }

  html body.owner-app:has(> .owner-page > #kpis)::before {
    display: block;
    width: var(--owner-rail-width);
    background: #040914;
    border-inline-end: 1px solid #16233b;
    opacity: 1;
    mask-image: none;
  }

  html body.owner-app:has(> .owner-page > #kpis) .owner-page-header,
  html body.owner-app:has(> .owner-page > #kpis) .owner-page-heading,
  html body.owner-app:has(> .owner-page > #kpis) .owner-page-actions {
    display: block;
    min-width: 0;
  }

  html body.owner-app:has(> .owner-page > #kpis) .owner-page-heading {
    padding-top: 96px;
  }

  html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-logo {
    position: fixed;
    top: 30px;
    left: 18px;
    max-width: calc(var(--owner-rail-width) - 36px);
  }

  html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-nav {
    position: fixed;
    top: 112px;
    left: 12px;
    width: calc(var(--owner-rail-width) - 24px);
    max-height: calc(100dvh - 124px);
    overflow: auto;
    display: grid;
    gap: 4px;
  }

  html body.owner-app:has(> .owner-page > #kpis) .owner-page .owner-session {
    position: absolute;
    inset: 0 0 auto;
    height: 73px;
    padding: 0 clamp(14px, 3vw, 42px);
    border-radius: 0;
  }
}

.sidebar-mobile-menu { display: none; }
.sidebar-menu-panel { display: contents; }
.sidebar-menu-close-icon { display: none; }

@media (max-width: 1020px) {
  .app-layout:has(> .app-sidebar) > .app-sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 6px 14px;
    overflow: visible;
  }

  .app-layout:has(> .app-sidebar) .sidebar-brand-lockup {
    margin: 0;
    padding: 0;
  }

  .app-layout:has(> .app-sidebar) .sidebar-brand-lockup img {
    width: 120px;
    max-height: 38px;
  }

  .app-layout:has(> .app-sidebar) .sidebar-collapse-toggle { display: none; }
  .sidebar-mobile-menu { display: block; }

  .app-sidebar .sidebar-workspace-row {
    padding: 8px 13px;
    border: 0;
  }

  .sidebar-mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 11px;
    background: #0c1931;
    border: 1px solid #253c60;
    border-radius: 5px;
    color: #c4d7f6;
    font-size: 12px;
    cursor: pointer;
    list-style: none;
  }

  .sidebar-mobile-menu summary::-webkit-details-marker { display: none; }

  .sidebar-mobile-menu summary:focus-visible {
    outline: 2px solid #83b0f8;
    outline-offset: 2px;
  }

  .sidebar-mobile-menu[open] summary {
    background: #132445;
    border-color: #2f7bff;
  }

  .sidebar-mobile-menu[open] .sidebar-menu-open-icon { display: none; }
  .sidebar-mobile-menu[open] .sidebar-menu-close-icon { display: inline; }

  .app-layout:has(> .app-sidebar) .sidebar-menu-panel {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 62px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px 14px 16px;
    border-block-end: 1px solid #253c60;
    background: #040914;
    box-shadow: 0 12px 24px #0006;
  }

  .app-layout:has(> .app-sidebar) .sidebar-mobile-menu[open] + .sidebar-menu-panel {
    display: block;
  }

  .app-layout:has(> .app-sidebar) .sidebar-menu-panel .sidebar-nav {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

  .app-layout:has(> .app-sidebar) .sidebar-menu-panel .sidebar-nav a {
    min-height: 44px;
  }
  html body.owner-app:has(> .owner-page > #kpis) .owner-page-header { padding-block: 16px; }
}

@media (max-width: 600px) {
  .app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .card .row > *,
  .app-layout:has(> .app-sidebar) > .main-shell:has(#campaignSelect) .card .bd > * {
    min-width: 0 !important;
    max-width: 100%;
  }
}

/* Shared page hierarchy for the signed-in app, including commercial workspaces. */
.app-layout:has(> .app-sidebar) > .main-shell:not(:has(#campaignSelect)) {
  --text: #eaf1ff;
  --muted: #91a6c9;
  width: 100%;
  max-width: 1580px;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(18px, 2.8vw, 32px) clamp(14px, 3vw, 42px) 48px;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.utility-bar, .ci-hero, .linkedin-product-heading) {
  gap: 14px 20px;
  padding: 0 0 18px;
  margin-bottom: 20px;
  border: 0;
  border-bottom: 1px solid #1b2b46;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.utility-bar, .ci-hero, .linkedin-product-heading) :is(h1, h2) {
  margin: 0;
  color: #eaf1ff;
  font: 750 clamp(23px, 2.7vw, 29px)/1.3 Manrope, "DM Sans", sans-serif;
  letter-spacing: -.04em;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.utility-bar, .ci-hero, .linkedin-product-heading) p {
  color: #91a6c9;
  font-size: 12px;
  line-height: 1.65;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.panel, .card, .ci-panel, .ci-card, .application-card, .billing-card, .assistant-card, .linkedin-overview-card, .linkedin-lead-card, .campaign-card, .settings-section, .settings-subsection, .workflow-side-panel, .workflow-template-panel, .builder-step-card),
html body.owner-app .owner-page :is(.panel, .owner-evidence-card) {
  min-width: 0;
  border-color: #1a2b47;
  border-radius: 8px;
  background: #071024;
  box-shadow: none;
  backdrop-filter: none;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.kpi-card, .callback-kpi, .stat-card, .linkedin-overview-metric, .settings-stat-card),
html body.owner-app .owner-page .owner-kpi {
  min-width: 0;
  border-color: #1a2b47;
  border-radius: 7px;
  background: #071024;
  box-shadow: none;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.kpi-value, .linkedin-overview-metric-value),
html body.owner-app .owner-page .owner-kpi__value {
  color: #eaf1ff;
  font-family: Manrope, "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.table-wrap, .linkedin-table-wrap, .seat-table-wrap, .inventory-table-wrap),
html body.owner-app .owner-page .owner-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 7px;
  border-color: #1a2b47;
}

.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner {
  margin-bottom: 16px;
  border: 1px solid #2e5687;
  border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0, #12356680, transparent 65%), #08162d;
}

.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner .bd {
  display: grid;
  gap: 14px;
}

.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner .row > div,
.app-layout:has(> .app-sidebar) > .main-shell .campaign-setting-card .row > :is(div, label) {
  min-width: min(100%, 11rem) !important;
  max-width: 100%;
}

.app-layout:has(> .app-sidebar) > .main-shell .campaign-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .app-layout:has(> .app-sidebar) > .main-shell .campaign-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner-actions :is(#startBtn, #pauseBtn, #resumeBtn) {
  border-color: #253c60;
  background: #0c1931;
  color: #c4d7f6;
}

.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner[data-runner-state="running"] #pauseBtn,
.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner[data-runner-state="paused"] #resumeBtn,
.app-layout:has(> .app-sidebar) > .main-shell .campaign-runner:is([data-runner-state="idle"], [data-runner-state="stopped"]) #startBtn {
  border-color: #2f7bff;
  background: #2f7bff;
  color: #fff;
}

/* Feature each workspace's existing primary task or summary. */
.app-layout:has(> .app-sidebar) > .main-shell :is(
  .dashboard-overview,
  .panel:has(#pipelineTabs),
  .panel:has(#submitJobBtn),
  .collapsible-panel:has(#followups-section),
  .panel:has(.analytics-filter-row),
  .callbacks-grid,
  .panel:has(#workflow-library-title),
  .panel:has(.application-portfolio-grid),
  .dialer-grid > .panel:first-child,
  .linkedin-product-context,
  .panel:has(#upcomingRows),
  .settings-section#outbound-profile-setup,
  .panel#mcp,
  .assistant-card:has(.assistant-composer),
  .panel:has(.numbers-form-grid),
  .panel:has(#meetingTitle),
  .organization-shell .panel#team,
  .account-section:has(#profile-panel-identity),
  .ci-panel:has(#analysisForm, #integrationForm)
) {
  border: 1px solid #2e5687;
  border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0, #12356680, transparent 65%), #08162d;
}

/* Give the overview one focal panel and use dividers for related information. */
.app-layout > .main-shell.dashboard-shell .utility-bar {
  padding-bottom: 20px;
  margin-bottom: 26px;
}

.app-layout > .main-shell.dashboard-shell .dashboard-eyebrow {
  margin: 0 0 8px;
  color: #80a4d2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.app-layout > .main-shell.dashboard-shell #dashboardLoadStatus:empty {
  margin: 0;
}

.app-layout > .main-shell.dashboard-shell .dashboard-overview {
  padding: clamp(16px, 2vw, 26px);
  margin-bottom: 26px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-layout > .main-shell.dashboard-shell .dashboard-overview .kpi-card {
  padding: 0 clamp(12px, 2vw, 24px);
  border: 0;
  border-inline-start: 1px solid #253c60;
  border-radius: 0;
  background: none;
}

.app-layout > .main-shell.dashboard-shell .dashboard-overview .kpi-card:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.dashboard-overview .kpi-card::before {
  display: none;
}

.dashboard-overview .kpi-card h4 {
  color: #9aafd0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .07em;
}

.app-layout > .main-shell.dashboard-shell .dashboard-activity {
  gap: 16px;
}

.app-layout > .main-shell.dashboard-shell .dashboard-trend {
  grid-column: span 8;
}

.app-layout > .main-shell.dashboard-shell .dashboard-campaigns {
  grid-column: span 4;
}

.app-layout > .main-shell.dashboard-shell .dashboard-activity h3 {
  margin: 0;
}

.app-layout > .main-shell.dashboard-shell .dashboard-activity .chart-box {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #1a2b47;
  border-radius: 0;
  background: none;
}

.app-layout > .main-shell.dashboard-shell #trend {
  margin-top: 12px;
}

.dashboard-trend-row {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr) 4ch;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
}

.dashboard-trend-row.is-today {
  border-radius: 5px;
  background: #0c1931;
}

.dashboard-trend-row > :last-child {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.dashboard-trend-row .progress-track {
  height: 5px;
  background: #1b2b46;
  box-shadow: none;
}

.dashboard-trend-row .progress-fill {
  background: #2f7bff;
}

.app-layout > .main-shell.dashboard-shell .dashboard-calls {
  margin-top: 16px;
}

.dashboard-calls .active-calls-disclosure {
  margin: 0;
}

.dashboard-calls .active-calls-disclosure + .active-calls-disclosure {
  border-top: 1px solid #1a2b47;
}

.app-layout > .main-shell.dashboard-shell .dashboard-calls .active-calls-summary {
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 14px;
}

.dashboard-calls .active-calls-summary::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-inline: 2px 3px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

.dashboard-calls .active-calls-disclosure[open] .active-calls-summary::before {
  transform: rotate(135deg);
}

.dashboard-calls .active-calls-count {
  margin-inline-start: auto;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(
  .pipeline-tabs, .analytics-filter-row, .linkedin-content-header, .assistant-toolbar, .ci-actions
) {
  gap: 8px 12px;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(
  .collapsible-summary, .active-calls-summary, .callback-disclosure summary
) {
  min-height: 44px;
  color: #c6dcff;
}

html body.owner-app .owner-page .workbench-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #1b2b46;
  padding-bottom: 12px;
}

html body.owner-app .workbench-section-links a {
  padding: 8px 11px;
  border: 1px solid #253c60;
  border-radius: 5px;
  background: #0c1931;
  color: #c6dcff;
  font-size: 12px;
}

html body.owner-app .owner-page :is(#kpis, #call-improvements, #owner-operations) {
  scroll-margin-top: 18px;
}

/* Packages & usage also has a public view. Scope the theme to its signed-in view. */
.ci-public [data-commercial-page="packages"][data-authed="true"] {
  color: #eaf1ff;
  font-family: "DM Sans", sans-serif;
}

.ci-public [data-commercial-page="packages"][data-authed="true"] :is(.ci-card, .ci-panel) {
  background: #071024;
  border-color: #1a2b47;
  border-radius: 8px;
  box-shadow: none;
}

.ci-public [data-commercial-page="packages"][data-authed="true"] .ci-hero h1 {
  font-family: Manrope, "DM Sans", sans-serif;
  letter-spacing: -.04em;
}

@media (max-width: 760px) {
  .app-layout > .main-shell.dashboard-shell .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .app-layout > .main-shell.dashboard-shell .dashboard-overview .kpi-card:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .app-layout > .main-shell.dashboard-shell :is(.dashboard-trend, .dashboard-campaigns) {
    grid-column: 1 / -1;
  }
}

/* Page titles, section titles, and supporting text each have a distinct role. */
.app-layout:has(> .app-sidebar) > .main-shell :is(.utility-bar, .ci-hero, .linkedin-product-heading) p,
html body.owner-app .owner-page .owner-page-subtitle {
  max-width: 68ch;
  color: #9aafd0;
  line-height: 1.65;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.panel, .card, .ci-panel) :is(h2, h3),
html body.owner-app .owner-page .panel :is(h2, h3) {
  color: #dce8fc;
  font-family: Manrope, "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -.015em;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(.panel, .card) :is(.hint, .kpi-note),
html body.owner-app .owner-page :is(.owner-section-note, .owner-metric-label) {
  color: #9aafd0;
  font-size: 12px;
  line-height: 1.6;
}

/* Separate consecutive panels in billing and application setup. */
.app-layout:has(> .app-sidebar) > .main-shell:is(
  .organization-shell,
  :has(> .panel > .billing-grid, > .panel > .application-portfolio-grid, #meeting-agent-identity-form)
) > .panel + .panel {
  margin-block-start: 16px;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(
  .billing-grid, .organization-summary, .organization-product-grid, .application-portfolio-grid, .application-help
) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 12px;
}

.app-layout:has(> .app-sidebar) > .main-shell :is(
  .billing-card, .organization-metric, .organization-product, .meeting-agent-knowledge-form, .application-card
) {
  min-width: 0;
  border: 1px solid #263d5b;
  border-radius: 8px;
  background: #0b1931;
  overflow-wrap: anywhere;
}

.app-layout:has(> .app-sidebar) > .main-shell .application-card-head {
  flex-wrap: wrap;
}

.app-layout:has(> .app-sidebar) > .main-shell .meeting-agent-knowledge-form {
  padding: 14px;
  grid-template-rows: auto auto 1fr auto;
}

.app-layout:has(> .app-sidebar) > .main-shell .meeting-agent-knowledge-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)) !important;
}

.app-layout:has(> .app-sidebar) > .main-shell #meeting-agent-identity-form > div:has(> label > [name="meeting_agent_display_name"]) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)) !important;
}

@media (max-width: 600px) {
  .app-layout:has(> .app-sidebar) > .main-shell #meeting-agent-avatar-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Group settings and billing details with dividers inside the parent card. */
.app-layout:has(> .app-sidebar) > .main-shell .settings-section .settings-subsection,
.app-layout:has(> .app-sidebar) > .main-shell .account-section .billing-accordion-panel,
html body.owner-app .owner-page .panel :is(.owner-evidence-card, .owner-metric) {
  border: 0;
  border-block-start: 1px solid #1a2b47;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-layout:has(> .app-sidebar) > .main-shell .settings-section .settings-subsection {
  padding-block: 12px;
}

html body.owner-app .owner-page #owner-operations {
  border-color: #2e5687 !important;
  background: radial-gradient(ellipse at 100% 0, #12356680, transparent 65%), #08162d;
}

html body.owner-app .owner-page .obs-summary-card--green {
  border-color: #194752;
  background: #0a232f;
  color: #9ae2e6;
}

html body.owner-app .owner-page .obs-summary-card--amber {
  border-color: #655132;
  background: #282332;
  color: #f0cc8a;
}

html body.owner-app .owner-page .obs-summary-card--red {
  border-color: #503045;
  background: #271626;
  color: #f0a7b4;
}

@media (max-width: 600px) {
  .app-layout:has(> .app-sidebar) > .main-shell :is(.utility-bar, .ci-hero, .linkedin-product-heading) {
    padding-bottom: 13px;
    margin-bottom: 14px;
  }

  .app-layout:has(> .app-sidebar) > .main-shell :is(.panel, .card, .ci-panel),
  html body.owner-app .owner-page .panel {
    min-inline-size: 0;
  }

  .app-layout:has(> .app-sidebar) > .main-shell :is(
    .search-filter-bar, .analytics-filter-row, .campaign-runner-actions, .assistant-toolbar, .ci-actions
  ) {
    flex-wrap: wrap;
  }

  .app-layout:has(> .app-sidebar) > .main-shell :is(.table-wrap, .linkedin-table-wrap, .seat-table-wrap, .inventory-table-wrap),
  html body.owner-app .owner-page .owner-table-wrap {
    overscroll-behavior-inline: contain;
  }

  html body.owner-app .workbench-section-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Match the Workbench's short reveal and control transitions. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes workbench-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .app-layout:has(> .app-sidebar) > .main-shell :is(.utility-bar, .ci-hero, .linkedin-product-heading, .campaign-runner),
  .app-layout:has(> .app-sidebar) .sidebar-mobile-menu[open] + .sidebar-menu-panel,
  html body.owner-app .owner-page :is(.owner-page-heading, #owner-operations),
  .ci-public [data-commercial-page="packages"][data-authed="true"] .ci-hero {
    animation: workbench-reveal .15s ease-out both;
  }

  .app-layout:has(> .app-sidebar) :is(.sidebar-nav a, .sidebar-mobile-menu summary, .main-shell .btn, .main-shell .button-link),
  html body.owner-app .owner-page :is(.btn, .workbench-section-links a) {
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  }

  .app-layout:has(> .app-sidebar) > .main-shell :is(.btn:not(:disabled), .button-link):active,
  html body.owner-app .owner-page .btn:not(:disabled):active {
    transform: translateY(1px);
  }

  .app-layout:has(> .app-sidebar) .campaign-progress-fill {
    transition: width .3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-layout:has(> .app-sidebar) .campaign-progress-fill,
  .app-layout:has(> .app-sidebar) :is(.sidebar-nav a, .sidebar-mobile-menu summary, .main-shell .btn, .main-shell .button-link),
  html body.owner-app .owner-page :is(.btn, .workbench-section-links a) {
    transition: none;
  }
}
