:root {
  --bg-1: #f3f7ff;
  --bg-2: #eff3ea;
  --panel: #ffffff;
  --ink: #1a1f2e;
  --muted: #5c6476;
  --line: #dce2ef;
  --accent: #0f766e;
  --accent-soft: #d6f4ef;
  --danger: #b3261e;
  --sidebar: #132238;
  --sidebar-ink: #f4f8ff;
  --sidebar-width-open: 250px;
  --sidebar-width-collapsed: 72px;
  --sidebar-pill-size: 3rem;
  --sidebar-pill-gap: 0.8rem;
  --sidebar-rail-offset: 0.15rem;
  --sidebar-item-pad-y: 0.45rem;
  --sidebar-item-pad-x: 0.55rem;
  --sidebar-collapse-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(120deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.login-shell {
  width: min(100%, 420px);
}

.login-panel {
  width: 100%;
  border: 1px solid rgba(210, 218, 232, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(26, 31, 54, 0.12);
  padding: 1.4rem;
}

.login-brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1.1rem;
  place-items: center;
  border-radius: 12px;
  background: #132238;
  color: #f4f8ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.login-heading {
  margin-bottom: 1.25rem;
}

.login-heading p {
  margin: 0 0 0.18rem;
  color: #657086;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 0;
  color: #151821;
  font-size: clamp(2rem, 8vw, 2.55rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-error {
  margin-bottom: 1rem;
  border: 1px solid rgba(179, 38, 30, 0.22);
  border-radius: 10px;
  background: #fff5f4;
  color: #8f1f19;
  padding: 0.72rem 0.82rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.login-form {
  display: grid;
  gap: 0.92rem;
}

.login-field {
  display: grid;
  gap: 0.42rem;
  color: #4a5f7b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  border: 1px solid #cfd8e7;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  padding: 0.78rem 0.86rem;
  text-transform: none;
}

.login-field input:focus {
  outline: 3px solid rgba(64, 111, 255, 0.16);
  border-color: #8ba4ff;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  color: #4f5b70;
  font-size: 0.9rem;
  font-weight: 650;
}

.login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 1px solid #1e4fd8;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.login-submit:hover,
.login-submit:focus-visible {
  background: #1d4ed8;
  outline: none;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width-open) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 360ms var(--sidebar-collapse-ease);
  will-change: grid-template-columns;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-width-collapsed) minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(190deg, #172844 0%, #0f1e34 100%);
  color: var(--sidebar-ink);
  border-right: 1px solid #1f3354;
  padding: 0.9rem 0.75rem;
  overflow: visible;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  z-index: 10;
  transition:
    padding 360ms var(--sidebar-collapse-ease),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: var(--sidebar-pill-gap);
  min-height: calc(var(--sidebar-pill-size) + (var(--sidebar-item-pad-y) * 2));
  padding: var(--sidebar-item-pad-y) var(--sidebar-item-pad-x) var(--sidebar-item-pad-y) var(--sidebar-rail-offset);
  width: 100%;
  margin-bottom: 1.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  contain: layout;
  transition:
    width 420ms var(--sidebar-collapse-ease),
    gap 340ms var(--sidebar-collapse-ease),
    margin-bottom 320ms var(--sidebar-collapse-ease),
    padding-left 320ms var(--sidebar-collapse-ease),
    transform 320ms var(--sidebar-collapse-ease);
}

.sidebar-head:hover .hamburger,
.sidebar-head:focus-visible .hamburger {
  background: rgba(233, 241, 253, 0.12);
  border-color: rgba(198, 215, 241, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(4, 10, 22, 0.16);
  transform: translateY(-0.5px);
}

.sidebar-head:focus-visible {
  outline: none;
}

.sidebar-title-slot {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  opacity: 1;
  will-change: max-width, opacity;
  transition:
    max-width 360ms var(--sidebar-collapse-ease),
    opacity 140ms ease;
  transition-delay: 0ms, 110ms;
}

.sidebar-title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  transform-origin: left center;
  will-change: opacity, transform, filter;
  transition:
    opacity 140ms ease,
    transform 260ms var(--sidebar-collapse-ease),
    filter 200ms ease;
  transition-delay: 110ms, 110ms, 110ms;
}

.hamburger {
  border: 1px solid rgba(201, 220, 245, 0.08);
  background: rgba(232, 241, 255, 0.05);
  color: rgba(240, 246, 255, 0.88);
  border-radius: 999px;
  width: var(--sidebar-pill-size);
  height: var(--sidebar-pill-size);
  min-width: var(--sidebar-pill-size);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    width 320ms var(--sidebar-collapse-ease),
    height 320ms var(--sidebar-collapse-ease),
    min-width 320ms var(--sidebar-collapse-ease),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition:
    gap 320ms var(--sidebar-collapse-ease),
    transform 320ms var(--sidebar-collapse-ease);
}

.tab {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-pill-size) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sidebar-pill-gap);
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #d2deee;
  padding: var(--sidebar-item-pad-y) var(--sidebar-item-pad-x) var(--sidebar-item-pad-y) var(--sidebar-rail-offset);
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  min-height: 48px;
  width: 100%;
  transition:
    opacity 180ms ease,
    width 320ms var(--sidebar-collapse-ease),
    min-width 320ms var(--sidebar-collapse-ease),
    height 320ms var(--sidebar-collapse-ease),
    min-height 320ms var(--sidebar-collapse-ease),
    transform 320ms var(--sidebar-collapse-ease),
    max-height 320ms var(--sidebar-collapse-ease),
    margin 320ms var(--sidebar-collapse-ease),
    padding 320ms var(--sidebar-collapse-ease),
    border-color 180ms ease,
    background-color 180ms ease,
    border-radius 320ms var(--sidebar-collapse-ease);
}

.tab-icon {
  width: var(--sidebar-pill-size);
  height: var(--sidebar-pill-size);
  min-width: var(--sidebar-pill-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(232, 241, 255, 0.05);
  border: 1px solid rgba(201, 220, 245, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  color: rgba(240, 246, 255, 0.88);
  transition:
    color 180ms ease,
    transform 260ms var(--sidebar-collapse-ease),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    width 320ms var(--sidebar-collapse-ease),
    height 320ms var(--sidebar-collapse-ease);
}

.tab-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  line-height: 1;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  font-weight: 600;
  transition:
    opacity 140ms ease,
    transform 320ms var(--sidebar-collapse-ease),
    max-width 320ms var(--sidebar-collapse-ease),
    letter-spacing 220ms ease;
}

.tab:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.tab:hover .tab-icon {
  color: #f7fbff;
  background: rgba(233, 241, 253, 0.12);
  border-color: rgba(198, 215, 241, 0.14);
  box-shadow: 0 10px 22px rgba(4, 10, 22, 0.16);
  transform: translateY(-0.5px) scale(1.01);
}

.tab.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.tab.active .tab-icon {
  color: #fbfffe;
  background: linear-gradient(145deg, rgba(225, 245, 241, 0.22), rgba(188, 226, 218, 0.16));
  border-color: rgba(146, 205, 191, 0.4);
  box-shadow:
    0 12px 28px rgba(5, 11, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tab.active .tab-label {
  color: #f5f9ff;
}

.tab:hover .tab-label {
  color: #eaf2fd;
}

body[data-access-role="managed_service"] .tab.is-restricted {
  cursor: not-allowed;
  opacity: 0.58;
}

body[data-access-role="managed_service"] .tab.is-restricted .tab-icon {
  color: rgba(214, 225, 240, 0.42);
  background: rgba(232, 241, 255, 0.035);
  box-shadow: none;
}

body[data-access-role="managed_service"] .tab.is-restricted .tab-label,
body[data-access-role="managed_service"] .app-shell.sidebar-collapsed .tab.is-restricted::after {
  color: transparent;
  filter: blur(4px);
  text-shadow: 0 0 8px rgba(226, 235, 247, 0.78);
  user-select: none;
}

body[data-access-role="managed_service"] .tab.is-restricted:hover .tab-icon {
  transform: none;
}

.app-shell.sidebar-collapsed .sidebar-head {
  justify-content: center;
  gap: 0;
  min-height: var(--sidebar-pill-size);
  padding: 0;
  width: var(--sidebar-pill-size);
  min-width: var(--sidebar-pill-size);
  margin-inline: auto;
  margin-bottom: 0.75rem;
  transform: none;
  transition-delay: 90ms, 90ms, 0ms, 0ms;
}

.app-shell.sidebar-collapsed .sidebar-title-slot {
  max-width: 0;
  opacity: 0;
  transition-delay: 0ms, 0ms;
}

.app-shell.sidebar-collapsed .sidebar-title {
  opacity: 0;
  transform: translateX(-10px) scale(0.985);
  filter: blur(1px);
  pointer-events: none;
  transition-delay: 0ms, 0ms, 0ms;
}

.app-shell.sidebar-collapsed .sidebar-nav {
  gap: 0.55rem;
  align-items: center;
  width: var(--sidebar-pill-size);
  margin-inline: auto;
  transform: none;
}

.app-shell.sidebar-collapsed .hamburger {
  width: var(--sidebar-pill-size);
  height: var(--sidebar-pill-size);
  min-width: var(--sidebar-pill-size);
  border-radius: 999px;
}

.app-shell.sidebar-collapsed .tab {
  place-items: center;
  grid-template-columns: var(--sidebar-pill-size);
  width: var(--sidebar-pill-size);
  min-width: var(--sidebar-pill-size);
  height: var(--sidebar-pill-size);
  min-height: var(--sidebar-pill-size);
  padding: 0;
  justify-items: center;
  margin: 0 auto;
  overflow: visible;
  border-width: 1px;
  border-radius: 999px;
}

.app-shell.sidebar-collapsed .tab-icon {
  width: var(--sidebar-pill-size);
  height: var(--sidebar-pill-size);
  min-width: var(--sidebar-pill-size);
  border-radius: 999px;
}

.app-shell.sidebar-collapsed .tab-label {
  opacity: 0;
  transform: translateX(-4px);
  max-width: 0;
  overflow: hidden;
}

.app-shell.sidebar-collapsed .tab::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 0.5rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(177, 201, 232, 0.2);
  background: rgba(10, 18, 33, 0.98);
  color: #f3f7ff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

.app-shell.sidebar-collapsed .tab:hover::after,
.app-shell.sidebar-collapsed .tab:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.content-area {
  min-width: 0;
  padding: 1rem;
  transition: padding 320ms var(--sidebar-collapse-ease);
}

@media (prefers-reduced-motion: reduce) {
  .app-shell,
  .sidebar,
  .sidebar-head,
  .sidebar-title,
  .sidebar-nav,
  .tab,
  .tab-icon,
  .tab-label,
  .content-area {
    transition: none !important;
  }

  .button-loading-spinner,
  .analytics-composer-generate.is-busy::after,
  .deal-owner-mode-burst,
  .deal-owner-mode-burst::before,
  .deal-owner-mode-burst::after,
  .deal-owner-mode-stack,
  .deal-owner-mode-frame,
  .deal-owner-mode-title::before,
  .deal-owner-mode-title::after {
    animation: none !important;
  }
}

.app-feedback {
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #f1b0aa;
  background: linear-gradient(145deg, #fff3f1 0%, #ffe5e1 100%);
  color: #8a241c;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(135, 32, 23, 0.08);
}

.app-feedback.is-info {
  border-color: #bfd7eb;
  background: linear-gradient(145deg, #eef7ff 0%, #e3f0ff 100%);
  color: #184c77;
}

.app-feedback.is-success {
  border-color: #9ed7b4;
  background: linear-gradient(145deg, #eefcf2 0%, #dbf4e3 100%);
  color: #17663c;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.15rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  backdrop-filter: blur(6px);
}

.topbar.slim {
  grid-template-columns: 1fr;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
}

.inline-metrics {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.inline-metric {
  border: 1px solid #c7e3d2;
  background: linear-gradient(145deg, #f3fdf7 0%, #e8f8f0 100%);
  border-radius: 999px;
  min-height: 70px;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.inline-metric-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #4f826c;
  letter-spacing: 0.2px;
  font-weight: 700;
}

.inline-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c7f5b;
}

.inline-metric-new-won {
  border-color: #6fae88;
  background: linear-gradient(145deg, #c7ead5 0%, #a6dbbe 100%);
}

.inline-metric-new-won .inline-metric-label {
  color: #15573a;
}

.inline-metric-new-won .inline-metric-value {
  color: #0a4f2b;
}

.inline-metric-expansion-won {
  border-color: #79b9dc;
  background: linear-gradient(145deg, #dff2ff 0%, #bedff6 100%);
}

.inline-metric-expansion-won .inline-metric-label {
  color: #1f5f8f;
}

.inline-metric-expansion-won .inline-metric-value {
  color: #12456f;
}

.inline-metric-customer {
  border-color: #b9d8ec;
  background: linear-gradient(145deg, #eef7ff 0%, #ddeefe 100%);
}

.inline-metric-customer .inline-metric-label {
  color: #36658b;
}

.inline-metric-customer .inline-metric-value {
  color: #174a72;
}

.inline-metric-customer-value {
  border-color: #bfe0cd;
  background: linear-gradient(145deg, #eefcf4 0%, #daf4e5 100%);
}

.inline-metric-customer-value .inline-metric-label {
  color: #2f7255;
}

.inline-metric-customer-value .inline-metric-value {
  color: #15583d;
}

#view-current-customers .topbar {
  align-items: center;
  padding: 1rem 1.15rem;
}

#view-current-customers .title-wrap {
  gap: 0.4rem;
}

#view-current-customers .month-controls {
  align-self: center;
  align-items: stretch;
  gap: 0.65rem;
  padding-top: 0;
}

#view-current-customers .inline-metric {
  min-height: 68px;
  padding: 0.55rem 1rem;
  align-items: center;
}

#view-current-customers .month-controls .ghost-btn {
  min-height: 56px;
  padding: 0 1.2rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-metrics {
  justify-content: flex-end;
}

.customer-metrics > * {
  flex: 0 0 auto;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.2;
}

.month-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  align-self: start;
  padding-top: 0.2rem;
  flex-wrap: wrap;
}

#view-todo-calendar .topbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.35rem;
  padding: 1.15rem 1.35rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(226, 173, 111, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.92));
  box-shadow: 0 16px 30px rgba(17, 31, 58, 0.05);
}

#view-todo-calendar .title-wrap {
  gap: 0.42rem;
}

#view-todo-calendar .todo-kicker {
  margin-bottom: 0;
  color: #53729c;
}

#view-todo-calendar .title-wrap h1 {
  font-size: clamp(1.65rem, 2.15vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

#view-todo-calendar .title-wrap .subtitle {
  font-size: 1rem;
  line-height: 1.2;
  color: #66758d;
}

#view-todo-calendar .month-controls {
  align-self: center;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 0;
  justify-content: flex-end;
}

#view-todo-calendar .month-controls .ghost-btn {
  min-height: 56px;
  padding: 0 1.2rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(21, 34, 60, 0.04);
}

.todo-summary-band {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.todo-summary-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(203, 214, 232, 0.9);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(91, 141, 206, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow: 0 14px 26px rgba(18, 33, 66, 0.06);
}

.todo-summary-label {
  display: block;
  color: #62758f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.todo-summary-value {
  display: block;
  margin-top: 0.45rem;
  color: #16243b;
  font-size: clamp(1.95rem, 2vw, 2.4rem);
  line-height: 1;
}

.todo-summary-copy {
  margin: 0.55rem 0 0;
  color: #66758c;
  line-height: 1.45;
}

#view-overlap-deals .topbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  padding: 1.15rem 1.35rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(108, 166, 231, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9));
  box-shadow: 0 16px 30px rgba(17, 31, 58, 0.05);
}

#view-overlap-deals .title-wrap {
  gap: 0;
}

#view-overlap-deals .overlap-title-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
}

#view-overlap-deals .overlap-heading-block {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  min-width: 0;
}

#view-overlap-deals .overlap-heading-block h1 {
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

#view-overlap-deals .overlap-heading-block .subtitle {
  font-size: 0.98rem;
  line-height: 1.15;
  color: #66758d;
}

#view-overlap-deals .inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  min-width: 0;
}

#view-overlap-deals .inline-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  justify-content: center;
  align-content: center;
  gap: 0.28rem;
  min-width: 0;
  min-height: 82px;
  padding: 0.82rem 1.08rem 0.86rem;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(29, 55, 95, 0.06);
}

#view-overlap-deals .inline-metric-label {
  display: block;
  max-width: 100%;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  white-space: normal;
}

#view-overlap-deals .inline-metric-value {
  display: block;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  font-size: clamp(1.22rem, 1.55vw, 1.78rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#view-overlap-deals .inline-metric-clickable {
  cursor: pointer;
  user-select: none;
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

#view-overlap-deals .inline-metric-clickable.is-disabled {
  cursor: default;
}

#view-overlap-deals .inline-metric-clickable.is-disabled:hover,
#view-overlap-deals .inline-metric-clickable.is-disabled:active {
  transform: none;
  filter: none;
}

#view-overlap-deals .inline-metric-clickable:not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 28px rgba(29, 55, 95, 0.1);
  filter: saturate(1.04);
}

#view-overlap-deals .inline-metric-clickable:not(.is-disabled):active {
  transform: translateY(0) scale(0.992);
}

#view-overlap-deals .inline-metric-clickable:not(.is-disabled):focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 3px rgba(20, 113, 194, 0.14),
    0 14px 28px rgba(29, 55, 95, 0.08);
}

#view-quota-tracker .topbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  padding: 1.15rem 1.35rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(20, 118, 110, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.91));
  box-shadow: 0 16px 30px rgba(17, 31, 58, 0.05);
}

#view-quota-tracker .title-wrap {
  gap: 0;
}

#view-quota-tracker .quota-title-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
}

#view-quota-tracker .quota-heading-block {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  min-width: 0;
}

#view-quota-tracker .quota-heading-block h1 {
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

#view-quota-tracker .quota-heading-block .subtitle {
  font-size: 0.98rem;
  line-height: 1.15;
  color: #66758d;
}

#view-quota-tracker .inline-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  min-width: 0;
}

#view-quota-tracker .inline-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  justify-content: center;
  align-content: center;
  gap: 0.28rem;
  min-width: 0;
  min-height: 82px;
  padding: 0.82rem 1.02rem 0.86rem;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(29, 55, 95, 0.06);
}

#view-quota-tracker .inline-metric-label {
  display: block;
  max-width: 100%;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  white-space: normal;
}

#view-quota-tracker .inline-metric-value {
  display: block;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  font-size: clamp(1.18rem, 1.45vw, 1.68rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.quota-metric-team {
  border-color: #b9d8ec;
  background: linear-gradient(145deg, #eef7ff 0%, #dfeefd 100%);
}

.quota-metric-team .inline-metric-label,
.quota-metric-team .inline-metric-value {
  color: #184d75;
}

.quota-metric-closed {
  border-color: #bfe0cd;
  background: linear-gradient(145deg, #eefcf4 0%, #daf4e5 100%);
}

.quota-metric-closed .inline-metric-label,
.quota-metric-closed .inline-metric-value {
  color: #15583d;
}

.quota-metric-attainment {
  border-color: #d8d2ee;
  background: linear-gradient(145deg, #f6f3ff 0%, #ebe6fb 100%);
}

.quota-metric-attainment .inline-metric-label,
.quota-metric-attainment .inline-metric-value {
  color: #564184;
}

.quota-metric-elapsed {
  border-color: #e3d1a1;
  background: linear-gradient(145deg, #fff8e7 0%, #f5ebcf 100%);
}

.quota-metric-elapsed .inline-metric-label,
.quota-metric-elapsed .inline-metric-value {
  color: #765a14;
}

.quota-launch-bar {
  justify-content: flex-start;
}

.quota-tracker-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 16px 28px rgba(18, 33, 66, 0.08);
}

.quota-table-wrap,
.quota-settings-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.quota-table,
.quota-settings-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.quota-settings-table {
  min-width: 720px;
}

.quota-table th,
.quota-table td,
.quota-settings-table th,
.quota-settings-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e2e8f3;
  text-align: left;
  vertical-align: middle;
}

.quota-table th,
.quota-settings-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  color: #50627a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 248, 254, 0.94);
  box-shadow: inset 0 -1px 0 #e2e8f3;
}

.quota-table tbody tr:last-child td,
.quota-settings-table tbody tr:last-child td {
  border-bottom: 0;
}

.quota-table tbody tr:nth-child(even) td,
.quota-settings-table tbody tr:nth-child(even) td {
  background: rgba(249, 251, 255, 0.78);
}

.quota-ae-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: #18263f;
}

.quota-owner-badge {
  width: 1.55rem;
  height: 1.55rem;
  flex-basis: 1.55rem;
  font-size: 0.72rem;
  margin-top: 0;
}

.summary-owner-badge[data-owner-code="M"] {
  background: linear-gradient(135deg, #7c4fd5 0%, #9f64d9 100%);
}

.quota-attainment-cell {
  display: grid;
  gap: 0.38rem;
  min-width: 132px;
  color: #1e2d46;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quota-progress {
  position: relative;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecf5;
}

.quota-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f7df3 0%, #2bbf82 100%);
}

.quota-progress-fill.is-complete {
  background: linear-gradient(90deg, #149850 0%, #24b982 100%);
}

.quota-pace-badge,
.quota-coverage {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.quota-pace-badge.is-ahead,
.quota-pace-badge.is-hit,
.quota-coverage.is-met {
  color: #0b6b3a;
  background: #dff7e9;
  border: 1px solid #a9dfbf;
}

.quota-pace-badge.is-on-pace {
  color: #40506a;
  background: #edf1f7;
  border: 1px solid #d4dce9;
}

.quota-pace-badge.is-behind {
  color: #856311;
  background: #fff4cf;
  border: 1px solid #ead287;
}

.quota-pace-badge.is-at-risk,
.quota-pace-badge.is-missed,
.quota-coverage.is-zero {
  color: #a22720;
  background: #ffebe8;
  border: 1px solid #efb1ad;
}

.quota-pace-badge.is-future,
.quota-coverage.is-none {
  color: #6b778b;
  background: #f2f5fa;
  border: 1px solid #dbe2ee;
}

.quota-coverage.is-normal {
  color: #174a72;
  background: #e7f3ff;
  border: 1px solid #b7d7f0;
}

.quota-set-link {
  border: 0;
  background: transparent;
  color: #245bb3;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.quota-settings-modal-card {
  width: min(860px, 100%);
}

.quota-settings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding: 0.75rem;
  border: 1px solid #d8e1ef;
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.92);
}

.quota-settings-toolbar strong {
  color: #18263f;
  font-size: 1.05rem;
}

.quota-settings-input {
  width: 100%;
  min-width: 112px;
  border: 1px solid #cfd8e7;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  color: #1e2d46;
  font: inherit;
  font-weight: 700;
  background: #fff;
}

.quota-settings-input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.14);
  border-color: #80c7be;
}

.quota-settings-actions {
  margin-top: 1rem;
}

#view-quota-tracker.active {
  width: 100%;
  min-width: 0;
}

#view-quota-tracker > *,
#view-quota-tracker .topbar,
#view-quota-tracker .quota-title-row,
#view-quota-tracker .inline-metrics,
#view-quota-tracker .quota-tracker-panel,
#view-quota-tracker .quota-table-wrap {
  min-width: 0;
  max-width: 100%;
}

#view-revenue-dashboard.active {
  width: 100%;
  min-width: 0;
  align-content: start;
  gap: 1rem;
}

