/* ─── CSS VARIABLES (shadcn/ui palette) ─────────────────────── */
:root {
  --background:       var(--tg-theme-bg-color, #f4f4f5);
  --card:             var(--tg-theme-secondary-bg-color, #ffffff);
  --card-border:      rgba(0,0,0,0.07);
  --foreground:       var(--tg-theme-text-color, #09090b);
  --muted:            #71717a;
  --muted-bg:         rgba(0,0,0,0.04);
  --accent:           var(--tg-theme-button-color, #2481cc);
  --accent-subtle:    rgba(36,129,204,0.10);
  --destructive:      #ef4444;
  --destructive-subtle: rgba(239,68,68,0.10);
  --success:          #22c55e;
  --success-subtle:   rgba(34,197,94,0.10);
  --warning:          #f59e0b;
  --warning-subtle:   rgba(245,158,11,0.12);
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* ─── RESET ─────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCREENS ────────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}
.screen.active {
  display: flex;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--accent);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  font-weight: 500;
}
.nav-btn:active {
  background: var(--muted-bg);
}

/* ─── CALENDAR DARK THEME ────────────────────────────────────── */
#screen-calendar {
  background: #0D0D0B;
}

#screen-calendar .header {
  background: #0D0D0B;
  border-bottom: 1px solid #1E1E1A;
  color: #FFFFFF;
}

#screen-calendar .nav-btn {
  color: #FFC700;
}
#screen-calendar .nav-btn:active {
  background: #1A1A16;
}

#screen-calendar #month-label {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

#screen-calendar .weekdays {
  background: #111110;
  border-bottom: 1px solid #1E1E1A;
  padding: 8px 8px 6px;
}

#screen-calendar .weekdays span {
  color: #444440;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1px;
}

#screen-calendar .calendar-grid {
  padding: 8px;
  gap: 5px;
}

#screen-calendar .day-cell {
  background: #1A1A16;
  border: 1.5px solid #222220;
  border-radius: 10px;
  min-height: 56px;
}
#screen-calendar .day-cell:active {
  background: #2A2A20;
  transform: scale(0.94);
}
#screen-calendar .day-cell.empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
#screen-calendar .day-cell.today {
  border-color: #FFC700;
  background: rgba(255,199,0,0.08);
}
#screen-calendar .day-cell.today .day-num {
  color: #FFC700;
  font-weight: 900;
}

#screen-calendar .day-num {
  color: #AAAAAA;
  font-size: 13px;
  font-weight: 600;
}

#screen-calendar .dot.day   { background: #FFC700; }
#screen-calendar .dot.night { background: #3B9EFF; }

#screen-calendar .legend {
  background: #111110;
  border-top: 1px solid #1E1E1A;
  color: #555550;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* ─── HEADER RIGHT GROUP ─────────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.role-badge-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-subtle);
  letter-spacing: 0.2px;
}

/* ─── WEEKDAYS ───────────────────────────────────────────────── */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 10px 4px;
  gap: 4px;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}
.weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── CALENDAR GRID ──────────────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 5px;
  flex: 1;
}

.day-cell {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 6px 3px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
}
.day-cell:active {
  background: var(--accent-subtle);
  transform: scale(0.96);
}
.day-cell.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.day-cell.today {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.day-num {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--foreground);
}
.day-cell.today .day-num {
  color: var(--accent);
  font-weight: 800;
}

.day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.day   { background: var(--warning); }
.dot.night { background: var(--accent); }

/* ─── LEGEND ─────────────────────────────────────────────────── */
.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--card-border);
  letter-spacing: 0.1px;
}
.legend .dot {
  margin-right: 4px;
}

/* ─── DRIVERS LIST ───────────────────────────────────────────── */
.drivers-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-row {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

/* trash divider */
.trash-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 0;
}
.trash-row { opacity: 0.88; }

.driver-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.shift-buttons {
  display: flex;
  gap: 5px;
}

