/* =====================================================================
   Tiltless — "Premium glass" theme + styles for the v4 features.
   Loaded after styles.css / motion.css.
   ===================================================================== */
:root {
  --glass: rgba(20, 22, 30, 0.58);
  --glass-strong: rgba(20, 22, 30, 0.78);
  --glass-border: rgba(255, 255, 255, 0.075);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --amber: #fbbf24;
  --be: #fbbf24;
  --be-soft: rgba(251, 191, 36, 0.13);
  --violet: #8b5cf6;
}
[data-theme="light"] {
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --be: #d97706;
  --be-soft: rgba(217, 119, 6, 0.12);
}

/* ---------- aurora background ---------- */
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, rgba(var(--aur-1), 0.17), transparent 62%),
    radial-gradient(34vmax 34vmax at 86% 18%, rgba(var(--aur-2), 0.14), transparent 62%),
    radial-gradient(44vmax 44vmax at 62% 104%, rgba(var(--aur-3), 0.11), transparent 62%);
  animation: aurora 34s ease-in-out infinite alternate;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, rgba(var(--aur-1), 0.16), transparent 62%),
    radial-gradient(34vmax 34vmax at 86% 18%, rgba(var(--aur-2), 0.11), transparent 62%),
    radial-gradient(44vmax 44vmax at 62% 104%, rgba(var(--aur-3), 0.1), transparent 62%);
}
@keyframes aurora { to { transform: translate3d(-3vmax, 2.5vmax, 0) rotate(6deg) scale(1.06); } }