#view-revenue-dashboard > *,
#view-revenue-dashboard .topbar,
.revenue-metric-grid,
.revenue-dashboard-grid,
.revenue-overview-grid,
.revenue-graph-grid,
.revenue-panel,
.revenue-graph-card,
.revenue-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.revenue-topbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem 1.25rem;
  border-radius: 20px;
  border-color: #dce4f1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9));
  box-shadow: 0 14px 28px rgba(17, 31, 58, 0.045);
}

.revenue-topbar .subtitle {
  max-width: 780px;
}

.revenue-private-kicker {
  color: #245c73;
}

.revenue-actions {
  align-self: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.revenue-actions .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 18px;
  padding: 0 1.25rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(21, 34, 60, 0.04);
}

.revenue-last-updated {
  align-self: center;
  color: #6b778f;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.revenue-last-updated[data-tone="warning"] {
  color: #805d12;
}

.revenue-last-updated[data-tone="error"] {
  color: #9c231d;
}

.revenue-billing-tabs {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid #d9e2ef;
  padding: 0 0.1rem 0.06rem;
  scrollbar-width: none;
}

.revenue-billing-tabs::-webkit-scrollbar {
  display: none;
}

.revenue-billing-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0.3rem 0 0.72rem;
  color: #40516b;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}

.revenue-billing-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.revenue-billing-tab:hover,
.revenue-billing-tab.active {
  color: #5b4bff;
}

.revenue-billing-tab.active::after {
  background: #6b5cff;
}

.revenue-tab-panel {
  display: none;
  gap: 1rem;
  min-width: 0;
}

.revenue-tab-panel.active {
  display: grid;
  padding-top: 1rem;
}

.revenue-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1rem;
}

.revenue-metric-card {
  position: relative;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid #d8e1ef;
  border-radius: 16px;
  padding: 1.05rem 1rem 1rem;
  color: #1f2c44;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(18, 33, 66, 0.055);
}

.revenue-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #d7e1ef;
}

.revenue-metric-primary {
  border-color: #bfe0cd;
  background: linear-gradient(180deg, #fbfffd 0%, #f1fbf5 100%);
}

.revenue-metric-primary::before {
  background: linear-gradient(90deg, #1c9b62 0%, #2bbf82 100%);
}

.revenue-metric-label {
  color: #52647e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.revenue-metric-value {
  color: #17233a;
  font-size: clamp(1.55rem, 1.9vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.revenue-metric-note {
  margin: 0;
  color: #66758d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.revenue-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.revenue-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.revenue-panel {
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 26px rgba(18, 33, 66, 0.06);
}

.revenue-panel-wide {
  grid-row: span 4;
}

.revenue-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.revenue-panel-head h2 {
  margin: 0.18rem 0 0;
  color: #17233a;
  font-size: 1.1rem;
}

.revenue-window-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: #50627a;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  background: #f7faff;
}

.revenue-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  align-items: end;
  gap: 0.62rem;
  min-height: 248px;
  overflow-x: auto;
  border: 1px solid #dfe6f2;
  border-radius: 16px;
  padding: 1rem 0.95rem 0.82rem;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.84), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(0deg, rgba(118, 134, 162, 0.09), rgba(118, 134, 162, 0.09) 1px, transparent 1px, transparent 52px);
}

.revenue-chart-bar {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  align-items: end;
  justify-items: center;
  gap: 0.45rem;
  height: 100%;
  min-width: 74px;
}

.revenue-chart-value {
  color: #43536c;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.revenue-chart-fill {
  display: block;
  width: 100%;
  max-width: 38px;
  min-height: 5px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.revenue-chart-fill.is-up {
  background: linear-gradient(180deg, #22c55e 0%, #159353 100%);
  box-shadow: 0 9px 18px rgba(21, 147, 83, 0.16);
}

.revenue-chart-fill.is-down {
  background: linear-gradient(180deg, #f97316 0%, #dc4c12 100%);
  box-shadow: 0 9px 18px rgba(220, 76, 18, 0.16);
}

.revenue-chart-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.45rem;
  border-radius: 999px;
  color: #53637a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: rgba(245, 248, 253, 0.92);
  box-shadow: inset 0 0 0 1px rgba(214, 224, 238, 0.72);
}

.revenue-graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.revenue-graph-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  min-height: 300px;
  border: 1px solid #dfe6f2;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.2rem;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 33, 66, 0.035);
}

.revenue-graph-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.revenue-graph-card-head div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.revenue-graph-card-head span:first-child {
  color: #26344c;
  font-size: 0.92rem;
  font-weight: 750;
}

.revenue-graph-card-head strong {
  color: #17233a;
  font-size: 1.35rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.revenue-line-chart {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.revenue-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  overflow: visible;
}

.revenue-chart-grid-line {
  stroke: #e7edf6;
  stroke-width: 1;
}

.revenue-chart-axis {
  stroke: #cbd5e4;
  stroke-width: 1.2;
}

.revenue-chart-line {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.revenue-chart-area {
  opacity: 1;
}

.revenue-chart-bar-positive {
  fill: #8b7cf6;
}

.revenue-chart-bar-negative {
  fill: #f6b742;
}

.revenue-chart-zero-line {
  stroke: #aebbd0;
  stroke-width: 1.1;
}

.revenue-chart-label-svg,
.revenue-chart-y-label {
  fill: #71809a;
  font-size: 12px;
  font-weight: 650;
}

.revenue-chart-y-label {
  text-anchor: end;
}

.revenue-chart-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  border: 1px dashed #d8e1ef;
  border-radius: 12px;
  color: #66758d;
  font-size: 0.88rem;
  font-weight: 650;
  background: #f8fbff;
}

.revenue-retention-panel {
  max-width: 100%;
}

.revenue-table-wrap {
  margin-top: 0.9rem;
  overflow-x: auto;
  border: 1px solid #d8e1ef;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.revenue-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.revenue-table th,
.revenue-table td {
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid #e2e8f3;
  color: #25334b;
  text-align: left;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.revenue-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #50627a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 248, 254, 0.95);
  box-shadow: inset 0 -1px 0 #e2e8f3;
}

.revenue-table tbody tr:last-child td {
  border-bottom: 0;
}

.revenue-table tbody tr:nth-child(even) td {
  background: rgba(249, 251, 255, 0.78);
}

.revenue-table tbody tr:hover td {
  background: #f1f6ff;
}

.revenue-growth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.revenue-growth.is-up {
  color: #0b6b3a;
  background: #dff7e9;
}

.revenue-growth.is-down {
  color: #a23d16;
  background: #ffeadf;
}

.revenue-growth.is-flat {
  color: #5a6678;
  background: #edf1f7;
}

.revenue-insight-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.05rem;
  color: #2b3850;
  line-height: 1.42;
}

.revenue-retention-copy {
  margin: 0;
  color: #2b3850;
  line-height: 1.5;
}

.revenue-retention-copy strong {
  color: #14213a;
}

.revenue-list {
  display: grid;
  gap: 0.55rem;
}

.revenue-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  background: #fbfdff;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.revenue-list-row:hover {
  border-color: #cbd8eb;
  background: #f7fbff;
  transform: translateY(-1px);
}

.revenue-list-row div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.revenue-list-row strong {
  color: #17233a;
}

.revenue-list-row span {
  color: #637089;
  font-size: 0.82rem;
}

.revenue-list-row > span:last-child {
  flex: 0 0 auto;
  border: 1px solid #d9e3f1;
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  background: #f5f8fd;
  color: #44536b;
  font-weight: 800;
  white-space: nowrap;
}

#view-overlap-deals .month-controls {
  align-self: center;
  align-items: stretch;
  gap: 0.8rem;
  padding-top: 0;
  justify-content: flex-end;
}

#view-overlap-deals .month-controls .ghost-btn {
  min-height: 58px;
  padding: 0 1.25rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(21, 34, 60, 0.04);
}

.deal-owner-filter-control {
  min-width: 12.5rem;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0 0.7rem 0 0.95rem;
  border: 1px solid #d9dee7;
  border-radius: 16px;
  background: #ffffff;
  color: #526173;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(21, 34, 60, 0.04);
}

.deal-owner-filter-control select {
  min-width: 0;
  min-height: auto;
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  padding: 0.15rem 1.35rem 0.15rem 0;
  background-color: transparent;
  color: #2a2f45;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: none;
}

.deal-owner-filter-control:focus-within {
  border-color: #8fb3ff;
  outline: none;
  box-shadow:
    0 8px 18px rgba(21, 34, 60, 0.04),
    0 0 0 3px rgba(79, 124, 255, 0.13);
}

.deal-owner-filter-control select:focus {
  outline: none;
}

.deal-owner-mode-burst {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2rem;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 7px
    ),
    linear-gradient(180deg, rgba(10, 13, 24, 0.16), rgba(10, 13, 24, 0.72));
  animation: deal-owner-mode-fade 1.6s ease-out forwards;
}

.deal-owner-mode-burst::before {
  content: "";
  position: absolute;
  inset: auto -18vw -8vh;
  height: 46vh;
  transform: perspective(360px) rotateX(58deg);
  transform-origin: center bottom;
  background:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 72px 30px;
  opacity: 0.5;
  animation: deal-owner-mode-grid 1.6s linear forwards;
}

.deal-owner-mode-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, 0.16) 10%, transparent 11% 100%),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(255, 255, 255, 0.08) 13px, transparent 14px);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: deal-owner-mode-scan 0.48s steps(2, end) infinite;
}

.deal-owner-mode-frame {
  position: relative;
  z-index: 1;
  max-width: min(100%, 720px);
  padding: 1.05rem 1.55rem;
  border: 2px solid currentColor;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 13, 24, 0.92), rgba(19, 24, 43, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px currentColor;
  transform: skew(-5deg);
  animation: deal-owner-mode-pop 1.6s cubic-bezier(0.2, 0.86, 0.24, 1) forwards;
}

.deal-owner-mode-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 720px);
}

.deal-owner-mode-title {
  position: relative;
  color: #f9fbff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    3px 0 0 #ff4fd8,
    -3px 0 0 #29f3ff,
    0 0 18px currentColor;
  white-space: nowrap;
}

.deal-owner-mode-image {
  display: block;
  width: clamp(170px, 22vw, 270px);
  height: auto;
  max-height: min(34vh, 330px);
  object-fit: contain;
  margin-top: 0.85rem;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 18px rgba(72, 215, 255, 0.48))
    drop-shadow(0 0 34px rgba(255, 79, 216, 0.18));
  transform: translateY(0);
  animation: deal-owner-mode-cutout 1.6s cubic-bezier(0.2, 0.86, 0.24, 1) forwards;
}

.deal-owner-mode-title::before,
.deal-owner-mode-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #ffffff;
}

.deal-owner-mode-title::before {
  transform: translate(4px, -2px);
  text-shadow: -3px 0 0 #29f3ff;
  clip-path: inset(0 0 52% 0);
  animation: deal-owner-mode-glitch-a 0.42s steps(2, end) infinite;
}

.deal-owner-mode-title::after {
  transform: translate(-3px, 2px);
  text-shadow: 3px 0 0 #ff4fd8;
  clip-path: inset(48% 0 0 0);
  animation: deal-owner-mode-glitch-b 0.38s steps(2, end) infinite;
}

.deal-owner-mode-burst-jonathan {
  color: #8b7cff;
}

.deal-owner-mode-burst-casey {
  color: #3cffb0;
}

.deal-owner-mode-burst-miles {
  color: #48d7ff;
}

.deal-owner-mode-burst-bomboclat {
  color: #facc15;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 50% 42%, rgba(34, 197, 94, 0.34), transparent 35%),
    linear-gradient(180deg, rgba(9, 15, 15, 0.22), rgba(5, 11, 10, 0.78));
}

.deal-owner-mode-burst-dealmaxxing {
  color: #7dd3fc;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.11) 0,
      rgba(255, 255, 255, 0.11) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 50% 38%, rgba(59, 130, 246, 0.42), transparent 36%),
    radial-gradient(circle at 54% 58%, rgba(236, 72, 153, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(8, 12, 28, 0.22), rgba(5, 8, 18, 0.82));
}

.deal-owner-mode-burst-obsessed {
  color: #f472b6;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.11) 0,
      rgba(255, 255, 255, 0.11) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 49% 36%, rgba(244, 114, 182, 0.4), transparent 34%),
    radial-gradient(circle at 56% 58%, rgba(250, 204, 21, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(24, 10, 26, 0.22), rgba(12, 6, 18, 0.82));
}

.deal-owner-mode-burst-no-diddy {
  color: #f8d46b;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 50% 40%, rgba(248, 212, 107, 0.32), transparent 34%),
    radial-gradient(circle at 54% 60%, rgba(148, 163, 184, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(13, 13, 12, 0.2), rgba(5, 5, 5, 0.84));
}

.deal-owner-mode-burst-huge-close {
  color: #f8d46b;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 50% 38%, rgba(37, 99, 235, 0.36), transparent 34%),
    radial-gradient(circle at 55% 58%, rgba(239, 68, 68, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(8, 14, 34, 0.2), rgba(8, 10, 20, 0.84));
}

.deal-owner-mode-burst-taco-tuesday {
  color: #fff7d6;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 50% 34%, rgba(250, 204, 21, 0.34), transparent 34%),
    radial-gradient(circle at 55% 58%, rgba(34, 197, 94, 0.24), transparent 42%),
    radial-gradient(circle at 44% 62%, rgba(249, 115, 22, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(20, 16, 8, 0.18), rgba(8, 10, 8, 0.84));
}

.deal-owner-mode-burst-dismissable {
  cursor: pointer;
  pointer-events: auto;
}

.deal-owner-mode-burst-bomboclat,
.deal-owner-mode-burst-dealmaxxing,
.deal-owner-mode-burst-obsessed,
.deal-owner-mode-burst-no-diddy,
.deal-owner-mode-burst-huge-close,
.deal-owner-mode-burst-taco-tuesday {
  animation-duration: 2.15s;
}

.deal-owner-mode-burst-bomboclat::before,
.deal-owner-mode-burst-dealmaxxing::before,
.deal-owner-mode-burst-obsessed::before,
.deal-owner-mode-burst-no-diddy::before,
.deal-owner-mode-burst-huge-close::before,
.deal-owner-mode-burst-taco-tuesday::before {
  animation-duration: 2.15s;
}

.deal-owner-mode-burst-bomboclat::before {
  opacity: 0.58;
}

.deal-owner-mode-burst-dealmaxxing::before {
  opacity: 0.62;
}

.deal-owner-mode-burst-obsessed::before {
  opacity: 0.62;
}

.deal-owner-mode-burst-no-diddy::before {
  opacity: 0.58;
}

.deal-owner-mode-burst-huge-close::before {
  opacity: 0.6;
}

.deal-owner-mode-burst-taco-tuesday::before {
  opacity: 0.6;
}

.deal-owner-mode-burst-jonathan .deal-owner-mode-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(139, 124, 255, 0.76),
    0 0 60px rgba(255, 216, 91, 0.3);
}

.deal-owner-mode-burst-casey .deal-owner-mode-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(60, 255, 176, 0.74),
    0 0 60px rgba(255, 216, 91, 0.28);
}

.deal-owner-mode-burst-miles .deal-owner-mode-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(72, 215, 255, 0.76),
    0 0 60px rgba(255, 79, 216, 0.32);
}

.deal-owner-mode-burst-bomboclat .deal-owner-mode-frame {
  padding-inline: clamp(1.2rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(9, 17, 16, 0.94), rgba(18, 28, 20, 0.9)),
    repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.1) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(250, 204, 21, 0.72),
    0 0 66px rgba(34, 197, 94, 0.44);
}

.deal-owner-mode-burst-dealmaxxing .deal-owner-mode-frame {
  padding-inline: clamp(1.15rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(8, 13, 34, 0.94), rgba(18, 25, 56, 0.9)),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.12) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(125, 211, 252, 0.76),
    0 0 66px rgba(236, 72, 153, 0.36);
}

.deal-owner-mode-burst-obsessed .deal-owner-mode-frame {
  padding-inline: clamp(1.15rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(34, 11, 35, 0.94), rgba(43, 18, 38, 0.9)),
    repeating-linear-gradient(90deg, rgba(244, 114, 182, 0.12) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(244, 114, 182, 0.72),
    0 0 66px rgba(250, 204, 21, 0.3);
}

.deal-owner-mode-burst-no-diddy .deal-owner-mode-frame {
  padding-inline: clamp(1.1rem, 3.5vw, 1.9rem);
  background:
    linear-gradient(135deg, rgba(8, 8, 8, 0.96), rgba(28, 24, 16, 0.92)),
    repeating-linear-gradient(90deg, rgba(248, 212, 107, 0.11) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(248, 212, 107, 0.68),
    0 0 66px rgba(148, 163, 184, 0.26);
}

.deal-owner-mode-burst-huge-close .deal-owner-mode-frame {
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(11, 20, 48, 0.96), rgba(38, 16, 22, 0.92)),
    repeating-linear-gradient(90deg, rgba(248, 212, 107, 0.12) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(37, 99, 235, 0.58),
    0 0 66px rgba(239, 68, 68, 0.34);
}

.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-frame {
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(12, 20, 12, 0.96), rgba(42, 25, 10, 0.92)),
    repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.12) 0 1px, transparent 1px 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 60px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(34, 197, 94, 0.54),
    0 0 66px rgba(249, 115, 22, 0.36);
}

.deal-owner-mode-burst-bomboclat .deal-owner-mode-frame,
.deal-owner-mode-burst-dealmaxxing .deal-owner-mode-frame,
.deal-owner-mode-burst-dealmaxxing .deal-owner-mode-image,
.deal-owner-mode-burst-obsessed .deal-owner-mode-frame,
.deal-owner-mode-burst-obsessed .deal-owner-mode-image,
.deal-owner-mode-burst-no-diddy .deal-owner-mode-frame,
.deal-owner-mode-burst-no-diddy .deal-owner-mode-image,
.deal-owner-mode-burst-huge-close .deal-owner-mode-frame,
.deal-owner-mode-burst-huge-close .deal-owner-mode-image,
.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-frame,
.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-image {
  animation-duration: 2.15s;
}

.deal-owner-mode-burst-taco-tuesday {
  animation: deal-owner-mode-taco-hold 0.48s ease-out forwards;
}

.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-frame {
  animation: deal-owner-mode-taco-frame-in 0.64s cubic-bezier(0.2, 0.86, 0.24, 1) forwards;
}

.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-image {
  animation: deal-owner-mode-taco-image-in 0.72s cubic-bezier(0.2, 0.86, 0.24, 1) forwards;
}

.deal-owner-mode-burst-casey .deal-owner-mode-image {
  width: clamp(168px, 21vw, 260px);
  max-height: min(38vh, 360px);
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 18px rgba(60, 255, 176, 0.5))
    drop-shadow(0 0 34px rgba(255, 216, 91, 0.18));
}

.deal-owner-mode-burst-dealmaxxing .deal-won-mode-image {
  width: clamp(180px, 24vw, 310px);
  max-height: min(36vh, 340px);
  background: transparent;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 22px rgba(125, 211, 252, 0.44))
    drop-shadow(0 0 36px rgba(236, 72, 153, 0.2));
}

.deal-owner-mode-burst-obsessed .deal-won-mode-image {
  width: clamp(150px, 18vw, 250px);
  max-height: min(43vh, 430px);
  background: transparent;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 22px rgba(244, 114, 182, 0.46))
    drop-shadow(0 0 36px rgba(250, 204, 21, 0.18));
}

.deal-owner-mode-burst-no-diddy .deal-won-mode-image {
  width: clamp(300px, 42vw, 560px);
  max-width: min(82vw, 560px);
  max-height: min(34vh, 320px);
  background: transparent;
  filter:
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(248, 212, 107, 0.46))
    drop-shadow(0 0 42px rgba(148, 163, 184, 0.18));
}

.deal-owner-mode-burst-huge-close .deal-won-mode-image {
  width: clamp(190px, 25vw, 340px);
  max-height: min(38vh, 360px);
  background: transparent;
  filter:
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(37, 99, 235, 0.42))
    drop-shadow(0 0 42px rgba(239, 68, 68, 0.2));
}

.deal-owner-mode-burst-taco-tuesday .deal-won-mode-image {
  width: clamp(260px, 36vw, 520px);
  max-width: min(84vw, 560px);
  max-height: min(40vh, 390px);
  border-radius: 18px;
  background: transparent;
  filter:
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(34, 197, 94, 0.38))
    drop-shadow(0 0 42px rgba(250, 204, 21, 0.22));
}

.deal-owner-mode-burst-jonathan .deal-owner-mode-title {
  text-shadow:
    3px 0 0 #ffd85b,
    -3px 0 0 #8b7cff,
    0 0 18px rgba(139, 124, 255, 0.9);
}

.deal-owner-mode-burst-casey .deal-owner-mode-title {
  text-shadow:
    3px 0 0 #ffd85b,
    -3px 0 0 #27ffc3,
    0 0 18px rgba(60, 255, 176, 0.9);
}

.deal-owner-mode-burst-miles .deal-owner-mode-title {
  text-shadow:
    3px 0 0 #ff4fd8,
    -3px 0 0 #29f3ff,
    0 0 18px rgba(72, 215, 255, 0.9);
}

.deal-owner-mode-burst-bomboclat .deal-owner-mode-title {
  color: #fff8d7;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  text-shadow:
    3px 0 0 #ef4444,
    -3px 0 0 #22c55e,
    0 0 18px rgba(250, 204, 21, 0.94);
}

.deal-owner-mode-burst-dealmaxxing .deal-owner-mode-title {
  color: #e0f7ff;
  font-size: clamp(1.95rem, 6.2vw, 4rem);
  text-shadow:
    3px 0 0 #ec4899,
    -3px 0 0 #38bdf8,
    0 0 18px rgba(125, 211, 252, 0.94);
}

.deal-owner-mode-burst-obsessed .deal-owner-mode-title {
  color: #fff1f7;
  font-size: clamp(2rem, 6.2vw, 4rem);
  text-transform: none;
  text-shadow:
    3px 0 0 #f472b6,
    -3px 0 0 #facc15,
    0 0 18px rgba(244, 114, 182, 0.94);
}

.deal-owner-mode-burst-no-diddy .deal-owner-mode-title {
  color: #fff7d6;
  font-size: clamp(1.35rem, 4.2vw, 3.15rem);
  text-transform: none;
  text-shadow:
    3px 0 0 #9ca3af,
    -3px 0 0 #f8d46b,
    0 0 18px rgba(248, 212, 107, 0.94);
}

.deal-owner-mode-burst-huge-close .deal-owner-mode-title {
  color: #fff7d6;
  font-size: clamp(2.2rem, 6.8vw, 4.4rem);
  text-shadow:
    3px 0 0 #ef4444,
    -3px 0 0 #2563eb,
    0 0 18px rgba(248, 212, 107, 0.94);
}

.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-title {
  color: #fff7d6;
  font-size: clamp(2.15rem, 6.8vw, 4.3rem);
  text-shadow:
    3px 0 0 #f97316,
    -3px 0 0 #22c55e,
    0 0 18px rgba(250, 204, 21, 0.96);
}

.deal-owner-mode-burst-bomboclat .deal-owner-mode-title::before {
  text-shadow: -3px 0 0 #22c55e;
}

.deal-owner-mode-burst-bomboclat .deal-owner-mode-title::after {
  text-shadow: 3px 0 0 #ef4444;
}

