/* ===== CSS Custom Properties ===== */
:root {
  --color-bg: #F8F9FA;
  --color-card: #FFFFFF;
  --color-text: #212529;
  --color-text-secondary: #6C757D;
  --color-border: #DEE2E6;
  --color-primary: #4361EE;
  --color-primary-light: rgba(67,97,238,0.1);
  --color-success: #2DC653;
  --color-danger: #E63946;
  --color-warning: #F4A261;
  --color-chart-grid: rgba(0,0,0,0.06);
  --color-chart-text: #868E96;
  --color-tab-inactive: #ADB5BD;
  --color-tab-active: #4361EE;
  --color-shadow: rgba(0,0,0,0.06);
  --color-hover: rgba(0,0,0,0.03);
  --header-height: 56px;
  --tabbar-height: 60px;
  --radius: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --color-bg: #1A1A2E;
  --color-card: #16213E;
  --color-text: #E8E8E8;
  --color-text-secondary: #A0A0B0;
  --color-border: #2A2A4A;
  --color-primary: #6C8AFF;
  --color-primary-light: rgba(108,138,255,0.15);
  --color-chart-grid: rgba(255,255,255,0.08);
  --color-chart-text: #8888A0;
  --color-tab-inactive: #6C6C8A;
  --color-tab-active: #6C8AFF;
  --color-shadow: rgba(0,0,0,0.2);
  --color-hover: rgba(255,255,255,0.04);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  transition: background-color 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }

/* ===== App Layout ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-subtitle {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.app-main {
  padding-top: var(--header-height);
  padding-bottom: var(--tabbar-height);
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  display: none;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.screen.active { display: block; }

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--color-tab-inactive);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-item.active { color: var(--color-tab-active); }
.tab-icon { width: 22px; height: 22px; }
.tab-label { font-size: 0.7rem; font-weight: 500; }

/* ===== Card Component ===== */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-sub {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ===== Summary Grid ===== */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-grid .card { margin-bottom: 0; }

.summary-grid .card.full-width {
  grid-column: 1 / -1;
}

/* ===== Chart Container ===== */
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 12px 0;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-container.tall { height: 280px; }

/* ===== Table ===== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

thead th {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  text-align: left;
  padding: 10px 8px;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

tbody td {
  padding: 8px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--color-hover); }

.text-right { text-align: right; }
.text-center { text-align: center; }

.table-total td {
  font-weight: 700;
  background: var(--color-primary-light);
}

/* ===== Platform Badge ===== */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== Calendar ===== */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 8px;
}

