.btm-mirror {
  --btm-green: #059669;
  --btm-red: #dc2626;
  --btm-border: #e4e4e7;
  --btm-bg: #fafafa;
  --btm-card: #ffffff;
  --btm-text: #18181b;
  --btm-muted: #71717a;
  max-width: 72rem;
  margin: 0 auto;
  color: var(--btm-text);
  font-family: inherit;
}

.btm-disclaimer {
  font-size: 0.875rem;
  color: var(--btm-muted);
  margin-bottom: 1rem;
}

.btm-unlock {
  margin-bottom: 1.25rem;
}

.btm-unlock__card {
  border: 1px solid var(--btm-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.btm-unlock__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.btm-unlock__blurb,
.btm-unlock__hint {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--btm-muted);
}

.btm-unlock__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.btm-unlock__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
}

.btm-unlock__btn,
.btm-btn {
  border: 1px solid var(--btm-border);
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

.btm-btn--ghost {
  background: transparent;
  color: var(--btm-text);
}

.btm-unlock__error {
  color: var(--btm-red);
  font-size: 0.875rem;
}

.btm-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.btm-month-label {
  min-width: 10rem;
  text-align: center;
  margin: 0;
  font-size: 1.25rem;
}

.btm-updated {
  font-size: 0.75rem;
  color: var(--btm-muted);
  margin: 0 0 1rem;
}

.btm-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btm-summary__card {
  border: 1px solid var(--btm-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: var(--btm-card);
}

.btm-summary__label {
  font-size: 0.75rem;
  color: var(--btm-muted);
  margin: 0 0 0.25rem;
}

.btm-summary__value {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.btm-summary__value.is-pos { color: var(--btm-green); }
.btm-summary__value.is-neg { color: var(--btm-red); }

.btm-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--btm-muted);
  margin-bottom: 0.25rem;
}

.btm-grid {
  display: grid;
  gap: 0.25rem;
}

.btm-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.btm-day {
  min-height: 6.5rem;
  border: 1px solid var(--btm-border);
  border-radius: 10px;
  padding: 0.4rem;
  background: var(--btm-bg);
  text-align: left;
  cursor: default;
  font: inherit;
  color: inherit;
}

.btm-day.is-clickable {
  cursor: pointer;
}

.btm-day.is-clickable:hover {
  filter: brightness(0.98);
}

.btm-day.is-out { opacity: 0.45; }
.btm-day.is-win { background: #d1fae5; }
.btm-day.is-loss { background: #fee2e2; }
.btm-day.is-mixed { background: #fef3c7; }
.btm-day.is-neutral { background: #f4f4f5; }
.btm-day.is-selected { outline: 2px solid #4f46e5; }

.btm-day__num {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--btm-muted);
}

.btm-day__pnl {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.btm-day__meta {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--btm-muted);
  margin-top: 0.2rem;
}

.btm-panels {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.btm-panel {
  border: 1px solid var(--btm-border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--btm-card);
}

.btm-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.btm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.btm-stat__label {
  font-size: 0.7rem;
  color: var(--btm-muted);
}

.btm-stat__value {
  font-weight: 600;
}

.btm-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--btm-muted);
  text-align: center;
}

.btm-modal {
  border: none;
  border-radius: 14px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.btm-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.btm-unlock--compact {
  margin-top: 1rem;
}

.btm-unlock--compact .btm-unlock__card {
  padding: 0.85rem 1rem;
}

.btm-unlock--compact .btm-unlock__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.btm-unlock--compact .btm-unlock__blurb {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.btm-day.is-win .btm-day__pnl { color: #047857; }
.btm-day.is-loss .btm-day__pnl { color: #b91c1c; }
.btm-day.is-mixed .btm-day__pnl { color: #b45309; }

.btm-modal__inner {
  padding: 1.25rem;
  max-height: 85vh;
  overflow-y: auto;
}

.btm-modal__close {
  float: right;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.btm-modal__title {
  margin: 0 0 1rem;
}

.btm-trade {
  border: 1px solid var(--btm-border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.btm-trade.is-win { border-left: 4px solid var(--btm-green); }
.btm-trade.is-loss { border-left: 4px solid var(--btm-red); }

.btm-trade__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
}

.btm-trade__meta {
  font-size: 0.85rem;
  color: var(--btm-muted);
  margin-top: 0.35rem;
}

.btm-empty {
  color: var(--btm-muted);
}

/* Withdrawal badge on calendar day cells */
.btm-day__wd {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 4px;
  padding: 0 0.25rem;
  margin-top: 0.2rem;
}
.btm-day.has-wd { box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.35); }