.deal-owner-mode-burst-dealmaxxing .deal-owner-mode-title::before {
  text-shadow: -3px 0 0 #38bdf8;
}

.deal-owner-mode-burst-dealmaxxing .deal-owner-mode-title::after {
  text-shadow: 3px 0 0 #ec4899;
}

.deal-owner-mode-burst-obsessed .deal-owner-mode-title::before {
  text-shadow: -3px 0 0 #facc15;
}

.deal-owner-mode-burst-obsessed .deal-owner-mode-title::after {
  text-shadow: 3px 0 0 #f472b6;
}

.deal-owner-mode-burst-no-diddy .deal-owner-mode-title::before {
  text-shadow: -3px 0 0 #f8d46b;
}

.deal-owner-mode-burst-no-diddy .deal-owner-mode-title::after {
  text-shadow: 3px 0 0 #9ca3af;
}

.deal-owner-mode-burst-huge-close .deal-owner-mode-title::before {
  text-shadow: -3px 0 0 #2563eb;
}

.deal-owner-mode-burst-huge-close .deal-owner-mode-title::after {
  text-shadow: 3px 0 0 #ef4444;
}

.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-title::before {
  text-shadow: -3px 0 0 #22c55e;
}

.deal-owner-mode-burst-taco-tuesday .deal-owner-mode-title::after {
  text-shadow: 3px 0 0 #f97316;
}

@media (max-width: 640px) {
  .deal-owner-mode-burst {
    padding: 1rem;
  }

  .deal-owner-mode-frame {
    padding: 0.85rem 1rem;
    transform: skew(-3deg);
  }

  .deal-owner-mode-title {
    font-size: 2.35rem;
  }

  .deal-owner-mode-image {
    width: clamp(140px, 52vw, 188px);
    max-height: 31vh;
    margin-top: 0.85rem;
  }
}

.inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #516075;
  font-size: 0.9rem;
}

.inline-filter select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.inline-filter select:focus {
  outline: none;
}

.todo-score-metric {
  border-color: #bfd7eb;
  background: linear-gradient(145deg, #f2f8ff 0%, #e5f0ff 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 0.7rem 1.25rem;
  border-radius: 22px;
  border-width: 1.5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 10px 22px rgba(29, 55, 95, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.todo-score-metric .inline-metric-label {
  color: #486987;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease;
}

.todo-score-metric .inline-metric-value {
  color: #12456f;
  min-width: 2.6ch;
  justify-self: end;
  font-size: clamp(1.7rem, 2.15vw, 2.05rem);
  line-height: 1;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.todo-score-metric.score-scary {
  border-color: #c93c32;
  background: linear-gradient(145deg, #ffe4e1 0%, #ffc6c0 100%);
  box-shadow: 0 0 0 1px rgba(201, 60, 50, 0.18), 0 10px 22px rgba(164, 28, 18, 0.18);
  transform: translateY(-1px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 21, 36, 0.52);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  border: 1px solid rgba(160, 177, 204, 0.6);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(18, 32, 56, 0.22);
  padding: 1.2rem;
}

.deal-notes-modal-card {
  width: min(980px, 100%);
}

.deal-detail-modal-card {
  width: min(760px, 100%);
}

.deal-detail-modal-head {
  align-items: flex-start;
}

.deal-detail-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  min-width: 0;
}

.deal-detail-owner-badge {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  margin-top: 0.12rem;
  font-size: 0.82rem;
}

.deal-detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.deal-detail-form .deal-field-wide,
.deal-detail-form .deal-detail-actions {
  grid-column: 1 / -1;
}

.deal-detail-form .deal-notes {
  min-height: 180px;
}

.deal-detail-form .deal-contact-info {
  min-height: 92px;
}

.deal-detail-form input,
.deal-detail-form textarea {
  min-width: 0;
  font: inherit;
  color: #202b43;
}

.deal-detail-form .deal-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4f5f7c;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
}

.deal-detail-action-buttons {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.deal-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid #2563eb;
  border-radius: 12px;
  padding: 0.68rem 1rem;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    0 10px 22px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.deal-primary-btn:hover {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.deal-primary-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.deal-action-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.46rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.deal-detail-save-status {
  min-height: 1.1rem;
  margin-left: auto;
  color: #607089;
  font-size: 0.78rem;
  font-weight: 700;
}

.deal-detail-save-status[data-tone="success"] {
  color: #087a46;
}

.deal-detail-save-status[data-tone="error"] {
  color: #b3261e;
}

.deal-detail-delete-btn {
  border-color: #efb1ad;
  background: #fff7f6;
  color: #b3261e;
}

.deal-detail-delete-btn:hover {
  border-color: #e08c86;
  background: #fff0ef;
  color: #9b1c16;
}

.closed-arr-modal-card {
  width: min(920px, 100%);
}

.ai-followup-modal-card {
  width: min(920px, 100%);
}

.customer-modal-card {
  width: min(760px, 100%);
}

.sheet-row-modal-card {
  width: min(760px, 100%);
}

.todo-priority-modal-card {
  width: min(780px, 100%);
}

.todo-add-task-modal-card {
  width: min(540px, 100%);
}

.todo-delete-confirm-modal-card {
  width: min(440px, 100%);
}

.shared-changelog-modal-card {
  width: min(760px, 100%);
  padding: 1.15rem;
}

.help-settings-modal-card {
  width: min(460px, 100%);
  padding: 1.1rem;
}

.shared-changelog-head {
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #e4e9f2;
}

.help-settings-head {
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e4e9f2;
}

.shared-changelog-head .eyebrow {
  margin: 0 0 0.28rem;
  color: #596171;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-settings-head .eyebrow {
  margin: 0 0 0.24rem;
  color: #596171;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-changelog-head h2 {
  margin: 0;
  color: #151821;
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: 0;
}

.help-settings-head h2 {
  margin: 0;
  color: #151821;
  font-size: 1.24rem;
  font-weight: 760;
  letter-spacing: 0;
}

.shared-changelog-head .subtitle {
  max-width: 560px;
  margin: 0.28rem 0 0;
  color: #607089;
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-settings-list {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.95rem;
}

.help-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 4rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(26, 31, 54, 0.05);
}

.help-settings-copy {
  min-width: 0;
}

.help-settings-copy label {
  display: block;
  color: #202b43;
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.25;
}

.help-settings-copy p {
  margin: 0.22rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.help-settings-state {
  min-width: 2.15rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.help-settings-switch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 1.55rem;
  cursor: pointer;
}

.help-settings-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.help-settings-switch-track {
  position: relative;
  width: 2.65rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.14);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.help-settings-switch-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.24);
  transition: transform 0.16s ease;
}

.help-settings-switch input:checked + .help-settings-switch-track {
  background: #1d9bf0;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.14),
    0 0 0 3px rgba(29, 155, 240, 0.12);
}

.help-settings-switch input:checked + .help-settings-switch-track .help-settings-switch-thumb {
  transform: translateX(1.1rem);
}

.help-settings-switch input:focus-visible + .help-settings-switch-track {
  outline: 3px solid rgba(29, 155, 240, 0.22);
  outline-offset: 2px;
}

.shared-changelog-list {
  display: grid;
  gap: 0;
  padding-top: 0.9rem;
}

.shared-changelog-date {
  margin: 1rem 0 0.5rem;
  color: #697386;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-changelog-date:first-child {
  margin-top: 0;
}

.shared-changelog-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0 0 1rem;
}

.shared-changelog-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.78rem;
  bottom: 0;
  width: 1px;
  background: #e1e7f0;
}

.shared-changelog-marker {
  position: relative;
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.22rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 1px #bfd0ff;
}

.shared-changelog-entry-body {
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(26, 31, 54, 0.06);
}

.shared-changelog-entry-body h4 {
  margin: 0;
  color: #202b43;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.3;
}

.shared-changelog-entry-body p {
  margin: 0.38rem 0 0;
  color: #53627a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.shared-changelog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.62rem;
}

.shared-changelog-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 0.45rem;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #f7f9fc;
  color: #3c4257;
  font-size: 0.72rem;
  font-weight: 750;
}

.todo-add-task-form {
  display: grid;
  gap: 0.95rem;
}

.todo-delete-confirm-task {
  margin: 0.25rem 0 1rem;
  border: 1px solid #fecdca;
  border-radius: 12px;
  padding: 0.82rem 0.92rem;
  background: #fff7f6;
  color: #7a271a;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.todo-delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.todo-delete-confirm-submit {
  border-color: #f04438;
  background: #d92d20;
  color: #ffffff;
}

.todo-delete-confirm-submit:hover,
.todo-delete-confirm-submit:focus-visible {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.deal-notes-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.customer-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem 1.15rem;
  align-items: start;
}

.sheet-row-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem 1.15rem;
  align-items: start;
}

.sheet-row-fields[hidden] {
  display: none;
}

.sheet-row-wide-field {
  grid-column: 1 / -1;
}

.deal-notes-pane,
.deal-draft-pane {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #4f5f74;
  font-weight: 600;
}

.modal-field span {
  display: block;
  color: #4a5f7b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.modal-field input,
.modal-field textarea,
.modal-field select {
  width: 100%;
  border: 1px solid #cfd8e7;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.modal-field textarea {
  resize: vertical;
  min-height: 140px;
}

.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.16);
  border-color: #7fc3bb;
}

.customer-modal-card .modal-head {
  margin-bottom: 1.15rem;
}

.customer-modal-card .modal-head h2 {
  margin-bottom: 0.28rem;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
}

.customer-modal-card .subtitle {
  max-width: 48rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.customer-modal-card .modal-field {
  gap: 0.58rem;
}

.customer-modal-card .modal-field span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #536883;
}

.customer-modal-card .modal-field input,
.customer-modal-card .modal-field select {
  min-height: 64px;
  border-radius: 18px;
  padding: 0 1.05rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f3048;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(31, 50, 81, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 160ms ease;
}

.customer-modal-card .modal-field input::placeholder {
  color: #7b8798;
  font-weight: 600;
}

.customer-modal-card .modal-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' stroke='%23293b55' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 1rem center;
  background-size: auto, 0.9rem;
  cursor: pointer;
}

.customer-modal-card .modal-field input:focus,
.customer-modal-card .modal-field select:focus {
  box-shadow:
    0 0 0 4px rgba(15, 118, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.customer-modal-card .deal-notes-actions {
  margin-top: 1.2rem;
}

.customer-modal-card .deal-notes-actions button {
  min-height: 56px;
  padding: 0 1.35rem;
  border-radius: 16px;
  font-weight: 600;
}

.deal-draft-fields {
  display: grid;
  gap: 0.95rem;
}

.deal-draft-approval-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
  margin-top: 0.1rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(251, 253, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.deal-draft-approval-bar strong,
.deal-draft-approval-bar span {
  display: block;
}

.deal-draft-approval-bar strong {
  color: #18243b;
  font-size: 0.92rem;
  font-weight: 850;
}

.deal-draft-approval-bar > div > span {
  margin-top: 0.16rem;
  color: #63718a;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.3;
}

.deal-draft-approval-bar .deal-primary-btn {
  width: 100%;
  min-height: 46px;
}

.modal-currency-input {
  font-weight: 700;
  color: #24324a;
}

.deal-notes-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
}

.deal-draft-status {
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  color: #295e59;
  padding: 0.85rem 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.95rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0 0 0.2rem;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.modal-close-btn {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.closed-arr-summary {
  border-radius: 16px;
  background: linear-gradient(145deg, #eff8ff 0%, #e5f8ee 100%);
  border: 1px solid #cfe0f2;
  color: #24415d;
  padding: 0.9rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.closed-arr-chart-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.94));
  padding: 1rem;
}

.ai-followup-status {
  margin-bottom: 0.85rem;
}

.ai-followup-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.95rem;
}

.ai-followup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ai-followup-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
}

.ai-followup-panel h3 {
  margin: 0.15rem 0 0.75rem;
  color: #20324b;
}

.ai-followup-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.75rem;
  color: #42536d;
}

.ai-followup-list li {
  line-height: 1.45;
}

.todo-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0;
}

.todo-lane-head h4 {
  margin: 0;
}

.todo-priority-trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(245, 176, 62, 0.28);
  background: rgba(255, 194, 87, 0.12);
  color: #a85f09;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 200ms ease;
}

.todo-priority-trigger svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.todo-priority-trigger:hover,
.todo-priority-trigger:focus-visible {
  background: rgba(255, 194, 87, 0.2);
  border-color: rgba(245, 176, 62, 0.42);
  color: #8f5308;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 18px rgba(245, 176, 62, 0.14);
}

.todo-priority-trigger:focus-visible {
  outline: 2px solid rgba(245, 176, 62, 0.2);
  outline-offset: 2px;
}

.todo-priority-status {
  margin-bottom: 0.95rem;
}

.todo-priority-list {
  display: grid;
  gap: 0.85rem;
}

.todo-priority-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.95rem 1rem;
}

.todo-priority-rank {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff8e7 0%, #ffe8b6 100%);
  border: 1px solid rgba(235, 175, 73, 0.34);
  color: #8a5710;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.todo-priority-task {
  margin: 0 0 0.24rem;
  color: #21324b;
  font-size: 1rem;
}

.todo-priority-reason {
  margin: 0;
  color: #556780;
  line-height: 1.48;
}

.closed-arr-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: end;
  min-height: 320px;
}

.closed-arr-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #59708b;
  font-weight: 600;
}

.closed-arr-bar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.3rem 0.2rem;
}

.closed-arr-bar-month {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #304964;
  letter-spacing: 0.01em;
}

.closed-arr-bars {
  display: flex;
  gap: 0.8rem;
  align-items: end;
}

.closed-arr-bar-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2a4864;
  text-align: center;
  min-height: 1.2rem;
}

.closed-arr-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.closed-arr-bar-track {
  height: 220px;
  width: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef4fb 0%, #dfeaf7 100%);
  border: 1px solid #cfdbeb;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0.35rem;
}

.closed-arr-bar-track.is-closed {
  background: linear-gradient(180deg, #edf8f3 0%, #d9efe5 100%);
  border-color: #bfdccf;
}

.closed-arr-bar-track.is-dead {
  background: linear-gradient(180deg, #fff1f0 0%, #ffe3e1 100%);
  border-color: #efc8c3;
}

.closed-arr-bar {
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, #39a57f 0%, #0f766e 100%);
  box-shadow:
    0 10px 18px rgba(15, 118, 110, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  min-height: 10px;
  transition: height 220ms ease;
}

.closed-arr-bar.is-closed {
  background: linear-gradient(180deg, #39a57f 0%, #0f766e 100%);
  box-shadow:
    0 10px 18px rgba(15, 118, 110, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.closed-arr-bar.is-dead {
  background: linear-gradient(180deg, #ef6f67 0%, #c83f3a 100%);
  box-shadow:
    0 10px 18px rgba(200, 63, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.closed-arr-bar-card.is-current {
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.72), rgba(242, 247, 255, 0.32));
  border-radius: 18px;
}

.closed-arr-bar-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4f647f;
  line-height: 1.2;
  max-width: 72px;
}

.closed-arr-bar-card.is-current .closed-arr-bar-label,
.closed-arr-bar-card.is-current .closed-arr-bar-month {
  color: #1d4ed8;
}

button:disabled,
select:disabled {
  cursor: wait;
  opacity: 0.72;
}

.todo-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.todo-history-card {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid #cfd9ea;
  border-radius: 18px;
  min-height: 210px;
  padding: 1rem 1.05rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.9));
  box-shadow: 0 12px 28px rgba(35, 60, 95, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.todo-history-card:hover,
.todo-history-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(35, 60, 95, 0.14);
  outline: none;
}

.todo-history-card.is-current {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(35, 60, 95, 0.15);
}

.todo-history-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: start;
}

.todo-history-month {
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #68758c;
  margin-bottom: 0.2rem;
}

.todo-history-rank {
  font-size: 1.2rem;
}

.todo-history-score-wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid rgba(128, 146, 175, 0.16);
  padding-top: 0.8rem;
}

.todo-history-score-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #68758c;
}

.todo-history-score-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.todo-history-card-copy {
  margin: 0.8rem 0 0;
  color: #526074;
  line-height: 1.45;
}

.todo-history-card-actions {
  margin-top: 0.9rem;
}

.todo-history-insight-box {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(20, 33, 54, 0.06);
  color: #273447;
  white-space: pre-line;
  line-height: 1.5;
}

.sheet-empty-state {
  text-align: center;
  color: #617187;
  font-weight: 600;
  padding: 1rem;
}

.todo-history-card.score-scary {
  border-color: #d36a62;
  background: linear-gradient(145deg, rgba(255, 236, 234, 0.98), rgba(255, 247, 246, 0.94));
}

.todo-history-card.score-scary .todo-history-rank,
.todo-history-card.score-scary .todo-history-score-value {
  color: #a22720;
}

.todo-history-card.score-caution {
  border-color: #d9c37d;
  background: linear-gradient(145deg, rgba(255, 250, 228, 0.98), rgba(255, 245, 205, 0.94));
}

.todo-history-card.score-caution .todo-history-rank,
.todo-history-card.score-caution .todo-history-score-value {
  color: #936d08;
}

.todo-history-card.score-steady {
  border-color: #9ec4eb;
  background: linear-gradient(145deg, rgba(238, 246, 255, 0.98), rgba(223, 238, 255, 0.94));
}

.todo-history-card.score-steady .todo-history-rank,
.todo-history-card.score-steady .todo-history-score-value {
  color: #1b5f99;
}

.todo-history-card.score-strong {
  border-color: #88cfa9;
  background: linear-gradient(145deg, rgba(236, 253, 240, 0.98), rgba(217, 247, 225, 0.94));
}

.todo-history-card.score-strong .todo-history-rank,
.todo-history-card.score-strong .todo-history-score-value {
  color: #1f7a47;
}

.todo-history-card.score-celebration {
  border-color: #63cc91;
  background:
    radial-gradient(circle at top right, rgba(250, 239, 132, 0.5), transparent 34%),
    linear-gradient(145deg, rgba(227, 255, 235, 0.98), rgba(198, 248, 213, 0.95));
  box-shadow: 0 18px 36px rgba(56, 140, 82, 0.16);
}

.todo-history-card.score-celebration .todo-history-rank,
.todo-history-card.score-celebration .todo-history-score-value {
  color: #0f7a3a;
}

.todo-score-metric.score-scary .inline-metric-label,
.todo-score-metric.score-scary .inline-metric-value {
  color: #8f1208;
}

.todo-score-metric.score-scary .inline-metric-value {
  text-shadow: 0 0 12px rgba(143, 18, 8, 0.16);
}

.todo-score-metric.score-caution {
  border-color: #d2a63b;
  background: linear-gradient(145deg, #fff7df 0%, #f9ebbf 100%);
}

.todo-score-metric.score-caution .inline-metric-label,
.todo-score-metric.score-caution .inline-metric-value {
  color: #8a6410;
}

.todo-score-metric.score-steady {
  border-color: #8bb9d9;
  background: linear-gradient(145deg, #edf7ff 0%, #dceefe 100%);
}

.todo-score-metric.score-steady .inline-metric-label,
.todo-score-metric.score-steady .inline-metric-value {
  color: #1f5f8f;
}

.todo-score-metric.score-strong {
  border-color: #6fae88;
  background: linear-gradient(145deg, #e6f8ec 0%, #ccefd9 100%);
  box-shadow: 0 8px 18px rgba(33, 121, 71, 0.12);
}

.todo-score-metric.score-strong .inline-metric-label,
.todo-score-metric.score-strong .inline-metric-value {
  color: #0f6a3b;
}

.todo-score-metric.score-celebration {
  border-color: #4eb67e;
  background: linear-gradient(145deg, #dcfce8 0%, #baf2cd 55%, #dff7ff 100%);
  box-shadow: 0 12px 24px rgba(20, 121, 73, 0.18);
  transform: translateY(-1px);
}

.todo-score-metric.score-celebration .inline-metric-label,
.todo-score-metric.score-celebration .inline-metric-value {
  color: #0c7a48;
}

.todo-score-metric.score-celebration .inline-metric-value {
  text-shadow: 0 0 16px rgba(12, 122, 72, 0.14);
}

.ghost-btn,
button,
input,
textarea,
select {
  font: inherit;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.revenue-billing-tabs .revenue-billing-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.revenue-billing-tabs .revenue-billing-tab:focus-visible {
  outline: 2px solid rgba(107, 92, 255, 0.2);
  outline-offset: 4px;
}

.composer {
  margin: 0.95rem 0;
}

.deal-launch-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

#view-overlap-deals .deal-launch-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

.deal-launch-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.deal-launch-bar button,
.deal-launch-bar .ghost-btn {
  min-height: 56px;
  padding: 0 1.18rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

#view-overlap-deals .deal-launch-bar .deal-owner-filter-control {
  justify-self: end;
}

.home-hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6dfef;
  border-radius: 28px;
  padding: 1.35rem 1.35rem 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(104, 166, 233, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(31, 118, 110, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.92));
  box-shadow: 0 24px 44px rgba(21, 37, 68, 0.1);
}

.home-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.home-title-block {
  max-width: 760px;
}

.home-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #466688;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-title-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cdddf0;
  background: rgba(255, 255, 255, 0.88);
  color: #214b73;
  border-radius: 999px;
  padding: 0.5rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-hero-brief {
  margin-top: 1rem;
}

.home-hero-copy {
  max-width: 680px;
}

.home-brief-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero-copy h2 {
  margin: 0;
  color: #132844;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-hero-copy p {
  margin: 0.7rem 0 0;
  max-width: 58ch;
  color: #55677c;
  font-size: 1rem;
  line-height: 1.55;
}

.home-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.home-hero-metrics {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.95rem;
}

.home-hero-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82)),
    linear-gradient(145deg, #f3f8ff 0%, #eef8f4 100%);
  border: 1px solid #cfdced;
  border-radius: 24px;
  padding: 1.3rem 1.35rem;
  box-shadow: 0 20px 34px rgba(18, 33, 66, 0.11);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.home-hero-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6f88;
}

.home-hero-value {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #123f6a;
}

.home-hero-note {
  margin: 0.85rem 0 0;
  color: #607084;
  max-width: 34ch;
  line-height: 1.45;
}

.home-hero-card.score-scary {
  background:
    radial-gradient(circle at top left, rgba(255, 250, 250, 0.96), rgba(255, 228, 225, 0.88)),
    linear-gradient(145deg, #ffe2df 0%, #ffc4bc 100%);
  border-color: #c93c32;
  box-shadow: 0 18px 32px rgba(164, 28, 18, 0.18);
}

.home-hero-card.score-scary .home-hero-label,
.home-hero-card.score-scary .home-hero-value {
  color: #8f1208;
}

.home-hero-card.score-caution {
  background:
    radial-gradient(circle at top left, rgba(255, 252, 244, 0.96), rgba(255, 247, 223, 0.9)),
    linear-gradient(145deg, #fff7df 0%, #f9ebbf 100%);
  border-color: #d2a63b;
}

.home-hero-card.score-caution .home-hero-label,
.home-hero-card.score-caution .home-hero-value {
  color: #8a6410;
}

.home-hero-card.score-steady {
  background:
    radial-gradient(circle at top left, rgba(248, 252, 255, 0.96), rgba(237, 247, 255, 0.88)),
    linear-gradient(145deg, #edf7ff 0%, #dceefe 100%);
  border-color: #8bb9d9;
}

.home-hero-card.score-steady .home-hero-label,
.home-hero-card.score-steady .home-hero-value {
  color: #1f5f8f;
}

.home-hero-card.score-strong {
  background:
    radial-gradient(circle at top left, rgba(248, 255, 251, 0.96), rgba(230, 248, 236, 0.9)),
    linear-gradient(145deg, #e6f8ec 0%, #ccefd9 100%);
  border-color: #6fae88;
  box-shadow: 0 18px 30px rgba(33, 121, 71, 0.14);
}

.home-hero-card.score-strong .home-hero-label,
.home-hero-card.score-strong .home-hero-value {
  color: #0f6a3b;
}

.home-hero-card.score-celebration {
  background:
    radial-gradient(circle at top left, rgba(249, 255, 252, 0.98), rgba(220, 252, 232, 0.9)),
    linear-gradient(145deg, #dcfce8 0%, #baf2cd 55%, #dff7ff 100%);
  border-color: #4eb67e;
  box-shadow: 0 20px 34px rgba(20, 121, 73, 0.18);
}

.home-hero-card.score-celebration .home-hero-label,
.home-hero-card.score-celebration .home-hero-value {
  color: #0c7a48;
}

.home-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
  border: 1px solid #d6dfec;
  border-radius: 20px;
  padding: 1.1rem 1.08rem;
  box-shadow: 0 14px 26px rgba(18, 33, 66, 0.08);
}

.home-link {
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.home-link:hover,
.home-link:focus-visible {
  transform: translateY(-3px);
  border-color: #99b6da;
  box-shadow: 0 22px 34px rgba(18, 33, 66, 0.12);
  outline: none;
}

.home-card-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #5a718b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-card h3 {
  margin: 0 0 0.42rem;
  color: #17253d;
}

.home-card p {
  margin: 0;
  color: #627285;
  line-height: 1.45;
}

.todo-week-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.95rem;
}

.talking-points-wrap {
  margin-top: 0.95rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 26px rgba(18, 33, 66, 0.08);
}

.customer-board-shell {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.95rem;
}

.customer-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 16px 28px rgba(18, 33, 66, 0.08);
}

.customer-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.customer-sort-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #556882;
  font-size: 0.84rem;
  font-weight: 700;
}

.customer-sort-control span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #62758f;
}

.customer-sort-control select {
  border: 1px solid #cfd8e7;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  color: #22344d;
  font: inherit;
  font-weight: 700;
}

.customer-sort-control select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.14);
  border-color: #80c7be;
}

@media (max-width: 720px) {
  .customer-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-sort-control {
    justify-content: space-between;
  }
}

.customer-panel-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #5a718b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-panel h2 {
  margin: 0;
  color: #17253d;
  font-size: 1.1rem;
}

.customer-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.customer-table-wrap.muted {
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.96), rgba(253, 238, 236, 0.96));
  border-color: #efcfca;
}

