::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #262626; }
::-webkit-scrollbar-thumb:hover { background: #363636; }

body { background: #050505; font-feature-settings: "tnum" 1; }

.font-mono, table.data-table td, .stat-value { font-variant-numeric: tabular-nums; }

.nav-link { color: #737373; border-left: 2px solid transparent; }
.nav-link:hover { background: #101010; color: #d4d4d4; }
.nav-link.active-nav { background: #101010; color: #efc165; border-left-color: #c9922f; }

.glass-card { background: #0a0a0a; border: 1px solid #1c1c1c; border-radius: 2px; }

.glass-input { background: #0a0a0a; border: 1px solid #262626; border-radius: 2px;
  padding: 0.5rem 0.7rem; color: #d4d4d4; outline: none; font-family: 'IBM Plex Mono', monospace;
  transition: border-color .12s ease; }
.glass-input:hover { border-color: #3a3a3a; }
.glass-input:focus { border-color: #c9922f; }
.glass-input option { background: #0a0a0a; color: #d4d4d4; }

.btn-primary { background: #c9922f; color: #0a0a0a; font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.02em; border-radius: 2px; padding: 0.6rem 1.1rem; transition: background .12s ease; border: 1px solid #c9922f; }
.btn-primary:hover { background: #dba646; }
.btn-secondary { background: transparent; border: 1px solid #262626; color: #a3a3a3;
  font-weight: 500; font-size: 0.8rem; border-radius: 2px; padding: 0.6rem 1.1rem; transition: all .12s ease; }
.btn-secondary:hover { border-color: #525252; color: #e5e5e5; }

.tag-badge { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 600;
  font-family: 'IBM Plex Mono', monospace; padding: 0.1rem 0.4rem; border-radius: 1px; letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--tag-color, #c9922f) 45%, transparent);
  color: var(--tag-color, #c9922f); background: color-mix(in srgb, var(--tag-color, #c9922f) 8%, transparent); }

.tag-option { cursor: pointer; transition: all .1s ease; }
input:checked + .tag-option { background: var(--tag-color, #c9922f); color: #050505;
  border-color: var(--tag-color, #c9922f); font-weight: 700; }

.stat-card { position: relative; transition: background-color .12s ease, border-color .12s ease; }
.stat-card:hover { background: #0d0d0d; border-color: #2a2a2a; }

.hover-row { transition: background-color .1s ease, box-shadow .1s ease; cursor: default; }
.hover-row:hover { background: #111318; box-shadow: inset 2px 0 0 0 #c9922f; }

.journal-entry { cursor: pointer; padding: 12px 14px; margin: 0 -14px; border-radius: 2px;
  transition: background-color .1s ease, box-shadow .1s ease; }
.journal-entry:hover { background: #111318; box-shadow: inset 2px 0 0 0 #c9922f; }
.journal-entry + .journal-entry { border-top: 1px solid #141414; margin-top: 2px; }
.journal-content p { margin-bottom: 0.6em; }
.journal-content p:last-child { margin-bottom: 0; }
.journal-thumb { width: 42px; height: 42px; object-fit: cover; border: 1px solid #262626;
  cursor: zoom-in; transition: border-color .12s ease, transform .12s ease; }
.journal-thumb:hover { border-color: #c9922f; transform: scale(1.05); }

.year-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.year-day { aspect-ratio: 1; background: #141414; border-radius: 1px;
  box-sizing: border-box; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; line-height: 1;
  font-size: 7px; color: #737373; }
.year-day-out { background: transparent; border-color: transparent; }
.year-day-entry { background: #3fc6de; cursor: pointer; position: relative;
  font-weight: 700; color: #0a0a0a;
  transition: transform .12s ease, box-shadow .12s ease; }
.year-day-entry:hover { transform: scale(1.6); box-shadow: 0 0 0 1px #c9922f; z-index: 1; }
.year-day-win { border-color: #2fb46c; }
.year-day-loss { border-color: #c9433a; }
.year-day.year-day-today { background: #c9922f; border-color: transparent; box-shadow: none; color: #1a1206; font-weight: 700; }

.account-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 4px;
  background: transparent; border: 0; cursor: pointer; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #7d7d7d; text-align: left; transition: color .12s ease; }
.account-row:hover { color: #d4d4d4; }
.account-dot { width: 9px; height: 9px; border-radius: 2px; border: 1px solid #3a3a3a; background: transparent;
  flex-shrink: 0; transition: background .12s ease, border-color .12s ease; }
.account-dot-active { background: #2fb46c; border-color: #2fb46c; }

.dp-popup { width: 232px; background: #0a0a0a; border: 1px solid #262626; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  padding: 10px; font-family: 'IBM Plex Mono', monospace; }
.dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #d4d4d4; font-weight: 600; }
.dp-nav { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid #262626; color: #a3a3a3; cursor: pointer; font-size: 13px; }
.dp-nav:hover { border-color: #c9922f; color: #c9922f; }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 3px; }
.dp-weekdays div { font-size: 9px; text-align: center; color: #6b6b6b; letter-spacing: 0.04em; }
.dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #121212;
  border: 1px solid transparent; color: #d4d4d4; font-size: 11px; font-family: 'IBM Plex Mono', monospace;
  cursor: pointer; border-radius: 1px; }
.dp-day:hover { border-color: #c9922f; color: #c9922f; }
.dp-day-out { background: transparent; cursor: default; }
.dp-day-out:hover { border-color: transparent; }
.dp-day-today { box-shadow: inset 0 0 0 1px rgba(201,146,47,0.6); }
.dp-day-selected { background: #c9922f; color: #1a1206; font-weight: 700; }
.dp-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid #1c1c1c; }
.dp-today-btn, .dp-clear-btn { background: transparent; border: 0; color: #6b6b6b; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; font-family: 'IBM Plex Mono', monospace; }
.dp-today-btn:hover { color: #c9922f; }
.dp-clear-btn:hover { color: #c9433a; }

.ms-popup { width: 220px; max-height: 280px; overflow-y: auto; background: #0a0a0a; border: 1px solid #262626;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); padding: 6px; font-family: 'IBM Plex Mono', monospace; }
.ms-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px;
  background: transparent; border: 0; cursor: pointer; font-size: 11px; color: #a3a3a3; text-align: left; }
.ms-row:hover { color: #d4d4d4; background: #121212; }
.ms-dot { width: 9px; height: 9px; border-radius: 2px; border: 1px solid #3a3a3a; background: transparent;
  flex-shrink: 0; transition: background .12s ease, border-color .12s ease; }
.ms-dot-active { background: #2fb46c; border-color: #2fb46c; }
.ms-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-footer { margin-top: 4px; padding-top: 6px; border-top: 1px solid #1c1c1c; }
.ms-clear-btn { width: 100%; text-align: left; background: transparent; border: 0; color: #6b6b6b;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; padding: 4px 6px; }
.ms-clear-btn:hover { color: #c9433a; }
.ms-empty { padding: 10px 6px; font-size: 11px; color: #6b6b6b; }

.panel-title { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.72rem; font-weight: 600; color: #a3a3a3; }

table.data-table th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #6b6b6b; font-weight: 600; font-family: 'IBM Plex Mono', monospace; padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #1c1c1c; }
table.data-table td { padding: 0.55rem 0.9rem; border-bottom: 1px solid #141414; font-size: 0.82rem;
  font-family: 'IBM Plex Mono', monospace; }
table.data-table td { transition: background-color .1s ease, box-shadow .1s ease; }
table.data-table tr:hover td { background: #111318; }
table.data-table tr:hover td:first-child { box-shadow: inset 2px 0 0 0 #c9922f; }

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

.dropzone { border: 1px dashed #333333; border-radius: 2px; transition: all .12s ease; }
.dropzone:hover { border-color: #4a4a4a; background: #0c0c0c; }
.dropzone.drag-over { border-color: #c9922f; background: #0c0a06; }

.fade-in { animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.spinner { border: 2px solid #262626; border-top-color: #c9922f; border-radius: 50%;
  width: 1rem; height: 1rem; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cal-grid { display: grid; gap: 1px; background: #1c1c1c; border: 1px solid #1c1c1c; }
.cal-head { background: #0a0a0a; padding: 6px 4px; font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #6b6b6b; text-align: center; }
.cal-cell { background: #0a0a0a; min-height: 92px; padding: 6px 7px; transition: background .1s ease; }
.cal-cell:hover { background: #131620; }
.cal-cell-compact { min-height: 46px; padding: 4px 5px; }
.cal-cell-muted { background: #070707; opacity: 0.5; }
.cal-cell-muted:hover { background: #0c0c0c; }
.cal-cell-today { box-shadow: inset 0 0 0 1px #c9922f; }
.cal-cell-today:hover { box-shadow: inset 0 0 0 1px #c9922f; background: #131620; }
.cal-week-total { background: #0d1116; display: flex; flex-direction: column; align-items: flex-end;
  justify-content: center; padding: 6px 10px; gap: 2px; transition: background .1s ease; overflow: hidden; }
.cal-week-total:hover { background: #121722; }
.cal-week-total-compact { padding: 4px 6px; }
.cal-week-total > div { white-space: nowrap; }
