body {
  background: #050607;
  color: #f5f7fa;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 30px;
}

.dashboard {
  max-width: 1600px;
  margin: auto;
}

.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.month-nav h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
}

.month-nav a {
  color: white;
  text-decoration: none;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background: #161a20;
  border: 1px solid #252b35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  transition: .15s;
}

.month-nav a:hover {
  background: #1e242d;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 35px;
}

.stat-card {
  background: #14181d;
  border: 1px solid #252b35;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9aa3b2;
  margin-bottom: 12px;
  font-weight: 700;
}

.stat-value {
  font-size: 38px;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  width: 100%;
  background: #121826;
  border: 1px solid #26324a;
  border-radius: 14px;
  padding: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .03);
  grid-template-columns: repeat(6, minmax(0, 1fr)) 220px;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
}

.fire-badge,
.missed-badge {
  font-size: .7em;
}

.week-header,
.week-summary {
  position: relative;
}

.week-header::before,
.week-summary::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #2a313b;
}

.header {
  text-align: center;
  padding: 12px;
  color: #9aa3b2;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.week-header {
  margin-left: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid #2d3642;
  border-left: 6px solid #00e08a;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.day {
  min-height: 150px;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  transition: .15s;
}

.day:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
  border-color: rgba(255, 255, 255, .12);
}

.day-number {
  font-size: 16px;
  font-weight: 700;
}

.grade {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.grade-empty {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(149, 149, 149, 0.08);
}

.achievement-neutral {
  background: #404756 !important;
  border: 2px solid #6e7d99 !important;
}

.achievement-neutral .analytics-value {
  color: #f5f7fa !important;
}

.score {
  font-size: 24px;
  font-weight: 700;
}

.rvalue {
  font-size: 16px;
  font-weight: 600;
}

.blank {
  background: #15191f;
  border: 1px solid #252b35;
}

.day.blank.weekday {
  background: rgba(255, 255, 255, .05);
}

.day.blank.weekend {
  background: rgba(255, 255, 255, .01);
}

.green {
  background: #1d6341;
}

.lightgreen {
  background: #285866;
}

.day.green {
  border-left: 4px solid #00e08a;
}

.day.lightgreen {
  border-left: 4px solid #4cc9d8;
}

.yellow {
  background: #73662a;
}

.orange {
  background: #7d4a22;
}

.red {
  background: #7a3030;
}

.empty {
  visibility: hidden;
}

.week-summary {
  min-height: 150px;
  margin-left: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, .05);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  border-left: 8px solid #00e08a;
}

.week-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .8;
}

.week-summary .grade {
  font-size: 46px;
  font-weight: 800;
}

.week-summary .score {
  font-size: 28px;
  font-weight: 700;
}

.week-summary .rvalue {
  font-size: 18px;
  font-weight: 700;
}

.week-summary .missed-badge {
  font-size: .9em;
}

.week-summary.green {
  background: #123522;
  border-left-color: #00e08a;
}

.week-summary.lightgreen {
  background: #18343d;
  border-left-color: #4cc9d8;
}

.week-summary.yellow {
  background: #453e1b;
}

.week-summary.orange {
  background: #4c3119;
}

.week-summary.red {
  background: #431d1d;
  border-left-color: #ff6b6b;
}

.rating-neutral {
  background: #1b1b1b;
  border-left: 5px solid #555;
  color: #b5b5b5;
}

.rating-neutral .analytics-status {
  display: none;
}

.rating-neutral .analytics-label,
.rating-neutral .analytics-status,
.rating-neutral .analytics-value {
  color: #b5b5b5;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.analytics-card {
  background: #14181d;
  border: 1px solid #252b35;
  border-radius: 12px;
  padding: 28px;
  min-height: 100px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
}

.analytics-label {
  color: #ebecee !important;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analytics-value {
  font-size: 52px;
  font-weight: 800;
  margin-top: auto;
}

.container {
  max-width: 1600px !important;
  margin: 0 auto;
}

.container h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 10px;
}

.container h2 {
  color: #9aa3b2;
  font-size: 24px;
  margin-bottom: 35px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.session-card {
  background: #101722;
  border: 1px solid #243247;
  border-radius: 12px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  position: relative;
  margin-bottom: 25px;
  overflow: hidden;
}

.session-card h3 {
  grid-column: 1/-1;
  margin: 0 0 25px 0;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .5px;
}

.session-card label {
  display: block;
  margin-bottom: 8px;
  color: #9aa3b2;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.session-card input {
  width: 100%;
  box-sizing: border-box;
  background: #0d1014;
  color: white;
  border: 1px solid #303846;
  border-radius: 12px;
  padding: 16px;
  font-size: 20px;
  font-weight: 600;
}

.session-card input:focus {
  outline: none;
  border-color: #00e08a;
  box-shadow: 0 0 0 2px rgba(0, 224, 138, .15);
}

button[type="submit"] {
  background: #00e08a;
  color: #050607;
  border: none;
  border-radius: 10px;
  padding: 20px;
  font-size: 20px;
  font-weight: 800;
  display: block;
  width: 25%;
  min-width: 220px;
  margin: 0px auto 0;
  cursor: pointer;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
}

.page-title {
  margin: 0 0 30px;
  font-size: 52px;
  font-weight: 800;
}

.trade-insights-page {
  padding-top: 32px;
}

.page-trades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
  margin-top: 40px;
}

.analysis-card {
  display: flex;
  flex-direction: column;
  background: #111417;
  border: 1px solid #202733;
  border-radius: 10px;
  padding: 24px;
  border-top: 4px solid #6f5cff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.analysis-card h2 {
  margin: 0 0 20px;
  font-size: 20px;
  margin-bottom: 40px;
}

.analysis-summary {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .05);
  color: #fff;
}

.summary-row:last-child {
  border: none;
}

.trade-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.trade-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #262c33;
  font-size: 13px;
  text-transform: uppercase;
}

.trade-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.trade-table tr:hover {
  background: #171b20;
}

canvas {
  margin-top: 20px;
}

.loss-card {
  border-top-color: #ff6b6b;
}

.be-card {
  border-top-color: #f5b642;
}

.history-card {
  border-top-color: #4cc9f0;
}

.summary-total-wrapper {
  margin-top: auto;
  padding-top: 24px;
}