.customer-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.customer-table th,
.customer-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e2e8f3;
  text-align: left;
  vertical-align: middle;
}

.customer-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  color: #50627a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 248, 254, 0.92);
  box-shadow: inset 0 -1px 0 #e2e8f3;
}

.customer-sort-header {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  text-align: left;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.customer-sort-header::after {
  content: "↕";
  color: #9aabc0;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.customer-sort-header:hover,
.customer-sort-header:focus-visible {
  color: #213754;
  outline: none;
}

.customer-sort-header:hover::after,
.customer-sort-header:focus-visible::after {
  color: #617a99;
  transform: translateY(-0.5px);
}

.customer-sort-header.is-active {
  color: #183a62;
}

.customer-sort-header.is-active::after {
  content: "↓";
  color: #2f6b5d;
}

.customer-sort-header[data-sort="name_asc"].is-active::after,
.customer-sort-header[data-sort="health_best"].is-active::after {
  content: "↑";
}

.customer-table tbody tr:last-child td {
  border-bottom: 0;
}

.customer-table tbody tr:nth-child(even) td {
  background: rgba(249, 251, 255, 0.78);
}

.customer-name {
  font-weight: 700;
  color: #18263f;
}

.customer-input,
.customer-select {
  width: 100%;
  border: 1px solid #ccd7e8;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  background: rgba(255, 255, 255, 0.95);
  color: #203049;
  font: inherit;
}

.customer-input:focus,
.customer-select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.14);
  border-color: #80c7be;
}

.customer-status-cell {
  min-width: 220px;
}

.customer-select {
  font-weight: 700;
}

.customer-select.status-healthy {
  border-color: #a7d7bc;
  background: #eefaf2;
  color: #1e6a42;
}

.customer-select.status-watching {
  border-color: #d5c690;
  background: #fff8e1;
  color: #8a6710;
}

.customer-select.status-at-risk {
  border-color: #e7b1a8;
  background: #fff0ee;
  color: #9f2e24;
}

.customer-select.status-churned {
  border-color: #e2b7b1;
  background: #fff0ee;
  color: #93423b;
}

.customer-empty-state {
  padding: 1.4rem 1rem;
  color: #617187;
  text-align: center;
  font-weight: 600;
}

.customer-archive-shell {
  margin-top: 0.25rem;
}

.customer-archive {
  border: 1px solid #efcfca;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.9), rgba(254, 240, 238, 0.86));
  overflow: hidden;
}

.customer-archive summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  font-weight: 700;
  color: #804743;
}

.customer-archive summary::-webkit-details-marker {
  display: none;
}

.customer-archive-count {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e6c1ba;
  background: rgba(255, 245, 244, 0.92);
  color: #91463f;
  font-size: 0.9rem;
}

.customer-archive-content {
  padding: 0 1rem 1rem;
}

.customer-table-muted tbody td,
.customer-table-muted th {
  color: #8a5a55;
}

.customer-table-muted .customer-name {
  color: #764743;
}

#view-growth-tracking.view-panel.active {
  display: grid;
  gap: 0.95rem;
}

#view-growth-tracking .topbar {
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.92));
  box-shadow: 0 16px 30px rgba(17, 31, 58, 0.05);
}

.growth-tracking-actions {
  justify-content: flex-end;
}

.growth-tracking-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.62rem 0.92rem;
  text-decoration: none;
}

.growth-tracking-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.growth-tracking-summary-card {
  min-width: 0;
  min-height: 110px;
  padding: 0.95rem 1rem;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(18, 33, 66, 0.06);
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.growth-tracking-summary-card span {
  color: #5a6d87;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.growth-tracking-summary-card strong {
  color: #17253d;
  font-size: 1.85rem;
  line-height: 1;
}

.growth-tracking-summary-card small {
  min-width: 0;
  color: #65758b;
  font-size: 0.84rem;
  line-height: 1.3;
}

.growth-tracking-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
}

.growth-tracking-controls .inline-filter {
  min-height: 46px;
  border-radius: 16px;
  padding: 0.45rem 0.75rem;
}

.growth-tracking-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  min-width: min(380px, 100%);
  flex: 1 1 320px;
  border: 1px solid #cfd8e7;
  border-radius: 16px;
  padding: 0.45rem 0.75rem;
  background: #ffffff;
  color: #556882;
  box-shadow: 0 10px 18px rgba(18, 33, 66, 0.04);
}

.growth-tracking-search span {
  color: #53657d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.growth-tracking-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #22344d;
  font: inherit;
  outline: none;
}

.growth-tracking-status {
  margin: 0;
  min-height: 1.3rem;
  color: #617187;
  font-size: 0.9rem;
  font-weight: 700;
}

.growth-tracking-status.is-error {
  color: #a7352a;
}

.growth-tracking-layout {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.growth-tracking-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 28px rgba(18, 33, 66, 0.08);
  padding: 1rem;
}

.growth-tracking-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.growth-tracking-panel-head h2 {
  margin: 0;
  color: #17253d;
  font-size: 1.1rem;
}

.growth-tracking-panel-head > span {
  color: #617187;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.growth-tracking-sheet-panel {
  padding: 0.9rem;
}

.growth-tracking-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.38rem 0.48rem;
  border: 1px solid #d8e1ef;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #edf2f8;
}

.growth-tracking-sheet-tool-group {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  padding-right: 0.48rem;
  border-right: 1px solid #cfd8e7;
}

.growth-tracking-sheet-tool-group:last-child {
  border-right: 0;
}

.growth-tracking-sheet-tool,
.growth-tracking-sheet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #263348;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.growth-tracking-sheet-tool {
  padding: 0 0.54rem;
}

.growth-tracking-create-lead {
  border-color: #b9d4f7;
  background: #ffffff;
  color: #174ea6;
}

.growth-tracking-sheet-icon {
  width: 30px;
  padding: 0;
}

.growth-tracking-sheet-tool:disabled,
.growth-tracking-sheet-icon:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.growth-tracking-sheet-tool:disabled:hover,
.growth-tracking-sheet-icon:disabled:hover {
  border-color: transparent;
  background: transparent;
}

.growth-tracking-sheet-tool:hover,
.growth-tracking-sheet-icon:hover {
  border-color: #c2ccdc;
  background: rgba(255, 255, 255, 0.7);
}

.growth-tracking-sheet-icon.is-active {
  background: #d7e6ff;
  color: #174ea6;
}

.growth-tracking-sheet-zoom {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.5rem;
  color: #42526b;
  font-size: 0.78rem;
  font-weight: 800;
}

.growth-tracking-formula-bar {
  display: grid;
  grid-template-columns: 72px 34px minmax(0, 1fr);
  align-items: center;
  min-height: 32px;
  border: 1px solid #d8e1ef;
  border-bottom: 0;
  background: #ffffff;
}

#growth-tracking-cell-name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-right: 1px solid #d8e1ef;
  color: #263348;
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.growth-tracking-formula-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-right: 1px solid #d8e1ef;
  color: #8b96a8;
  font-size: 0.84rem;
  font-style: italic;
  font-weight: 800;
}

#growth-tracking-formula-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 0.65rem;
  color: #17253d;
  font: inherit;
  font-size: 0.82rem;
  background: #ffffff;
}

.growth-tracking-sheet-wrap {
  height: min(72vh, 760px);
  min-height: 430px;
  overflow: auto;
  border: 1px solid #d8e1ef;
  border-radius: 0 0 14px 14px;
  background: #ffffff;
}

.growth-tracking-sheet-grid {
  display: grid;
  align-items: stretch;
  min-width: max-content;
  color: #111827;
  font-size: 0.82rem;
}

.growth-tracking-sheet-corner,
.growth-tracking-sheet-column-letter,
.growth-tracking-sheet-row-number,
.growth-tracking-sheet-header-cell,
.growth-tracking-sheet-cell {
  box-sizing: border-box;
  min-height: 28px;
  border-right: 1px solid #d9dfe9;
  border-bottom: 1px solid #d9dfe9;
}

.growth-tracking-sheet-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 8;
  background: #f1f3f4;
}

