:root {
  color-scheme: light;
  --bg-page: #f7f8ff;
  --bg-card: #ffffff;
  --text-title: #17113a;
  --text-body: #635f7a;
  --border-card: #e6e7ff;
  --primary: #4b55ff;
  --completed: #c936dc;
  --gauge-bg: #ecefff;
  --sql: #f04a9b;
  --lost: #f3eaff;
  --won: #ff9856;
  --biz-1: #5458ff;
  --biz-2: #d83ad7;
  --biz-3: #ffd45c;
  --fuke-blue: #4b55ff;
  --fuke-pink: #d83ad7;
  --fuke-gold: #ffd45c;
  --fuke-orange: #ff9856;
  --channel: #15a36a;
  --shadow-card: 0 10px 28px rgba(51, 45, 148, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg-page);
  color: var(--text-title);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.global-watermark {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  grid-auto-rows: 220px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.global-watermark-tile {
  display: grid;
  gap: 8px;
  min-width: 260px;
  color: rgba(23, 17, 58, 0.13);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-24deg);
  white-space: nowrap;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.app-shell {
  width: min(1200px, calc(100vw - 30px));
  margin: 0 auto;
  padding: 10px 0 24px;
}

.command-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-card);
  background: rgba(247, 248, 255, 0.96);
  backdrop-filter: blur(12px);
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

h1,
h2 {
  margin: 0;
  color: var(--text-title);
  font-weight: 800;
}

h1 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  line-height: 1.2;
}

h1::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("../assets/logo.png?v=20260428182204") center / contain no-repeat;
  flex: 0 0 auto;
}

h2 {
  display: flex;
  align-items: center;
  font-size: 13px;
}

#statusText {
  color: var(--text-body);
  font-size: 12px;
  white-space: nowrap;
}

.account-badge {
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #d8dcff;
  border-radius: 6px;
  background: #fff;
  color: var(--text-title);
  font-size: 12px;
  font-weight: 800;
}

.login-view {
  min-height: calc(100vh - 52px);
  display: grid;
  place-items: center;
  border-top-color: var(--primary);
}

.login-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.login-title {
  display: grid;
  gap: 4px;
}

.login-title h2 {
  font-size: 18px;
}

.login-title span,
.login-panel label span {
  color: var(--text-body);
  font-size: 12px;
  font-weight: 800;
}

.login-panel label {
  display: grid;
  gap: 6px;
}

.login-panel input {
  width: 100%;
  height: 38px;
}

.login-message {
  padding: 9px 10px;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
}

.login-message.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quick-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  padding: 3px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: #fff;
}

.quick-range-button {
  height: 26px;
  min-width: 44px;
  padding: 0 8px;
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-body);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.quick-range-button:hover,
.quick-range-button.is-active {
  background: #eef0ff;
  color: var(--primary);
}

input,
select,
button {
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-card);
  background: #fbfbff;
  color: var(--text-title);
  outline: none;
  font-size: 13px;
  font-weight: 600;
}

input,
select {
  width: 132px;
  padding: 0 10px;
}

.date-range-field {
  position: relative;
  flex: 0 0 238px;
  min-width: 210px;
}

.date-range-field::before,
.date-range-field::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.date-range-field::before {
  top: 8px;
  left: 11px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background:
    linear-gradient(var(--primary), var(--primary)) 2px 4px / 8px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 2px 8px / 8px 1px no-repeat;
  opacity: 0.8;
}

.date-range-field::after {
  top: 6px;
  left: 15px;
  width: 6px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.date-range-input {
  width: 100%;
  padding-left: 34px;
  background: #fff;
  cursor: pointer;
}

.date-range-input::placeholder {
  color: #8a86a4;
}

.flatpickr-calendar {
  z-index: 10000;
  border-color: var(--border-card);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(51, 45, 148, 0.16);
  font-family: inherit;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.flatpickr-day.inRange {
  border-color: #eef0ff;
  background: #eef0ff;
  box-shadow: -5px 0 0 #eef0ff, 5px 0 0 #eef0ff;
}

.flatpickr-day.today {
  border-color: var(--completed);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--primary), var(--completed) 56%, var(--sql));
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(201, 54, 220, 0.22);
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.ghost-button {
  background: #fff;
  border-color: var(--border-card);
  color: var(--text-body);
  box-shadow: 0 2px 8px rgba(75, 85, 255, 0.06);
}

.ghost-button.is-active {
  border-color: rgba(91, 74, 255, 0.42);
  color: var(--primary);
  background: rgba(91, 74, 255, 0.08);
}

.small-button {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.date-separator {
  color: var(--text-body);
  font-size: 13px;
  font-weight: 800;
}

.divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: #cfd2ff;
}

.api-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dashboard-grid {
  min-height: 2440px;
}

.grid-stack {
  margin: -10px;
}

.grid-stack > .grid-stack-item > .grid-stack-item-content {
  inset: 10px;
  overflow: hidden;
}

.grid-stack > .grid-stack-item:has(.card-help.is-card-help-active) {
  z-index: 80 !important;
}

.grid-stack > .grid-stack-item > .grid-stack-item-content:has(.card-help.is-card-help-active) {
  overflow: visible;
}

.panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--border-card);
  border-radius: 6px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zone-target {
  border-top-color: var(--primary);
}

.zone-cust {
  border-top-color: var(--completed);
}

.zone-table {
  border-top-color: var(--sql);
}

.zone-biz {
  border-top-color: var(--biz-1);
}

.zone-stage-status {
  border-top-color: var(--biz-2);
}

.zone-channel-roi {
  position: relative;
  border-top-color: var(--channel);
  overflow: visible;
}

.zone-efficiency {
  position: relative;
  border-top-color: var(--fuke-pink);
}

.zone-cost {
  position: relative;
  border-top-color: var(--fuke-orange);
}