/* ---------- glass surfaces ---------- */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 40px -28px rgba(0, 0, 0, 0.75);
  position: relative;
}
[data-theme="light"] .card { box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 40px -30px rgba(15, 23, 42, 0.35); }
.day-detail { position: sticky; }
.sidebar {
  background: color-mix(in srgb, var(--sidebar-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
}
.auth-card, .modal, .dlg, .toast {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.stat-card::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ac-rgb), 0.65), transparent);
}
.stat-card h2.pos, .day-pnl.pos, .trade-pnl.pos, .score-num {
  background: linear-gradient(92deg, #34d399, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.22));
}
.stat-card h2.neg, .day-pnl.neg, .trade-pnl.neg {
  background: linear-gradient(92deg, #fb7185, #f87171);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.primary-btn {
  background: linear-gradient(135deg, var(--purple), var(--accent-deep));
  box-shadow: 0 6px 18px -10px rgba(var(--ac-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.primary-btn:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); }
.nav-indicator { background: linear-gradient(90deg, rgba(var(--ac-rgb), 0.22), rgba(var(--ac-rgb), 0.06)); box-shadow: inset 0 0 0 1px rgba(var(--ac-rgb), 0.18); }
.chart-line { filter: drop-shadow(0 0 6px currentColor); }
.chart-wrap .chart-line { color: inherit; }
.mini-ring { filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.25)); }
.brand-logo { box-shadow: 0 0 22px rgba(var(--ac-rgb), 0.45); }


/* ---------- break-even ---------- */
.be { color: var(--be) !important; }
.be-tag { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: var(--be-soft); color: var(--be); margin-left: 4px; }
.cal-cell.be { background: linear-gradient(180deg, transparent 40%, var(--be-soft)); }
.day-metrics.four { grid-template-columns: repeat(4, 1fr); }

/* ---------- review nudge ---------- */
.review-nudge { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-color: rgba(var(--ac-rgb), 0.35); background: linear-gradient(120deg, rgba(var(--ac-rgb), 0.16), var(--glass) 60%); animation: rise .45s var(--ease-out) both; }
.review-nudge[hidden] { display: none; }
.review-nudge .nudge-ico { font-size: 22px; }
.review-nudge > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.review-nudge span { color: var(--text-dim); font-size: 13px; }

/* ---------- sessions card ---------- */
.sessions-card .card-head { flex-wrap: wrap; gap: 6px; }
.sessions-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ses-col { padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 6px; animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
.ses-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.ses-name small { margin-left: auto; color: var(--text-muted); font-weight: 500; font-size: 11px; }
.ses-dot { width: 8px; height: 8px; border-radius: 50%; }
.ses-0 { background: #a78bfa; } .ses-1 { background: #22D3EE; } .ses-2 { background: #34d399; }
.ses-pnl { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ses-meta { font-size: 12px; color: var(--text-muted); }
.ses-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ses-bar span { display: block; height: 100%; border-radius: 3px; transform-origin: left; animation: growX .8s var(--ease-out) both; }
.ses-bar span.pos { background: linear-gradient(90deg, #34d399, var(--accent-2)); }
.ses-bar span.neg { background: linear-gradient(90deg, #fb7185, #f87171); }

/* ---------- goal card ---------- */
.goal-body { display: flex; align-items: center; gap: 16px; }
.goal-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.goal-ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.goal-track { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.goal-prog { fill: none; stroke: url(#none); stroke: var(--accent-2); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease-out); filter: drop-shadow(0 0 6px rgba(var(--ac2-rgb), 0.55)); }
.goal-prog.done { stroke: #34d399; filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.7)); }
.goal-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.goal-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.goal-line b { font-size: 18px; font-variant-numeric: tabular-nums; }
.goal-mini { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.goal-mini span { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, var(--accent-2)); border-radius: 3px; transition: width 1s var(--ease-out); }
.goal-empty { display: flex; align-items: center; gap: 14px; width: 100%; }
.goal-empty > div { flex: 1; }
.goal-ring-empty { width: 48px; height: 48px; border-radius: 50%; border: 6px solid var(--surface-2); flex: none; }

/* ---------- filters ---------- */
.filter-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.filter-btn.on { color: var(--purple); border-color: rgba(var(--ac-rgb), 0.45); background: var(--purple-soft); }
.flt-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--purple); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.flt-badge[hidden] { display: none; }
.flt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.flt-bar[hidden] { display: none; }
.flt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--purple-soft); border: 1px solid rgba(var(--ac-rgb), 0.3); font-size: 12.5px; animation: pop .25s var(--ease-out) both; }
.flt-chip button { width: 18px; height: 18px; border-radius: 5px; color: var(--text-dim); }
.flt-chip button:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.flt-count-inline { font-size: 12px; color: var(--text-muted); }
.flt-pop {
  position: absolute; z-index: 520; width: 420px; max-height: min(560px, 80vh); display: flex; flex-direction: column;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); transition: opacity .18s ease, transform .25s var(--ease-out);
}
.flt-pop.open { opacity: 1; transform: none; }
.flt-pop.hidden { display: none; }
.flt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.flt-body { overflow-y: auto; padding: 0 18px 8px; }
.flt-sec { margin-bottom: 14px; }
.flt-sec h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.flt-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flt-mode { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.flt-mode span { margin-right: 4px; }
.flt-mode button { padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--text-dim); }
.flt-mode button.on { background: var(--purple); color: #fff; }
.flt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.fchip small { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.fchip:hover { color: var(--text); }
.fchip:active { transform: scale(.96); }
.fchip.on { background: var(--purple-soft); color: var(--purple); border-color: rgba(var(--ac-rgb), 0.45); }
.flt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flt-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); }

/* ---------- weekly review ---------- */
.week { position: relative; }
.rev-btn { align-self: flex-start; margin-top: 2px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--purple); background: var(--purple-soft); border: 1px solid rgba(var(--ac-rgb), 0.25); transition: transform .12s, background-color .15s; }
.rev-btn:hover { background: rgba(var(--ac-rgb), 0.26); }
.rev-btn.done { color: var(--green); background: var(--green-soft); border-color: rgba(52, 211, 153, 0.3); }
.review-modal { max-width: 640px; }
.rev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rev-stats > div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.rev-stats .wide { grid-column: 1 / -1; }
.rev-stats span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.rev-stats b { font-size: 17px; }
.rev-stats small { font-size: 11px; color: var(--text-muted); }
.stars { display: flex; gap: 4px; }
.stars button { font-size: 26px; line-height: 1; color: var(--surface-2); -webkit-text-stroke: 1px var(--border-strong); transition: transform .12s, color .15s; }
.stars button.on { color: var(--amber); -webkit-text-stroke: 0; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .5)); }
.stars button:hover { transform: scale(1.15); }

/* ---------- insights add-ons ---------- */
.ins-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.seg-sm button { padding: 3px 10px; font-size: 11.5px; }
.hm-nav { display: flex; align-items: center; gap: 8px; }
.hm-scroll { overflow-x: auto; padding-bottom: 4px; }
/* when the year scrolls sideways, the Mon/Wed/Fri labels stay put (cells slide under them) */
.hm-scroll.scrolls .hm-days { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 6px 0 0 var(--surface); }
/* The year fills the card width (cells grow to ~19px). Below ~780px it keeps
   11px cells and scrolls sideways instead of shrinking into dots. */
.hm { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 6px; min-width: 780px; max-width: 1180px; }
.hm-months { grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: 3px; font-size: 10.5px; color: var(--text-muted); }
.hm-months span { white-space: nowrap; }
.hm-days { grid-row: 2; display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); row-gap: 3px; font-size: 10px; color: var(--text-muted); align-items: center; }
.hm-grid { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: 3px; }
.hm-col { display: grid; grid-template-rows: repeat(7, auto); row-gap: 3px; animation: fade .4s ease both; animation-delay: calc(var(--i) * 8ms); }
.hm-col .hm-c { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.hm-c { width: 11px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--surface-2) 90%, transparent); display: inline-block; cursor: default; transition: transform .12s; }
.hm-c[data-day] { cursor: pointer; }
.hm-c[data-day]:hover { transform: scale(1.35); outline: 1px solid var(--text-dim); }
.hm-c.out { visibility: hidden; }
.hm-c.p1 { background: rgba(52, 211, 153, 0.3); } .hm-c.p2 { background: rgba(52, 211, 153, 0.5); } .hm-c.p3 { background: rgba(52, 211, 153, 0.72); } .hm-c.p4 { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .5); }
.hm-c.n1 { background: rgba(248, 113, 113, 0.3); } .hm-c.n2 { background: rgba(248, 113, 113, 0.5); } .hm-c.n3 { background: rgba(248, 113, 113, 0.72); } .hm-c.n4 { background: #f87171; }
.hm-c.be { background: rgba(251, 191, 36, 0.6); }
.hm-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.hm-legend span { margin: 0 4px; }
.r-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.r-kpis > div { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); display: flex; flex-direction: column; gap: 2px; }
.r-kpis span { font-size: 11px; color: var(--text-muted); }
.r-kpis b { font-size: 17px; font-variant-numeric: tabular-nums; }
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: end; }
.r-dwrap { container-type: inline-size; }
.r-dist { height: 150px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--border); }
.r-dcol { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.r-dcol small { font-size: 10px; color: var(--text-muted); order: -1; }
.r-dbar { width: 100%; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growY .6s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); min-height: 0; }
.r-dbar.pos { background: linear-gradient(180deg, #34d399, rgba(52, 211, 153, 0.55)); }
.r-dbar.neg { background: linear-gradient(180deg, #f87171, rgba(248, 113, 113, 0.55)); }
/* x-axis: one tick per bin edge (-2 … +3) instead of a range label per bar, which overlapped on narrow cards */
.r-dlabels { position: relative; height: 14px; margin-top: 5px; }
.r-dlabels span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (max-width: 380px) { .r-dlabels .half { display: none; } }
.r-eq { width: 100%; height: 150px; overflow: visible; }

/* ---------- dialogs: wide variant (import preview) ---------- */
.dlg.wide { max-width: 680px; }
.imp-table { max-height: 300px; overflow: auto; margin: 4px 0 10px; border: 1px solid var(--border); border-radius: 10px; }
.imp-table .trades-table td, .imp-table .trades-table th { padding: 8px 10px; font-size: 12.5px; }

/* ---------- report (print view) ---------- */
.report-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(5, 6, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
.report-overlay.open { opacity: 1; }
.report-overlay.hidden { display: none; }
.report-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--glass-strong); border-bottom: 1px solid var(--glass-border); flex-wrap: wrap; }
.report-scroll { flex: 1; overflow: auto; padding: 24px 16px 60px; }
.report-page { max-width: 900px; margin: 0 auto; background: #fff; color: #0f172a; border-radius: 14px; padding: 36px 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); font-size: 12.5px; }
.report-page .pos { color: #059669 !important; } .report-page .neg { color: #dc2626 !important; }
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid #0f172a; padding-bottom: 14px; margin-bottom: 18px; }
.rep-head h1 { font-size: 24px; letter-spacing: -.02em; }
.rep-head p { color: #475569; margin-top: 4px; font-size: 14px; }
.rep-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rep-brand .brand-logo { width: 22px; height: 22px; box-shadow: none; }
.rep-brand small { color: #64748b; }
.rep-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.rep-kpi { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rep-kpi span { font-size: 10.5px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.rep-kpi b { font-size: 16px; }
.rep-kpi small { font-size: 10.5px; color: #64748b; font-weight: 500; }
.rep-sec { margin-bottom: 18px; break-inside: avoid; }
.rep-sec h2 { font-size: 14px; margin-bottom: 8px; }
.rep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rep-eq { width: 100%; height: 180px; border: 1px solid #e2e8f0; border-radius: 10px; }
.rep-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rep-cal-h { font-size: 10px; color: #64748b; text-align: center; }
.rep-cal-d { min-height: 42px; border: 1px solid #e2e8f0; border-radius: 6px; padding: 3px 5px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; }
.rep-cal-d b { font-size: 10.5px; text-align: right; }
.rep-cal-d.pos { background: #ecfdf5; } .rep-cal-d.neg { background: #fef2f2; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rep-table th { text-align: left; color: #64748b; font-weight: 600; border-bottom: 1px solid #cbd5e1; padding: 5px 6px; }
.rep-table td { border-bottom: 1px solid #f1f5f9; padding: 5px 6px; }
.rep-note { color: #475569; max-width: 260px; }
.rep-rev { border-left: 3px solid var(--purple); padding: 4px 10px; margin-bottom: 8px; }
.rep-rev p { margin-top: 3px; color: #334155; } .rep-rev i { color: #64748b; font-style: normal; font-weight: 600; margin-right: 4px; }
.rep-empty { color: #64748b; padding: 30px 0; text-align: center; }
@media print {
  @page { size: A4; margin: 12mm; }
  body.printing-report > *:not(.report-overlay) { display: none !important; }
  body.printing-report::before { display: none; }
  body.printing-report { background: #fff !important; }
  .report-overlay { position: static; background: none; backdrop-filter: none; opacity: 1; }
  .report-bar, .toast-host { display: none !important; }
  .report-scroll { padding: 0; overflow: visible; }
  .report-page { box-shadow: none; padding: 0; border-radius: 0; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .day-detail { position: static; }
  .sessions-body { grid-template-columns: 1fr; }
  .ses-col { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ses-col .ses-name { flex: 1 1 100%; }
  .ses-pnl { font-size: 18px; }
  .ses-meta { margin-left: auto; }
  .ses-bar { flex: 1 1 100%; }
  .flt-pop { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-height: 82vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(30px); }
  .r-kpis { grid-template-columns: repeat(2, 1fr); }
  .r-grid { grid-template-columns: minmax(0, 1fr); }
  .rev-stats { grid-template-columns: repeat(2, 1fr); }
  .rep-kpis { grid-template-columns: repeat(2, 1fr); }
  .rep-two { grid-template-columns: 1fr; }
  .report-page { padding: 20px 16px; }
  .ins-tools { justify-content: flex-start; }
  .day-metrics.four { grid-template-columns: repeat(2, 1fr); }
}