.shift-btn {
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--muted-bg);
  color: var(--muted);
  letter-spacing: 0.1px;
}
.shift-btn:active {
  transform: scale(0.94);
}
.shift-btn.active-day {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning);
  box-shadow: 0 2px 8px rgba(245,158,11,0.30);
}
.shift-btn.active-night {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(36,129,204,0.28);
}
.shift-btn.active-off {
  background: var(--muted-bg);
  color: var(--muted);
  border-color: var(--card-border);
}
.shift-btn.active-trash {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(34,197,94,0.28);
}
.shift-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* READ-ONLY status */
.shift-status {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
}
.shift-status.status-day   { color: var(--warning); }
.shift-status.status-night { color: var(--accent); }
.shift-status.status-off   { color: var(--muted); }
.status-trash { color: var(--success); }

/* ─── VIEWER HINT ────────────────────────────────────────────── */
.viewer-hint {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ─── USERS SCREEN ───────────────────────────────────────────── */
.users-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-row {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
}

.user-meta {
  font-size: 12px;
  color: var(--muted);
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.role-badge.role-admin  {
  color: var(--warning);
  background: var(--warning-subtle);
}
.role-badge.role-driver {
  color: var(--success);
  background: var(--success-subtle);
}
.role-badge.role-viewer {
  color: var(--muted);
  background: var(--muted-bg);
}

.role-select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--muted-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  outline: none;
}
.role-select:focus { border-color: var(--accent); }

.del-btn {
  background: none;
  border: none;
  color: var(--destructive);
  font-size: 17px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.del-btn:disabled { opacity: 0.25; cursor: default; }
.del-btn:active {
  background: var(--destructive-subtle);
}

.add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
  box-shadow: 0 2px 10px rgba(36,129,204,0.28);
  letter-spacing: 0.1px;
}
.add-btn:active { opacity: 0.82; }

.add-user-form {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}
.add-user-form.hidden { display: none; }

.add-user-form input,
.add-user-form select {
  background: var(--background);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--foreground);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.add-user-form input:focus,
.add-user-form select:focus {
  border-color: var(--accent);
}

.save-btn {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}
.save-btn:active { opacity: 0.82; }

.loading {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ─── MAIN MENU (industrial dark) ───────────────────────────── */
#screen-menu {
  background: #0D0D0B;
  min-height: 100vh;
  justify-content: space-between;
}

/* hazard stripes top */
.menu-hazard {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #FFC700 0px, #FFC700 20px,
    #0D0D0B 20px, #0D0D0B 40px
  );
  flex-shrink: 0;
}

.menu-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px 32px;
  gap: 0;
  border-bottom: 1px solid #1E1E1A;
}

.menu-trucks {
  font-size: 42px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 12px rgba(255,199,0,0.3));
}

.menu-brand { display: flex; flex-direction: column; gap: 6px; }

.menu-brand-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #FFC700;
  text-transform: uppercase;
}

.menu-title {
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -1.5px;
  line-height: 1;
}

.menu-fleet-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #666660;
  margin-top: 4px;
}

.fleet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.fleet-dot.red   { background: #ef4444; }
.fleet-dot.green { background: #22c55e; }
.fleet-sep { color: #333330; }

.menu-buttons {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1A1A16;
  border: 1px solid #2A2A24;
  border-radius: 14px;
  padding: 0 16px 0 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
  overflow: hidden;
}
.menu-btn:active {
  background: #222218;
  transform: scale(0.98);
}

.menu-btn-stripe {
  width: 5px;
  align-self: stretch;
  background: #FFC700;
  flex-shrink: 0;
}

.menu-btn-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 16px 0 16px 12px;
}

.menu-btn-text { flex: 1; }

.menu-btn-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.menu-btn-desc {
  font-size: 12px;
  color: #555550;
  margin-top: 2px;
  font-weight: 500;
}

.menu-btn-arrow {
  font-size: 22px;
  color: #FFC700;
  font-weight: 300;
  opacity: 0.8;
}

.menu-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #333330;
  border-top: 1px solid #1A1A16;
  position: relative;
}

.menu-settings-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.menu-settings-btn:active { background: #2A2A24; }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── APP FOOTER ─────────────────────────────────────────────── */
.app-footer {
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.2px;
  border-top: 1px solid var(--card-border);
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.app-footer:active { opacity: 0.6; }
.app-footer.dark {
  color: #333330;
  border-top: 1px solid #1A1A16;
  background: transparent;
}

/* ─── CONTACTS ───────────────────────────────────────────────── */
.contacts-container {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.contacts-group-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 2px 4px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.contact-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(36,129,204,0.22);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.1px;
}

.contact-role {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.contact-phone {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-top: 3px;
  display: inline-block;
}

/* ─── ДОСТУП ЗАКРЫТ ─────────────────────────────────────────── */
.denied-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 24px;
  gap: 12px;
  text-align: center;
}
.denied-icon {
  font-size: 56px;
  margin-bottom: 8px;
}
.denied-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.3px;
}
.denied-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.denied-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 24px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
}

/* ─── TRASH ──────────────────────────────────────────────────── */
.trash-dot { font-size: 9px; margin-left: 4px; }
.trash-icon-small { font-size: 9px; }

/* ─── STATS DARK THEME ───────────────────────────────────────── */
#screen-stats {
  background: #0D0D0B;
}