.growth-tracking-sheet-column-letter {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.growth-tracking-sheet-row-number {
  position: sticky;
  left: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: #f8fafd;
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.growth-tracking-sheet-header-number {
  top: 28px;
  z-index: 7;
  background: #dfeeda;
}

.growth-tracking-sheet-header-cell {
  position: sticky;
  top: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.5rem;
  background: #dbeed6;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.growth-tracking-sheet-cell {
  position: relative;
  min-height: 30px;
  background: #ffffff;
  color: #111827;
  overflow: hidden;
}

.growth-tracking-sheet-cell:hover {
  background: #f8fbff;
}

.growth-tracking-sheet-row-number.is-selected-row,
.growth-tracking-sheet-cell.is-selected-row {
  background: #eef5ff;
}

.growth-tracking-sheet-cell:focus {
  outline: none;
}

.growth-tracking-sheet-cell.is-active {
  z-index: 3;
  outline: 2px solid #1a73e8;
  outline-offset: -2px;
}

.growth-tracking-sheet-cell-value {
  width: 100%;
  min-height: 100%;
  padding: 0.34rem 0.42rem;
  outline: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.growth-tracking-sheet-cell-value:focus {
  background: #ffffff;
}

.growth-tracking-sheet-select {
  width: calc(100% - 12px);
  min-height: 22px;
  margin: 4px 6px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  padding: 0 1.35rem 0 0.5rem;
  background: #e8eaed;
  color: #111827;
  font: inherit;
  font-size: 0.8rem;
}

.growth-tracking-sheet-cell.is-active .growth-tracking-sheet-select {
  background: #dbeafe;
}

.growth-tracking-empty {
  grid-column: 1 / -1;
  padding: 1.4rem 1rem;
  color: #617187;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .growth-tracking-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-growth-tracking .topbar,
  .growth-tracking-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .growth-tracking-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .growth-tracking-summary-grid {
    gap: 0.55rem;
  }

  .growth-tracking-summary-card {
    min-height: 96px;
    border-radius: 14px;
    padding: 0.75rem;
  }

  .growth-tracking-summary-card strong {
    font-size: 1.48rem;
  }

  .growth-tracking-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .growth-tracking-controls .inline-filter,
  .growth-tracking-controls .inline-filter select,
  .growth-tracking-search {
    width: 100%;
  }

  .growth-tracking-panel {
    border-radius: 18px;
    padding: 0.78rem;
  }

  .growth-tracking-sheet-toolbar {
    align-items: stretch;
  }

  .growth-tracking-formula-bar {
    grid-template-columns: 58px 30px minmax(0, 1fr);
  }

  .growth-tracking-sheet-wrap {
    min-height: 380px;
    height: 70vh;
  }
}

.talking-points-editor {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #d4dcee;
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  color: #24324a;
  font: 500 1rem/1.7 "Avenir Next", "Trebuchet MS", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  resize: vertical;
  box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.65);
}

.talking-points-editor:focus {
  outline: 2px solid rgba(15, 118, 110, 0.16);
  border-color: #7fc3bb;
}

.todo-day {
  background:
    radial-gradient(circle at top right, rgba(125, 169, 221, 0.09), transparent 33%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  border: 1px solid rgba(207, 217, 235, 0.92);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 18px 34px rgba(18, 33, 66, 0.08);
}

.todo-day.is-today {
  border-color: rgba(73, 136, 220, 0.42);
  box-shadow:
    0 22px 38px rgba(18, 33, 66, 0.1),
    0 0 0 1px rgba(73, 136, 220, 0.16);
}

.todo-day.has-overdue-work {
  border-color: rgba(205, 91, 65, 0.24);
}

.todo-day-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.todo-day-title {
  display: grid;
  gap: 0.2rem;
}

.todo-day-name {
  color: #667a95;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.todo-day h3 {
  margin: 0;
  color: #16253e;
  font-size: 1.18rem;
  line-height: 1.05;
}

.todo-day-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.todo-day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.todo-day-pill.is-today {
  background: rgba(61, 128, 214, 0.11);
  color: #24548c;
}

.todo-day-pill.is-overdue {
  background: rgba(196, 86, 61, 0.12);
  color: #a1472f;
}

.todo-day-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.todo-day-stat {
  padding: 0.72rem 0.8rem;
  border-radius: 16px;
  background: rgba(244, 248, 255, 0.9);
  border: 1px solid rgba(213, 224, 242, 0.85);
}

.todo-day-stat strong {
  display: block;
  color: #182840;
  font-size: 1.15rem;
}

.todo-day-stat span {
  display: block;
  margin-top: 0.2rem;
  color: #6b7d95;
  font-size: 0.82rem;
}

.todo-subcolumns {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 0.7rem;
}

.todo-subcolumn {
  border: 1px solid rgba(211, 221, 238, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 255, 0.95));
  min-height: 260px;
  padding: 0.8rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.todo-subcolumn.done {
  background: linear-gradient(180deg, rgba(244, 251, 246, 0.98), rgba(237, 248, 240, 0.94));
  border-color: rgba(191, 222, 199, 0.95);
}

.todo-subcolumn.drop-target {
  box-shadow:
    inset 0 0 0 2px rgba(72, 170, 109, 0.32),
    0 14px 24px rgba(22, 55, 38, 0.08);
}

.todo-cells {
  display: grid;
  gap: 0.55rem;
}

.todo-cell {
  min-height: 86px;
  border: 1px solid rgba(204, 216, 236, 0.96);
  border-radius: 18px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(17, 31, 58, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.todo-cell:hover {
  border-color: rgba(157, 181, 217, 0.96);
  box-shadow: 0 14px 24px rgba(17, 31, 58, 0.06);
}

.todo-cell-main {
  min-width: 0;
}

.todo-cell-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.todo-cell-input {
  width: 100%;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #182840;
  font: 600 0.98rem/1.45 "Avenir Next", "Trebuchet MS", sans-serif;
  resize: none;
  overflow: hidden;
  outline: none;
  white-space: pre-wrap;
}

.todo-cell-input::placeholder {
  color: #8a98ad;
}

.todo-cell-actions {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.todo-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(201, 212, 230, 0.95);
  background: rgba(247, 250, 255, 0.98);
  color: #3a5373;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 180ms ease;
}

.todo-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.todo-icon-btn:hover,
.todo-icon-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(17, 31, 58, 0.08);
}

.todo-icon-btn.is-complete:hover,
.todo-icon-btn.is-complete:focus-visible {
  border-color: rgba(28, 150, 93, 0.35);
  background: rgba(30, 182, 109, 0.1);
  color: #0d7a45;
}

.todo-icon-btn.is-return:hover,
.todo-icon-btn.is-return:focus-visible {
  border-color: rgba(73, 136, 220, 0.35);
  background: rgba(73, 136, 220, 0.1);
  color: #25548a;
}

.todo-delete-btn:hover,
.todo-delete-btn:focus-visible {
  border-color: rgba(198, 82, 60, 0.35);
  background: rgba(198, 82, 60, 0.1);
  color: #a03f2d;
}

.todo-cell.dragging {
  opacity: 0.62;
  transform: rotate(1deg);
}

.todo-cell.dragging-hidden {
  display: none;
}

.todo-cell-settling {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.todo-drop-placeholder {
  min-height: 78px;
  border: 1px dashed #87b6d8;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(235, 245, 255, 0.94), rgba(225, 239, 255, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.todo-cell.overdue {
  border-color: rgba(205, 91, 65, 0.46);
  box-shadow:
    0 0 0 1px rgba(205, 91, 65, 0.2),
    0 10px 20px rgba(178, 68, 46, 0.06);
}

.todo-empty-state {
  min-height: 104px;
  border: 1px dashed rgba(195, 209, 231, 0.95);
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.82);
  color: #7d8ea5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem;
  line-height: 1.4;
}

.todo-lane-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.todo-lane-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.todo-lane-head h4 {
  margin: 0;
  color: #23344e;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}

.todo-lane-helper {
  margin: 0.2rem 0 0;
  color: #74859d;
  font-size: 0.8rem;
  line-height: 1.35;
}

.todo-lane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 213, 233, 0.92);
  background: rgba(255, 255, 255, 0.94);
  color: #3f5572;
  font-size: 0.84rem;
  font-weight: 700;
}

.todo-lane-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.todo-lane-add {
  min-height: 36px;
  padding: 0 0.72rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.todo-cell:focus-within {
  border-color: rgba(111, 154, 217, 0.96);
  box-shadow:
    0 16px 28px rgba(18, 33, 66, 0.08),
    0 0 0 3px rgba(91, 141, 206, 0.12);
}

input,
textarea,
select {
  border: 1px solid #ccd5e6;
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  background: #fff;
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

#new-title {
  min-width: 220px;
}

.deal-flag-input,
.deal-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #35536f;
  font-size: 0.85rem;
  font-weight: 600;
}

.deal-flag-input input,
.deal-check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.stage {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
  padding: 0.72rem 0.78rem;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}

.stage h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.12;
  min-width: 0;
}

.stage-total {
  min-width: 5.55rem;
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #ffffff;
}

.stage-total-label {
  color: #697386;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.stage-total-value {
  color: #1a1f36;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.stage-cards {
  padding: 0.5rem;
  padding-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 240px;
}

.deal-card {
  border: 1px solid #d4dcee;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 4px 10px rgba(24, 33, 56, 0.07);
  transition: box-shadow 140ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.deal-card:hover {
  box-shadow: 0 8px 16px rgba(24, 33, 56, 0.11);
  transform: translateY(-1px);
}

.deal-card.deal-expansion-card {
  border-color: #9bd6b1;
  box-shadow:
    0 0 0 1px rgba(84, 161, 108, 0.16),
    0 4px 10px rgba(24, 33, 56, 0.07);
}

.deal-card.deal-expansion-card:hover {
  box-shadow:
    0 0 0 1px rgba(84, 161, 108, 0.22),
    0 8px 16px rgba(24, 33, 56, 0.11);
}

.deal-card.deal-expansion-card .deal-summary {
  border-color: #d4ebdc;
}

.stage-cards[data-stage="Won"] .deal-card {
  border-color: #7cc69e;
  box-shadow:
    0 0 0 1px rgba(54, 148, 95, 0.25),
    0 0 12px rgba(56, 170, 105, 0.28),
    0 6px 14px rgba(24, 33, 56, 0.08);
}

.stage-cards[data-stage="Won"] .deal-card:hover {
  box-shadow:
    0 0 0 1px rgba(54, 148, 95, 0.32),
    0 0 18px rgba(56, 170, 105, 0.36),
    0 10px 18px rgba(24, 33, 56, 0.12);
}

.stage-cards[data-stage="Won"] .deal-card.deal-expansion-card {
  border-color: #63d98a;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(227, 255, 237, 0.92)),
    linear-gradient(180deg, #ffffff 0%, #f0fff5 100%);
  box-shadow:
    0 0 0 1px rgba(38, 179, 96, 0.34),
    0 0 24px rgba(83, 231, 129, 0.45),
    0 0 42px rgba(136, 255, 175, 0.34),
    0 10px 22px rgba(24, 33, 56, 0.12);
}

.stage-cards[data-stage="Won"] .deal-card.deal-expansion-card:hover {
  box-shadow:
    0 0 0 1px rgba(38, 179, 96, 0.4),
    0 0 30px rgba(83, 231, 129, 0.56),
    0 0 54px rgba(136, 255, 175, 0.42),
    0 14px 28px rgba(24, 33, 56, 0.15);
}

.stage-cards[data-stage="Won"] .deal-card.deal-expansion-card .deal-summary {
  border-color: #baf3ca;
  background: linear-gradient(180deg, #ffffff 0%, #f6fff8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(223, 255, 232, 0.75),
    0 0 18px rgba(105, 233, 142, 0.18);
}

.stage-cards[data-stage="Won"] .deal-card.deal-expansion-card .summary-title,
.stage-cards[data-stage="Won"] .deal-card.deal-expansion-card .summary-amount {
  color: #127045;
}

.deal-card.dragging {
  opacity: 0.56;
  transform: scale(1.015) rotate(0.2deg);
  box-shadow: 0 18px 30px rgba(18, 33, 66, 0.16);
}

.deal-card.dragging-hidden {
  display: none;
}

.deal-card-settling {
  transition:
    box-shadow 140ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.deal-drop-placeholder {
  border: 1px dashed #87b6d8;
  background:
    linear-gradient(180deg, rgba(235, 245, 255, 0.94), rgba(225, 239, 255, 0.78));
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: transform 180ms ease, height 180ms ease;
}

.drag-ghost {
  position: fixed;
  top: -9999px;
  left: -9999px;
  pointer-events: none;
  transform: rotate(1deg);
  box-shadow: 0 20px 34px rgba(18, 33, 66, 0.18);
}

.todo-list-drag-ghost {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  border: 1px solid rgba(197, 208, 226, 0.92);
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  color: #252b42;
  transform: rotate(0.45deg) scale(0.985);
  box-shadow:
    0 18px 34px rgba(18, 33, 66, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

.todo-list-drag-check {
  width: 21px;
  height: 21px;
  border: 2px solid #a3a8b0;
  border-radius: 999px;
  background: #ffffff;
}

.todo-list-drag-ghost.is-done .todo-list-drag-check {
  border-color: #22c55e;
  background: #22c55e;
}

.todo-list-drag-title {
  overflow: hidden;
  color: #252b42;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-list-drag-meta {
  color: #778093;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.deal-summary {
  width: 100%;
  border: 1px solid #d6deee;
  background: #ffffff;
  border-radius: 9px;
  padding: 0.5rem 0.62rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(237, 241, 250, 0.45);
  cursor: pointer;
}

.summary-text {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.summary-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.summary-owner-badge {
  width: 1.18rem;
  height: 1.18rem;
  flex: 0 0 1.18rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.03rem;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 2px 5px rgba(22, 32, 55, 0.13);
}

.summary-owner-badge[data-owner-code="J"] {
  background: linear-gradient(135deg, #2f6df6 0%, #5b64ff 100%);
}

.summary-owner-badge[data-owner-code="C"] {
  background: linear-gradient(135deg, #149850 0%, #24b982 100%);
}

.summary-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2b43;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.summary-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2e3a56;
  line-height: 1.05;
}

.summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.delete-arm-btn {
  border: 1px solid #efb1ad;
  background: #fff2f1;
  color: #b3261e;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.74rem;
}

.summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #6b7386;
  line-height: 1;
  transition: transform 140ms ease;
}

.deal-card.expanded .summary-arrow {
  transform: rotate(90deg);
}

.deal-card.expanded {
  border-color: #cfd8e7;
  background: #ffffff;
}

.deal-card.expanded .deal-summary {
  border-color: #cbd5e6;
  background: #f9fbff;
  box-shadow: none;
}

.deal-details {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.1rem 0.05rem 0.05rem;
}

.deal-details[hidden] {
  display: none !important;
}

.deal-details label {
  color: #4f5f7c;
}

.deal-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.deal-field span {
  color: #617088;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.deal-field-wide,
.deal-detail-actions {
  grid-column: 1 / -1;
}

.deal-notes-field {
  gap: 0.3rem;
}

.deal-details input,
.deal-details textarea {
  min-width: 0;
  font: inherit;
  color: #202b43;
}

.deal-title,
.deal-value,
.deal-owner,
.deal-source,
.deal-notes,
.deal-contact-info {
  width: 100%;
  border: 1px solid #d7dfec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.deal-title,
.deal-value,
.deal-source,
.deal-owner {
  min-height: 36px;
  padding: 0.42rem 0.52rem;
}

.deal-notes,
.deal-contact-info {
  resize: vertical;
  line-height: 1.35;
  padding: 0.48rem 0.56rem;
}

.deal-notes {
  min-height: 128px;
}

.deal-contact-info {
  min-height: 68px;
}

.deal-title:focus,
.deal-value:focus,
.deal-owner:focus,
.deal-source:focus,
.deal-notes:focus,
.deal-contact-info:focus {
  outline: none;
  border-color: #9ba7ff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.deal-title:hover,
.deal-value:hover,
.deal-owner:hover,
.deal-source:hover,
.deal-notes:hover,
.deal-contact-info:hover {
  border-color: #c8d2e2;
}

.deal-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.02rem;
}

.deal-details .deal-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #4f5f7c;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
}

.deal-details .deal-check-row input {
  flex: 0 0 auto;
}

.move-next-month-btn {
  min-height: 34px;
  margin-left: auto;
  border-color: #d8e0eb;
  background: #ffffff;
  color: #364966;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.1;
  padding: 0.38rem 0.62rem;
  box-shadow: 0 1px 2px rgba(31, 45, 71, 0.05);
}

.move-next-month-btn:hover {
  border-color: #c4cfdf;
  background: #f8fafc;
  color: #253750;
  box-shadow: 0 3px 8px rgba(31, 45, 71, 0.08);
}

.stage.drop-target {
  border-color: #6aaea4;
  box-shadow: inset 0 0 0 2px rgba(111, 184, 173, 0.24);
}

.sheet-wrap {
  margin-top: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  overflow-x: auto;
}

.insight-card {
  margin-top: 0.95rem;
  background: linear-gradient(145deg, #f4fbf8 0%, #e8f6ef 100%);
  border: 1px solid #c9e3d5;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.insight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.insight-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-refresh-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.insight-title {
  font-size: 0.82rem;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #2c6d54;
  font-weight: 700;
}

.insight-text {
  margin: 0.45rem 0 0;
  font-size: 0.96rem;
  color: #204537;
  white-space: pre-line;
  line-height: 1.45;
}

.sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #d6deee;
}

.sheet th,
.sheet td {
  border: 1px solid #d6deee;
  min-width: 160px;
  height: 40px;
  padding: 0.5rem;
  text-align: left;
}

.sheet th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #eef3fd;
  color: #2a3a59;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 #d6deee;
}

.sheet td {
  cursor: text;
  background: #fff;
  vertical-align: top;
}

.sheet-date-cell {
  cursor: default;
  padding: 0.35rem 0.5rem;
}

.sheet-date-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2d374e;
  font: inherit;
  padding: 0.25rem 0.2rem;
  cursor: pointer;
}

.sheet-date-input:focus {
  outline: 2px solid rgba(68, 122, 255, 0.35);
  background: #f7fbff;
}

.sheet tbody tr {
  cursor: grab;
}

.sheet tbody tr:active {
  cursor: grabbing;
}

.sheet-row-dragging {
  opacity: 0.55;
}

.confetti-piece {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 2px;
  animation-name: confetti-fall;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.loss-emoji-piece {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 1.55rem;
  line-height: 1;
  animation-name: loss-emoji-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 6px 12px rgba(31, 41, 55, 0.16));
}

.celebration-emoji-piece {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 1.45rem;
  line-height: 1;
  animation-name: celebration-emoji-burst;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: forwards;
  filter: drop-shadow(0 8px 14px rgba(31, 41, 55, 0.14));
  will-change: transform, opacity;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes loss-emoji-fall {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(18deg) scale(1.15);
    opacity: 0;
  }
}

@keyframes celebration-emoji-burst {
  0% {
    transform: translate(0, 0) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--burst-x, 0px), var(--burst-y, -120px)) scale(1.12) rotate(18deg);
    opacity: 0;
  }
}

@keyframes deal-owner-mode-fade {
  0% {
    opacity: 0;
  }
  10%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes deal-owner-mode-pop {
  0% {
    opacity: 0;
    transform: skew(-5deg) translateY(24px) scale(0.72);
  }
  12% {
    opacity: 1;
    transform: skew(-5deg) translateY(0) scale(1.08);
  }
  24% {
    transform: skew(-5deg) translateY(0) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: skew(-5deg) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: skew(-5deg) translateY(-10px) scale(1.04);
  }
}

@keyframes deal-owner-mode-cutout {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  14% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }
  28% {
    transform: translateY(0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(1.03);
  }
}

@keyframes deal-owner-mode-taco-hold {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes deal-owner-mode-taco-frame-in {
  0% {
    opacity: 0;
    transform: skew(-5deg) translateY(24px) scale(0.72);
  }
  28% {
    opacity: 1;
    transform: skew(-5deg) translateY(0) scale(1.08);
  }
  56% {
    transform: skew(-5deg) translateY(0) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: skew(-5deg) translateY(0) scale(1);
  }
}

@keyframes deal-owner-mode-taco-image-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  34% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes deal-owner-mode-grid {
  0% {
    background-position: 0 0, 0 0;
    opacity: 0;
  }
  14%,
  78% {
    opacity: 0.5;
  }
  100% {
    background-position: 0 72px, 72px 0;
    opacity: 0;
  }
}

@keyframes deal-owner-mode-scan {
  0% {
    transform: translateX(-2%);
  }
  100% {
    transform: translateX(2%);
  }
}

@keyframes deal-owner-mode-glitch-a {
  0%,
  100% {
    transform: translate(3px, -2px);
  }
  42% {
    transform: translate(-2px, 1px);
  }
  70% {
    transform: translate(5px, -1px);
  }
}

@keyframes deal-owner-mode-glitch-b {
  0%,
  100% {
    transform: translate(-3px, 2px);
  }
  35% {
    transform: translate(2px, -1px);
  }
  74% {
    transform: translate(-5px, 1px);
  }
}

.sheet td:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #7ba6ff;
  background: #f9fbff;
}

.finance-topbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  padding: 1.12rem 1.3rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(225, 169, 83, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.91));
  box-shadow: 0 16px 30px rgba(17, 31, 58, 0.05);
}

.finance-topbar .title-wrap {
  gap: 0.36rem;
}

.finance-topbar h1 {
  font-size: clamp(1.65rem, 2.15vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.finance-topbar .month-controls {
  align-self: center;
  padding-top: 0;
}

.finance-topbar .ghost-btn {
  min-height: 56px;
  padding: 0 1.2rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(21, 34, 60, 0.04);
}

.finance-summary-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.finance-summary-card {
  min-height: 128px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(203, 214, 232, 0.92);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(82, 138, 195, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow: 0 14px 26px rgba(18, 33, 66, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.finance-summary-card span {
  color: #62758f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.finance-summary-card strong {
  color: #16243b;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.finance-summary-card.emphasis {
  border-color: #94c9bc;
  background:
    radial-gradient(circle at top right, rgba(250, 216, 129, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(239, 252, 246, 0.98), rgba(221, 244, 234, 0.95));
}

.finance-summary-card.warn {
  border-color: #e2c58f;
  background:
    radial-gradient(circle at top right, rgba(233, 172, 91, 0.18), transparent 35%),
    linear-gradient(145deg, rgba(255, 251, 238, 0.98), rgba(252, 242, 214, 0.95));
}

.finance-summary-card.is-positive strong {
  color: #0f6a3b;
}

.finance-summary-card.is-negative {
  border-color: #dfafa8;
  background:
    radial-gradient(circle at top right, rgba(213, 91, 74, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 247, 246, 0.98), rgba(255, 235, 232, 0.94));
}

.finance-summary-card.is-negative strong {
  color: #a22a21;
}

.finance-sheet-wrap {
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 28px rgba(18, 33, 66, 0.07);
}

.finance-sheet {
  min-width: 1080px;
  border-radius: 14px;
  overflow: hidden;
}

.finance-sheet th {
  background: #f3f6fb;
  color: #41536b;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-sheet td {
  min-width: 132px;
  color: #22314a;
  line-height: 1.35;
}

.finance-sheet tbody tr {
  cursor: default;
}

.finance-sheet tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.finance-sheet tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.finance-sheet .finance-number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.finance-sheet td:first-child {
  min-width: 190px;
  font-weight: 700;
  color: #18263f;
}

#personal-finance-sheet td:nth-child(2),
#stocks-bonds-sheet td:nth-child(2),
#angel-investments-sheet td:nth-child(6) {
  font-weight: 700;
  color: #365f7a;
}

.investor-sheet th {
  background: #2f6a56;
  color: #f6faf8;
}

.investor-sheet tbody tr:nth-child(odd) td {
  background: #f4f6f8;
}

.investor-sheet tbody tr:nth-child(even) td {
  background: #e9edf3;
}

.investor-sheet tbody td:nth-child(2) {
  background: #dde5f3;
}

.sheet-notes-cell {
  white-space: pre-wrap;
  line-height: 1.4;
}

.investor-sheet td:focus {
  background: #f7fbff;
}

.interest-select {
  border: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  padding: 0.2rem 1.75rem 0.2rem 0.55rem;
  appearance: none;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.65rem;
  cursor: pointer;
}

.interest-select:focus {
  outline: 2px solid rgba(68, 122, 255, 0.4);
}

.interest-very {
  background-color: #cde9c2;
  color: #106934;
}

.interest-medium {
  background-color: #c7dde3;
  color: #1d5f75;
}

.interest-tepid {
  background-color: #f5db95;
  color: #5d4511;
}

.interest-not {
  background-color: #f2c1b8;
  color: #a51414;
}

.interest-none {
  background-color: #e1e3e7;
  color: #33363d;
}

.managed-topbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  box-shadow: 0 16px 30px rgba(17, 31, 58, 0.05);
}

.managed-top-actions {
  align-self: center;
}

.managed-summary-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.75rem;
}

.managed-summary-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #cfe2df;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff 0%, #edf8f4 100%);
  box-shadow: 0 10px 22px rgba(29, 55, 95, 0.05);
}

.managed-summary-card span {
  color: #536a7a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.managed-summary-card strong {
  color: #17364b;
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.managed-summary-card.warn {
  border-color: #ead39d;
  background: linear-gradient(145deg, #fffaf0 0%, #f8efd2 100%);
}

.managed-summary-card.danger {
  border-color: #edc4bf;
  background: linear-gradient(145deg, #fff6f4 0%, #f8dfdc 100%);
}

.managed-view-tabs {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.managed-view-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 1rem;
  font-weight: 700;
  position: relative;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.managed-view-tab:hover {
  border-color: #b6d6cf;
  background: #f4fbf9;
  color: #113d36;
}

.managed-view-tab.active,
.managed-view-tab[aria-selected="true"] {
  border-color: #0f766e;
  background: linear-gradient(135deg, #0f766e 0%, #15806d 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24);
}

.managed-view-tab.active::after,
.managed-view-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.managed-filters {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.managed-filters .inline-filter input {
  min-width: 120px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.managed-filters .inline-filter input:focus {
  outline: none;
}

.managed-pane {
  display: none;
  margin-top: 0.95rem;
}

.managed-pane.active {
  display: block;
}

.managed-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.managed-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.managed-sheet-wrap {
  margin-top: 0;
}

.managed-sheet th,
.managed-sheet td {
  min-width: 128px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.managed-sheet th:nth-child(6),
.managed-sheet td:nth-child(6) {
  min-width: 154px;
}

.managed-sheet th:nth-child(8),
.managed-sheet td:nth-child(8) {
  min-width: 210px;
}

.managed-group-row td {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #e7f1ff;
  color: #24476f;
  font-weight: 800;
  cursor: default;
}

.managed-row-incomplete td {
  background: #fffaf0;
}

.managed-row-overdue td {
  background: #ffe9e5;
}

.managed-cell-input,
.managed-cell-select,
.managed-cell-textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d6deee;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.35rem 0.45rem;
}

.managed-cell-input[type="number"] {
  min-width: 72px;
}

.managed-cell-textarea {
  min-width: 190px;
  line-height: 1.35;
  overflow: hidden;
  resize: none;
}

.managed-cell-input:focus,
.managed-cell-select:focus,
.managed-cell-textarea:focus {
  outline: none;
  border-color: #79a8ff;
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.12);
}

.managed-status-cell {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.managed-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 126px;
}

.managed-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.managed-status-select {
  width: 126px;
  min-width: 126px;
  padding-right: 1.65rem;
}

.managed-status-pill.uncompleted {
  background: #eef2f7;
  color: #536170;
}

.managed-status-pill.completed {
  background: #dcf5df;
  color: #17663c;
}

.managed-settings-grid {
  display: grid;
  gap: 1rem;
}

.managed-settings-toolbar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.managed-settings-toolbar .ghost-btn {
  min-height: 38px;
  padding-inline: 0.85rem;
}

.managed-settings-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  padding: 0.85rem;
}

.managed-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(220px, 1fr) auto;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.managed-add-row.requirements {
  grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.7fr) minmax(110px, 0.45fr) minmax(180px, 1fr) auto;
}

.managed-add-row input,
.managed-add-row select {
  min-height: 42px;
  border: 1px solid #d6deee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  padding: 0 0.65rem;
}

.managed-settings-sheet th,
.managed-settings-sheet td {
  min-width: 170px;
}

.managed-week-sheet td {
  cursor: default;
}

.analytics-composer-topbar {
  margin-bottom: 0.95rem;
}

.analytics-composer-controls {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(150px, 0.55fr) minmax(170px, 0.65fr) auto;
  gap: 0.65rem;
  align-items: stretch;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(17, 31, 58, 0.05);
}

.analytics-composer-controls .inline-filter {
  width: 100%;
  min-width: 0;
}

.analytics-composer-controls .inline-filter input,
.analytics-composer-controls .inline-filter select,
.analytics-composer-subject input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.analytics-composer-controls .inline-filter input:focus,
.analytics-composer-controls .inline-filter select:focus,
.analytics-composer-subject input:focus {
  outline: none;
}

#analytics-composer-generate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  min-width: 154px;
  padding-inline: 1.05rem;
  overflow: hidden;
  background: #111827;
  color: #fff;
  opacity: 1;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

#analytics-composer-generate.is-busy,
#analytics-composer-generate.is-busy:hover,
#analytics-composer-generate.is-busy:disabled {
  border-color: #111827;
  background: #1f2937;
  color: #fff;
  cursor: progress;
  opacity: 1;
  box-shadow:
    0 14px 28px rgba(17, 24, 39, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#analytics-composer-generate.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 64%,
    transparent 100%
  );
  transform: translateX(-110%);
  animation: analytics-button-sheen 1.35s ease-in-out infinite;
}

#analytics-composer-generate.is-busy span {
  position: relative;
  z-index: 1;
}

.button-loading-spinner {
  width: 1.05em;
  height: 1.05em;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 999px;
  flex: 0 0 auto;
  animation: button-loading-spin 760ms linear infinite;
}

@keyframes button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes analytics-button-sheen {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(110%);
  }
}

.analytics-composer-status {
  min-height: 24px;
  margin: 0.7rem 0 0;
  color: #536170;
  font-size: 0.9rem;
  line-height: 1.4;
}

.analytics-composer-status.is-error {
  color: var(--danger);
  font-weight: 800;
}

.analytics-composer-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 0.95rem;
  align-items: start;
}

.analytics-composer-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.95rem;
  box-shadow: 0 12px 26px rgba(17, 31, 58, 0.05);
}

.analytics-composer-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.analytics-composer-panel-head h2 {
  margin: 0;
  color: #172033;
  font-size: 1.25rem;
  line-height: 1.15;
}

.owner-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8dfd6;
  border-radius: 999px;
  padding: 0 0.75rem;
  background: #ecf8f3;
  color: #167a5b;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-composer-customer-strip {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
}

.analytics-composer-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ef553c;
  color: #fff;
  font-weight: 900;
}

.analytics-composer-customer-strip strong,
.analytics-composer-customer-strip span {
  display: block;
}

.analytics-composer-customer-strip span {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.9rem;
}

.analytics-composer-metrics {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.analytics-composer-metrics .managed-summary-card {
  min-height: 106px;
}

.analytics-composer-metrics small {
  color: #197251;
  font-weight: 700;
}

.analytics-composer-top-post {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #ead39d;
  border-radius: 14px;
  background: #fffaf0;
}

.analytics-composer-top-post span {
  display: block;
  color: #8a5b13;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-composer-top-post strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.analytics-composer-top-post a,
.analytics-composer-email-body a {
  color: #0f5f9c;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.analytics-composer-top-post p {
  margin: 0.35rem 0 0;
  color: #536170;
}

.analytics-composer-system-prompt {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  background: #f8fafc;
}

.analytics-composer-system-prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.analytics-composer-system-prompt-head span {
  display: block;
  color: #435266;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-composer-system-prompt-head p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.analytics-composer-system-prompt-head small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.analytics-composer-system-prompt textarea {
  width: 100%;
  min-height: 112px;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #d6deee;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.analytics-composer-system-prompt textarea:focus {
  outline: none;
  border-color: #79a8ff;
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.12);
}

.analytics-composer-system-prompt textarea:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: not-allowed;
}

.analytics-composer-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.analytics-composer-output-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

.analytics-composer-email-output,
.analytics-composer-slack-output {
  margin-top: 0.85rem;
}

.analytics-composer-subject {
  width: 100%;
  margin-bottom: 0.65rem;
}

.analytics-composer-email-body,
.analytics-composer-slack-output textarea {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d6deee;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  padding: 0.9rem;
  resize: vertical;
}

.analytics-composer-email-body:focus,
.analytics-composer-slack-output textarea:focus {
  outline: none;
  border-color: #79a8ff;
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.12);
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .title-row {
    flex-wrap: wrap;
  }

  .month-controls {
    padding-top: 0;
  }

  .deal-notes-modal-grid {
    grid-template-columns: 1fr;
  }

  .deal-draft-approval-bar {
    grid-template-columns: 1fr;
  }

  .deal-draft-approval-bar .deal-primary-btn {
    width: 100%;
  }

  .deal-detail-form {
    grid-template-columns: 1fr;
  }

  .deal-detail-action-buttons {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .deal-detail-action-buttons button,
  .deal-detail-save-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .customer-modal-grid,
  .sheet-row-fields {
    grid-template-columns: 1fr;
  }

  #view-todo-calendar .month-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .todo-summary-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .managed-topbar {
    grid-template-columns: 1fr;
  }

  .managed-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .managed-add-row,
  .managed-add-row.requirements {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1460px) {
  #view-overlap-deals .topbar,
  #view-quota-tracker .topbar,
  #view-revenue-dashboard .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #view-overlap-deals .overlap-title-row,
  #view-quota-tracker .quota-title-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 0.9rem;
  }

  #view-overlap-deals .inline-metrics,
  #view-quota-tracker .inline-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.65rem;
  }

  #view-overlap-deals .inline-metric,
  #view-quota-tracker .inline-metric {
    min-width: 0;
  }

  #view-overlap-deals .month-controls,
  #view-quota-tracker .month-controls {
    width: 100%;
    justify-content: flex-start;
    align-self: stretch;
    padding-top: 0;
  }

  .revenue-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .revenue-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .revenue-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .revenue-overview-grid,
  .revenue-graph-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .revenue-panel-wide {
    grid-row: auto;
  }

  .managed-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(19, 34, 56, 0.08), rgba(19, 34, 56, 0) 120px),
      linear-gradient(120deg, var(--bg-1), var(--bg-2));
  }

  .managed-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .managed-add-row,
  .managed-add-row.requirements {
    grid-template-columns: 1fr;
  }

  .managed-filters .inline-filter {
    width: 100%;
    justify-content: space-between;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: calc(5.8rem + env(safe-area-inset-bottom));
    z-index: 40;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(54, 78, 112, 0.82);
    padding: 0.6rem 0.65rem calc(0.75rem + env(safe-area-inset-bottom));
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(15, 30, 52, 0.94), rgba(10, 21, 37, 0.98));
    box-shadow: 0 -18px 36px rgba(8, 16, 29, 0.24);
    backdrop-filter: blur(18px);
  }

  .app-shell.sidebar-collapsed .sidebar-title,
  .app-shell.sidebar-collapsed .tab {
    opacity: 1;
    transform: none;
    max-height: none;
    border-width: 1px;
    pointer-events: auto;
  }

  .sidebar-title {
    max-width: none;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 248, 255, 0.92);
  }

  .sidebar-head {
    display: none;
  }

  .sidebar-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(70px, 78px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 0.35rem;
    padding-bottom: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    align-items: stretch;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: initial;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    align-content: center;
    width: 100%;
    min-width: 74px;
    min-height: 58px;
    padding: 0.45rem 0.3rem 0.4rem;
    border-radius: 18px;
    background: transparent;
    border-color: transparent;
    white-space: normal;
    overflow: visible;
    scroll-snap-align: center;
    gap: 0.28rem;
  }

  .tab-label {
    opacity: 1;
    transform: none;
    max-width: none;
    overflow: visible;
    font-size: 0.68rem;
    text-align: center;
    line-height: 1.1;
    font-weight: 700;
    color: rgba(226, 235, 247, 0.88);
  }

  .tab-icon,
  .app-shell.sidebar-collapsed .tab-icon {
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    border-radius: 999px;
  }

  .tab-icon svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  .app-shell.sidebar-collapsed .sidebar-nav {
    gap: 0.35rem;
    align-items: stretch;
  }

  .app-shell.sidebar-collapsed .tab {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 74px;
    min-height: 58px;
    padding: 0.45rem 0.3rem 0.4rem;
    border-radius: 18px;
    place-items: center;
    align-content: center;
    gap: 0.28rem;
  }

  .app-shell.sidebar-collapsed .tab-label {
    opacity: 1;
    transform: none;
    max-width: none;
    overflow: visible;
  }

  .app-shell.sidebar-collapsed .tab::after {
    display: none;
  }

  .content-area {
    min-height: 100dvh;
    padding: 0.8rem 0.8rem calc(6rem + env(safe-area-inset-bottom));
  }

  #view-managed-services {
    gap: 0.75rem;
  }

  .managed-topbar {
    align-items: stretch;
    gap: 0.75rem;
  }

  .managed-top-actions,
  .managed-top-actions .ghost-btn {
    width: 100%;
  }

  .managed-top-actions .ghost-btn {
    min-height: 48px;
    border-radius: 16px;
  }

  .managed-summary-grid {
    gap: 0.55rem;
  }

  .managed-summary-card {
    min-height: 78px;
    padding: 0.72rem;
    border-radius: 14px;
  }

  .managed-summary-card span {
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .managed-summary-card strong {
    font-size: 1.45rem;
  }

  .managed-view-tabs {
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.18rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .managed-view-tabs::-webkit-scrollbar {
    display: none;
  }

  .managed-view-tab {
    flex: 0 0 auto;
    min-height: 42px;
    scroll-snap-align: start;
  }

  .managed-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .managed-filters .inline-filter {
    width: auto;
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
  }

  .managed-filters .inline-filter:nth-child(5) {
    grid-column: 1 / -1;
  }

  .managed-filters .inline-filter input,
  .managed-filters .inline-filter select {
    min-width: 0;
    width: 100%;
    text-align: right;
  }

  .managed-settings-card {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .managed-settings-toolbar,
  .managed-settings-toolbar .ghost-btn,
  .managed-add-row button {
    width: 100%;
  }

  .managed-add-row {
    gap: 0.55rem;
  }

  .managed-add-row input,
  .managed-add-row select,
  .managed-add-row button {
    min-height: 48px;
  }

  .app-feedback {
    margin-bottom: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
  }

  .view-panel.active {
    display: grid;
    gap: 0.8rem;
  }

  .topbar {
    gap: 0.9rem;
    border-radius: 22px;
    padding: 1rem;
  }

  #view-managed-services,
  #view-managed-services > *,
  #view-managed-services .topbar,
  #view-managed-services .title-wrap,
  #view-managed-services .managed-top-actions,
  #view-managed-services .managed-summary-grid,
  #view-managed-services .managed-view-tabs,
  #view-managed-services .managed-filters,
  #view-managed-services .managed-pane,
  #view-managed-services .managed-settings-grid,
  #view-managed-services .managed-settings-card {
    min-width: 0;
    max-width: 100%;
  }

  #view-overlap-deals .topbar,
  #view-quota-tracker .topbar,
  #view-revenue-dashboard .topbar,
  #view-current-customers .topbar,
  #view-investor-crm .topbar,
  #view-strategic-relationships .topbar,
  #view-todo-calendar .topbar,
  .finance-topbar {
    padding: 1rem;
    border-radius: 22px;
  }

  .tab.active,
  .tab:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .tab.active .tab-icon,
  .tab:hover .tab-icon {
    color: #f7fbff;
    transform: translateY(-0.5px);
  }

  .tab.active {
    box-shadow: none;
  }

  .title-wrap {
    gap: 0.3rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  .subtitle {
    line-height: 1.35;
  }

  .month-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: stretch;
  }

  .month-controls .inline-metric,
  .month-controls .inline-filter,
  .month-controls button,
  .month-controls .ghost-btn {
    width: 100%;
    min-height: 44px;
  }

  #view-overlap-deals .overlap-title-row,
  #view-quota-tracker .quota-title-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  #view-overlap-deals .inline-metrics,
  #view-quota-tracker .inline-metrics {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  #view-overlap-deals .inline-metric,
  #view-quota-tracker .inline-metric {
    min-height: 64px;
    padding: 0.72rem 0.9rem;
    border-radius: 18px;
  }

  #view-overlap-deals .month-controls,
  #view-quota-tracker .month-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-overlap-deals .month-controls .ghost-btn,
  #view-quota-tracker .month-controls .ghost-btn {
    min-height: 52px;
  }

  .revenue-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .revenue-last-updated {
    white-space: normal;
  }

  .revenue-metric-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .revenue-metric-card {
    min-height: 116px;
    border-radius: 16px;
  }

  .revenue-billing-tabs {
    gap: 1rem;
    padding-bottom: 0.04rem;
  }

  .revenue-billing-tab {
    min-height: 40px;
    font-size: 0.86rem;
  }

  .revenue-panel {
    border-radius: 16px;
    padding: 0.9rem;
  }

  .revenue-graph-card {
    min-height: 250px;
    border-radius: 16px;
    padding: 0.9rem 0.9rem 1rem;
  }

  .revenue-graph-card-head strong {
    font-size: 1.15rem;
  }

  .revenue-line-chart,
  .revenue-chart-svg,
  .revenue-chart-empty {
    min-height: 180px;
  }

  .revenue-panel-head,
  .revenue-list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .revenue-chart {
    min-height: 220px;
  }

  .inline-filter {
    justify-content: space-between;
    min-width: 0;
    min-height: 52px;
    border-radius: 16px;
    padding-inline: 0.85rem;
  }

  .inline-filter select {
    min-width: 0;
    width: 100%;
    text-align: right;
  }

  .inline-metrics {
    width: 100%;
    flex-wrap: wrap;
  }

  .inline-metric {
    flex: 1 1 160px;
    justify-content: space-between;
  }

  #view-todo-calendar .month-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-todo-calendar .todo-score-metric {
    grid-column: 1 / -1;
    width: 100%;
  }

  .todo-summary-band {
    grid-template-columns: 1fr;
  }

  .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .finance-summary-card {
    min-height: 106px;
    padding: 0.85rem;
    border-radius: 18px;
  }

  .finance-summary-card strong {
    font-size: 1.58rem;
  }

  .finance-sheet-wrap {
    margin-top: 0;
  }

  .home-hero-shell {
    border-radius: 24px;
    padding: 1.05rem 1rem 0.95rem;
    box-shadow: 0 18px 34px rgba(21, 37, 68, 0.09);
  }

  .home-topbar {
    flex-direction: column;
    align-items: start;
  }

  .home-title-chip {
    padding: 0.42rem 0.74rem;
  }

  .home-hero-copy h2 {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .home-hero-copy p,
  .home-hero-note,
  .home-card p {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .home-hero-metrics,
  .home-grid,
  .customer-board-shell,
  .todo-week-grid,
  .todo-history-list {
    grid-template-columns: 1fr;
  }

  .home-hero-card,
  .home-card {
    border-radius: 22px;
    padding: 1.05rem 1rem;
  }

  .composer {
    display: grid;
    gap: 0.75rem;
  }

  #view-overlap-deals .deal-launch-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .deal-launch-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .deal-launch-bar button,
  .deal-launch-bar .ghost-btn,
  .deal-launch-bar .deal-owner-filter-control {
    width: 100%;
    min-height: 46px;
  }

  #view-overlap-deals .deal-launch-bar .deal-owner-filter-control {
    justify-self: stretch;
  }

  .quota-tracker-panel {
    padding: 0.7rem;
    border-radius: 18px;
  }

  .quota-table-wrap,
  .quota-settings-table-wrap {
    border-radius: 16px;
  }

  .quota-settings-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .quota-settings-toolbar .ghost-btn,
  .quota-settings-actions button {
    width: 100%;
  }

  main {
    grid-template-columns: none;
  }

  #board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 84vw);
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #board::-webkit-scrollbar {
    display: none;
  }

  .stage {
    scroll-snap-align: start;
    min-height: 0;
    border-radius: 18px;
  }

  .stage-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.8rem;
  }

  .stage-cards {
    min-height: 0;
    padding-bottom: 0.75rem;
  }

  .deal-summary {
    align-items: start;
    gap: 0.5rem;
  }

  .summary-actions {
    align-self: center;
  }

  .sheet-wrap,
  .customer-table-wrap,
  .talking-points-wrap,
  .insight-card {
    margin-top: 0;
    border-radius: 20px;
    padding: 0.8rem;
  }

  .insight-head,
  .customer-panel-head {
    gap: 0.75rem;
  }

  .insight-head {
    flex-direction: column;
    align-items: stretch;
  }

  .insight-controls,
  .ai-followup-actions {
    width: 100%;
  }

  .insight-controls .ghost-btn,
  .ai-followup-actions .ghost-btn {
    width: 100%;
  }

  .ai-followup-grid {
    grid-template-columns: 1fr;
  }

  #view-current-customers .month-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.6rem;
  }

  #view-current-customers .month-controls .ghost-btn {
    grid-column: 1 / -1;
    min-height: 52px;
    border-radius: 16px;
  }

  #view-current-customers .inline-metric {
    min-height: 60px;
    padding: 0.68rem 0.88rem;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
  }

  .customer-sort-control {
    display: grid;
    gap: 0.4rem;
    justify-content: stretch;
  }

  .customer-sort-control select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }

  .sheet-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sheet th,
  .sheet td {
    min-width: 136px;
    padding: 0.58rem 0.52rem;
  }

  .sheet td,
  .sheet th,
  .interest-select {
    font-size: 0.92rem;
  }

  #view-managed-services .managed-sheet-wrap {
    overflow: visible;
    -webkit-overflow-scrolling: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #view-managed-services .managed-sheet,
  #view-managed-services .managed-settings-sheet,
  #view-managed-services .managed-sheet thead,
  #view-managed-services .managed-settings-sheet thead,
  #view-managed-services .managed-sheet tbody,
  #view-managed-services .managed-settings-sheet tbody,
  #view-managed-services .managed-sheet tr,
  #view-managed-services .managed-settings-sheet tr,
  #view-managed-services .managed-sheet td,
  #view-managed-services .managed-settings-sheet td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #view-managed-services .managed-sheet,
  #view-managed-services .managed-settings-sheet {
    border: 0;
    background: transparent;
    min-width: 0;
  }

  #view-managed-services .managed-sheet thead,
  #view-managed-services .managed-settings-sheet thead {
    display: none;
  }

  #view-managed-services .managed-sheet tbody,
  #view-managed-services .managed-settings-sheet tbody {
    display: grid;
    gap: 0.75rem;
  }

  #view-managed-services .managed-sheet tbody tr,
  #view-managed-services .managed-settings-sheet tbody tr {
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem;
    border: 1px solid #d9e4f1;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.96));
    box-shadow: 0 12px 24px rgba(18, 33, 66, 0.07);
  }

  #view-managed-services .managed-sheet tbody tr.managed-row-incomplete {
    border-color: #ead8ad;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.99), rgba(255, 247, 229, 0.96));
  }

  #view-managed-services .managed-sheet tbody tr.managed-row-overdue {
    border-color: #edc4bf;
    background: linear-gradient(180deg, rgba(255, 248, 247, 0.99), rgba(255, 235, 232, 0.96));
  }

  #view-managed-services .managed-sheet tbody tr.managed-group-row {
    display: block;
    padding: 0.15rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #view-managed-services .managed-group-row td {
    position: static;
    display: block;
    padding: 0.1rem 0.05rem;
    background: transparent;
    color: #24476f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  #view-managed-services .managed-sheet td,
  #view-managed-services .managed-settings-sheet td {
    display: grid;
    grid-template-columns: minmax(96px, 0.76fr) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  #view-managed-services .managed-sheet td::before,
  #view-managed-services .managed-settings-sheet td::before {
    content: attr(data-label);
    color: #65758b;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
  }

  #view-managed-services .managed-group-row td::before,
  #view-managed-services .sheet-empty-state::before {
    display: none;
  }

  #managed-tasks-body tr:not(.managed-group-row) td:nth-child(2) {
    display: none;
  }

  #view-managed-services .sheet-empty-state {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  #view-managed-services .managed-cell-input,
  #view-managed-services .managed-cell-select,
  #view-managed-services .managed-cell-textarea {
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    padding: 0.48rem 0.65rem;
  }

  #view-managed-services .managed-cell-textarea {
    overflow: hidden;
    resize: none;
  }

  #view-managed-services .managed-status-cell {
    min-height: 72px;
    padding: 0;
  }

  #view-managed-services .managed-status-stack {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
  }

  #view-managed-services .managed-status-pill {
    min-height: 30px;
    padding-inline: 0.68rem;
  }

  #view-managed-services .managed-status-select {
    width: 100%;
    min-width: 0;
  }

  #view-managed-services input[type="checkbox"][data-managed-requirement-field] {
    width: 24px;
    height: 24px;
    justify-self: end;
    accent-color: var(--accent);
  }

  .talking-points-editor {
    min-height: 58dvh;
    border-radius: 16px;
    padding: 1rem;
    font-size: 0.98rem;
  }

  .modal-backdrop {
    padding: 0.55rem;
    align-items: end;
  }

  .modal-card,
  .deal-notes-modal-card,
  .deal-detail-modal-card,
  .closed-arr-modal-card,
  .ai-followup-modal-card,
  .customer-modal-card,
  .quota-settings-modal-card,
  .shared-changelog-modal-card,
  .help-settings-modal-card,
  .todo-priority-modal-card {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    border-radius: 24px 24px 18px 18px;
    padding: 1rem;
  }

  .customer-modal-card .modal-head {
    margin-bottom: 1rem;
  }

  .help-settings-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

  .help-settings-state {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .help-settings-switch {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .customer-modal-card .modal-field input,
  .customer-modal-card .modal-field select {
    min-height: 58px;
    border-radius: 16px;
  }

  .customer-modal-card .deal-notes-actions {
    margin-top: 1rem;
  }

  .customer-modal-card .deal-notes-actions button {
    width: 100%;
  }

  .modal-head {
    gap: 0.7rem;
  }

  .modal-head h2 {
    font-size: 1.1rem;
  }

  .modal-close-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .deal-notes-pane,
  .deal-draft-pane,
  .closed-arr-chart-wrap {
    border-radius: 18px;
  }

  .closed-arr-chart {
    grid-auto-flow: column;
    grid-auto-columns: minmax(124px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.45rem;
    min-height: 0;
    scrollbar-width: none;
  }

  .closed-arr-chart::-webkit-scrollbar {
    display: none;
  }

  .customer-table-wrap {
    padding: 0.7rem;
    overflow: visible;
  }

  .customer-archive-content {
    padding: 0.1rem 0.75rem 0.9rem;
  }

  .customer-table,
  .customer-table thead,
  .customer-table tbody,
  .customer-table tr,
  .customer-table td {
    display: block;
    width: 100%;
  }

  .customer-table {
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .customer-table thead {
    display: none;
  }

  .customer-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .customer-table tbody tr {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid #d9e3f0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.96));
    box-shadow: 0 12px 24px rgba(18, 33, 66, 0.07);
  }

  .customer-table-muted tbody tr {
    border-color: #efcfca;
    background: linear-gradient(180deg, rgba(255, 249, 248, 0.98), rgba(253, 238, 236, 0.96));
  }

  .customer-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .customer-table th,
  .customer-table td {
    padding: 0;
    border: 0;
  }

  .customer-table td {
    display: grid;
    grid-template-columns: minmax(106px, 0.9fr) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    background: transparent !important;
  }

  .customer-table td::before {
    content: attr(data-label);
    color: #62748d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.15;
  }

  .customer-empty-state {
    display: block;
    padding: 1rem 0.4rem;
    text-align: center;
  }

  .customer-empty-state::before {
    display: none;
  }

  .customer-name {
    font-size: 1rem;
    line-height: 1.25;
  }

  .customer-input,
  .customer-select {
    min-height: 46px;
    border-radius: 14px;
  }

  .customer-status-cell {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .content-area {
    padding: 0.7rem 0.7rem calc(5.8rem + env(safe-area-inset-bottom));
  }

  .sidebar {
    padding-inline: 0.5rem;
    padding-top: 0.5rem;
  }

  .tab,
  .app-shell.sidebar-collapsed .tab {
    min-width: 68px;
    min-height: 56px;
    padding: 0.42rem 0.22rem 0.38rem;
  }

  .tab-label {
    font-size: 0.64rem;
  }

  .tab-icon,
  .app-shell.sidebar-collapsed .tab-icon {
    width: 1.95rem;
    height: 1.95rem;
    min-width: 1.95rem;
  }

  .managed-summary-grid {
    gap: 0.48rem;
  }

  .managed-summary-card {
    min-height: 72px;
    padding: 0.64rem;
  }

  .managed-filters {
    grid-template-columns: 1fr;
  }

  .managed-filters .inline-filter:nth-child(5) {
    grid-column: auto;
  }

  .finance-summary-grid {
    grid-template-columns: 1fr;
  }

  .finance-summary-card {
    min-height: 92px;
  }

  #view-managed-services .managed-sheet tbody tr,
  #view-managed-services .managed-settings-sheet tbody tr {
    padding: 0.82rem;
    gap: 0.86rem;
  }

  #view-managed-services .managed-sheet td,
  #view-managed-services .managed-settings-sheet td {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0.46rem;
    align-items: stretch;
  }

  #view-managed-services .managed-status-stack {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #view-managed-services .managed-status-cell {
    min-height: 122px;
  }

  #view-managed-services input[type="checkbox"][data-managed-requirement-field] {
    justify-self: start;
  }

  .topbar {
    padding: 0.92rem;
    border-radius: 20px;
  }

  .month-controls {
    grid-template-columns: 1fr;
  }

  #view-overlap-deals .deal-launch-bar {
    grid-template-columns: 1fr;
  }

  #view-overlap-deals .month-controls,
  #view-current-customers .month-controls,
  #view-investor-crm .month-controls {
    grid-template-columns: 1fr;
  }

  .home-hero-copy h2 {
    font-size: 1.52rem;
  }

  .home-hero-value {
    font-size: 2.45rem;
  }

  #board {
    grid-auto-columns: minmax(264px, 88vw);
  }

  .todo-subcolumns {
    grid-template-columns: 1fr;
  }

  .todo-subcolumn {
    min-height: 170px;
  }

  .todo-cell {
    grid-template-columns: 1fr;
  }

  .todo-cell-actions {
    grid-auto-flow: column;
    justify-content: flex-start;
  }

  .sheet th,
  .sheet td {
    min-width: 124px;
    padding: 0.54rem 0.48rem;
  }

  .customer-panel,
  .customer-archive {
    border-radius: 16px;
  }

  .customer-table td {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }
}