.summary-total {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #2b313b;
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-total strong {
  font-size: 26px;
}

.market-row {
  background: rgba(76, 175, 255, 0.12);
  border-left: 4px solid #4cafef;
}

.behavior-row {
  background: rgba(255, 184, 77, 0.12);
  border-left: 4px solid #ffb84d;
}

.model-row {
  background: rgba(91, 214, 153, 0.12);
  border-left: 4px solid #5bd699;
}

.loss-bar {
  margin-bottom: 16px;
  background: #1b2027;
  border: 1px solid #2b313b;
  border-radius: 10px;
  padding: 16px;
  transition: all .2s ease;
}

.loss-bar:hover {
  border-color: #3a4352;
  background: #212731;
}

.loss-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .95rem;
  font-weight: 600;
}

@media (max-width: 1400px) {
  .trade-insights-page .loss-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 12px;
  }

  .trade-insights-page .loss-header span:first-child {
    line-height: 1.3;
  }

  .trade-insights-page .loss-header span:last-child {
    color: #c9d1dc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .trade-insights-page .bar-track {
    height: 8px;
  }
}

.bar-track {
  width: 100%;
  height: 10px;
  background: #252b34;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .35s ease;
}

.bar-fill.market {
  background: #ff6363;
}

.bar-fill.behavior {
  background: #f6c453;
}

.bar-fill.model {
  background: #57c7ff;
}

.bar-fill.profitable {
  background: #22c55e;
}

.bar-fill.expense {
  background: #ef4444;
}

.curve-card {
  background: #121826;
  border: 1px solid #26324a;
  border-radius: 14px;
  padding: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

.curve-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 25px;
}

#performanceChart {
  width: 100%;
  height: 400px !important;
}

.curve-subtitle {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 20px;
}

.quadrant-legend {
  display: none;
}

