/* =========================================================
   06-sections.css — Person / Stage / Entry / Stats Specifics
========================================================= */

/* Person Cards */
.person-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 14px;
  border-radius: 20px;

  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    linear-gradient(180deg, #172b46, #102036);

  border: 1px solid rgba(132, 165, 214, 0.22);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.52),
    inset 0 1px 0 rgba(255,255,255,0.07);

  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.person-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #78b9ff, #4d91f2);
  box-shadow: 0 0 16px rgba(77, 163, 255, 0.28);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

.person-card:has(.balance.green)::before {
  background: linear-gradient(180deg, #57db8f, #2fb86b);
  box-shadow: 0 0 14px rgba(87, 219, 143, 0.24);
}

.person-card:has(.balance.red)::before {
  background: linear-gradient(180deg, #ff8e8e, #e15c5c);
  box-shadow: 0 0 14px rgba(255, 142, 142, 0.22);
}

.person-card:has(.balance.gray)::before {
  background: linear-gradient(180deg, #7db0ff, #4d86e8);
  box-shadow: 0 0 14px rgba(125, 176, 255, 0.22);
}

.person-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 44%;
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.person-head,
.person-body,
.person-body-footer {
  position: relative;
  z-index: 3;
}

.person-card:active {
  transform: scale(0.985);
}

.person-card.expanded {
  box-shadow:
    0 18px 40px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,255,255,0.09);
}

.person-head-swipe {
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
  position: relative;
  z-index: 1;
}

.person-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  cursor: pointer;
}

.person-main {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subtext {
  display: none;
}

.balance {
  position: relative;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;

  padding: 6px 10px;
  border-radius: 999px;

  width: 104px;
  min-width: 104px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  letter-spacing: -0.01em;

  backdrop-filter: blur(6px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 10px rgba(0,0,0,0.24);

  overflow: hidden;
}

.balance::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 1px;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  pointer-events: none;
}

.balance.green {
  color: #49d982;
  background: linear-gradient(
    180deg,
    rgba(60, 220, 130, 0.14),
    rgba(20, 70, 50, 0.22)
  );
  border: 1px solid rgba(80, 240, 150, 0.24);
  box-shadow:
    0 0 6px rgba(60, 220, 130, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.balance.red {
  color: #f58a8a;
  background: linear-gradient(
    180deg,
    rgba(255, 100, 100, 0.14),
    rgba(70, 25, 35, 0.24)
  );
  border: 1px solid rgba(255, 120, 120, 0.24);
  box-shadow:
    0 0 6px rgba(255, 100, 100, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.balance.gray {
  color: #c1d0e6;
  background: linear-gradient(180deg, rgba(170, 185, 210, 0.12), rgba(74, 94, 128, 0.24));
  border: 1px solid rgba(170, 185, 210, 0.2);
}

.person-body {
  overflow: hidden;
  height: 0;
  min-height: 0;
  padding: 0 16px;
  border-top: 0 solid transparent;
  opacity: 0;
}

.person-card.expanded .person-body {
  display: block;
  height: auto;
  padding: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
}

.person-body-scroll {
  display: block;
  padding: 0 16px 8px;
  overflow: visible;
  max-height: none !important;
}

.person-body-footer {
  padding: 8px 16px 16px;
  border-top: 1px solid var(--line);
  background: inherit;
}

.person-body-footer .quick-actions-row {
  margin-top: 8px;
}

.person-body-footer .quick-actions-row .secondary-btn {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(180deg, #6fa3ff, #4d85ee);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px rgba(47, 111, 228, 0.18);
  border: none;
}

/* Stage / Entry Cards */
.stage-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  cursor: pointer;
}

.stage-main {
  flex: 1;
  min-width: 0;
}

.stage-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  word-break: break-word;
}

.stage-body {
  display: none;
  padding: 0 12px 10px;
}

.stage-card.expanded .stage-body {
  display: block;
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
}

.tag-closed {
  background: var(--gray-soft);
  color: var(--gray);
}

.entry-card {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: none;
}

.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
}

.entry-type {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.entry-amount {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 10px;
  background: #f4f6f9;
}

.entry-amount.green {
  background: rgba(31, 157, 85, 0.1);
}
.entry-amount.red {
  background: rgba(214, 69, 69, 0.1);
}
.entry-amount.gray {
  background: rgba(123, 135, 148, 0.12);
}

.entry-meta,
.entry-comment {
  word-break: break-word;
  color: var(--muted);
}

.entry-meta {
  font-size: 12px;
  margin-top: 1px;
}

.entry-comment {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
  margin-bottom: 8px;
  opacity: 0.92;
  color: var(--text);
}

.totals-line {
  display: flex;
  align-items: center;
  margin: 12px 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2b456d, #243c61);
  border: 1px solid rgba(130, 160, 210, 0.18);
  font-size: 14px;
  color: var(--muted);
}

.totals-line span {
  flex: 1 1 0;
  white-space: nowrap;
}
.totals-line span:nth-child(1) {
  text-align: left;
}
.totals-line span:nth-child(2) {
  text-align: center;
}
.totals-line span:nth-child(3) {
  text-align: right;
  font-weight: 700;
}

/* Overview / Summary */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 16px;
}

.summary-card {
  min-height: 86px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.summary-label {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.summary-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.overview-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.overview-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.overview-summary-row:first-child {
  padding-top: 0;
}

.overview-summary-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.overview-summary-value {
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  word-break: break-word;
  color: var(--text);
}

.overview-summary-label-with-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-summary-value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.overview-summary-value-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.open-stage-mini-card {
  position: relative;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.open-stage-mini-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 7px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #55de8a, #2fb866);
  box-shadow: 0 0 12px rgba(47, 184, 102, 0.20);
  opacity: 1;
  z-index: 2;
}

.open-stage-mini-inner {
  position: relative;
  z-index: 3;
}

.open-stage-mini-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 18px;
  cursor: pointer;
}

.open-stage-mini-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.open-stage-mini-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.open-stage-mini-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.open-stage-mini-note {
  font-size: 12px;
  color: var(--muted);
}

.open-stage-mini-balance {
  font-size: 13px;
  font-weight: 900;
}

.stage-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 6px;
}

.mini-count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.closed-stage-item {
  position: relative;
  padding: 8px 12px 8px 12px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.closed-stage-item::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 16px;
  bottom: 16px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b6dff, #6c52dd);
  opacity: 0.95;
  z-index: 0;
}

.closed-stage-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 10px 12px 10px 16px;
  margin: 8px 0 8px 0;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.closed-stage-left-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.closed-stage-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closed-stage-right-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 10px;
}

.closed-stage-left,
.closed-stage-col {
  min-width: 0;
}

.closed-stage-left {
  flex: 1 1 auto;
}

.closed-stage-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  text-align: right;
}

.closed-stage-balance {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.closed-stage-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: var(--gray-soft);
  color: var(--text);
}

.closed-stage-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.22s ease, color 0.22s ease;
}

.closed-stage-chev.open {
  transform: rotate(90deg);
}

.closed-stage-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.closed-stage-summary-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.closed-stage-summary-total {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.closed-stage-date-range {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* Search / Stats */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-icon {
  font-size: 16px;
}

.stats-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
}

.stats-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 26px;

  background:
    radial-gradient(circle at top left, rgba(88, 152, 255, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(78, 219, 201, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    linear-gradient(180deg, #12243b, #0d1b2d);

  border: 1px solid rgba(144, 178, 232, 0.20);

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transform: translateY(0) scale(1);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.stats-wrap::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 42%;
  border-radius: 22px 22px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0.9;
}

.stats-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.stats-summary {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  z-index: 1;
}

.stats-summary-left {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-box {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  min-height: 80px;
  padding: 14px 16px;
  border-radius: 20px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03)),
    linear-gradient(180deg, rgba(83, 133, 214, 0.11), rgba(33, 58, 96, 0.07));

  border: 1px solid rgba(156, 186, 232, 0.20);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 8px 18px rgba(0,0,0,0.18);
}

.stats-box::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 44%;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0.9;
}

.stats-title {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(214, 226, 245, 0.70);
  text-shadow: none;
}

.stats-value {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  color: #f3f7ff;
}

.stats-mixed-balance {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.stats-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.92;
  flex-shrink: 0;
  color: rgba(240, 246, 255, 0.86);

  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  border: 1px solid rgba(150, 180, 228, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 10px rgba(0,0,0,0.14);

  transition:
    transform 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.stats-arrow.open {
  transform: rotate(90deg);
  color: #f3f7ff;
  border-color: rgba(170, 198, 240, 0.22);
}

.person-card .stats-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.9;
  flex-shrink: 0;
  color: rgba(235, 243, 255, 0.86);

  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(140, 170, 220, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 10px rgba(0,0,0,0.14);

  transition:
    transform 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.person-card.expanded .stats-arrow {
  transform: rotate(90deg);
  color: #f3f7ff;
  border-color: rgba(160, 190, 235, 0.24);
}

.stats-overview-panel {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 29;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.stats-overview-panel.active {
  display: flex;
}

.stats-overview-panel-fixed {
  flex-shrink: 0;
  padding: 8px 10px 6px;
}

.stats-overview-panel-scroll {
  flex: 1 1 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 120px;
  min-height: 0;
}

.stats-breakdown-wrap {
  width: 100%;
  margin-bottom: 5px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 49, 88, 0.82), rgba(18, 40, 74, 0.92));
  border: 1px solid rgba(106, 140, 198, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.stats-breakdown-wrap-closed {
  margin-top: 2px;
}

.stats-breakdown-label {
  margin: 0 0 6px;
  padding-left: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
}

.overview-search-box {
  width: 100%;
  box-shadow: none;
  border: 1px solid var(--line);
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.stats-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-person-balance {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

#statsPeopleList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Money / Currency UI */
.entry-type-money-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.entry-type-money-icon.money-green {
  background: rgba(53, 194, 107, 0.16);
  color: #35c26b;
  border: 1px solid rgba(53, 194, 107, 0.28);
}

.entry-type-money-icon.money-red {
  background: rgba(255, 107, 107, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.28);
}

.type-toggle-money {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.type-toggle-money.money-green {
  background: rgba(53, 194, 107, 0.18);
  color: #35c26b;
  border: 1px solid rgba(53, 194, 107, 0.34);
}

.type-toggle-money.money-red {
  background: rgba(255, 107, 107, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.34);
}

.type-toggle-money.active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 6px 16px rgba(0, 0, 0, 0.12);
}

.currency-breakdown {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.currency-breakdown-chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.currency-breakdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.currency-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #2c4a78, #243f69);
  border: 1px solid rgba(128, 160, 214, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.currency-chip.green {
  color: var(--green);
}
.currency-chip.red {
  color: var(--red);
}
.currency-chip.gray {
  color: var(--gray);
}

/* FAB */
.fab {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 110;
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #2d7cff, #1f6feb);
  color: #fff;
  font-size: 36px;
  box-shadow: 0 18px 34px rgba(31, 111, 235, 0.34), 0 0 0 rgba(45, 124, 255, 0);
  transition: opacity 0.2s ease, transform 0.18s ease, box-shadow 0.22s ease;
  animation: fabGlow 2.4s ease-in-out infinite;
}

.fab:active {
  transform: scale(0.94);
}

.fab.fab-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

.fab.fab-back {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(180deg, #6b7f99, #4a5f7a);
  box-shadow: 0 18px 34px rgba(74, 95, 122, 0.38);
  animation: none;
}

/* Edit Blocks */
.edit-person-block {
  margin-bottom: 10px;
  padding: 14px 14px 12px;
  border-radius: 18px;
}

.edit-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.edit-person-row strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

/* Section label overview closed */
.section-label.overview-closed-label {
  margin: 18px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 1;
}

/* ===== Accent colors for closed stages ===== */

.closed-stage-item.accent-blue::before {
  background: linear-gradient(180deg, #4da3ff, #2f7be6);
}

.closed-stage-item.accent-red::before {
  background: linear-gradient(180deg, #ff6b6b, #d94a4a);
}

.closed-stage-item.accent-orange::before {
  background: linear-gradient(180deg, #ffb347, #e6952c);
}

.closed-stage-item.accent-cyan::before {
  background: linear-gradient(180deg, #2dd4bf, #14b8a6);
}

.closed-stage-item.accent-pink::before {
  background: linear-gradient(180deg, #ff7ad9, #d94fb5);
}

.closed-stage-item.accent-blue .closed-stage-head {
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.14), rgba(47, 123, 230, 0.08));
  border-color: rgba(77, 163, 255, 0.14);
}

.closed-stage-item.accent-red .closed-stage-head {
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.14), rgba(217, 74, 74, 0.08));
  border-color: rgba(255, 107, 107, 0.14);
}

.closed-stage-item.accent-orange .closed-stage-head {
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.14), rgba(230, 149, 44, 0.08));
  border-color: rgba(255, 179, 71, 0.14);
}

.closed-stage-item.accent-cyan .closed-stage-head {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.14), rgba(20, 184, 166, 0.08));
  border-color: rgba(45, 212, 191, 0.14);
}

.closed-stage-item.accent-pink .closed-stage-head {
  background: linear-gradient(180deg, rgba(255, 122, 217, 0.14), rgba(217, 79, 181, 0.08));
  border-color: rgba(255, 122, 217, 0.14);
}