.grid-stack > .grid-stack-item[data-widget-id="channel-roi"] > .grid-stack-item-content {
  overflow: visible;
}

.panel-header {
  position: relative;
  z-index: 3;
  min-height: 33px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-card);
  background: linear-gradient(90deg, #ffffff, #fbf7ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: move;
  user-select: none;
}

.panel-title {
  position: relative;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
}

.panel-title h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-header span {
  color: var(--text-body);
  font-size: 12px;
  white-space: nowrap;
}

.card-help {
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 1px solid #d8dcff;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(75, 85, 255, 0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  outline: none;
}

.card-help:hover,
.card-help:focus-visible,
.card-help.is-card-help-active {
  border-color: rgba(75, 85, 255, 0.44);
  color: #fff;
  background: var(--primary);
}

.card-help:focus-visible {
  box-shadow: 0 0 0 3px rgba(75, 85, 255, 0.16);
}

.card-help-popover {
  position: fixed;
  z-index: 10000;
  width: min(380px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 32px));
  border: 1px solid #d8dcff;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 22px 54px rgba(23, 17, 58, 0.2);
  color: var(--text-body);
  overflow: visible;
}

.card-help-popover::before {
  position: absolute;
  left: var(--card-help-arrow-left, 22px);
  width: 10px;
  height: 10px;
  border-left: 1px solid #d8dcff;
  border-top: 1px solid #d8dcff;
  background: rgba(255, 255, 255, 0.99);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.card-help-popover[data-placement="bottom"]::before {
  top: -6px;
}

.card-help-popover[data-placement="top"]::before {
  bottom: -6px;
  border: 0;
  border-right: 1px solid #d8dcff;
  border-bottom: 1px solid #d8dcff;
}

.card-help-popover-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px 7px 12px;
  border-bottom: 1px solid #eef0ff;
  border-radius: 6px 6px 0 0;
  background: #fff;
}

.card-help-popover-header > strong {
  color: var(--text-title);
  font-size: 12px;
  font-weight: 900;
}