.analytics-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.streak-card {
  background: linear-gradient(135deg,
      #1d3b2a,
      #285a3c);
  border: 2px solid #37d67a;
  box-shadow: 0 0 25px rgba(55, 214, 122, .20);
}

.streak-card .analytics-value {
  color: #4cff97;
  font-size: 56px;
}

.grade-card .analytics-value {
  font-size: 50px;
}

.small-text {
  font-size: 25px;
}

.achievement-green {
  background: linear-gradient(135deg, #1d3b2a, #285a3c);
  border: 2px solid #37d67a;
  box-shadow: 0 0 25px rgba(55, 214, 122, .20);
}

.grade-a {
  background: linear-gradient(135deg,
      #1d3b2a,
      #285a3c);
  border: 2px solid #37d67a;
  box-shadow: 0 0 25px rgba(55, 214, 122, .20);
}

.grade-a .analytics-value {
  color: #4cff97;
}

.grade-b {
  background: linear-gradient(135deg,
      #183122,
      #284933);
  border: 2px solid #6bd69d;
}

.grade-b .analytics-value {
  color: #8ff0ba;
}

.grade-c {
  background: linear-gradient(135deg,
      #4a3b14,
      #705719);
  border: 2px solid #f5c542;
}

.grade-c .analytics-value {
  color: #ffd861;
}

.grade-d {
  background: linear-gradient(135deg,
      #4c3119,
      #6f431b);
  border: 2px solid #ff9b4a;
}

.grade-d .analytics-value {
  color: #ffb56d;
}

.grade-f {
  background: linear-gradient(135deg,
      #431d1d,
      #662525);
  border: 2px solid #ff6b6b;
}

.grade-f .analytics-value {
  color: #ff8a8a;
}

.achievement-card {
  background: linear-gradient(135deg,
      #1d2330,
      #323d54);
  border: 2px solid #6e7d99;
}

.achievement-card .analytics-value {
  font-size: 56px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 35px;
  margin-bottom: 35px;
}

.session-body {
  overflow: hidden;
  transition: all 0.3s ease;
  grid-column: 1 / -1;
}

.session-card.collapsed .session-body {
  display: none;
}

.session-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.session-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #252b35;
  cursor: pointer;
  transition: opacity .15s ease;
}

.session-header:hover {
  opacity: .85;
}

.session-layout {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: 40px;
  align-items: start;
}

.session-metrics,
.session-trades {
  min-width: 0;
}

.session-trades {
  border-left: 1px solid #253247;
  padding-left: 35px;
  max-width: 100%;
  box-sizing: border-box;
}

.session-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
}

.session-0::before {
  background: #03a1ef;
  box-shadow: 0 0 18px #03a1ef;
  /*background: #00e08a;
  box-shadow: 0 0 18px #00e08a; */
}

.session-1::before {
  background: #f59e0b;
  box-shadow: 0 0 18px #f59e0b;
}

.session-2::before {
  background: #01cec4;
  box-shadow: 0 0 18px #01cec4;
  /*background: #a855f7;
  box-shadow: 0 0 18px #a855f7;*/
}

.session-3::before {
  background: #ec4899;
  box-shadow: 0 0 18px #ec4899;
}

.trade-card {
  background: #0d1118;
  border: 1px solid #232b38;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.trade-section {
  grid-column: 1 / -1;
}

.day-scorecard-form .session-missed-trades {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--ui-divider, #253247);
}

.day-scorecard-form .session-missed-trades label {
  display: block;
  margin-bottom: 7px;
  color: #aeb3b9;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .8px;
}

.day-scorecard-form .missed-r-help {
  margin: 8px 0 0;
  color: #aeb3b9;
  font-size: 12px;
  line-height: 1.5;
}

.be-result-row,
.expense-row {
  grid-column: 1 / -1;
}

.trade-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
}

h4.trade-heading {
  margin: 0 0 25px 0 !important;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .5px;
}

.trade-title {
  font-size: 23px;
  font-weight: 700;
  color: #fff;
}

.trade-card label {
  display: block;
  color: #9aa3b2;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.trade-card input,
.trade-card select {
  width: 100%;
  background: #0d1014;
  color: white;
  border: 1px solid #303846;
  border-radius: 12px;
  padding: 14px;
  font-size: 18px;
  box-sizing: border-box;
}

.add-trade-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: #7b8596;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: .2s;
}

.add-trade-btn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .25);
  color: #f5f7fa;
}

.add-trade-btn:active {
  transform: scale(.98);
}

/* Daily scorecard refinement */
.day-page {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1380px !important;
}

.day-page-heading {
  margin-bottom: 32px;
}

.day-page-eyebrow {
  margin-bottom: 9px;
  color: #00e08a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.day-page .day-page-heading h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.day-page .day-page-heading h2 {
  margin: 10px 0 0;
  color: #8994a6;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1px;
}

.day-scorecard-form {
  gap: 16px;
}

.day-scorecard-form .session-card {
  margin-bottom: 0;
  padding: 26px 28px 30px;
  border-color: #26364d;
  border-radius: 12px;
  gap: 0;
  transition: border-color .2s ease, box-shadow .2s ease, padding .2s ease;
}

.day-scorecard-form .session-card:not(.collapsed) {
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.day-scorecard-form .session-card.collapsed {
  padding: 15px 24px;
  border-color: #202c3e;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}

.day-scorecard-form .session-header {
  min-height: 38px;
  margin-bottom: 26px;
  padding-bottom: 18px;
}

.day-scorecard-form .collapsed .session-header {
  min-height: 32px;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.day-scorecard-form .session-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.25px;
}

.day-scorecard-form .session-toggle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #aeb8c8;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}

.day-scorecard-form .session-header:hover .session-toggle {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.day-scorecard-form .session-layout {
  gap: 34px;
}

.day-scorecard-form .session-metrics label {
  margin-top: 18px;
  margin-bottom: 7px;
  color: #aab3c1;
  font-size: 11px;
  letter-spacing: 1.15px;
}

.day-scorecard-form .session-metrics label:first-child {
  margin-top: 0;
}

.day-scorecard-form .session-card input,
.day-scorecard-form .session-metrics select,
.day-scorecard-form .trade-card select {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  border-color: #2b394d;
  border-style: solid;
  border-width: 1px;
  border-radius: 10px;
  background: #0b1119;
  color: #fff;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.day-scorecard-form .session-card input:hover,
.day-scorecard-form .session-metrics select:hover,
.day-scorecard-form .trade-card select:hover {
  border-color: #41516a;
  background: #0d141e;
}

.day-scorecard-form .session-metrics select:focus {
  outline: none;
  border-color: #00e08a;
  box-shadow: 0 0 0 2px rgba(0, 224, 138, .15);
}

.day-scorecard-form .trade-card {
  margin-top: 14px;
  padding: 20px;
  border-radius: 13px;
  gap: 0;
}

.day-scorecard-form h4.trade-heading {
  margin-bottom: 14px !important;
  font-size: 20px;
  letter-spacing: -.2px;
}

.day-scorecard-form .trade-title {
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 750;
}

.day-scorecard-form .trade-card label {
  margin: 17px 0 7px;
  font-size: 11px;
  letter-spacing: 1.15px;
}

.day-scorecard-form .trade-title + label {
  margin-top: 0;
}

.day-scorecard-form .add-trade-btn {
  margin-top: 16px;
  padding: 13px;
  border-radius: 11px;
  font-family: inherit;
}

.day-scorecard-form button[type="submit"] {
  margin-top: 10px;
  border-radius: 12px;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(0, 224, 138, .15);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.day-scorecard-form button[type="submit"]:hover {
  background: #15eb98;
  box-shadow: 0 11px 28px rgba(0, 224, 138, .22);
}

@media (max-width: 700px) {
  .day-page-heading {
    margin-bottom: 24px;
  }

  .day-scorecard-form .session-card {
    padding: 22px 20px 24px;
  }

  .day-scorecard-form .session-card.collapsed {
    padding: 14px 18px;
  }
}

.charts-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.charts-row .curve-card {
  flex: 1;
  width: 50%;
}

.day.today {
  position: relative;
  overflow: visible;
}

.day.today::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  pointer-events: none;
}

.day.today::before {
  content: 'TODAY';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e5e7eb;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 20px;
  z-index: 5;
}

.analytics-status {
  margin-top: 8px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.elite-card {
  background: linear-gradient(180deg, rgba(10, 45, 28, .95), rgba(8, 30, 22, .95));
  border: 1px solid #1ed760;
}

.elite-card .metric-value {
  color: #46ff93;
}

.solid-card {
  background: linear-gradient(180deg, rgba(28, 50, 18, .95), rgba(22, 36, 14, .95));
  border: 1px solid #9fd84d;
}

.solid-card .metric-value {
  color: #c4ff67;
}

.warning-card {
  background: linear-gradient(180deg, rgba(54, 42, 12, .95), rgba(36, 28, 8, .95));
  border: 1px solid #d8a72f;
}

.warning-card .metric-value {
  color: #ffd34d;
}

.danger-card {
  background: linear-gradient(180deg, rgba(58, 32, 10, .95), rgba(40, 22, 8, .95));
  border: 1px solid #d98b2b;
}

.danger-card .metric-value {
  color: #ffb04d;
}

.leakage-good {
  border-left: 6px solid #00e08a;
  background: #10291c;
}

.leakage-good .analytics-value {
  color: #4cff97;
}

.leakage-caution {
  border-left: 6px solid #f5c542;
  background: linear-gradient(135deg,
      rgba(245, 197, 66, .10),
      rgba(245, 197, 66, .03));
}

.leakage-caution .analytics-value {
  color: #ffd861;
}

.leakage-alert {
  border-left: 6px solid #ff6b6b;
  background: linear-gradient(135deg,
      rgba(255, 107, 107, .12),
      rgba(255, 107, 107, .03));
}

.leakage-alert .analytics-value {
  color: #ff8a8a;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: linear-gradient(90deg,
      #101010,
      #171717);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  z-index: 1000;
  justify-content: space-between;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  margin-right: 20px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-link {
  display: block;
  width: 410px;
  height: 66px;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-icon {
  font-size: 42px;
}

.brand-icon a {
  text-decoration: none;
}

.brand-title {
  color: white;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.brand-title a {
  color: white;
  text-decoration: none;
}

.brand-subtitle {
  color: #a3a3a3;
  font-size: 16px;
  margin-top: 4px;
}

.topbar-journal {
  margin-left: auto;
}

.journal-form {
  margin: 0;
}

.journal-select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 150px;
  max-width: 190px;
  field-sizing: content;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.15s ease;
}

.journal-select:hover {
  border-color: #9ca3af;
}

.journal-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.journal-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.journal-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.35);
  border-radius: 10px;
  color: #00ffb3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.journal-create-btn:hover {
  background: rgba(0, 255, 170, 0.2);
  border-color: rgba(0, 255, 170, 0.6);
  transform: translateY(-1px);
}

.journal-create-btn:active {
  transform: translateY(0);
}

.journal-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 220px;
  height: calc(100vh - 80px);
  background: linear-gradient(180deg,
      #141414,
      #0f0f0f);
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding-top: 20px;
  transition: .25s ease;
  z-index: 900;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: 70px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #d4d4d4;
  transition: .2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .06);
}

.nav-item.active {
  background: linear-gradient(90deg,
      rgba(139, 92, 246, .35),
      rgba(139, 92, 246, .12));
  color: white;
  border-left: 4px solid #8b5cf6;
}

.sidebar.collapsed .nav-item span:last-child {
  display: none;
}

.sidebar-footer {
  margin-top: auto;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 15px;
}

.sidebar-footer .nav-item {
  color: #8b93a7;
}

.sidebar-footer .nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .05);
}

.sidebar-footer .icon {
  opacity: .75;
}

.content-area {
  margin-top: 60px;
  margin-left: 220px;
  padding: 15px;
  transition: .25s ease;
}

.content-area.expanded {
  margin-left: 70px;
}

.rating-great {
  border-left: 6px solid #00e08a;
  background: linear-gradient(135deg,
      rgba(0, 224, 138, .10),
      rgba(0, 224, 138, .03));
  box-shadow: 0 0 20px rgba(0, 224, 138, .10);
}

.rating-great .analytics-status,
.rating-great .tier-badge {
  color: #00e08a;
}

.rating-great .analytics-value {
  color: #4cff97;
}

.rating-average {
  border-left: 6px solid #6b7280;
  background: linear-gradient(135deg,
      rgba(107, 114, 128, .10),
      rgba(107, 114, 128, .03));
  box-shadow: 0 0 20px rgba(107, 114, 128, .08);
}

.rating-average .analytics-status,
.rating-average .tier-badge {
  color: #d1d5db;
}

.rating-average .analytics-value {
  color: #f3f4f6;
}

.rating-concerning {
  border-left: 6px solid #d8a72f;
  background: linear-gradient(135deg,
      rgba(216, 167, 47, .10),
      rgba(216, 167, 47, .03));
  box-shadow: 0 0 20px rgba(216, 167, 47, .08);
}

.rating-concerning .analytics-status,
.rating-concerning .tier-badge {
  color: #ffd34d;
}

.rating-concerning .analytics-value {
  color: #ffe08a;
}

.rating-poor {
  border-left: 6px solid #d98b2b;
  background: linear-gradient(135deg,
      rgba(217, 139, 43, .10),
      rgba(217, 139, 43, .03));
  box-shadow: 0 0 20px rgba(217, 139, 43, .08);
}

.rating-poor .analytics-status,
.rating-poor .tier-badge {
  color: #ffb04d;
}

.rating-poor .analytics-value {
  color: #ffcc80;
}

.pnl-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pnl-option {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #0d1014;
  font-weight: 700;
  transition: .15s;
}

.pnl-option input {
  display: none;
}

.pnl-option:hover {
  transform: translateY(-2px);
}

.pnl-option input:checked+span {
  color: white;
}

.green-option {
  color: #4ade80;
}

.breakeven-option {
  color: #d1d5db;
}

.flat-option {
  color: #93c5fd;
}

.red-option {
  color: #f87171;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked+.pnl-option {
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15),
    0 0 20px rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}

.delete-button {
  display: block;
  width: 25%;
  min-width: 220px;
  margin: 0px auto 0;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.delete-button:hover {
  background: #b91c1c;
}

/*----------------------------
Working Capital Page
----------------------------*/

.page-capital {
  margin-top: 40px;
}

.capital-hero-card {

  background: #111417;
  border: 1px solid #262b31;
  border-radius: 12px;

  padding: 30px;
  margin-bottom: 30px;

}

.capital-header {

  margin-bottom: 25px;

}

.capital-label {

  display: block;

  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .80rem;

  margin-bottom: 8px;

}

.capital-title h1 {

  margin: 0;

  font-size: 3.2rem;
  font-weight: 700;

  color: #ffffff;

}

.capital-chart-wrapper {

  position: relative;

  padding-left: 60px;
  padding-bottom: 35px;

}

.capital-chart {

  position: relative;

  height: 300px;

}

.capital-chart svg {

  width: 100%;
  height: 100%;

}

.y-axis-label {

  position: absolute;

  left: -6px;
  top: 50%;

  transform:
    translateY(-50%) rotate(-90deg);

  transform-origin: left top;

  color: #7e8791;

  font-size: .78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;

}

.x-axis-label {

  position: absolute;

  bottom: 0;
  right: 0;

  color: #7e8791;

  font-size: .78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;

}

.today-label {

  position: absolute;

  top: 8px;
  right: -5px;

  color: #31d98c;

  font-size: .80rem;
  font-weight: 600;

}

.capital-date-row {

  display: flex;
  justify-content: space-between;

  margin-top: 8px;
  padding: 0 8px;

  color: #6f7882;
  font-size: .75rem;
  letter-spacing: .5px;

}

.capital-date-row span:last-child {

  color: #31d98c;
  font-weight: 600;

}

/*=========================================
BUSINESS HEALTH METRICS ROW
=========================================*/

.capital-metrics {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  margin: 40px 0;

}

/*=========================================
CARD
=========================================*/

.capital-metric-card {

  background: #15120b;

  border: 1px solid #38322a;
  border-left: 5px solid #d9a520;

  border-radius: 12px;

  padding: 26px;

  min-height: 170px;

  transition: .2s ease;

}

.capital-metric-card:hover {

  transform: translateY(-2px);

}

/*=========================================
STATUS COLORS
=========================================*/

.capital-metric-card.success {

  background: #061712;

  border-color: #144535;
  border-left-color: #00df87;

}

.capital-metric-card.warning {

  background: #15120b;

  border-color: #3a3224;
  border-left-color: #d9a520;

}

.capital-metric-card.danger {

  background: #190d0d;

  border-color: #542626;
  border-left-color: #ff5b5b;

}

/*=========================================
TEXT
=========================================*/

.metric-title {

  color: #f5f7fa;

  text-transform: uppercase;
  letter-spacing: .8px;

  font-size: 1.05rem;
  font-weight: 700;

}

.metric-status {

  margin-top: 10px;

  font-size: .82rem;

  font-weight: 700;

  text-transform: uppercase;

}

.metric-value {

  margin-top: 42px;

  font-size: 3.2rem;
  font-weight: 800;

}

/*=========================================
SUCCESS
=========================================*/

.success-text {

  color: #31e98f;

}

.success-value {

  color: #43f5a0;

}

/*=========================================
WARNING
=========================================*/

.warning-text {

  color: #ffd05d;

}

.warning-value {

  color: #ffd86d;

}

/*=========================================
DANGER
=========================================*/

.danger-text {

  color: #ff7676;

}

.danger-value {

  color: #ff8f8f;

}

/*=========================================
CAPITAL GRID
=========================================*/

.capital-grid {

  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 30px;

  margin-top: 30px;

}

/*=========================================
CARD
=========================================*/

.capital-card {

  background: #111417;
  border: 1px solid #262b31;
  border-radius: 12px;

  padding: 24px;

}

/*=========================================
HEADER
=========================================*/

.card-header {

  margin-bottom: 20px;

}

.card-header h2 {

  margin: 0;

  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;

}

/*=========================================
ACCOUNT ROWS
=========================================*/

.capital-account-row {

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 0;

  border-bottom: 1px solid #20262d;

}

.capital-account-row:last-child {

  border-bottom: none;

}

.account-name {

  color: #fff;
  font-weight: 600;
  font-size: 1rem;

  margin-bottom: 4px;

}

.account-percent {

  color: #8b949e;
  font-size: .82rem;

}

.account-capital {

  font-size: 1.3rem;
  font-weight: 700;

  color: #31d98c;

}

/*=========================================
TOTAL
=========================================*/

.capital-total {

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 20px;
  padding-top: 20px;

  border-top: 2px solid #2b323a;

}

.capital-total span {

  color: #a7b0ba;
  font-weight: 600;

}

.capital-total strong {

  color: #fff;

  font-size: 1.5rem;

}

/*=========================================
BUTTONS
=========================================*/

.capital-buttons {

  display: flex;
  flex-direction: column;

  gap: 14px;

  margin-top: 28px;

}

.btn-primary {

  background: #31d98c;

  color: #08120d;

  border: none;

  border-radius: 10px;

  padding: 15px;

  font-size: .95rem;
  font-weight: 700;

  cursor: pointer;

}

.btn-primary:hover {

  opacity: .9;

}

.btn-secondary {

  background: transparent;

  color: #d0d7de;

  border: 1px solid #39414a;

  border-radius: 10px;

  padding: 15px;

  font-size: .92rem;

  cursor: pointer;

}

.btn-secondary:hover {

  border-color: #5b6570;

}

/*----------------------------
Responsive Design
----------------------------*/

@media (max-width:1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:1200px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .session-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width:1200px) {
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:700px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:1200px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .session-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width:1200px) {
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:700px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .session-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .session-trades {
    border-left: none;
    border-top: 1px solid #253247;
    padding-left: 0;
    padding-top: 30px;
  }
}

@media (max-width: 1000px) {
  body {
    padding: 15px;
  }

  .content-area {
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 30px;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    flex-direction: column;
  }

  .charts-row .curve-card {
    width: 100%;
  }

  .day {
    min-height: 120px;
    padding: 12px;
  }

  .grade {
    font-size: 28px;
  }

  .score {
    font-size: 18px;
  }

  .week-summary {
    min-height: 120px;
    padding: 16px;
    margin-left: 10px;
  }

  .week-summary .grade {
    font-size: 34px;
  }

  .week-summary .score {
    font-size: 20px;
  }

  .week-header {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .journal-select {
    min-width: 130px;
    max-width: 160px;
  }

  .brand-logo-link {
    width: 270px;
    height: 58px;
  }
}

@media (max-width: 1000px) {
  body {
    padding: 15px;
  }

  .content-area {
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 30px;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    flex-direction: column;
  }

  .charts-row .curve-card {
    width: 100%;
  }


  .day {
    min-height: 120px;
    padding: 12px;
  }

  .grade {
    font-size: 28px;
  }

  .score {
    font-size: 18px;
  }

  .week-summary {
    min-height: 120px;
    padding: 16px;
    margin-left: 10px;
  }

  .week-summary .grade {
    font-size: 34px;
  }

  .week-summary .score {
    font-size: 20px;
  }

  .week-header {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .journal-select {
    min-width: 130px;
    max-width: 160px;
  }
}

@media (max-width: 1100px) {

  .analytics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 35px;
  }

  .achievement-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 35px;
  }

  .analytics-grid .analytics-card,
  .achievement-grid .analytics-card {
    min-height: 80px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .2s ease;
  }

  .analytics-grid .analytics-value,
  .achievement-grid .analytics-value {
    font-size: 32px;
    line-height: 25px;
  }

  .analytics-icon {
    line-height: 14px;
    font-size: 25px;
  }

  .achievement-grid .analytics-card:hover {
    transform: translateY(-2px);
  }

  .achievement-grid .analytics-card h4,
  .achievement-grid .analytics-card .metric-title {

    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .85);
  }

  .achievement-grid .analytics-card h2,
  .achievement-grid.analytics-card .metric-value {

    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
    color: #42ff96;
  }

  .achievement-grid .metric-value span {
    font-size: .55em;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 170px;
    gap: 10px;
  }
  
  .day {
    min-height: 100px;
  }


  .charts-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .charts-row .curve-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 0px;
  }

   .radar-card canvas,
    #radarChart {
        height: 340px !important;
        max-height: 340px;
    }

    .curve-card {
      margin-top: 0px;
    }

.brand-title {
  font-size: 28px;
}

.month-nav h1 {
  font-size: 38px;
}

}

/* Home dashboard polish */
.home-dashboard {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-dashboard .achievement-grid {
  gap: 12px;
  margin: 24px 0 30px;
}

.home-dashboard .achievement-grid .analytics-card {
  min-height: 112px;
  padding: 18px 19px;
  border-width: 1px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
}

.home-dashboard .analytics-icon {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.1;
}

.home-dashboard .analytics-label {
  color: #d7dce5 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 1.15px;
}

.home-dashboard .achievement-grid .analytics-value {
  margin-top: auto;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(30px, 2.7vw, 42px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -1.25px;
  white-space: nowrap;
}

.home-dashboard .achievement-grid .small-text {
  font-size: .47em;
  letter-spacing: -.2px;
}

.home-dashboard .month-nav {
  margin: 4px 0 26px;
}

.home-dashboard .month-nav h1 {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -1.4px;
}

.home-dashboard .month-nav a {
  width: 46px;
  height: 46px;
  font-size: 20px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .25);
}

.home-dashboard .calendar-grid {
  gap: 8px;
  margin: 0 0 30px;
  padding: 10px;
  box-shadow: 0 9px 26px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.home-dashboard .header {
  padding: 10px 8px;
  color: #8994a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.home-dashboard .week-header {
  margin-left: 12px;
  border-left-width: 4px;
  font-size: 11px;
  box-shadow: none;
}

.home-dashboard .week-header::before,
.home-dashboard .week-summary::before {
  left: -11px;
}

.home-dashboard .day {
  min-height: 132px;
  justify-content: flex-start;
  gap: 0;
  padding: 14px;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .24);
}

.home-dashboard .day:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, .34);
}

.home-dashboard .day-number {
  margin-bottom: 13px;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 700;
}

.home-dashboard .day .grade {
  font-family: Manrope, Inter, sans-serif;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -1px;
}

.home-dashboard .day .score {
  margin-top: 4px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.home-dashboard .day .fire-badge,
.home-dashboard .day .missed-badge {
  margin-top: auto;
  padding-top: 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.home-dashboard .week-summary {
  min-height: 132px;
  margin-left: 12px;
  padding: 15px 16px;
  border-left-width: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.home-dashboard .week-label {
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
  letter-spacing: 1.4px;
}

.home-dashboard .week-summary .grade {
  font-family: Manrope, Inter, sans-serif;
  font-size: 36px;
  letter-spacing: -1.1px;
}

.home-dashboard .week-summary .score {
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
  letter-spacing: -.5px;
}

.home-dashboard .week-summary .fire-badge,
.home-dashboard .week-summary .missed-badge {
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.home-dashboard .analytics-grid {
  gap: 12px;
  margin: 0 0 28px;
}

.home-dashboard .analytics-grid .analytics-card {
  min-height: 112px;
  padding: 18px 20px;
  border-left-width: 4px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .22);
}

.home-dashboard .analytics-grid .analytics-label {
  color: #aeb7c5 !important;
}

.home-dashboard .analytics-status {
  margin: 7px 0 18px;
  font-size: 10px;
  letter-spacing: 1.1px;
}

.home-dashboard .analytics-grid .analytics-value {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1;
  letter-spacing: -1.2px;
}

.home-dashboard .charts-row {
  gap: 14px;
  margin-top: 0;
}

.home-dashboard .curve-card {
  margin: 0 0 28px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.home-dashboard .curve-title {
  margin-bottom: 8px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.45px;
}

.home-dashboard .curve-subtitle {
  margin: 0 0 18px;
  color: #8994a6;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .home-dashboard .achievement-grid,
  .home-dashboard .analytics-grid {
    gap: 10px;
  }

  .home-dashboard .achievement-grid .analytics-card,
  .home-dashboard .analytics-grid .analytics-card {
    padding: 14px;
  }

  .home-dashboard .analytics-icon {
    margin-bottom: 15px;
  }

  .home-dashboard .calendar-grid {
    gap: 7px;
  }
}

/* Trade insights page polish */
.trade-insights-page .page-title {
  margin: 0 0 30px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.trade-insights-page .page-trades {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.trade-insights-page .analysis-card {
  padding: 22px;
  border-top-width: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}

.trade-insights-page .analysis-card h2 {
  margin: 0 0 26px;
  color: #c9d0dc;
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.3px;
}

.trade-insights-page .analysis-summary {
  margin-bottom: 0;
}

.trade-insights-page .loss-bar {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
}

.trade-insights-page .loss-header {
  color: #eef1f6;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.trade-insights-page .loss-header span:last-child {
  color: #cbd2dd;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
}

.trade-insights-page .summary-total-wrapper {
  padding-top: 20px;
}

.trade-insights-page .summary-total {
  gap: 14px;
  margin-bottom: 0;
  padding: 14px;
  border-bottom-width: 1px;
  border-radius: 8px;
  color: #dce1e9;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.trade-insights-page .summary-total strong {
  flex: 0 0 auto;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.7px;
}

.trade-insights-page .history-card {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.trade-insights-page .history-card h2 {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 20px;
}

.trade-insights-page .history-card .analysis-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trade-insights-page .history-card .loss-bar {
  display: flex;
  min-height: 76px;
  margin: 0;
  padding: 14px 16px;
  flex-direction: column;
  justify-content: center;
}

.trade-insights-page .history-card .loss-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 12px;
}

.trade-insights-page .history-card .loss-header span:last-child {
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .trade-insights-page {
    padding-top: 26px;
  }

  .trade-insights-page .page-title {
    margin-bottom: 24px;
  }

  .trade-insights-page .analysis-card {
    padding: 18px;
  }

  .trade-insights-page .analysis-card h2 {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .trade-insights-page .loss-bar {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .trade-insights-page .page-trades {
    grid-template-columns: 1fr;
  }

  .trade-insights-page .analysis-card {
    min-height: auto;
  }

  .trade-insights-page .history-card .analysis-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .trade-insights-page .history-card .analysis-summary {
    grid-template-columns: 1fr;
  }
}

/* Daily and weekly expense variance ledger */
.variance-ledger {
  margin-top: 24px;
  padding: 24px;
  background: #111417;
  border: 1px solid #202733;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.variance-ledger-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.variance-ledger-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #00e08a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.variance-ledger-heading h2 {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.variance-ledger-heading p {
  max-width: 560px;
  margin: 0;
  color: #8994a6;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.variance-month-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.variance-month-arrow {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #dce4e1;
  background: #1a2026;
  border: 1px solid #303844;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.variance-month-arrow-placeholder {
  width: 36px;
  height: 36px;
}

.variance-month-arrow:hover {
  color: #fff;
  background: #222a31;
  border-color: #00e08a;
  transform: translateY(-1px);
}

.variance-month-current {
  min-width: 150px;
  text-align: center;
}

.variance-month-current span {
  display: block;
  margin-bottom: 3px;
  color: #7f8998;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.variance-month-current strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
}

.variance-weeks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variance-week {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 224px;
  gap: 14px;
  padding: 14px;
  background: #151a21;
  border: 1px solid #252d39;
  border-radius: 7px;
}

.variance-week-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px 10px 3px;
  border-right: 1px solid #29313d;
}

.variance-week-date span,
.variance-summary-label {
  color: #8994a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.variance-week-date strong {
  margin-top: 7px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.6px;
}

.variance-week-date small {
  margin-top: 8px;
  color: #7f8998;
  font-size: 12px;
  line-height: 1.4;
}

.variance-day-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.variance-week-clear {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: #9eddbd;
  background: rgba(0, 224, 138, .045);
  border: 1px dashed rgba(0, 224, 138, .2);
  border-radius: 6px;
}

.variance-week-clear > span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 224, 138, .12);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.variance-week-clear strong,
.variance-week-clear small {
  display: block;
}

.variance-week-clear strong {
  font-size: 15px;
}

.variance-week-clear small {
  margin-top: 4px;
  color: #73817b;
  font-size: 12px;
}

.variance-week-upcoming {
  color: #aeb7c5;
  background: rgba(137, 148, 166, .045);
  border-color: rgba(137, 148, 166, .2);
}

.variance-week-upcoming > span {
  background: rgba(137, 148, 166, .13);
}

.variance-day-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 58px;
  gap: 11px;
  align-items: center;
  min-height: 60px;
  padding: 11px 12px;
  background: #272e36;
  border: 1px solid #414b57;
  border-radius: 6px;
}

.variance-day-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.variance-day-link:hover {
  color: inherit;
  background: #303944;
  border-color: #6b8d80;
}

.variance-day-link:focus-visible {
  outline-offset: 2px;
}

.variance-day-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.variance-day-date span {
  color: #8994a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.variance-day-date strong {
  font-size: 16px;
  font-weight: 700;
}

.variance-day-detail {
  min-width: 0;
}

.variance-category-chips,
.variance-mistakes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.variance-mistakes {
  margin-top: 6px;
}

.variance-chip,
.variance-mistake {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.variance-chip {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.variance-chip-market {
  color: #ff8585;
  background: rgba(255, 99, 99, .09);
}

.variance-chip-trader {
  color: #f6c453;
  background: rgba(246, 196, 83, .09);
}

.variance-chip-model {
  color: #79d4ff;
  background: rgba(87, 199, 255, .09);
}

.variance-chip-unspecified {
  color: #aeb7c5;
  background: rgba(174, 183, 197, .08);
}

.variance-mistake {
  padding-right: 5px;
  color: #cbd2dd;
  font-weight: 600;
}

.variance-mistake::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #8994a6;
}

.variance-mistake-market::before {
  background: #ff6363;
}

.variance-mistake-trader::before {
  background: #f6c453;
}

.variance-mistake-model::before {
  background: #57c7ff;
}

.variance-day-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 9px;
  border-left: 1px solid #303846;
}

.variance-day-total strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.variance-day-total span {
  margin-top: 4px;
  color: #8994a6;
  font-size: 12px;
}

.variance-day-no-losses,
.variance-day-no-trades,
.variance-day-upcoming {
  background: #181d22;
  border-color: #29313a;
}

.variance-day-no-trades {
  background: #15191e;
  border-color: #252c34;
}

.variance-day-upcoming {
  opacity: .72;
}

.variance-day-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4dbd8;
}

.variance-day-state span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  color: #b8c1bd;
  background: rgba(255, 255, 255, .07);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.variance-day-state strong {
  font-size: 14px;
  font-weight: 700;
}

.variance-day-no-losses .variance-day-state span {
  color: #8cf1bd;
  background: rgba(0, 224, 138, .1);
}

.variance-day-total-muted strong {
  color: #c5ceca;
  font-size: 18px;
}

/* Echo the home calendar's strong weekly-summary column. */
.variance-week-summary,
.variance-month-summary {
  --variance-accent: #00e08a;
  --variance-background: #10291c;
  --variance-border: rgba(0, 224, 138, .22);
  --variance-glow: rgba(0, 224, 138, .13);
  position: relative;
  overflow: hidden;
  background: var(--variance-background);
  border: 1px solid var(--variance-border);
  border-left: 6px solid var(--variance-accent);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .34),
    0 0 22px var(--variance-glow);
}

.variance-week-summary {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
  padding: 17px 18px;
}

.variance-summary-market {
  --variance-accent: #ff6363;
  --variance-background: #35191d;
  --variance-border: rgba(255, 99, 99, .28);
  --variance-glow: rgba(255, 99, 99, .12);
}

.variance-summary-trader {
  --variance-accent: #f6c453;
  --variance-background: #332b17;
  --variance-border: rgba(246, 196, 83, .27);
  --variance-glow: rgba(246, 196, 83, .11);
}

.variance-summary-model {
  --variance-accent: #57c7ff;
  --variance-background: #142b38;
  --variance-border: rgba(87, 199, 255, .27);
  --variance-glow: rgba(87, 199, 255, .11);
}

.variance-summary-unspecified {
  --variance-accent: #8994a6;
  --variance-background: #20262e;
  --variance-border: rgba(137, 148, 166, .25);
  --variance-glow: rgba(137, 148, 166, .08);
}

.variance-summary-upcoming {
  --variance-accent: #6f7a8b;
  --variance-background: #1b2128;
  --variance-border: rgba(137, 148, 166, .2);
  --variance-glow: rgba(137, 148, 166, .06);
}

.variance-week-summary::after,
.variance-month-summary::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at top right, var(--variance-glow), transparent 68%);
  pointer-events: none;
}

.variance-week-summary .variance-summary-label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .66);
  letter-spacing: 1.4px;
}