/* Stripe-inspired dashboard skin */
:root {
  --bg-1: #ffffff;
  --bg-2: #f7f9fc;
  --panel: #ffffff;
  --ink: #1a1f36;
  --muted: #697386;
  --line: #e3e8ee;
  --accent: #635bff;
  --accent-soft: #f0efff;
  --danger: #df1b41;
  --sidebar: #ffffff;
  --sidebar-ink: #3c4257;
  --sidebar-width-open: 260px;
  --sidebar-width-collapsed: 76px;
  --sidebar-pill-size: 1.35rem;
  --sidebar-pill-gap: 0.72rem;
  --sidebar-rail-offset: 0;
  --sidebar-item-pad-y: 0.34rem;
  --sidebar-item-pad-x: 0.78rem;
  --stripe-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --stripe-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
}

body {
  font-family: var(--stripe-font);
  color: var(--ink);
  background: #ffffff;
}

.app-shell {
  grid-template-columns: var(--sidebar-width-open) minmax(0, 1fr);
  background: #ffffff;
}

.sidebar {
  background: #ffffff;
  color: var(--sidebar-ink);
  border-right: 1px solid #edf0f5;
  padding: 1rem 0.85rem;
  box-shadow: none;
}

.sidebar-head {
  min-height: 2.2rem;
  margin: 0 0 1.25rem;
  padding: 0.2rem 0.34rem;
  gap: 0.6rem;
  border-radius: 8px;
}

.sidebar-head:hover .hamburger,
.sidebar-head:focus-visible .hamburger {
  background: linear-gradient(135deg, #ffb224 0%, #ff5b37 48%, #635bff 100%);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.hamburger.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffb224 0%, #ff5b37 48%, #635bff 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.app-shell.sidebar-collapsed .hamburger.sidebar-brand-mark {
  border-radius: 50%;
}

.sidebar-brand-initials {
  display: block;
  line-height: 1;
  transform: translate(-1.35px, -0.1px);
}

.sidebar-title-slot {
  max-width: none;
}

.sidebar-title {
  color: #2a2f45;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sidebar-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #8792a2;
  margin-left: auto;
}

.sidebar-chevron svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-nav {
  gap: 0.08rem;
}

.sidebar-section-label {
  display: block;
  margin: 1.28rem 0 0.38rem;
  padding: 0 0.8rem;
  color: #697386;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-section-label:first-child {
  margin-top: 0;
}

.tab {
  grid-template-columns: 1.35rem minmax(0, 1fr);
  min-height: 2.15rem;
  padding: 0.38rem 0.72rem;
  border: 0;
  border-radius: 8px;
  color: #3c4257;
  column-gap: 0.68rem;
  font-size: 0.88rem;
}

.tab-icon {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8792a2;
  box-shadow: none;
}

.tab-icon svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.9;
}

.tab-label {
  color: inherit;
  font-weight: 600;
}

.tab:hover {
  background: #f7f9fc;
  border-color: transparent;
}

.tab:hover .tab-icon,
.tab:hover .tab-label {
  color: #2a2f45;
}

.tab.active {
  background: var(--accent-soft);
}