.card-help-popover-close {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  background: #eef0ff;
  color: var(--primary);
  box-shadow: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.card-help-popover-close:hover,
.card-help-popover-close:focus-visible {
  border-color: rgba(75, 85, 255, 0.28);
  background: var(--primary);
  color: #fff;
}

.card-help-popover-content {
  max-height: min(360px, calc(100vh - 86px));
  overflow-y: auto;
  padding: 10px 12px 12px;
}

.card-help-popover-content p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.card-help-popover-content p + p {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #e3e5ff;
}

.card-help-popover-content strong {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.card-help-popover-content span {
  min-width: 0;
}

.target-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(132px, 0.28fr) minmax(540px, 1.65fr);
  gap: 10px;
  padding: 10px;
}

.target-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.target-chart {
  position: relative;
  z-index: 2;
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  overflow: visible;
}

.target-number {
  min-width: 0;
  flex: 1 1 0;
}

.target-number strong {
  display: block;
  max-width: 100%;
  color: var(--text-title);
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: clip;
}

.target-number span {
  display: block;
  margin-top: 6px;
  color: var(--text-body);
  font-size: 12px;
}

.target-filter-target {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eef0ff;
}

.target-filter-target strong {
  margin-top: 3px;
  color: var(--primary);
  font-size: 26px;
  line-height: 1.15;
}

.target-filter-target small {
  display: block;
  margin-top: 4px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.target-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.target-metric-card {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #eef0ff;
  border-left: 4px solid var(--completed);
  border-radius: 6px;
  background: #fbfbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.target-metric-card:nth-child(2) {
  border-left-color: var(--won);
}

.target-metric-header {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.target-metric-header > span {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}

.target-metric-card span,
.target-metric-card small {
  color: var(--text-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.target-metric-card strong {
  margin: 4px 0 3px;
  color: var(--text-title);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.target-table {
  min-height: 0;
}

.target-table table {
  min-width: 680px;
}

.channel-roi-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.channel-roi-picker {
  position: relative;
  width: min(260px, 30vw);
  min-width: 180px;
}

.channel-roi-picker-button {
  width: 100%;
  min-height: 32px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-title);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  box-shadow: none;
}

.channel-roi-picker-button:hover {
  border-color: rgba(75, 85, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.channel-roi-picker-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-title);
  border-bottom: 2px solid var(--text-title);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.channel-roi-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  width: min(460px, calc(100vw - 28px));
  max-height: min(470px, calc(100vh - 120px));
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.channel-roi-menu-list {
  min-height: 0;
  max-height: min(430px, calc(100vh - 164px));
  overflow-y: auto;
  padding-right: 3px;
  display: block;
}

.channel-roi-tree,
.channel-roi-tree-node,
.channel-roi-tree-children {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-roi-tree-row {
  --roi-indent: 0px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 6px 6px calc(8px + var(--roi-indent));
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--text-title);
}

.channel-roi-tree-row:hover {
  border-color: rgba(75, 85, 255, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.channel-roi-tree-row.is-checked {
  border-color: rgba(75, 85, 255, 0.2);
  background: rgba(75, 85, 255, 0.08);
}

.channel-roi-tree-row.is-partial {
  border-color: rgba(216, 58, 215, 0.24);
  background: rgba(216, 58, 215, 0.06);
}

.channel-roi-tree-row.is-source {
  cursor: pointer;
}

.channel-roi-tree-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--fuke-pink);
}

.channel-roi-tree-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-roi-tree-meta {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
  white-space: nowrap;
}

.channel-roi-tree-toggle,
.channel-roi-tree-toggle-placeholder {
  width: 24px;
  height: 24px;
}

.channel-roi-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-title);
  cursor: pointer;
}

.channel-roi-tree-toggle:hover {
  background: rgba(75, 85, 255, 0.08);
}

.channel-roi-tree-toggle span {
  display: block;
  width: 16px;
  color: var(--text-title);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.channel-roi-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 10px;
  padding: 10px;
}

.channel-roi-chart-wrap {
  min-width: 0;
  min-height: 0;
  border: 1px solid #e9ecff;
  border-radius: 6px;
  background: #fbfcff;
  display: flex;
}

.channel-roi-chart,
.efficiency-chart,
.cost-chart {
  width: 100%;
  height: 100%;
  min-height: 230px;
}

.channel-roi-kpis {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.channel-roi-kpi {
  min-width: 0;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--channel);
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.channel-roi-kpi.is-primary {
  border-left-color: var(--won);
  background: #fffbf7;
}

.channel-roi-kpi span,
.channel-roi-kpi small,
.channel-roi-kpi em {
  color: var(--text-body);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.channel-roi-kpi strong {
  margin: 5px 0 4px;
  color: var(--text-title);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.metric-value-row {
  min-width: 0;
  margin: 5px 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.channel-roi-kpi .metric-value-row strong,
.efficiency-card .metric-value-row strong {
  min-width: 0;
  margin: 0;
}

.metric-mom {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
  color: var(--text-body);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.metric-mom.is-up {
  color: #d92d20;
}

.metric-mom.is-down {
  color: #039855;
}

.metric-mom.is-flat,
.metric-mom.is-empty {
  color: #8a879b;
}

.channel-roi-kpi small.is-up {
  color: #067647;
}

.channel-roi-kpi small.is-down {
  color: #b42318;
}

.channel-roi-kpi em.is-good {
  color: #067647;
}

.channel-roi-kpi em.is-warning {
  color: #b42318;
}

.efficiency-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.month-select {
  width: min(170px, 22vw);
  min-width: 126px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-title);
  font-size: 12px;
  font-weight: 900;
}

.month-select:hover,
.month-select:focus {
  border-color: rgba(75, 85, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.efficiency-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 10px;
  padding: 10px;
}

.efficiency-chart-wrap {
  min-width: 0;
  min-height: 0;
  border: 1px solid #e9ecff;
  border-radius: 6px;
  background: #fbfcff;
  display: flex;
}

.efficiency-cards {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.efficiency-card {
  min-width: 0;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--fuke-pink);
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.efficiency-card.is-human {
  border-left-color: var(--fuke-blue);
  background: #f8fbff;
}

.efficiency-card.is-total-cost {
  border-left-color: var(--fuke-orange);
  background: #fff8f3;
}

.efficiency-card.is-available-budget {
  border-left-color: var(--fuke-pink);
  background: #fff7ff;
}

.efficiency-card span,
.efficiency-card small,
.efficiency-card em {
  min-width: 0;
  color: var(--text-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.efficiency-card span {
  color: var(--text-title);
}

.efficiency-card strong {
  margin: 5px 0 4px;
  color: var(--text-title);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.efficiency-card em.is-good {
  color: #067647;
}

.efficiency-card em.is-warning {
  color: #b42318;
}

.channel-roi-detail-drawer {
  position: absolute;
  inset: 56px 10px 10px;
  z-index: 12;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe3ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(23, 17, 58, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-roi-detail-drawer[hidden] {
  display: none;
}

.channel-roi-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-roi-detail-head strong {
  display: block;
  color: var(--text-title);
  font-size: 15px;
  font-weight: 900;
}

.channel-roi-detail-head span {
  color: var(--text-body);
  font-size: 12px;
  font-weight: 800;
}

.channel-roi-detail-table {
  min-height: 0;
  border: 1px solid #edf0ff;
  border-radius: 6px;
}

.channel-roi-detail-table table {
  min-width: 780px;
}

.channel-roi-detail-table td strong,
.channel-roi-detail-table td small {
  display: block;
}

.channel-roi-detail-table td small {
  max-width: 220px;
  color: #98a2b3;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 8px;
  border-bottom: 1px dashed #eceeff;
  color: var(--text-body);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border-card);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.sort-button {
  width: 100%;
  height: auto;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  justify-content: flex-start;
  gap: 5px;
}

.sort-button:hover,
.sort-button.is-active {
  color: var(--primary);
}

.sort-button:focus-visible {
  outline: 2px solid rgba(75, 85, 255, 0.35);
  outline-offset: 2px;
}

.sort-icons {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  color: #c2c6e8;
  font-size: 8px;
  line-height: 0.8;
}

.sort-up,
.sort-down {
  display: block;
  line-height: 0.8;
}

.sort-button[data-direction="asc"] .sort-up,
.sort-button[data-direction="desc"] .sort-down {
  color: var(--primary);
}

td.numeric {
  color: var(--primary);
  font-weight: 900;
}

.count-won {
  color: #12b76a;
  font-weight: 900;
}

.count-lost {
  color: #d92d20;
  font-weight: 900;
}

.progress-cell {
  min-width: 132px;
}

.table-progress-header {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.table-progress-label {
  color: var(--text-title);
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.table-progress-meta {
  min-width: 0;
  color: var(--text-body);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-progress {
  height: 7px;
}

.compact-table {
  padding: 10px;
}

.target-manager,
.org-manager,
.channel-manager,
.channel-mapping-manager {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - 96px);
}

.target-manager-toolbar,
.org-manager-toolbar,
.channel-manager-toolbar {
  min-height: 54px;
  padding: 10px 12px;
  border-top-color: #15a36a;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.target-manager-title {
  min-width: 160px;
}

.target-manager-title h2 {
  font-size: 16px;
}

.target-manager-title span {
  display: block;
  margin-top: 4px;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 800;
}

.target-manager-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.target-manager-actions select {
  width: 104px;
}

.target-manager-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 10px;
  min-height: 760px;
}

.org-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 10px;
  min-height: 760px;
}

.account-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 10px;
  min-height: 760px;
}

.operation-log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 10px;
  min-height: 760px;
}

.account-edit-panel {
  min-height: 760px;
}

.channel-manager-layout {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 10px;
  min-height: 760px;
}

.channel-mapping-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 10px;
  min-height: 760px;
}

.cost-maintenance-stack {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.target-org-panel,
.target-matrix-panel,
.org-dept-panel,
.org-user-panel,
.account-create-panel,
.account-list-panel,
.operation-log-list-panel,
.operation-log-detail-panel,
.channel-tree-panel,
.channel-matrix-panel,
.labor-cost-panel,
.source-code-panel {
  min-height: 0;
}

.org-dept-tree,
.org-user-wrap,
.channel-manage-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 12px;
}

.operation-log-filters input {
  width: min(280px, 32vw);
  height: 34px;
  border: 1px solid #d7daf7;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.operation-log-table {
  min-width: 960px;
}

.operation-log-table tbody tr {
  cursor: pointer;
}

.operation-log-table tbody tr.is-selected td {
  background: #f1f3ff;
}

.operation-log-detail-panel {
  display: flex;
  flex-direction: column;
}

.operation-log-detail-heading {
  min-width: 0;
}

.operation-log-detail-heading h2 {
  margin: 0;
  font-size: 14px;
}

.operation-log-detail-heading span {
  display: block;
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
}

.operation-log-detail-body {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-top: 1px solid #d0d5dd;
  color: #344054;
  background: #fbfcff;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.account-create-form,
.account-edit-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.account-create-form label,
.account-edit-form label {
  display: grid;
  gap: 5px;
}

.account-create-form label span,
.account-edit-form label span,
.account-scope-value-field > span {
  color: var(--text-body);
  font-size: 12px;
  font-weight: 900;
}

.account-create-form input,
.account-create-form select,
.account-edit-form input,
.account-edit-form select {
  width: 100%;
}

.account-edit-form {
  max-width: 760px;
}

.account-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-scope-value-field {
  display: grid;
  gap: 5px;
}

.account-scope-checkbox-list {
  overflow: hidden;
  display: grid;
  gap: 0;
  border: 1px solid #dfe3ff;
  border-radius: 6px;
  background: #fbfbff;
}

.account-scope-checkbox-toolbar {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid #edf0ff;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 900;
}

.account-scope-checkbox-toolbar strong {
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}

.account-scope-checkbox-options {
  max-height: 188px;
  overflow: auto;
  display: grid;
  gap: 5px;
  padding: 7px;
  background: #fff;
}

.account-scope-checkbox-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.account-scope-checkbox-option:hover {
  background: rgba(91, 74, 255, 0.08);
}

.account-scope-checkbox-option:has(input:checked) {
  border-color: rgba(75, 85, 255, 0.26);
  background: rgba(75, 85, 255, 0.09);
}

.account-scope-checkbox-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.68;
}

.account-scope-checkbox-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: #fff;
  box-shadow: none;
  cursor: inherit;
  accent-color: var(--primary);
}

.account-scope-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-scope-option-name {
  overflow: hidden;
  color: var(--text-title);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-scope-empty {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.account-table td {
  vertical-align: top;
}

.account-table td:last-child {
  min-width: 190px;
}

.account-scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.account-scope-pill,
.account-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid #d8dcff;
  border-radius: 999px;
  background: #fff;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 900;
}

.account-state-pill.is-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.account-state-pill.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.small-button.is-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.org-dept-row {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(112px, 140px) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 6px;
  padding-left: calc(var(--org-depth, 0) * 14px);
}

.channel-tree-root {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 8px;
  padding: 5px 8px;
  border: 1px solid #e4e7ff;
  border-radius: 5px;
  background: #fff;
}

.channel-tree-root.is-active {
  border-color: #bbf7d0;
  background: #ecfdf3;
}

.channel-tree-root strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-tree-item {
  min-width: 0;
}

.channel-tree-children {
  margin-left: 13px;
  padding-left: 11px;
  border-left: 1px dashed #d7daf6;
}

.channel-tree-row {
  display: grid;
  grid-template-columns: 22px minmax(110px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 6px;
  padding: 4px 0;
  border-radius: 5px;
}

.channel-tree-row.is-readonly {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.channel-tree-label {
  min-width: 0;
  overflow: hidden;
  color: var(--text-title);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-tree-kind {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.channel-tree-row.is-active {
  background: #ecfdf3;
}

.channel-tree-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channel-tree-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--channel);
}

.channel-delete-button {
  min-height: 28px;
  padding: 0 9px;
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  box-shadow: none;
}

.channel-child-button {
  min-height: 28px;
  padding: 0 9px;
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  box-shadow: none;
}

.channel-child-button:hover:not(:disabled) {
  background: #e0e7ff;
}

.channel-delete-button:hover:not(:disabled) {
  background: #ffe4e6;
}

.channel-delete-button:disabled,
.channel-child-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.org-dept-row input,
.org-dept-row select,
.org-user-table select,
.source-code-table input,
.channel-tree-row .channel-tree-name,
.channel-tree-row select {
  width: 100%;
  height: 30px;
  background: #fff;
}

.source-code-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 12px;
}

.source-code-table {
  min-width: 920px;
}

.source-code-table input[type="text"] {
  border: 1px solid #d7daf7;
  border-radius: 6px;
  padding: 0 8px;
  color: var(--text-title);
  font-weight: 800;
}

.source-code-channel-select {
  border: 1px solid #d7daf7;
  border-radius: 6px;
  color: var(--text-title);
  font-weight: 800;
}

.source-code-channel-select.is-missing {
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.source-code-channel-select.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.source-code-channel-select option:checked {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.source-code-table td:first-child {
  width: 110px;
}

.org-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.org-check input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.org-user-table {
  min-width: 760px;
  border: 1px solid #d0d5dd;
  border-collapse: separate;
  border-spacing: 0;
}

.org-user-table th {
  background: #f8fafc;
}

.org-user-table th,
.org-user-table td {
  border-right: 1px solid #d0d5dd;
  border-bottom: 1px solid #d0d5dd;
  vertical-align: middle;
}

.org-user-table th:last-child,
.org-user-table td:last-child {
  border-right: 0;
}

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

.org-user-table strong,
.org-user-table span {
  display: block;
}

.org-user-table strong {
  color: var(--text-title);
  font-size: 13px;
}

.org-user-table span {
  margin-top: 3px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 800;
}

.org-user-table code {
  color: var(--text-body);
  font-size: 12px;
  word-break: break-all;
}

.is-muted {
  opacity: 0.56;
}

.target-org-tree {
  flex: 1;
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.target-org-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.target-org-tree details > ul {
  margin-left: 13px;
  padding-left: 9px;
  border-left: 1px dashed #d7daf6;
}

.target-org-tree summary {
  list-style: none;
}

.target-org-tree summary::-webkit-details-marker {
  display: none;
}

.target-tree-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  margin-bottom: 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-body);
  cursor: pointer;
}

.target-tree-button:hover,
.target-tree-button.is-active {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #067647;
}

.target-tree-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.target-tree-button small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.target-import-result {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border: 1px solid #fedf89;
  border-radius: 5px;
  background: #fffaeb;
  color: #93370d;
  font-size: 12px;
  line-height: 1.5;
}

.target-import-result ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.target-matrix-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 12px;
}

.target-matrix {
  min-width: 1900px;
  border: 1px solid #d0d5dd;
  border-collapse: separate;
  border-spacing: 0;
}

.target-matrix th {
  top: 0;
  background: #f8fafc;
}

.target-matrix th,
.target-matrix td {
  border-right: 1px solid #d0d5dd;
  border-bottom: 1px solid #d0d5dd;
}

.target-matrix th:last-child,
.target-matrix td:last-child {
  border-right: 0;
}

.target-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.target-matrix th:first-child,
.target-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 var(--border-card);
}

.target-matrix th:first-child {
  z-index: 4;
  background: #f8fafc;
}

.target-summary-row td {
  background: #f7fee7;
}

.target-summary-row td:first-child {
  background: #f7fee7;
}

.target-name-cell strong {
  display: block;
  max-width: 160px;
  overflow: hidden;
  color: var(--text-title);
  font-size: 13px;
  text-overflow: ellipsis;
}

.target-name-cell span {
  display: block;
  margin-top: 3px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 800;
}

.target-period-cell {
  min-width: 104px;
  vertical-align: top;
}

.target-goal strong {
  display: block;
  color: var(--text-title);
  font-size: 13px;
  line-height: 1.2;
}

.target-input {
  width: 96px;
  height: 28px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 800;
}

.channel-matrix {
  min-width: 2320px;
}

.channel-matrix-panel {
  flex: 1 1 520px;
}

.labor-cost-panel {
  flex: 0 0 300px;
}

.labor-cost-wrap {
  max-height: 248px;
}

.labor-cost-matrix {
  min-width: 2320px;
}

.channel-period-cell {
  min-width: 148px;
}

.labor-cost-matrix .target-period-cell {
  min-width: 148px;
}

.target-matrix td.channel-period-cell {
  padding: 6px 7px;
}

.channel-input-label,
.labor-cost-input-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 900;
}

.channel-input,
.labor-cost-input {
  width: 100%;
  max-width: 112px;
  min-width: 0;
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--fuke-blue), var(--fuke-pink) 48%, var(--fuke-gold)) border-box;
  color: var(--text-title);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(216, 58, 215, 0.12);
}

.channel-input:focus,
.labor-cost-input:focus {
  outline: 2px solid rgba(255, 152, 86, 0.34);
  outline-offset: 2px;
}

.channel-readonly-line,
.channel-actual-line {
  color: var(--text-body);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

.channel-readonly-line:first-child {
  color: var(--text-title);
}

.channel-actual-line {
  margin-top: 4px;
  color: #067647;
}

.target-actual {
  margin: 5px 0 4px;
  color: var(--text-body);
  font-size: 11px;
  line-height: 1.25;
}

.target-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.target-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.target-progress-danger span {
  background: #d92d20;
}

.target-progress-warning span {
  background: #fdb022;
}

.target-progress-good span {
  background: #12b76a;
}

.target-progress-unset span {
  background: #98a2b3;
}

.ai-assistant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 112px));
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  min-height: 360px;
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--won);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 17, 58, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: calc(100% - 29px) calc(100% - 29px);
  transition:
    width 0.18s ease,
    height 0.18s ease,
    right 0.18s ease,
    bottom 0.18s ease,
    opacity 0.3s ease,
    filter 0.34s ease,
    transform 0.48s cubic-bezier(0.18, 1.18, 0.28, 1),
    border-radius 0.42s ease,
    box-shadow 0.32s ease;
  will-change: transform, opacity, filter;
}

.ai-assistant.is-ai-entering,
.ai-assistant.is-ai-leaving {
  opacity: 0.1;
  filter: blur(12px) saturate(1.18);
  transform: translate3d(0, 0, 0) scale(0.16);
  border-radius: 30px;
  box-shadow:
    0 8px 18px rgba(23, 17, 58, 0.08),
    0 0 24px rgba(75, 85, 255, 0.24);
  pointer-events: none;
}

.ai-assistant-header,
.ai-messages,
.ai-composer {
  transition:
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.18, 1.18, 0.28, 1);
}

.ai-assistant.is-ai-entering .ai-assistant-header,
.ai-assistant.is-ai-leaving .ai-assistant-header {
  opacity: 0;
  transform: translateY(6px);
}

.ai-assistant.is-ai-entering .ai-messages,
.ai-assistant.is-ai-leaving .ai-messages {
  opacity: 0;
  transform: translateY(12px);
}

.ai-assistant.is-ai-entering .ai-composer,
.ai-assistant.is-ai-leaving .ai-composer {
  opacity: 0;
  transform: translateY(14px);
}

.ai-wave-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 255, 0.98));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ai-assistant.is-ai-busy .ai-wave-background {
  opacity: 0.82;
}

.ai-assistant.is-resizing {
  transition: none;
  user-select: none;
}

.ai-assistant.is-ai-expanded {
  right: 18px;
  bottom: 18px;
  width: min(960px, calc(100vw - 36px));
  height: min(760px, calc(100vh - 36px));
}

.ai-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: nwse-resize;
}

.ai-resize-handle::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #c5c9ff;
  border-left: 2px solid #c5c9ff;
  border-radius: 2px 0 0 0;
}

.ai-resize-handle:hover::before,
.ai-resize-handle:focus-visible::before {
  border-color: var(--primary);
}

.ai-assistant-header {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 9px 10px 8px 14px;
  border-bottom: 1px solid var(--border-card);
  background: linear-gradient(90deg, #fff, #fff8f3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-assistant-header h2 {
  font-size: 14px;
}

.ai-assistant-header span {
  display: block;
  margin-top: 3px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 800;
}

.ai-assistant-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.ai-messages {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #fff, #fbfbff);
}

.ai-assistant.is-ai-busy .ai-messages {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(1px);
}

.ai-message {
  max-width: 100%;
  padding: 10px 11px;
  border-radius: 7px;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ai-message.assistant {
  align-self: flex-start;
  border: 1px solid #eef0ff;
  background: #fff;
}

.ai-assistant.is-ai-busy .ai-message.assistant {
  background: rgba(255, 255, 255, 0.92);
}

.ai-message.assistant.is-streaming::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.1em;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: -0.2em;
  animation: aiTypingCursor 0.9s ease-in-out infinite;
}

.ai-message.assistant > :first-child {
  margin-top: 0;
}

.ai-message.assistant > :last-child {
  margin-bottom: 0;
}

.ai-message.assistant h3,
.ai-message.assistant h4,
.ai-message.assistant h5,
.ai-message.assistant h6 {
  margin: 10px 0 5px;
  color: var(--text-title);
  font-size: 13px;
  line-height: 1.45;
}

.ai-message.assistant p {
  margin: 7px 0;
}

.ai-message.assistant hr {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  border: 0;
  background: #eef0ff;
}

.ai-message.assistant blockquote {
  margin: 8px 0;
  padding: 7px 9px;
  border-left: 3px solid #cfd3ff;
  border-radius: 4px;
  background: #f8f8ff;
  color: var(--text-body);
}

.ai-message.assistant ul,
.ai-message.assistant ol {
  margin: 7px 0;
  padding-left: 18px;
}

.ai-message.assistant li {
  margin: 3px 0;
}

.ai-message.assistant strong {
  color: var(--text-title);
  font-weight: 850;
}

.ai-message.assistant code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f3f4ff;
  color: var(--text-title);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ai-message.assistant pre {
  max-width: 100%;
  margin: 8px 0;
  padding: 8px;
  overflow: auto;
  border: 1px solid #eef0ff;
  border-radius: 6px;
  background: #f8f8ff;
}

.ai-message.assistant pre code {
  display: block;
  padding: 0;
  background: transparent;
  white-space: pre;
}

.ai-message.assistant table {
  width: 100%;
  margin: 8px 0;
  border-collapse: collapse;
  font-size: 12px;
}

.ai-message.assistant th,
.ai-message.assistant td {
  padding: 5px 6px;
  border: 1px solid #eef0ff;
  text-align: left;
  vertical-align: top;
}

.ai-message.assistant th {
  background: #f7f8ff;
  color: var(--text-title);
  font-weight: 800;
}

.ai-message.user {
  align-self: flex-end;
  background: #eef0ff;
  color: var(--text-title);
  white-space: pre-wrap;
}

.ai-message.system {
  align-self: center;
  padding: 6px 9px;
  border: 1px solid #ffe1c9;
  background: #fff8f3;
  color: #9b521b;
  font-size: 12px;
  font-weight: 800;
  white-space: pre-wrap;
}

.ai-composer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border-card);
  background: #fff;
}