.variance-summary-total {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 7px;
}

.variance-summary-total strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 39px;
  line-height: .95;
  letter-spacing: -1.4px;
}

.variance-summary-total span {
  max-width: 90px;
  color: rgba(255, 255, 255, .67);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.variance-no-losses {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.variance-no-losses > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #07140e;
  background: #00e08a;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.variance-no-losses strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 22px;
  letter-spacing: -.5px;
}

.variance-upcoming-label > span {
  color: #11161c;
  background: #8994a6;
}

.variance-summary-note {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  padding-top: 11px;
  color: rgba(255, 255, 255, .62);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  line-height: 1.4;
}

.variance-dominant {
  position: relative;
  z-index: 1;
  margin: 15px 0 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.variance-dominant span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.variance-dominant strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 17px;
}

.variance-week-categories {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.variance-week-category > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
}

.variance-week-track {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, .11);
  border-radius: 2px;
}

.variance-week-fill {
  height: 100%;
  border-radius: inherit;
}

.variance-week-fill-market {
  background: #ff6363;
}

.variance-week-fill-trader {
  background: #f6c453;
}

.variance-week-fill-model {
  background: #57c7ff;
}

.variance-week-fill-unspecified {
  background: #8994a6;
}

.variance-month-summary {
  display: grid;
  grid-template-columns: 215px 125px 140px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 148px;
  margin-top: 24px;
  padding: 28px 30px;
  border-left-width: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42),
    0 0 30px var(--variance-glow);
}