#screen-stats .header {
  background: #0D0D0B;
  border-bottom: 1px solid #1E1E1A;
  color: #FFFFFF;
}

#screen-stats .header span {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

#screen-stats .nav-btn {
  color: #FFC700;
}
#screen-stats .nav-btn:active {
  background: #1A1A16;
}

#screen-stats .stats-content {
  background: #0D0D0B;
}

#screen-stats .stats-days-header div {
  color: #444440;
  font-size: 9px;
  letter-spacing: 0.8px;
}

#screen-stats .stats-driver-row {
  background: #1A1A16;
  border: 1px solid #222220;
}

#screen-stats .stats-driver-name {
  color: #CCCCCC;
  font-size: 11px;
}

#screen-stats .stats-day-cell.s-off { color: #333330; }
#screen-stats .stats-day-cell.s-day { color: #FFC700; }
#screen-stats .stats-day-cell.s-night { color: #3B9EFF; }

#screen-stats .stats-total {
  background: #1A1A16;
  border: 1px solid #222220;
}

#screen-stats .stats-total-name {
  color: #CCCCCC;
}

#screen-stats .pill-day   { background: rgba(255,199,0,0.15);  color: #FFC700; }
#screen-stats .pill-night { background: rgba(59,158,255,0.15); color: #3B9EFF; }
#screen-stats .pill-total { background: #222220;               color: #666660; }
#screen-stats .pill-trash { background: rgba(34,197,94,0.15);  color: #22c55e; }

#screen-stats .export-btn {
  background: #FFC700;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(255,199,0,0.25);
}
#screen-stats .export-btn:active { opacity: 0.82; }

/* ─── STATISTICS ─────────────────────────────────────────────── */
.stats-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.stats-days-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 2px;
  padding: 0 4px;
}
.stats-days-header div {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
}
.stats-day-name {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stats-day-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.stats-driver-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 2px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  align-items: center;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}
.stats-trash-row { opacity: 0.82; }

.stats-driver-name {
  font-size: 11px;
  font-weight: 700;
  padding-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground);
}

.stats-day-cell {
  text-align: center;
  font-size: 14px;
  padding: 2px 0;
}
.stats-day-cell.s-off   { color: var(--card-border); font-size: 11px; }
.stats-day-cell.s-day   { color: var(--warning); }
.stats-day-cell.s-night { color: var(--accent); }

/* ─── TOTALS ─────────────────────────────────────────────────── */
.stats-total {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.stats-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stats-total-name {
  font-size: 14px;
  font-weight: 700;
  min-width: 70px;
  color: var(--foreground);
}

.stats-total-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.1px;
}
.pill-day   { background: var(--warning-subtle);    color: var(--warning); }
.pill-night { background: var(--accent-subtle);     color: var(--accent); }
.pill-total { background: var(--muted-bg);          color: var(--muted); }
.pill-trash { background: var(--success-subtle);    color: var(--success); }

/* ─── EXPORT ─────────────────────────────────────────────────── */
.export-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: opacity 0.15s;
  box-shadow: 0 2px 10px rgba(36,129,204,0.28);
  letter-spacing: 0.1px;
}
.export-btn:active { opacity: 0.82; }