.tab.active .tab-icon {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.tab.active .tab-label {
  color: var(--accent);
}

.app-shell.sidebar-collapsed .sidebar-head {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0.2rem;
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-title-slot,
.app-shell.sidebar-collapsed .sidebar-chevron,
.app-shell.sidebar-collapsed .sidebar-section-label {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-nav {
  width: auto;
  gap: 0.3rem;
}

.app-shell.sidebar-collapsed .tab {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  justify-content: center;
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 8px;
}

.app-shell.sidebar-collapsed .tab-icon {
  display: inline-flex;
  place-self: center;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin: 0;
  line-height: 0;
}

.app-shell.sidebar-collapsed .tab-icon svg {
  display: block;
  margin: 0;
}

@media (min-width: 761px) {
  .app-shell.sidebar-collapsed .tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.app-shell.sidebar-collapsed .tab::after {
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #ffffff;
  color: #2a2f45;
  box-shadow: 0 8px 24px rgba(26, 31, 54, 0.16);
  font-size: 0.82rem;
}

.content-area {
  padding: 0 2rem 3rem;
  background: #ffffff;
}

.app-feedback {
  border-radius: 8px;
  border-color: #f2b8c6;
  box-shadow: none;
}

.view-panel.active {
  max-width: 1450px;
  margin: 0 auto;
}

.topbar,
#view-todo-calendar .topbar,
#view-overlap-deals .topbar,
#view-quota-tracker .topbar,
#view-current-customers .topbar,
.finance-topbar,
.managed-topbar {
  border: 0;
  border-bottom: 1px solid #d9dee7;
  border-radius: 0;
  padding: 1.45rem 0 0.9rem;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.title-wrap,
#view-overlap-deals .overlap-heading-block,
#view-quota-tracker .quota-heading-block {
  gap: 0.42rem;
}

h1,
#view-todo-calendar .title-wrap h1,
#view-overlap-deals .overlap-heading-block h1,
#view-quota-tracker .quota-heading-block h1,
.finance-topbar h1 {
  color: #2a2f45;
  font-size: 1.82rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle,
#view-todo-calendar .title-wrap .subtitle,
#view-overlap-deals .overlap-heading-block .subtitle,
#view-quota-tracker .quota-heading-block .subtitle {
  color: #697386;
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-card-kicker,
.home-eyebrow,
.home-brief-label,
.todo-summary-label,
.finance-summary-card span,
.customer-panel-kicker,
.managed-section-kicker {
  color: #697386;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.month-controls,
#view-todo-calendar .month-controls,
#view-overlap-deals .month-controls,
#view-quota-tracker .month-controls,
#view-current-customers .month-controls,
.finance-topbar .month-controls {
  gap: 0.45rem;
  align-items: center;
}

.ghost-btn,
button:not(.tab):not(.sidebar-head):not(.customer-sort-header):not(.todo-priority-trigger):not(.todo-icon-btn):not(.todo-delete-confirm-submit):not(.help-trigger):not(.help-menu-item):not(.help-whats-new-item):not(.shortcuts-back-btn):not(.shortcuts-close-btn):not(.revenue-billing-tab):not(.deal-primary-btn) {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  color: #3c4257;
  font-weight: 600;
  box-shadow: var(--stripe-shadow);
}

.ghost-btn:hover,
button:not(.tab):not(.sidebar-head):not(.customer-sort-header):not(.todo-priority-trigger):not(.todo-icon-btn):not(.todo-delete-confirm-submit):not(.help-trigger):not(.help-menu-item):not(.help-whats-new-item):not(.shortcuts-back-btn):not(.shortcuts-close-btn):not(.revenue-billing-tab):not(.deal-primary-btn):hover {
  border-color: #c8d0dc;
  background: #f7f9fc;
}

.ghost-btn.todo-delete-confirm-submit {
  border-color: #f04438;
  background: #d92d20;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(217, 45, 32, 0.18);
}

.ghost-btn.todo-delete-confirm-submit:hover,
.ghost-btn.todo-delete-confirm-submit:focus-visible {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.help-launcher {
  position: fixed;
  left: 0.72rem;
  bottom: 0.72rem;
  z-index: 44;
}

.help-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.18rem;
  height: 2.18rem;
  min-width: 2.18rem;
  padding: 0;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #ffffff;
  color: #43516b;
  line-height: 1;
  box-shadow:
    0 10px 24px rgba(27, 39, 64, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  cursor: pointer;
}

.help-trigger-icon {
  display: grid;
  place-items: center;
  width: 1.22rem;
  height: 1.22rem;
}

.help-trigger-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.help-trigger-mark {
  display: block;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1;
  transform: translateY(-0.02rem);
}

.help-update-badge {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  width: 0.54rem;
  height: 0.54rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #1d9bf0;
  box-shadow:
    0 0 0 1px rgba(29, 155, 240, 0.2),
    0 3px 8px rgba(29, 155, 240, 0.28);
  pointer-events: none;
  transform: translate(42%, -42%);
}

.help-update-badge[hidden] {
  display: none !important;
}

.help-trigger:hover,
.help-trigger:focus-visible,
.help-trigger[aria-expanded="true"] {
  border-color: #c5cfdd;
  background: #f8fafc;
  color: #243049;
  outline: none;
}

.help-trigger:focus-visible {
  box-shadow:
    0 0 0 3px rgba(64, 111, 255, 0.18),
    0 10px 24px rgba(27, 39, 64, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.help-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.42rem);
  width: 264px;
  padding: 0.35rem;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(26, 31, 54, 0.16);
}

.help-menu[hidden],
.shortcuts-drawer-backdrop[hidden] {
  display: none !important;
}

.help-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2rem;
  padding: 0.38rem 0.48rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #2a2f45;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.help-menu-item:hover,
.help-menu-item:focus-visible {
  background: #f3f5f9;
  outline: none;
}

.help-menu-label {
  min-width: 0;
  flex: 1;
}

.help-menu-shortcut {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a91a1;
  font-family: var(--stripe-font);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
}

.help-whats-new {
  margin-top: 0.32rem;
  padding-top: 0.42rem;
  border-top: 1px solid #edf0f5;
}

.help-whats-new h2 {
  margin: 0 0 0.28rem;
  padding: 0 0.48rem;
  color: #697386;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.help-whats-new-list {
  display: grid;
  gap: 0.08rem;
}

.help-whats-new-item {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr);
  align-items: start;
  gap: 0.42rem;
  width: 100%;
  min-height: 1.8rem;
  padding: 0.28rem 0.48rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #3c4257;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.help-whats-new-item:hover,
.help-whats-new-item:focus-visible {
  background: #f3f5f9;
  outline: none;
}

.help-whats-new-dot {
  width: 0.32rem;
  height: 0.32rem;
  margin-top: 0.43rem;
  border-radius: 50%;
  background: #687182;
}

.help-whats-new-title {
  min-width: 0;
  color: #3c4257;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.36;
}

.help-full-changelog {
  margin-top: 0.12rem;
  color: #2a2f45;
}

.help-menu-icon {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  color: #596171;
}

.help-menu-icon svg,
.shortcuts-back-btn svg,
.shortcuts-close-btn svg,
.shortcuts-search-field svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcuts-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
  background: rgba(26, 31, 54, 0.28);
}

.shortcuts-drawer-panel {
  width: min(372px, calc(100vw - 1.5rem));
  height: 100%;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(26, 31, 54, 0.2);
  padding: 1rem 1.25rem 1.35rem;
}

.shortcuts-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.shortcuts-title-group {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.shortcuts-drawer-head h2 {
  margin: 0;
  color: #151821;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.shortcuts-back-btn,
.shortcuts-close-btn {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #596171;
  box-shadow: none;
  cursor: pointer;
}

.shortcuts-back-btn:hover,
.shortcuts-back-btn:focus-visible,
.shortcuts-close-btn:hover,
.shortcuts-close-btn:focus-visible {
  border-color: #d9dee7;
  background: #f7f9fc;
  outline: none;
}

.shortcuts-search-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid #5968ff;
  border-radius: 9px;
  background: #ffffff;
  color: #596171;
  box-shadow: 0 0 0 1px rgba(89, 104, 255, 0.06);
}

.shortcuts-search-field:focus-within {
  box-shadow: 0 0 0 2px rgba(89, 104, 255, 0.1);
}

.shortcuts-search-field svg {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  stroke-width: 1.8;
}

.shortcuts-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #2a2f45;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  outline: none;
}

.shortcuts-search-field input::placeholder {
  color: #697386;
}

.shortcuts-section {
  margin-top: 1.45rem;
}

.shortcuts-section + .shortcuts-section {
  margin-top: 1.8rem;
}

.shortcuts-section h3 {
  margin: 0 0 0.62rem;
  color: #151821;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 2.16rem;
  color: #4e5668;
  font-size: 0.9rem;
}

.shortcut-row[hidden] {
  display: none;
}

.shortcut-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shortcut-row kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.45rem;
  padding: 0 0.42rem;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #fafbfc;
  color: #2a2f45;
  font-family: var(--stripe-font);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.shortcut-sequence {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.34rem;
  min-width: fit-content;
  white-space: nowrap;
}

.shortcut-then {
  color: #8a93a3;
  font-size: 0.72rem;
}

.shortcut-sequence kbd,
.sidebar-shortcut-tooltip kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.28rem;
  padding: 0 0.34rem;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  background: #fafbfc;
  color: #2a2f45;
  font-family: var(--stripe-font);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.sidebar-shortcut-tooltip {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2rem;
  padding: 0.36rem 0.5rem;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  color: #2a2f45;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(26, 31, 54, 0.14);
  transform: translateY(-50%);
  pointer-events: none;
}

.sidebar-shortcut-tooltip[hidden] {
  display: none !important;
}

.sidebar-shortcut-label {
  white-space: nowrap;
}

.inline-filter {
  border-color: #d9dee7;
  border-radius: 999px;
  background: #ffffff;
  color: #3c4257;
  font-size: 0.82rem;
  box-shadow: var(--stripe-shadow);
}

.inline-filter span {
  color: #3c4257;
  font-weight: 600;
}

.inline-filter select {
  color: var(--accent);
  font-weight: 600;
}

.home-hero-shell {
  margin-top: 0.55rem;
  border: 0;
  border-bottom: 1px solid #d9dee7;
  border-radius: 0;
  padding: 1.1rem 0 1.35rem;
  background: transparent;
  box-shadow: none;
}

.home-topbar {
  align-items: center;
}

.home-title-chip {
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.home-hero-brief {
  margin-top: 1.2rem;
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: end;
}

.home-hero-brief::after {
  content: "";
  min-height: 160px;
  border-bottom: 2px solid #a78bfa;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(99, 91, 255, 0.18) 50% 51%, transparent 51% 100%),
    linear-gradient(0deg, transparent calc(25% - 1px), #edf0f5 calc(25% - 1px) 25%, transparent 25%),
    linear-gradient(0deg, transparent calc(50% - 1px), #edf0f5 calc(50% - 1px) 50%, transparent 50%),
    linear-gradient(0deg, transparent calc(75% - 1px), #edf0f5 calc(75% - 1px) 75%, transparent 75%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  border-radius: 4px;
}

.home-hero-copy h2 {
  color: #2a2f45;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.home-hero-copy p {
  color: #697386;
  font-size: 0.93rem;
  line-height: 1.55;
}

.home-hero-metrics,
.finance-summary-grid,
.todo-summary-band,
.managed-summary-grid {
  gap: 0;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
  overflow: hidden;
}

.home-hero-card,
.finance-summary-card,
.todo-summary-card,
.managed-summary-card {
  min-height: 112px;
  border: 0;
  border-right: 1px solid #edf0f5;
  border-radius: 0;
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  box-shadow: none;
}

.home-hero-card:last-child,
.finance-summary-card:last-child,
.todo-summary-card:last-child,
.managed-summary-card:last-child {
  border-right: 0;
}

.home-hero-card:hover,
.home-link:hover,
.home-link:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.home-hero-label,
.inline-metric-label {
  color: #3c4257;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

.home-hero-value,
.finance-summary-card strong,
.todo-summary-value,
.managed-summary-card strong,
.inline-metric-value {
  color: #2a2f45;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.home-hero-note,
.todo-summary-copy,
.home-card p {
  color: #697386;
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
}

.home-card {
  min-height: 150px;
  border: 0;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  padding: 1.12rem 1.25rem;
  background: #ffffff;
  box-shadow: none;
}

.home-card h3 {
  color: #2a2f45;
  font-size: 1rem;
  font-weight: 700;
}

.inline-metrics,
#view-overlap-deals .inline-metrics {
  gap: 0.45rem;
}

.inline-metric,
#view-overlap-deals .inline-metric,
.todo-score-metric {
  min-height: 2.45rem;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 0.52rem 0.72rem;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
}

#view-overlap-deals .inline-metric-value,
.todo-score-metric .inline-metric-value {
  color: var(--accent);
  font-size: 1.05rem;
}

.finance-summary-card.emphasis,
.finance-summary-card.warn,
.finance-summary-card.is-negative,
.todo-score-metric.score-strong,
.todo-score-metric.score-steady,
.todo-score-metric.score-caution,
.todo-score-metric.score-scary,
.todo-score-metric.score-celebration,
.home-hero-card.score-strong,
.home-hero-card.score-steady,
.home-hero-card.score-caution,
.home-hero-card.score-scary,
.home-hero-card.score-celebration {
  border-color: #edf0f5;
  background: #ffffff;
  box-shadow: none;
}

.finance-summary-card.emphasis strong,
.finance-summary-card.is-positive strong,
.todo-score-metric.score-strong .inline-metric-value,
.home-hero-card.score-strong .home-hero-value,
.home-hero-card.score-celebration .home-hero-value {
  color: #067a46;
}

.finance-summary-card.warn strong,
.todo-score-metric.score-caution .inline-metric-value,
.home-hero-card.score-caution .home-hero-value {
  color: #9a5b00;
}

.finance-summary-card.is-negative strong,
.todo-score-metric.score-scary .inline-metric-value,
.home-hero-card.score-scary .home-hero-value {
  color: var(--danger);
}

.sheet-wrap,
.finance-sheet-wrap,
.customer-table-wrap,
.talking-points-wrap,
.customer-panel,
.managed-settings-card,
.insight-card,
.closed-arr-chart-wrap {
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
}

.sheet,
.finance-sheet,
.customer-table {
  border: 0;
  background: #ffffff;
}

.sheet th,
.finance-sheet th,
.customer-table th,
.managed-sheet th,
.managed-settings-sheet th {
  border-color: #edf0f5;
  background: #f7f9fc;
  color: #3c4257;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.sheet td,
.finance-sheet td,
.customer-table td,
.managed-sheet td,
.managed-settings-sheet td {
  border-color: #edf0f5;
  color: #3c4257;
  font-size: 0.88rem;
  min-height: 2.55rem;
}

.sheet td:focus,
.finance-sheet td:focus {
  background: #fbfcfe;
  box-shadow: inset 0 0 0 2px rgba(99, 91, 255, 0.28);
}

.finance-sheet tbody tr:nth-child(odd) td,
.finance-sheet tbody tr:nth-child(even) td,
.investor-sheet tbody tr:nth-child(odd) td,
.investor-sheet tbody tr:nth-child(even) td,
.customer-table tbody tr:nth-child(even) td {
  background: #ffffff;
}

.finance-sheet td:first-child,
.customer-name {
  color: #2a2f45;
  font-weight: 600;
}

.customer-input,
.customer-select,
.managed-cell-input,
.managed-cell-select,
.managed-cell-textarea,
.modal-field input,
.modal-field textarea,
.modal-field select {
  border-color: #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  color: #2a2f45;
  box-shadow: none;
}

.customer-input:focus,
.customer-select:focus,
.managed-cell-input:focus,
.managed-cell-select:focus,
.managed-cell-textarea:focus,
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  outline: none;
  border-color: #a5acff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.customer-select.status-healthy,
.managed-status-pill.completed {
  background: #e7f8ef;
  color: #067a46;
}

.customer-select.status-watching,
.managed-row-incomplete td {
  background: #fff8e5;
  color: #8a5b00;
}

.customer-select.status-at-risk,
.customer-select.status-churned,
.managed-row-overdue td {
  background: #fff1f3;
  color: #b00020;
}

.modal-card {
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(26, 31, 54, 0.18);
}

.modal-backdrop {
  background: rgba(26, 31, 54, 0.34);
}

.todo-day,
.stage,
.ai-followup-panel,
.todo-priority-item,
.todo-history-card {
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
}

.stage h2 {
  color: #3c4257;
  font-size: 0.88rem;
}

.stage-header {
  border-radius: 10px 10px 0 0;
  background: #f7f9fc;
}

.stage-total {
  border-color: #e6ebf2;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
}

.deal-card,
.todo-cell {
  border-color: #edf0f5;
  border-radius: 8px;
  box-shadow: none;
}

.deal-card:hover,
.todo-cell:hover {
  border-color: #d9dee7;
  box-shadow: var(--stripe-shadow);
}

@media (max-width: 1020px) {
  .finance-summary-grid,
  .home-hero-metrics,
  .todo-summary-band,
  .managed-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background: #ffffff;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #edf0f5;
    box-shadow: 0 -8px 30px rgba(26, 31, 54, 0.08);
  }

  .sidebar-section-label,
  .sidebar-head {
    display: none;
  }

  .sidebar-nav {
    grid-auto-columns: minmax(82px, 94px);
    gap: 0.22rem;
  }

  .tab,
  .app-shell.sidebar-collapsed .tab {
    min-width: 82px;
    min-height: 58px;
    border-radius: 10px;
    color: #697386;
  }

  .tab-label {
    color: inherit;
    display: block;
    max-width: 100%;
    font-size: 0.66rem;
    line-height: 1.08;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab.active {
    background: var(--accent-soft);
  }

  .content-area {
    padding: 0.65rem 0.75rem calc(6.25rem + env(safe-area-inset-bottom));
  }

  .topbar,
  #view-todo-calendar .topbar,
  #view-overlap-deals .topbar,
  #view-quota-tracker .topbar,
  #view-current-customers .topbar,
  .finance-topbar,
  .managed-topbar {
    padding: 0.95rem 0 0.75rem;
  }

  .home-hero-brief {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero-brief::after {
    min-height: 110px;
  }

  .finance-summary-grid,
  .home-hero-metrics,
  .todo-summary-band,
  .managed-summary-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-card,
  .finance-summary-card,
  .todo-summary-card,
  .managed-summary-card {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }

  .home-hero-card:last-child,
  .finance-summary-card:last-child,
  .todo-summary-card:last-child,
  .managed-summary-card:last-child {
    border-bottom: 0;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .analytics-composer-controls,
  .analytics-composer-grid {
    grid-template-columns: 1fr;
  }

  .analytics-composer-generate {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .managed-add-row {
    grid-template-columns: 1fr;
  }

  .analytics-composer-metrics {
    grid-template-columns: 1fr;
  }

  .analytics-composer-system-prompt-head {
    flex-direction: column;
  }

  .analytics-composer-system-prompt-head small {
    white-space: normal;
  }

  .analytics-composer-panel-head,
  .analytics-composer-output-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .analytics-composer-copy-actions {
    justify-content: stretch;
  }

  .analytics-composer-copy-actions .ghost-btn {
    flex: 1 1 auto;
  }
}

/* To-Do planner readability pass */
#view-todo-calendar .topbar {
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.15rem 0 0.95rem;
}

#view-todo-calendar .title-wrap h1 {
  font-size: 1.82rem;
  letter-spacing: 0;
}

#view-todo-calendar .todo-title-row {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

#view-todo-calendar .todo-title-add-btn {
  min-height: 38px;
  border-color: #30b46c;
  padding: 0 0.82rem;
  border-radius: 8px;
  background: #ffffff;
  color: #177245;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow:
    0 0 0 3px rgba(48, 180, 108, 0.12),
    0 8px 18px rgba(23, 114, 69, 0.12);
}

#view-todo-calendar .todo-title-add-btn:hover,
#view-todo-calendar .todo-title-add-btn:focus-visible {
  border-color: #1f9d58;
  background: #f7fff9;
  box-shadow:
    0 0 0 4px rgba(48, 180, 108, 0.18),
    0 10px 22px rgba(23, 114, 69, 0.16);
}

#view-todo-calendar .title-wrap .subtitle {
  max-width: 48rem;
  font-size: 0.92rem;
  color: #667085;
}

#view-todo-calendar .month-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

#view-todo-calendar .month-controls .ghost-btn,
#view-todo-calendar .todo-score-metric {
  min-height: 42px;
  border-radius: 8px;
  padding: 0.58rem 0.82rem;
  font-size: 0.9rem;
  line-height: 1.15;
  white-space: nowrap;
}

#view-todo-calendar .todo-score-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

#view-todo-calendar .todo-summary-band {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
  overflow: hidden;
}

#view-todo-calendar .todo-summary-card {
  min-height: auto;
  border: 0;
  border-right: 1px solid #edf0f5;
  border-radius: 0;
  padding: 0.9rem 1rem;
  background: #ffffff;
  box-shadow: none;
}

#view-todo-calendar .todo-summary-card:last-child {
  border-right: 0;
}

#view-todo-calendar .todo-summary-label {
  color: #3c4257;
  font-size: 0.76rem;
  font-weight: 700;
}

#view-todo-calendar .todo-summary-value {
  margin-top: 0.28rem;
  font-size: 1.42rem;
  line-height: 1.05;
}

#view-todo-calendar .todo-summary-copy {
  margin-top: 0.26rem;
  font-size: 0.84rem;
}

#view-todo-calendar .todo-week-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(352px, 1fr));
  grid-auto-flow: column;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.15rem 0.85rem;
  scroll-snap-type: x proximity;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}

#view-todo-calendar .todo-week-grid::-webkit-scrollbar {
  display: none;
}

#view-todo-calendar .todo-week-grid.is-dragging-week {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

#view-todo-calendar .todo-week-grid.is-dragging-week * {
  cursor: grabbing;
}

#view-todo-calendar .todo-week-scroll-map {
  position: sticky;
  bottom: 0.55rem;
  z-index: 8;
  width: min(560px, calc(100% - 0.5rem));
  margin: 0.42rem auto 0;
  padding: 0.32rem 0.38rem 0.38rem;
  display: grid;
  gap: 0.3rem;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(26, 31, 54, 0.1);
  backdrop-filter: blur(12px);
}

#view-todo-calendar .todo-week-scroll-map[hidden] {
  display: none;
}

#view-todo-calendar .todo-week-scroll-caption {
  min-height: 0.88rem;
  color: #4f566b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

#view-todo-calendar .todo-week-scroll-track {
  position: relative;
  min-height: 38px;
  padding: 0.24rem;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #f7f9fc;
  overflow: hidden;
  cursor: pointer;
}

#view-todo-calendar .todo-week-scroll-track::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: #d9dee7;
  transform: translateY(-50%);
}

#view-todo-calendar .todo-week-scroll-thumb {
  --todo-scroll-left: 0%;
  --todo-scroll-width: 20%;
  position: absolute;
  top: 0.24rem;
  bottom: 0.24rem;
  left: var(--todo-scroll-left);
  width: var(--todo-scroll-width);
  border-radius: 7px;
  border: 1px solid rgba(99, 91, 255, 0.18);
  background: rgba(99, 91, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  cursor: grab;
  transition:
    left 120ms ease,
    width 120ms ease,
    box-shadow 160ms ease;
}

#view-todo-calendar .todo-week-scroll-track.is-dragging-map .todo-week-scroll-thumb {
  cursor: grabbing;
  background: rgba(99, 91, 255, 0.16);
}

#view-todo-calendar .todo-week-scroll-markers {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.14rem;
  min-height: 30px;
}

#view-todo-calendar .todo-week-scroll-marker {
  min-width: 0;
  min-height: 30px;
  padding: 0.2rem 0.18rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.02rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

#view-todo-calendar .todo-week-scroll-marker span,
#view-todo-calendar .todo-week-scroll-marker strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-todo-calendar .todo-week-scroll-marker span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-todo-calendar .todo-week-scroll-marker strong {
  font-size: 0.82rem;
  line-height: 1;
}

#view-todo-calendar .todo-week-scroll-marker:hover,
#view-todo-calendar .todo-week-scroll-marker:focus-visible {
  background: rgba(255, 255, 255, 0.84);
  color: #234160;
  outline: none;
}

#view-todo-calendar .todo-week-scroll-marker.is-visible {
  color: #2a2f45;
  text-shadow: none;
}

#view-todo-calendar .todo-week-scroll-marker.is-leading {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(99, 91, 255, 0.08);
}