.ai-composer input {
  width: 100%;
}

.ai-composer button {
  height: 32px;
}

.ai-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 61;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary),
    var(--completed),
    var(--sql),
    var(--won),
    var(--biz-3),
    var(--primary)
  );
  box-shadow:
    0 18px 38px rgba(23, 17, 58, 0.24),
    0 0 28px rgba(75, 85, 255, 0.42),
    0 0 34px rgba(201, 54, 220, 0.28);
  overflow: visible;
  isolation: isolate;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s ease;
  animation: aiFabBreath 3.8s ease-in-out infinite;
}

.ai-fab.is-ai-fab-entering,
.ai-fab.is-ai-fab-leaving {
  opacity: 0;
  transform: translate3d(8px, 10px, 0) scale(0.78);
  pointer-events: none;
  animation: none;
}

.ai-fab::before,
.ai-fab::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ai-fab::before {
  inset: 6px;
  z-index: 1;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(230, 231, 255, 0.9);
}

.ai-fab::after {
  inset: -10px;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    var(--primary),
    var(--completed),
    var(--sql),
    var(--won),
    var(--biz-3),
    var(--primary)
  );
  filter: blur(14px);
  opacity: 0.72;
  animation: aiFabFlow 4.8s linear infinite;
}

.ai-fab img {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: block;
}