.variance-month-summary > * {
  position: relative;
  z-index: 1;
}

.variance-month-summary-title span,
.variance-month-summary-title strong {
  display: block;
}

.variance-month-summary-title span {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.variance-month-summary-title strong {
  margin-top: 9px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 25px;
  letter-spacing: -.7px;
}

.variance-month-total {
  margin-top: 0;
}

.variance-month-total strong {
  font-size: 50px;
  letter-spacing: -2px;
}

.variance-month-total span {
  max-width: 100px;
  font-size: 11px;
}

.variance-month-dominant {
  margin: 0;
  padding: 4px 22px;
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.variance-month-dominant strong {
  margin-top: 6px;
  font-size: 18px;
}

.variance-month-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 13px;
}

.variance-no-losses-month {
  margin-top: 0;
}

.variance-month-summary > .variance-summary-note {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.variance-empty-state {
  padding: 28px;
  color: #8994a6;
  background: #151a21;
  border: 1px dashed #303846;
  border-radius: 7px;
  text-align: center;
}

@media (max-width: 1050px) {
  .variance-week {
    grid-template-columns: 100px minmax(0, 1fr) 190px;
    gap: 11px;
    padding: 11px;
  }

  .variance-day-row {
    grid-template-columns: 60px minmax(0, 1fr) 52px;
    gap: 8px;
  }

  .variance-week-summary {
    padding: 15px;
  }

  .variance-month-summary {
    grid-template-columns: 160px 110px 135px minmax(0, 1fr);
    gap: 14px;
    padding: 24px;
  }

  .variance-month-dominant {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Match the calendar's Sunday–Friday row on desktop. */
@media (min-width: 1001px) {
  .variance-week {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .variance-week-date {
    grid-column: 1 / -1;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid #29313d;
  }

  .variance-day-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .variance-week-clear {
    grid-column: 1 / -1;
  }

  .variance-day-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 11px 8px;
    overflow-wrap: anywhere;
  }

  .variance-day-state {
    flex-wrap: wrap;
    gap: 5px;
  }

  .variance-chip,
  .variance-mistake {
    min-width: 0;
    max-width: 100%;
  }

  .variance-day-total {
    align-items: flex-start;
    margin-top: auto;
    padding: 9px 0 0;
    border-left: 0;
    border-top: 1px solid #303846;
  }

  .variance-week-summary {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .variance-ledger {
    padding: 18px;
  }

  .variance-ledger-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .variance-ledger-heading p {
    text-align: left;
  }

  .variance-month-nav {
    width: 100%;
    justify-content: space-between;
  }

  .variance-week {
    grid-template-columns: 1fr;
  }

  .variance-week-date {
    padding: 4px 0 12px;
    border-right: 0;
    border-bottom: 1px solid #29313d;
  }

  .variance-week-summary {
    min-height: 190px;
    margin: 4px 0 0;
  }

  .variance-month-summary {
    grid-template-columns: 1fr 1fr;
  }

  .variance-month-dominant {
    padding: 10px 0;
    border-right: 0;
    border-left: 0;
  }

  .variance-month-categories {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .variance-ledger {
    padding: 14px;
  }

  .variance-day-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .variance-day-total {
    grid-column: 2;
    align-items: flex-start;
    padding: 7px 0 0;
    border-top: 1px solid #303846;
    border-left: 0;
  }

  .variance-month-summary {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .variance-month-categories {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

/* Hypothetical entries remain visually separate from trades taken. */
.day-scorecard-form .skipped-trade-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed var(--ui-border, #344153);
  border-radius: 12px;
  background: var(--ui-panel, #141b25);
}
.day-scorecard-form .skipped-trade-header,
.day-scorecard-form .trade-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.day-scorecard-form .skipped-trade-title { font-size: 14px; font-weight: 600; }
.day-scorecard-form .skipped-trade-card label { margin-top: 15px; }
.day-scorecard-form .skipped-trade-card select,
.day-scorecard-form .skipped-trade-card textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #32363b;
  border-radius: 9px;
  background: var(--ui-field, #0b1119);
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: normal;
}
.day-scorecard-form .skipped-trade-card input { margin-top: 7px; }
.day-scorecard-form .skipped-trade-card textarea { resize: vertical; }
.day-scorecard-form .skipped-trade-card select:focus,
.day-scorecard-form .skipped-trade-card textarea:focus {
  outline: 2px solid var(--ui-green, #00e08a);
  outline-offset: 2px;
}
.day-scorecard-form .add-skipped-trade,
.day-scorecard-form .remove-trade,
.day-scorecard-form .remove-skipped-trade {
  width: auto;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #41464d;
  border-radius: 8px;
  background: transparent;
  color: #c4c9d0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.day-scorecard-form .add-skipped-trade { margin-top: 18px; }
.day-scorecard-form .skipped-trade-notes { margin-top: 14px; }
.day-scorecard-form .skipped-trade-notes summary { color: #aeb3b9; cursor: pointer; font-size: 12px; }