.calendar-nav {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.calendar-nav:hover { background: var(--color-hover); }
.calendar-nav:disabled { opacity: 0.3; cursor: default; }

.calendar-month-label {
  font-size: 1.1rem;
  font-weight: 700;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.calendar-weekdays span:first-child { color: var(--color-danger); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s;
  position: relative;
  min-height: 44px;
}

.calendar-day:hover { background: var(--color-hover); }
.calendar-day.empty { cursor: default; }
.calendar-day.empty:hover { background: transparent; }

.calendar-day.has-data {
  background: var(--color-primary-light);
  font-weight: 600;
}

.calendar-day.selected {
  background: var(--color-primary);
  color: #fff;
}

.calendar-day.selected .day-revenue { color: rgba(255,255,255,0.8); }

.calendar-day.sunday .day-num { color: var(--color-danger); }
.calendar-day.selected .day-num { color: #fff; }

.day-num { font-size: 0.82rem; line-height: 1; }

.day-revenue {
  font-size: 0.55rem;
  color: var(--color-primary);
  margin-top: 1px;
  font-weight: 600;
}

/* ===== Day Detail Panel ===== */
.day-detail {
  margin-top: 12px;
}

.day-detail-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 4px solid;
  box-shadow: 0 1px 2px var(--color-shadow);
}

.platform-card-info { flex: 1; }

.platform-card-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.platform-card-orders {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.platform-card-revenue {
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}

.work-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.work-info-item {
  padding: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}

.work-info-label {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.work-info-value {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== Analysis ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-label { color: var(--color-text-secondary); }
.legend-value { font-weight: 700; }

.donut-center-text {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 8px;
}

/* ===== Settings ===== */
.setting-group {
  margin-bottom: 20px;
}

.setting-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: background-color 0.3s;
}

.setting-item:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.setting-item:last-of-type { border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 0; }
.setting-item:only-of-type { border-radius: var(--radius); }

.setting-label {
  font-weight: 500;
  font-size: 0.92rem;
}

.setting-value {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  background: var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.toggle.active { background: var(--color-primary); }

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle.active::after { transform: translateX(20px); }

/* Platform list in settings */
.platform-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--color-card);
  margin-bottom: 1px;
  transition: background-color 0.3s;
}

.platform-list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.platform-list-item:last-child { border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 0; }

.platform-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-list-name { font-weight: 600; font-size: 0.9rem; flex: 1; }

.platform-list-period {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 12px;
}

.section-title:first-child { margin-top: 4px; }

/* ===== Utilities ===== */
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-secondary { color: var(--color-text-secondary); }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ===== Loading ===== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.loading-spinner::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--color-text-secondary);
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ===== Sortable Table Header ===== */
th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover { opacity: 0.8; }

th.sortable::after {
  content: ' \2195';
  font-size: 0.7em;
  opacity: 0.5;
}

th.sortable.asc::after { content: ' \2191'; opacity: 1; }
th.sortable.desc::after { content: ' \2193'; opacity: 1; }

/* ===== Responsive ===== */
@media (min-width: 768px) {
  html { font-size: 15px; }

  .screen { padding: 20px; }

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-info {
    grid-template-columns: repeat(4, 1fr);
  }

  .calendar-day {
    min-height: 52px;
  }
}

@media (min-width: 1024px) {
  .screen { max-width: 600px; }
}

/* ===== Safe Area ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tab-bar {
    height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .app-main {
    padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  }
}

/* ===== Work Mode Toggle (Header) ===== */
.wm-toggle-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: none;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-toggle-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.wm-toggle-btn svg { width: 16px; height: 16px; }
.wm-toggle-label { white-space: nowrap; }

/* ===== Work Mode Screen ===== */
.wm-screen {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  overflow: hidden;
}

.wm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.wm-stat-item {
  background: var(--color-card);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  box-shadow: 0 1px 2px var(--color-shadow);
}

.wm-stat-label {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.wm-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Delivery list */
.wm-delivery-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.wm-list-section {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: 10px 0 4px;
  letter-spacing: 0.03em;
}

.wm-delivery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  box-shadow: 0 1px 2px var(--color-shadow);
}

.wm-delivery-item.wm-completed { opacity: 0.6; }

.wm-delivery-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.wm-delivery-fee { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.wm-delivery-route { font-size: 0.75rem; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-delivery-time { font-size: 0.72rem; color: var(--color-text-secondary); white-space: nowrap; margin-left: auto; }

/* Input panel */
.wm-input-panel {
  flex-shrink: 0;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.wm-platform-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wm-platform-row .wm-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.wm-platform-select { flex: 1; }

.wm-fee-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wm-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.wm-input:focus { outline: none; border-color: var(--color-primary); }

.wm-select {
  width: 72px;
  flex-shrink: 0;
  padding: 10px 6px;
  padding-right: 20px;
  font-size: 0.78rem;
}

.wm-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.wm-btn-submit {
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.wm-btn-submit:active { opacity: 0.8; }

.wm-btn-complete {
  background: var(--color-success);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.wm-btn-complete:active { opacity: 0.8; }

/* ===== Platform Management (Settings) ===== */
.plat-actions {
  display: flex;
  gap: 4px;
}

.plat-btn {
  border: none;
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-family: inherit;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.plat-btn:hover { background: var(--color-hover); color: var(--color-text); }
.plat-btn-danger:hover { color: var(--color-danger); }

/* Platform edit modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-field {
  margin-bottom: 12px;
}

.modal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.modal-field input,
.modal-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.modal-field input:focus,
.modal-field select:focus { outline: none; border-color: var(--color-primary); }

.modal-field-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.modal-field-row .modal-field { flex: 1; margin-bottom: 0; }

.modal-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-btn-primary { background: var(--color-primary); color: #fff; }
.modal-btn-cancel { background: var(--color-border); color: var(--color-text); }
.modal-btn-danger { background: var(--color-danger); color: #fff; }

/* ===== Target Salary (Dashboard) ===== */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-header-row .card-title { margin-bottom: 0; }

.target-select {
  padding: 4px 8px;
  padding-right: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.target-progress {
  margin-top: 8px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.target-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.target-progress-text {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
  text-align: right;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