@keyframes aiFabFlow {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes aiFabBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 18px 38px rgba(23, 17, 58, 0.24),
      0 0 24px rgba(75, 85, 255, 0.34),
      0 0 32px rgba(201, 54, 220, 0.24);
  }

  50% {
    transform: translateY(-2px) scale(1.045);
    box-shadow:
      0 22px 46px rgba(23, 17, 58, 0.28),
      0 0 34px rgba(75, 85, 255, 0.48),
      0 0 46px rgba(255, 152, 86, 0.34);
  }
}

@keyframes aiTypingCursor {
  0%,
  100% {
    opacity: 0.22;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-assistant,
  .ai-assistant-header,
  .ai-messages,
  .ai-composer,
  .ai-message.assistant.is-streaming::after,
  .ai-fab,
  .ai-fab::after {
    animation: none;
    transition: none;
  }

  .ai-assistant,
  .ai-assistant.is-ai-entering,
  .ai-assistant.is-ai-leaving,
  .ai-fab,
  .ai-fab.is-ai-fab-entering,
  .ai-fab.is-ai-fab-leaving {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.stage-status-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.stage-status-card {
  min-width: 0;
  min-height: 88px;
  padding: 9px 10px;
  border: 1px solid #eef0ff;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #fbfbff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.stage-status-card:nth-child(2) {
  border-left-color: var(--completed);
}

.stage-status-card:nth-child(3) {
  border-left-color: var(--sql);
}

.stage-status-card:nth-child(4) {
  border-left-color: var(--won);
}

.stage-status-won {
  border-left-color: var(--biz-3);
  background: linear-gradient(135deg, #fff8df, #fff);
}

.stage-status-title,
.stage-status-amount {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.stage-status-title span,
.stage-status-amount span {
  color: var(--text-body);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.stage-status-title strong {
  color: var(--text-title);
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

.stage-status-amount strong {
  color: var(--primary);
  font-size: 14px;
  flex: 0 0 auto;
  line-height: 1.12;
  text-align: right;
  white-space: nowrap;
}

.stage-status-won .stage-status-amount strong {
  color: #d06919;
}

.chart {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 8px;
}

.chart.channel-roi-chart,
.chart.efficiency-chart,
.chart.cost-chart {
  min-height: 230px;
}

.customer-funnel-chart {
  min-height: 230px;
  padding: 0 10px 8px;
  background: #fff;
}

.business-funnel-chart {
  padding: 4px 8px 10px;
}

.grid-stack-item.ui-draggable-dragging .panel,
.grid-stack-item.ui-resizable-resizing .panel {
  box-shadow: 0 16px 36px rgba(75, 85, 255, 0.18);
}

.grid-stack-item.ui-draggable-dragging .panel-header,
.grid-stack-item.ui-resizable-resizing .panel-header {
  background: #f7f4ff;
}

.ui-resizable-handle {
  opacity: 0.35;
}

.empty-row {
  color: var(--text-body);
  text-align: center;
}

.is-error {
  color: #b42318;
}

.is-ok {
  color: #027a48;
}

.is-warning {
  color: #b54708;
}

@media (max-width: 1060px) {
  .filter-row {
    flex-wrap: wrap;
  }

  .dashboard-grid {
    min-height: 2700px;
  }

  .target-body {
    grid-template-columns: 1fr;
  }

  .channel-roi-body {
    grid-template-columns: 1fr;
  }

  .efficiency-body {
    grid-template-columns: 1fr;
  }

  .efficiency-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .efficiency-toolbar {
    flex-wrap: wrap;
  }

  .channel-roi-toolbar {
    flex-wrap: wrap;
  }

  .channel-roi-picker {
    width: min(260px, 42vw);
  }

  .channel-roi-menu {
    width: min(560px, calc(100vw - 28px));
  }

  .stage-status-grid {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
  }

  .stage-status-won {
    grid-column: auto;
  }

  .target-manager-layout,
  .org-manager-layout,
  .account-manager-layout,
  .operation-log-layout,
  .channel-manager-layout,
  .channel-mapping-layout {
    grid-template-columns: 1fr;
  }

  .target-org-panel,
  .org-dept-panel,
  .account-create-panel,
  .channel-tree-panel {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .grid-stack > .grid-stack-item[data-widget-id="efficiency-metrics"],
  .grid-stack > .grid-stack-item[data-widget-id="cost-metrics"] {
    height: 430px !important;
  }

  .app-shell {
    width: min(100vw - 20px, 720px);
  }

  .command-header {
    align-items: flex-start;
  }

  .title-row {
    width: 100%;
  }

  .filter-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 24px 1fr;
  }

  .quick-range,
  .date-range-field,
  .filter-row > .divider,
  .filter-row > button,
  .filter-row > select {
    grid-column: span 3;
    width: 100%;
  }

  .quick-range {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .quick-range-button {
    min-width: 0;
    width: 100%;
    padding: 0 4px;
  }

  input,
  select {
    width: 100%;
  }

  .channel-roi-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .efficiency-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .channel-roi-picker,
  .channel-roi-picker-button,
  .channel-roi-month-select,
  .channel-roi-toolbar > span {
    width: 100%;
  }

  .efficiency-month-select,
  .cost-month-select,
  .efficiency-toolbar > span {
    width: 100%;
  }

  .channel-roi-menu {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 28px));
  }

  .channel-roi-menu-list {
    max-height: 320px;
  }

  .efficiency-card {
    padding: 8px;
    min-height: 82px;
  }

  .efficiency-chart-wrap,
  .chart.efficiency-chart,
  .chart.cost-chart {
    min-height: 160px;
  }

  .efficiency-card strong {
    font-size: 20px;
  }

  .efficiency-card span,
  .efficiency-card small,
  .efficiency-card em {
    font-size: 10px;
  }

  .date-range-field {
    min-width: 0;
  }

  .target-manager-toolbar,
  .org-manager-toolbar,
  .channel-manager-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .target-manager-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .target-manager-actions select,
  .target-manager-actions button,
  .operation-log-filters input {
    width: 100%;
  }

  .org-dept-row {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .channel-tree-row {
    grid-template-columns: 24px 1fr;
    padding-left: 0;
  }

  .channel-tree-row .channel-tree-parent,
  .channel-tree-row .org-check,
  .channel-tree-row .channel-delete-button {
    grid-column: span 2;
  }

  .date-separator {
    align-self: center;
    text-align: center;
  }

  .ai-assistant {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: min(520px, calc(100vh - 92px));
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .ai-assistant.is-ai-expanded {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .ai-resize-handle {
    display: none;
  }

  .ai-fab {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- 渠道线索转化卡片 ---------- */

.zone-channel-lead {
  position: relative;
  border-top-color: var(--completed);
}

.grid-stack > .grid-stack-item[data-widget-id="channel-lead-all"] > .grid-stack-item-content {
  overflow: visible;
}

.zone-channel-lead .panel-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.zone-channel-lead .panel-title {
  flex: 1 1 300px;
  align-items: flex-start;
}

.zone-channel-lead .panel-title h2 {
  align-items: flex-start;
  line-height: 1.25;
  white-space: normal;
}

.zone-channel-lead [data-channel-lead-title] {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
  white-space: normal;
}

.channel-lead-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.channel-lead-chart {
  flex: 1 1 auto;
  min-height: 230px;
  padding-top: 0;
}

.channel-lead-chart[hidden] {
  display: none;
}

.channel-lead-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 13px;
  font-weight: 800;
}

.channel-lead-empty[hidden] {
  display: none;
}

.channel-lead-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.channel-lead-add-button {
  gap: 4px;
}

.channel-lead-add-plus {
  font-weight: 900;
  line-height: 1;
}

.channel-lead-remove-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: #fff;
  color: var(--text-body);
  box-shadow: 0 2px 8px rgba(75, 85, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channel-lead-remove-button:hover:not(:disabled) {
  border-color: rgba(217, 45, 32, 0.4);
  color: #d92d20;
  background: rgba(217, 45, 32, 0.06);
}

.channel-lead-remove-button:focus-visible {
  outline: 2px solid rgba(75, 85, 255, 0.35);
  outline-offset: 2px;
}

.channel-lead-remove-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.channel-lead-picker {
  position: relative;
}

.channel-lead-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 40;
  width: min(420px, calc(100vw - 28px));
  max-height: min(480px, calc(100vh - 120px));
  padding: 10px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
}

.channel-lead-menu[hidden] {
  display: none;
}

.channel-lead-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.channel-lead-menu-head strong {
  color: var(--text-title);
  font-size: 13px;
}

.channel-lead-menu-close {
  width: 26px;
  padding: 0;
}

.channel-lead-menu-list {
  min-height: 60px;
  max-height: min(340px, calc(100vh - 240px));
  overflow-y: auto;
  padding-right: 3px;
}

.channel-lead-menu-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.channel-lead-menu-hint {
  flex: 1;
  min-width: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-lead-confirm-button {
  height: 28px;
}

.channel-lead-sources-status {
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px dashed var(--border-card);
}

.channel-lead-sources-retry {
  margin-left: 6px;
  padding: 2px 10px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-title);
  font-size: 12px;
  cursor: pointer;
}

.channel-lead-sources-retry:hover {
  border-color: #3d7df2;
  color: #3d7df2;
}

.channel-lead-tree,
.channel-lead-tree-node,
.channel-lead-tree-children {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-lead-tree-row {
  --lead-indent: 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 6px 4px calc(8px + var(--lead-indent));
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.36);
}

.channel-lead-tree-row:hover {
  border-color: rgba(75, 85, 255, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.channel-lead-tree-row.is-selected {
  border-color: rgba(75, 85, 255, 0.3);
  background: rgba(75, 85, 255, 0.1);
}

.channel-lead-tree-select {
  min-width: 0;
  height: auto;
  padding: 2px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: var(--text-title);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.channel-lead-tree-select:focus-visible {
  outline: 2px solid rgba(75, 85, 255, 0.35);
  outline-offset: 1px;
}

.channel-lead-tree-select.is-static {
  cursor: default;
  color: var(--text-body);
}

.channel-lead-tree-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-lead-tree-radio {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid #c2c6e8;
  border-radius: 50%;
  background: #fff;
}

.channel-lead-tree-row.is-selected .channel-lead-tree-radio {
  border-color: var(--primary);
}

.channel-lead-tree-row.is-selected .channel-lead-tree-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--primary);
}

.channel-lead-tree-radio.is-disabled {
  opacity: 0.4;
}

.channel-lead-tree-meta {
  color: var(--text-body);
  font-size: 11px;
  white-space: nowrap;
}

.channel-lead-tree-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: var(--text-body);
  font-size: 11px;
}

.channel-lead-tree-toggle:hover {
  color: var(--primary);
  background: rgba(75, 85, 255, 0.08);
}

.channel-lead-tree-toggle-placeholder {
  width: 24px;
}

@keyframes channel-lead-card-highlight {
  0%,
  100% {
    box-shadow: var(--shadow-card);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(75, 85, 255, 0.32);
  }
}

.grid-stack-item.channel-lead-highlight .panel {
  animation: channel-lead-card-highlight 1s ease-in-out 2;
}

@media (max-width: 720px) {
  .zone-channel-lead .panel-header {
    align-items: stretch;
  }

  .channel-lead-actions {
    width: 100%;
    justify-content: space-between;
  }

  .channel-lead-picker {
    flex: 1 1 auto;
    min-width: 0;
  }

  .channel-lead-add-button {
    width: 100%;
  }

  .channel-lead-chart {
    min-height: 230px;
  }
}