#view-todo-calendar .todo-week-scroll-marker:active {
  transform: scale(0.96);
}

#view-todo-calendar .todo-day {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  min-height: 540px;
  height: 100%;
  scroll-snap-align: start;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  padding: 0;
  background: #ffffff;
  box-shadow: var(--stripe-shadow);
  overflow: hidden;
}

#view-todo-calendar .todo-day.is-today {
  border-color: #c7c9ff;
  box-shadow:
    var(--stripe-shadow),
    0 0 0 2px rgba(99, 91, 255, 0.08);
}

#view-todo-calendar .todo-day.has-overdue-work {
  border-color: #f1c9bf;
}

#view-todo-calendar .todo-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid #edf0f5;
  background: #f7f9fc;
}

#view-todo-calendar .todo-day-name {
  color: #4f566b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#view-todo-calendar .todo-day h3 {
  margin-top: 0.14rem;
  color: #2a2f45;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: 0;
}

#view-todo-calendar .todo-day-badges {
  justify-content: flex-end;
}

#view-todo-calendar .todo-day-pill {
  min-height: 22px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

#view-todo-calendar .todo-day-meta {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.7rem;
  padding: 0.58rem 0.82rem;
  border-bottom: 1px solid #edf0f5;
  background: #ffffff;
}

#view-todo-calendar .todo-day-meta span {
  display: inline-flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.36rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 600;
}

#view-todo-calendar .todo-day-meta strong {
  color: #2a2f45;
  font-size: 1rem;
  font-weight: 700;
}

#view-todo-calendar .todo-subcolumns {
  display: grid;
  grid-column: 1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: 0.48rem;
  align-items: stretch;
  min-width: 0;
  padding: 0.62rem;
}

#view-todo-calendar .todo-subcolumn {
  min-height: 390px;
  align-content: start;
  gap: 0.5rem;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fbfcfe;
}

#view-todo-calendar .todo-subcolumn.done {
  border-color: #edf0f5;
  background: #fbfcfe;
}

#view-todo-calendar .todo-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
}

#view-todo-calendar .todo-lane-copy {
  min-width: 0;
}

#view-todo-calendar .todo-lane-title-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

#view-todo-calendar .todo-lane-head h4 {
  color: #2a2f45;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

#view-todo-calendar .todo-lane-helper {
  display: none;
}

#view-todo-calendar .todo-lane-count {
  min-width: 0;
  height: auto;
  min-height: 26px;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 0.78rem;
  line-height: 1.15;
  white-space: nowrap;
}

#view-todo-calendar .todo-lane-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

#view-todo-calendar .todo-priority-trigger {
  width: 28px;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  border-radius: 8px;
  padding: 0;
  justify-content: center;
}

#view-todo-calendar .todo-priority-trigger svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

#view-todo-calendar .todo-cells {
  gap: 0.48rem;
}

#view-todo-calendar .todo-cell {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 0.72rem 0.88rem 0.74rem;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

#view-todo-calendar .todo-cell:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(17, 31, 58, 0.05);
}

#view-todo-calendar .todo-cell-main {
  min-width: 0;
}

#view-todo-calendar .todo-cell-input {
  width: 100%;
  min-height: 52px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2a2f45;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.44;
  resize: none;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

#view-todo-calendar .todo-cell-actions {
  position: absolute;
  top: 0.34rem;
  right: 0.34rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#view-todo-calendar .todo-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(145, 158, 171, 0.22);
  border-radius: 999px;
  padding: 0;
  background: rgba(248, 250, 252, 0.78);
  color: #98a2b3;
  opacity: 0.68;
}

#view-todo-calendar .todo-delete-btn:hover,
#view-todo-calendar .todo-delete-btn:focus-visible {
  border-color: rgba(217, 45, 32, 0.42);
  background: #fee4e2;
  color: #912018;
  opacity: 1;
}

#view-todo-calendar .todo-delete-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-todo-calendar .todo-empty-state {
  min-height: 36px;
  border-radius: 8px;
  padding: 0.58rem;
  color: #667085;
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  #view-todo-calendar .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #view-todo-calendar .month-controls {
    justify-content: flex-start;
  }

  #view-todo-calendar .todo-summary-band {
    grid-template-columns: 1fr;
  }

  #view-todo-calendar .todo-summary-card {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }

  #view-todo-calendar .todo-summary-card:last-child {
    border-bottom: 0;
  }

  #view-todo-calendar .todo-week-grid {
    grid-template-columns: repeat(7, minmax(340px, 86vw));
  }
}

@media (max-width: 620px) {
  #view-todo-calendar .title-wrap h1 {
    font-size: 1.65rem;
  }

  #view-todo-calendar .month-controls .ghost-btn,
  #view-todo-calendar .todo-score-metric {
    flex: 1 1 100%;
    justify-content: center;
  }

  #view-todo-calendar .todo-week-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    overflow-x: visible;
    padding-bottom: 0;
  }

  #view-todo-calendar .todo-day {
    min-height: 0;
  }

  #view-todo-calendar .todo-day-meta {
    grid-template-columns: 1fr;
  }

  #view-todo-calendar .todo-subcolumns {
    grid-template-columns: 1fr;
  }

  #view-todo-calendar .todo-subcolumn {
    min-height: 150px;
  }

}

/* Managed Service summary cards */
#view-managed-services .managed-summary-grid {
  gap: 0.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#view-managed-services .managed-summary-card {
  min-height: 118px;
  align-content: center;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #e5edf6;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

#view-managed-services .managed-summary-card:last-child {
  border-right: 1px solid #e5edf6;
}

#view-managed-services .managed-summary-card span {
  color: #526477;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

#view-managed-services .managed-summary-card strong {
  color: #20273a;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  font-weight: 700;
}

#view-managed-services .managed-summary-card.warn {
  border-color: rgba(217, 158, 36, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.62));
}

#view-managed-services .managed-summary-card.completion-tile {
  --managed-completion-ratio: 0;
  --managed-completion-alpha: 0.08;
  --managed-completion-border-alpha: 0.18;
  --managed-completion-value-alpha: 0.74;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 1.55rem;
  border: 1px solid rgba(16, 185, 129, var(--managed-completion-border-alpha));
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(167, 243, 208, var(--managed-completion-alpha))),
    #ffffff;
  box-shadow:
    var(--stripe-shadow);
}

#view-managed-services .managed-summary-card.completion-tile::before {
  content: "";
  position: absolute;
  inset: auto 1rem 0.85rem 1rem;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.92) calc(var(--managed-completion-ratio) * 100%), rgba(209, 250, 229, 0.96) 0);
  z-index: 0;
}

#view-managed-services .managed-summary-card.completion-tile > * {
  position: relative;
  z-index: 1;
}

#view-managed-services .managed-summary-card.completion-tile span {
  color: #2f6654;
}

#view-managed-services .managed-summary-card.completion-tile strong {
  color: rgba(4, 120, 87, var(--managed-completion-value-alpha));
}

#view-managed-services .managed-summary-card.completion-tile[data-completion-level="complete"] {
  border-color: rgba(5, 150, 105, 0.72);
  background:
    linear-gradient(135deg, rgba(209, 250, 229, 0.98), rgba(52, 211, 153, 0.32)),
    #ffffff;
}

#view-managed-services .managed-summary-card.completion-tile[data-completion-level="low"]::before {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.7) calc(var(--managed-completion-ratio) * 100%), rgba(226, 232, 240, 0.72) 0);
}

#view-managed-services .managed-summary-card.inverse-tile {
  --managed-inverse-ratio: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 1.55rem;
  border-color: rgba(5, 150, 105, 0.62);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(167, 243, 208, 0.28)),
    #ffffff;
  box-shadow: var(--stripe-shadow);
}

#view-managed-services .managed-summary-card.inverse-tile::before {
  content: "";
  position: absolute;
  inset: auto 1rem 0.85rem 1rem;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.92) 100%, rgba(209, 250, 229, 0.96) 0);
  z-index: 0;
}

#view-managed-services .managed-summary-card.inverse-tile > * {
  position: relative;
  z-index: 1;
}

#view-managed-services .managed-summary-card.inverse-tile span {
  color: #2f6654;
}

#view-managed-services .managed-summary-card.inverse-tile strong {
  color: #047857;
}

#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="medium"] {
  border-color: rgba(217, 158, 36, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.62)),
    #ffffff;
}

#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="medium"] span,
#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="medium"] strong {
  color: #8a5b13;
}

#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="medium"]::before {
  background:
    linear-gradient(90deg, rgba(217, 158, 36, 0.9) calc(var(--managed-inverse-ratio) * 100%), rgba(254, 243, 199, 0.82) 0);
}

#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="high"],
#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="critical"] {
  border-color: rgba(220, 38, 38, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 202, 202, 0.64)),
    #ffffff;
}

#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="high"] span,
#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="critical"] span,
#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="high"] strong,
#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="critical"] strong {
  color: #991b1b;
}

#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="high"]::before,
#view-managed-services .managed-summary-card.inverse-tile[data-inverse-level="critical"]::before {
  background:
    linear-gradient(90deg, rgba(220, 38, 38, 0.88) calc(var(--managed-inverse-ratio) * 100%), rgba(254, 226, 226, 0.82) 0);
}

/* Home workspace map */
#view-home {
  gap: 1.35rem;
}

#view-home.active {
  display: grid;
}

#view-home .home-dashboard-hero {
  margin-top: 0;
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid #dce3ee;
}

#view-home .home-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

#view-home .home-title-block {
  display: grid;
  gap: 0.35rem;
}

#view-home .home-eyebrow {
  color: #53677f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#view-home .home-title-block h1 {
  margin: 0;
  color: #252b3f;
  font-size: clamp(2.1rem, 3.3vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

#view-home .home-title-block .subtitle {
  max-width: 58rem;
  color: #637086;
  font-size: 1rem;
  line-height: 1.45;
}

#view-home .home-title-chip {
  min-height: 36px;
  align-self: start;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #f0edff;
  color: #5f54d9;
  font-size: 0.86rem;
}

#view-home .home-quick-stats {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#view-home .home-hero-card {
  min-height: 128px;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 31, 58, 0.04);
}

#view-home .home-hero-card:last-child {
  border-right: 1px solid #e0e6f0;
}

#view-home .home-hero-card:hover,
#view-home .home-hero-card:focus-visible {
  border-color: #c6d0df;
  box-shadow: 0 12px 24px rgba(17, 31, 58, 0.07);
}

#view-home .home-hero-label,
#view-home .home-card-kicker,
#view-home .home-section-label {
  color: #53677f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

#view-home .home-hero-value {
  margin-top: 0.35rem;
  color: #252b3f;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 750;
}

#view-home .home-hero-note {
  margin-top: 0.55rem;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.45;
}

#view-home .home-map {
  display: grid;
  gap: 0.35rem;
}

#view-home .home-section {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.3rem 0;
  border-top: 1px solid #e5eaf2;
}

#view-home .home-section:first-child {
  border-top: 0;
  padding-top: 0;
}

#view-home .home-section-head {
  display: grid;
  gap: 0.38rem;
  align-content: start;
}

#view-home .home-section-head h2 {
  margin: 0;
  color: #252b3f;
  font-size: 1.18rem;
  line-height: 1.2;
}

#view-home .home-section-head p {
  margin: 0;
  max-width: 18rem;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.45;
}

#view-home .home-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

#view-home .home-card {
  min-height: 142px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.45rem;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 31, 58, 0.035);
}

#view-home .home-card:hover,
#view-home .home-card:focus-visible {
  transform: translateY(-1px);
  border-color: #c6d0df;
  box-shadow: 0 14px 26px rgba(17, 31, 58, 0.08);
}

#view-home .home-card.home-card-current {
  border-color: #c8d6e8;
  background: #f8fbff;
}

#view-home .home-card h3 {
  margin: 0;
  color: #252b3f;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.2;
}

#view-home .home-card p {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.45;
}

#view-home .home-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 28px;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #f3f6fb;
  color: #3f5168;
  font-size: 0.78rem;
  font-weight: 800;
}

#view-home .home-card-current .home-card-action {
  background: #e7f0fb;
  color: #2f5f92;
}

@media (max-width: 980px) {
  #view-home .home-topbar,
  #view-home .home-section {
    grid-template-columns: 1fr;
  }

  #view-home .home-section {
    gap: 0.85rem;
  }

  #view-home .home-section-head p {
    max-width: none;
  }
}

@media (max-width: 680px) {
  #view-home .home-dashboard-hero {
    padding-top: 0.75rem;
  }

  #view-home .home-title-chip {
    justify-self: start;
  }

  #view-home .home-quick-stats,
  #view-home .home-section-grid {
    grid-template-columns: 1fr;
  }

  #view-home .home-card,
  #view-home .home-hero-card {
    min-height: 0;
  }
}

/* To-Do planner redesign */
#view-todo-calendar {
  padding-top: 0;
}

#view-todo-calendar .todo-planner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 1rem;
  border-bottom: 1px solid #edf0f5;
}

#view-todo-calendar .todo-planner-heading {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

#view-todo-calendar .todo-period-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0.25rem 0.15rem;
  background: transparent;
  box-shadow: none;
  color: #202436;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

#view-todo-calendar .todo-period-button:hover,
#view-todo-calendar .todo-period-button:focus-visible {
  background: #f7f9fc;
  box-shadow: none;
}

#view-todo-calendar .todo-planner-heading h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.75rem, 2vw, 2.2rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

#view-todo-calendar .todo-planner-heading .subtitle {
  margin: 0.35rem 0 0;
  color: #667085;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

#view-todo-calendar .todo-planner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

#view-todo-calendar .todo-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  min-height: 44px;
  padding: 0.22rem;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #f7f9fc;
}

#view-todo-calendar .todo-view-switch-btn {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 0.86rem;
  background: transparent;
  box-shadow: none;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
}

#view-todo-calendar .todo-view-switch-btn:hover,
#view-todo-calendar .todo-view-switch-btn:focus-visible {
  background: #ffffff;
  box-shadow: none;
}

#view-todo-calendar .todo-view-switch-btn.active {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 1px 4px rgba(17, 31, 58, 0.1);
}

#view-todo-calendar .todo-date-stepper {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 31, 58, 0.04);
  overflow: hidden;
}

#view-todo-calendar .todo-stepper-btn,
#view-todo-calendar .todo-stepper-today {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 0.7rem;
  background: transparent;
  box-shadow: none;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 800;
}

#view-todo-calendar .todo-stepper-btn {
  width: 38px;
  min-width: 38px;
  color: #98a2b3;
  font-size: 1.35rem;
  font-weight: 500;
}

#view-todo-calendar .todo-stepper-today {
  border-right: 1px solid #edf0f5;
  border-left: 1px solid #edf0f5;
}

#view-todo-calendar .todo-stepper-btn:hover,
#view-todo-calendar .todo-stepper-today:hover,
#view-todo-calendar .todo-stepper-btn:focus-visible,
#view-todo-calendar .todo-stepper-today:focus-visible {
  background: #f7f9fc;
  box-shadow: none;
}

#view-todo-calendar .todo-history-btn,
#view-todo-calendar .todo-add-task-btn {
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

#view-todo-calendar .todo-add-task-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d9dee7;
  padding: 0 0.95rem;
  background: #ffffff;
  color: #344054;
  box-shadow: 0 4px 12px rgba(17, 31, 58, 0.04);
}

#view-todo-calendar .todo-add-task-btn span,
#view-todo-calendar .todo-inline-add span {
  color: #d92d20;
  font-weight: 500;
}

#view-todo-calendar .todo-tracker-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

#view-todo-calendar .todo-tracker-chip,
#view-todo-calendar .todo-tracker-chip.todo-score-metric {
  display: grid;
  align-content: center;
  gap: 0.26rem;
  min-height: 68px;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 31, 58, 0.04);
}

#view-todo-calendar .todo-tracker-chip.todo-score-metric {
  border-top: 3px solid #635bff;
}

#view-todo-calendar .todo-tracker-chip .todo-summary-label,
#view-todo-calendar .todo-tracker-chip .inline-metric-label {
  color: #53627a;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

#view-todo-calendar .todo-tracker-chip .todo-summary-value,
#view-todo-calendar .todo-tracker-chip .inline-metric-value {
  margin: 0;
  color: #111c34;
  font-size: 1.36rem;
  font-weight: 850;
  line-height: 1;
}

#view-todo-calendar .todo-planner-shell {
  margin-top: 1.1rem;
}

#view-todo-calendar .todo-today-panel[hidden],
#view-todo-calendar .todo-week-grid[hidden] {
  display: none !important;
}

#view-todo-calendar .todo-today-panel {
  min-height: 56vh;
}

#view-todo-calendar .todo-today-content {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 2.45rem) 0 2rem;
}

#view-todo-calendar .todo-today-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

#view-todo-calendar .todo-today-head h2 {
  margin: 0;
  color: #202436;
  font-size: clamp(1.75rem, 2.4vw, 2.05rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

#view-todo-calendar .todo-today-head p {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.55rem 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
}

#view-todo-calendar .todo-today-head p::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid #98a2b3;
  border-radius: 999px;
}

#view-todo-calendar .todo-day-list {
  display: grid;
  gap: 0;
}

#view-todo-calendar .todo-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 0.8rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid #e5e7eb;
  cursor: grab;
  transition:
    background-color 160ms ease,
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

#view-todo-calendar .todo-list-item:active {
  cursor: grabbing;
}

#view-todo-calendar .todo-list-main {
  min-width: 0;
}

#view-todo-calendar .todo-list-input {
  width: 100%;
  min-height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2a2f45;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.42;
  resize: none;
  overflow: hidden;
}

#view-todo-calendar .todo-list-input:focus {
  outline: none;
}

#view-todo-calendar .todo-list-meta {
  align-self: center;
  min-width: 140px;
  color: #777f8d;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

#view-todo-calendar .todo-list-divider {
  margin-top: 1.3rem;
  padding: 0.75rem 0 0.2rem;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#view-todo-calendar .todo-today-empty {
  padding: 1rem 0 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  color: #858b96;
  font-size: 0.95rem;
}

#view-todo-calendar .todo-inline-add {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 0.15rem;
  background: transparent;
  box-shadow: none;
  color: #858b96;
  font-size: 0.96rem;
  font-weight: 500;
}

#view-todo-calendar .todo-inline-add:hover,
#view-todo-calendar .todo-inline-add:focus-visible {
  background: transparent;
  color: #344054;
  box-shadow: none;
}

#view-todo-calendar .todo-inline-add span {
  font-size: 1.45rem;
  line-height: 1;
}

#view-todo-calendar .todo-week-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 1fr);
  grid-template-columns: none;
  gap: 1.2rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-top: 0.4rem;
  padding: 1rem 0 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}

#view-todo-calendar .todo-week-scroll-map {
  display: none !important;
}

#view-todo-calendar .todo-day {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 0;
  min-width: 286px;
  min-height: 430px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  scroll-snap-align: start;
}

#view-todo-calendar .todo-day.is-today,
#view-todo-calendar .todo-day.has-overdue-work,
#view-todo-calendar .todo-day.drop-target {
  border: 0;
  box-shadow: none;
}

#view-todo-calendar .todo-day-head {
  display: block;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  background: transparent;
}

#view-todo-calendar .todo-day h3 {
  margin: 0;
  color: #202436;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
}

#view-todo-calendar .todo-day h3 span {
  margin-left: 0.28rem;
  color: #8a8f98;
  font-weight: 500;
}

#view-todo-calendar .todo-week-day-cells {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 0;
}

#view-todo-calendar .todo-cells {
  gap: 0.75rem;
}

#view-todo-calendar .todo-cell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.72rem;
  min-height: 84px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  padding: 0.88rem;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(17, 31, 58, 0.08);
  overflow: hidden;
}

#view-todo-calendar .todo-cell:hover,
#view-todo-calendar .todo-cell:focus-within {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(17, 31, 58, 0.08);
}

#view-todo-calendar .todo-cell.is-done {
  opacity: 0.7;
}

#view-todo-calendar .todo-task-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 2px solid #a3a8b0;
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
}

#view-todo-calendar .todo-task-check:hover,
#view-todo-calendar .todo-task-check:focus-visible {
  border-color: #4f46e5;
  background: #f7f5ff;
  box-shadow: none;
}

#view-todo-calendar .todo-task-check.is-done {
  border-color: #22c55e;
  background: #22c55e;
}

#view-todo-calendar .todo-task-check.is-done span {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

#view-todo-calendar .todo-cell-main {
  min-width: 0;
}

#view-todo-calendar .todo-cell-input {
  width: 100%;
  min-height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2a2f45;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
}

#view-todo-calendar .todo-cell-input:focus {
  outline: none;
}

#view-todo-calendar .todo-cell.is-done .todo-cell-input,
#view-todo-calendar .todo-list-item.is-done .todo-list-input {
  color: #667085;
  text-decoration: line-through;
}

#view-todo-calendar .todo-cell-meta {
  margin-top: 0.45rem;
  color: #777f8d;
  font-size: 0.74rem;
  font-weight: 600;
}

#view-todo-calendar .todo-cell-actions {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#view-todo-calendar .todo-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(145, 158, 171, 0.22);
  border-radius: 999px;
  padding: 0;
  background: rgba(248, 250, 252, 0.78);
  color: #98a2b3;
  opacity: 0.68;
}

#view-todo-calendar .todo-list-delete {
  align-self: center;
}

#view-todo-calendar .todo-list-item.dragging {
  opacity: 0.2;
}

#view-todo-calendar .todo-list-item.dragging-hidden {
  display: none;
}

#view-todo-calendar .todo-day-list > .todo-drop-placeholder {
  position: relative;
  min-height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-todo-calendar .todo-day-list > .todo-drop-placeholder::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.86), rgba(14, 165, 233, 0.58));
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.18);
  transform: translateY(-50%);
}

#view-todo-calendar .todo-cell:hover .todo-delete-btn,
#view-todo-calendar .todo-list-item:hover .todo-delete-btn,
#view-todo-calendar .todo-delete-btn:focus-visible {
  opacity: 0.86;
}

#view-todo-calendar .todo-delete-btn:hover,
#view-todo-calendar .todo-delete-btn:focus-visible {
  border-color: rgba(198, 82, 60, 0.34);
  background: rgba(254, 228, 226, 0.72);
  color: #a03f2d;
  opacity: 1;
}

#view-todo-calendar .todo-delete-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-todo-calendar .todo-empty-state {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0.6rem 0;
  background: transparent;
  color: #858b96;
  font-size: 0.95rem;
}

@media (max-width: 1120px) {
  #view-todo-calendar .todo-planner-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #view-todo-calendar .todo-planner-actions {
    justify-content: flex-start;
  }

  #view-todo-calendar .todo-tracker-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #view-todo-calendar .todo-planner-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  #view-todo-calendar .todo-planner-actions {
    width: 100%;
  }

  #view-todo-calendar .todo-view-switch,
  #view-todo-calendar .todo-date-stepper,
  #view-todo-calendar .todo-history-btn,
  #view-todo-calendar .todo-add-task-btn {
    flex: 1 1 auto;
  }

  #view-todo-calendar .todo-tracker-strip {
    grid-template-columns: 1fr;
  }

  #view-todo-calendar .todo-list-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  #view-todo-calendar .todo-list-meta {
    display: none;
  }

  #view-todo-calendar .todo-week-grid {
    grid-auto-columns: minmax(270px, 88vw);
  }
}
