/* ── 月份頁籤（檢視班表 view）──────────────────────────────── */
.m-month-tabs {
  display: flex; flex-shrink: 0;
  background: var(--surface); border-bottom: 0.5px solid var(--border);
}
.m-month-tab {
  flex: 1; padding: 14px 8px;
  border: none; background: none;
  font-family: var(--sans); cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center; justify-content: center;
}
.m-month-tab:active { background: rgba(0,122,255,.05); }
.m-tab-month { font-size: 16px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.3px; }
.m-month-tab.active { border-bottom-color: var(--accent); }
.m-month-tab.active .m-tab-month { color: var(--accent); }
.m-month-upload-btn {
  flex: 0 0 64px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-left: 0.5px solid var(--border);
  color: var(--accent); cursor: pointer;
  transition: background .12s;
}
.m-month-upload-btn:active { background: rgba(0,122,255,.06); }

.m-api-status-bar {
  background: rgba(255,149,0,.07); border: 1px solid rgba(255,149,0,.28);
  color: var(--duty-long-text); border-radius: 12px;
  padding: 10px 14px; font-family: var(--sans); font-size: 12px;
  margin-bottom: 12px; line-height: 1.6; display: none;
}
.m-api-status-bar.show { display: block; }
.m-api-status-bar.error { background: rgba(255,59,48,.05); border-color: rgba(255,59,48,.22); color: var(--danger); }
.m-error-msg {
  background: rgba(255,59,48,.05); border: 1px solid rgba(255,59,48,.2);
  color: var(--danger); border-radius: 12px;
  padding: 12px 14px; font-family: var(--sans); font-size: 13px;
  line-height: 1.6; margin-bottom: 12px; display: none;
}
.m-error-msg.show { display: block; }
.m-processing {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.06);
  margin-bottom: 14px; display: none;
}
.m-processing.show { display: block; }
.m-processing .processing-step { padding: 14px 18px; }
.m-processing .processing-step + .processing-step {
  border-top: 0.5px solid var(--hairline);
}
.m-processing .step-text { font-family: var(--sans); }
.m-processing .step-text strong { color: var(--text); font-size: 13px; }
.m-processing .step-text.active strong { color: var(--accent); }
.m-processing .step-text.done strong   { color: var(--success); }
.m-processing .step-text.pending strong{ color: var(--text-dim); }
.m-processing .step-text span { color: var(--text-dim); font-size: 11px; font-family: var(--sans); }
.m-processing .step-icon.active  { border-color: var(--accent); color: var(--accent); }
.m-processing .step-icon.done    { background: rgba(52,199,89,.12); border-color: var(--success); color: var(--success); }
.m-processing .step-icon.pending { border-color: rgba(199,199,204,.9); color: var(--text-dim); }

/* ── 航班資訊面板（檢視班表底部）────────────────────────────── */
.m-flight-info-panel {
  background: var(--surface); border-top: 0.5px solid var(--hairline);
  padding: 12px 16px; flex-shrink: 0;
  height: 120px; overflow-y: auto; scrollbar-width: none;
  font-family: var(--sans);
}
.m-flight-info-panel::-webkit-scrollbar { display: none; }
.m-fip-empty {
  font-size: 13px; color: var(--text-dim);
  text-align: center; padding: 8px 0; line-height: 1.6;
}
.m-fip-header {
  font-size: 17px; font-weight: 600; color: var(--text);
  margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.m-fip-duty { color: var(--accent); font-size: 16px; }
.m-fip-leg {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 4px 0; font-size: 16px; color: var(--text);
  border-top: 0.5px solid var(--hairline);
}
.m-fip-leg:first-of-type { border-top: none; }
.m-fip-route { font-weight: 700; color: var(--indigo); }
.m-fip-time  { color: var(--text-dim); font-size: 14px; }
.m-fip-legtime { color: var(--accent2); font-size: 15px; font-weight: 600; margin-left: auto; }
.m-fip-worktime {
  white-space: nowrap;
  font-family: var(--mono); font-size: 14px;
}
.m-fip-worktime .wt-in  { color: var(--success2); }
.m-fip-worktime .wt-out { color: var(--accent2); }

/* 編輯按鈕（航班資訊面板 header 右側）*/
.m-fip-edit-btn {
  margin-left: auto; flex-shrink: 0;
  padding: 3px 10px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 7px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
  transition: background .12s;
}
.m-fip-edit-btn:active { background: rgba(0,122,255,.08); }

/* 當月總飛時摘要 */
.m-fip-month-summary {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; gap: 4px;
}
.m-fip-month-row {
  display: flex; align-items: baseline; gap: 10px;
}
.m-fip-month-label {
  font-size: 13px; color: var(--text-dim); font-weight: 500;
}
.m-fip-month-ft {
  font-size: 26px; font-weight: 700; color: var(--text);
  font-family: var(--mono); letter-spacing: -0.5px;
}
.m-fip-month-stats {
  font-size: 12px; color: var(--text-dim);
}

/* ── 航班資訊 debug tab ──────────────────────────────────────── */
#m-view-flights { background: var(--bg); }
#m-view-flights.active { display: flex; flex-direction: column; }
.m-flights-debug-header {
  background: var(--surface); border-bottom: 0.5px solid var(--hairline);
  padding: 10px 16px;
  font-family: var(--sans); font-size: 12px; color: var(--text-dim); font-weight: 500;
  flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.m-export-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--accent); background: none; border: none; cursor: pointer;
  padding: 4px 0; flex-shrink: 0;
}
.m-export-btn:active { opacity: 0.6; }
.m-flights-debug-list {
  flex: 1; overflow-y: auto; padding: 10px 12px 20px;
  -webkit-overflow-scrolling: touch;
}
.m-fdl-empty {
  text-align: center; color: var(--text-dim); font-size: 13px; padding: 48px 0;
  font-family: var(--sans);
}
.m-fdl-row {
  background: var(--surface); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  cursor: pointer;
  transition: background .12s;
}
.m-fdl-row:active { background: var(--bg); }
.m-fdl-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
  font-family: var(--sans);
}
.m-fdl-date {
  font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.m-fdl-duty {
  font-size: 12px; color: var(--indigo); font-weight: 600; flex: 1;
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-fdl-edit-btn {
  flex-shrink: 0; padding: 3px 9px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 7px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
}
.m-fdl-leg {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); padding: 2px 0;
}
.m-fdl-route { font-weight: 700; color: var(--indigo); font-family: var(--mono); }
.m-fdl-time  { color: var(--text-dim); font-size: 12px; font-family: var(--mono); }
.m-fdl-legtime { color: var(--accent2); font-size: 12px; font-weight: 600; margin-left: auto; font-family: var(--mono); }
.m-fdl-worktime {
  margin-top: 4px; padding-top: 4px;
  border-top: 0.5px solid var(--hairline);
  font-size: 12px; font-family: var(--mono);
  display: flex; gap: 10px;
}
.m-fdl-wt-in  { color: var(--success2); }
.m-fdl-wt-out { color: var(--accent2); }
.m-fdl-duty-error {
  background: rgba(255,59,48,.1); border: 1px solid rgba(255,59,48,.35);
  color: var(--danger); padding: 8px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 8px;
}

/* ── 上傳 overlay（當該月無資料時覆蓋日曆區）──────────────── */
.m-upload-overlay {
  flex: 1; display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px 16px; gap: 14px;
  background: var(--bg); overflow-y: auto;
}
.m-upload-overlay.active { display: flex; }
.m-upload-overlay-icon {
  width: 80px; height: 80px;
  background: rgba(0,122,255,.1); border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
}
.m-upload-overlay-icon svg { width: 40px; height: 40px; fill: var(--accent); }
.m-upload-overlay-title {
  font-family: var(--sans); font-size: 19px; font-weight: 700;
  color: var(--text); text-align: center; line-height: 1.35;
}
.m-upload-overlay-sub {
  font-family: var(--sans); font-size: 14px; color: var(--text-dim);
  text-align: center; line-height: 1.5;
}
.m-upload-overlay-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 14px; font-family: var(--sans);
  font-size: 17px; font-weight: 600; cursor: pointer;
  min-height: 52px;
  box-shadow: 0 4px 16px rgba(0,122,255,.28);
  transition: transform .1s, background .15s;
}
.m-upload-overlay-btn:active { transform: scale(.97); background: var(--accent-press); }
.m-upload-overlay-btn svg { width: 20px; height: 20px; fill: currentColor; }
.m-upload-overlay-hint {
  font-family: var(--sans); font-size: 12px; color: var(--text-dim);
  text-align: center;
}
.m-upload-overlay-msgs { width: 100%; max-width: 360px; }
/* ── Cache restore card（mobile）── */
.m-cache-card {
  margin: 0 16px 12px;
  background: var(--surface); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 10px;
}
.m-cache-info { font-family: var(--sans); font-size: 12px; color: var(--text-dim); }
.m-cache-actions { display: flex; gap: 8px; }
.m-cache-restore-btn {
  flex: 1; padding: 11px; border: none; border-radius: 10px;
  background: rgba(255,120,0,.12); color: var(--duty-long-text);
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.m-cache-restore-btn:active { background: rgba(255,120,0,.22); }
.m-cache-clear-btn {
  padding: 11px 16px; border: none; border-radius: 10px;
  background: rgba(142,142,147,.12); color: var(--text-2);
  font-family: var(--sans); font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.m-cache-clear-btn:active { background: rgba(142,142,147,.22); }

/* ── Per-month cache items ───────────────────────────────── */
.m-cache-month-list { display: flex; flex-direction: column; }
.m-cache-month-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.m-cache-month-item:last-child { border-bottom: none; }
.m-cache-month-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.m-cache-month-label { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); }
.m-cache-month-detail { font-family: var(--sans); font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cache-month-btns { display: flex; gap: 6px; flex-shrink: 0; margin-left: 10px; }
.m-cache-month-btns .m-cache-restore-btn { flex: none; padding: 8px 14px; font-size: 12px; }
.m-cache-month-btns .m-cache-clear-btn { padding: 8px 12px; font-size: 12px; }
.m-cache-all-row { padding-top: 10px; }
.m-cache-restore-all-btn {
  width: 100%; padding: 11px; border: none; border-radius: 10px;
  background: rgba(0,122,255,.1); color: var(--accent);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.m-cache-restore-all-btn:active { background: rgba(0,122,255,.2); }

/* ── 骨架動畫（分析中佔位符）─────────────────────────────── */
@keyframes m-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.m-skel-duty {
  height: 12px; margin-top: 4px; border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(180,180,190,.22) 25%,
    rgba(180,180,190,.44) 50%,
    rgba(180,180,190,.22) 75%
  );
  background-size: 200% 100%;
  animation: m-shimmer 1.4s infinite linear;
}
/* 讓骨架格子也有輕微脈動 */
.m-cal-scroll .cal-cell.m-skel-cell {
  animation: m-cell-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes m-cell-pulse {
  from { opacity: .75; }
  to   { opacity: 1; }
}

/* ── 分析進度卡（在航班資訊面板內）──────────────────────── */
.m-sched-analyzing {
  padding: 0;
}
#mFlightInfoPanel .m-processing {
  margin-bottom: 0; border-radius: 0; box-shadow: none;
  flex-direction: row; align-items: center; justify-content: center;
}
#mFlightInfoPanel .m-processing.show { display: flex; }
#mFlightInfoPanel .m-processing .processing-step {
  flex: 1; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 4px; border-top: none; gap: 8px;
}
#mFlightInfoPanel .m-processing .processing-step + .processing-step { border-top: none; }
#mFlightInfoPanel .m-processing .step-text { text-align: center; }
#mFlightInfoPanel .m-processing .step-text span { display: none; }
#mFlightInfoPanel .m-processing .step-text strong {
  font-size: 11px; font-weight: 500; margin-bottom: 0;
}
.m-step-arrow {
  color: var(--text-faint); font-size: 20px; flex-shrink: 0;
  align-self: flex-start; padding-top: 4px; line-height: 27px;
}
#mFlightInfoPanel.analyzing .m-fip-empty,
#mFlightInfoPanel.analyzing .m-fip-header,
#mFlightInfoPanel.analyzing .m-fip-leg { display: none; }

/* ── 檢視班表 view ─────────────────────────────────────────── */
#m-view-schedule {
  background: var(--bg);
}
#m-view-schedule.active { display: flex; flex-direction: column; }
.m-cal-scroll {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  padding: 12px 12px 20px;
}

/* ── 我的（帳號 + 設定）view ────────────────────────────────── */
#m-view-account { background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#m-view-account.active { display: flex; flex-direction: column; }
.m-settings-block { padding: 0 0 8px; }
.m-settings-version {
  padding: 8px 16px 16px;
  font-family: var(--mono); font-size: 10px;
  color: rgba(142,142,147,.5); text-align: center;
}

/* ── 帳號 view：未登入 ──────────────────────────────────────── */
.m-account-logged-out {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 16px; padding: 40px 24px 24px;
}
.m-account-logged-out svg { width: 64px; height: 64px; fill: var(--text-faint); }
.m-account-logged-out-title {
  font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--text);
}
.m-account-logged-out-sub {
  font-family: var(--sans); font-size: 14px; color: var(--text-dim);
  text-align: center; line-height: 1.6;
}
.m-google-signin-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--hairline);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; margin-top: 8px; transition: background .15s;
}
.m-google-signin-btn:active { background: var(--surface2); }
.m-google-signin-btn:disabled { opacity: .5; cursor: not-allowed; }
.m-google-signin-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.m-account-logged-out-links {
  display: flex; gap: 16px; margin-top: 12px; justify-content: center;
}
.m-account-policy-link {
  font-family: var(--sans); font-size: 13px; color: var(--accent);
  text-decoration: none; padding: 6px 12px; border-radius: 8px;
  transition: background .15s;
}
.m-account-policy-link:active { background: rgba(0,122,255,.08); }

/* ── 帳號 view：已登入 ──────────────────────────────────────── */
.m-account-profile {
  padding: 0 0 24px; display: flex; flex-direction: column; gap: 0;
}
.m-account-section-title {
  padding: 16px 16px 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px;
}
.m-account-group {
  margin: 0 16px;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
}
.m-account-user-card {
  margin: 0 16px; background: var(--surface); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  padding: 16px; display: flex; align-items: center; gap: 14px;
}
.m-account-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(0,122,255,.15); flex-shrink: 0;
}
.m-account-avatar-placeholder {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 700; color: #fff;
}
.m-account-user-name { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--text); }
.m-account-user-email { font-family: var(--sans); font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.m-account-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-top: 0.5px solid var(--hairline);
}
.m-account-row:first-child { border-top: none; }
.m-account-row-label { font-family: var(--sans); font-size: 15px; color: var(--text); }
.m-account-row-val { font-family: var(--sans); font-size: 13px; color: var(--text-dim); }
.m-account-sync-badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 3px 9px; border-radius: 8px;
}
.m-account-sync-badge.synced { color: var(--success); background: rgba(52,199,89,.1); }
.m-account-sync-badge.syncing { color: var(--accent); background: rgba(0,122,255,.1); }
.m-account-sync-badge.error { color: var(--danger); background: rgba(255,59,48,.1); }
.m-account-signout-btn {
  margin: 0 16px; padding: 14px; border-radius: 14px;
  background: var(--surface); border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--danger);
  cursor: pointer; text-align: center; transition: background .15s;
}
.m-admin-stats-btn:active { background: rgba(255,59,48,.08); }

/* ── 班表內容 modal：日曆預覽 ────────────────────────────────── */
.ld-section { margin-bottom: 20px; }
.ld-month-title {
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 6px;
}
.ld-dow-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 2px;
}
.ld-dow {
  font-family: var(--sans); font-size: 9px; color: var(--text-dim);
  text-align: center; padding: 2px 0;
}
.ld-dow.ld-sun { color: var(--danger); }
.ld-dow.ld-sat { color: var(--accent); }
.ld-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ld-cell {
  border-radius: 5px; padding: 3px 2px; min-height: 38px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface2);
}
.ld-cell.ld-empty { background: transparent; }
.ld-num {
  font-family: var(--mono); font-size: 10px; color: var(--text-dim); line-height: 1.2;
}
.ld-num.ld-sun { color: var(--danger); }
.ld-num.ld-sat { color: var(--accent); }
.ld-duty {
  font-family: var(--mono); font-size: 8px; font-weight: 600;
  color: var(--text); text-align: center; margin-top: 1px;
  word-break: break-all; line-height: 1.2;
}
.ld-cell.ld-flight  { background: rgba(52,199,89,.20); }
.ld-cell.ld-standby { background: rgba(255,196,0,.28); }
.ld-cell.ld-ground  { background: rgba(0,199,140,.20); }
.ld-cell.ld-leave   { background: rgba(255,45,85,.12); }
.ld-cell.ld-holiday { background: rgba(0,122,255,.14); }
.ld-no-data {
  font-family: var(--sans); font-size: 13px; color: var(--text-dim);
  text-align: center; padding: 20px 0;
}

/* ── 帳號：可編輯欄位 ──────────────────────────────────────── */
.m-account-field-input {
  flex: 1; min-width: 0; max-width: 140px;
  border: none; outline: none; background: transparent;
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: var(--accent); text-align: right;
}
.m-account-field-input::placeholder { color: var(--text-faint); font-weight: 400; }
.m-account-field-input.invalid { color: var(--danger); }
.m-account-field-select {
  border: none; outline: none; background: transparent;
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: var(--accent); cursor: pointer; text-align: right;
}
.m-account-stat-val {
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent);
}

/* ── 設定頁快取卡（移除外框 margin，改由 group 包覆）─────── */
.m-settings-group .m-cache-card {
  margin: 0; border-radius: 0; box-shadow: none;
  padding: 10px 0;
}
.m-settings-group .m-cache-month-item {
  padding: 10px 16px;
}
.m-settings-group .m-cache-all-row { padding: 8px 16px 10px; }
.m-settings-group .m-cache-info { padding: 4px 16px 0; }

/* ===== Redesign V2: feed / filter / cards ===== */

/* ===== Redesign V2: feed sub-header ===== */
.feed-subheader {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; flex-shrink: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 0.5px solid var(--border);
}
.feed-subheader-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--accent);
  font-family: var(--sans); font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 6px 0; position: relative;
}
.feed-matches-badge {
  position: absolute; top: 0; right: -10px;
  background: var(--danger); color: #fff; border-radius: 10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 11px; font-weight: 700; display: none;
  align-items: center; justify-content: center;
  border: 2px solid var(--nav-bg);
}
.feed-subheader-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* ===== Redesign V2: feed empty state ===== */
.feed-empty {
  display: none; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; padding: 20px;
}
.feed-empty.show { display: flex; }
.feed-empty-icon  { font-size: 56px; }
.feed-empty-title { font-size: 18px; font-weight: 700; color: var(--text); }
.feed-empty-sub   { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ===== Redesign V2: filter chips ===== */
.filter-section   { margin-bottom: 20px; }
.filter-sec-label { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 10px; }
.filter-chips     { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip {
  padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--surface2); font-family: var(--sans);
  font-size: 14px; font-weight: 500; color: var(--text-dim); cursor: pointer; transition: all .15s;
}
.f-chip.active { border-color: var(--accent); background: rgba(0,122,255,.08); color: var(--accent); }
.filter-apply {
  width: 100%; padding: 15px; border-radius: 14px; border: none;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
}

/* ===== Redesign V2: swipe / swap card ===== */
.swap-card {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  padding: 18px 18px 16px;
  touch-action: none; cursor: grab; will-change: transform;
  transform-origin: center 115%;
  user-select: none; -webkit-user-select: none;
}
.swap-card:active { cursor: grabbing; }
.swap-card.pos-top   { z-index: 10; }
.swap-card.pos-back1 { z-index: 5;  transform: scale(.95) translateY(14px); pointer-events: none; }
.swap-card.pos-back2 { z-index: 1;  transform: scale(.90) translateY(28px); pointer-events: none; }

/* ===== Redesign V2: rank badge ===== */
.card-rank-badge {
  padding: 4px 12px; border-radius: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.cr-seat { background: rgba(0,122,255,.12); color: var(--accent); }
.cr-vp   { background: rgba(94,92,230,.12); color: var(--purple); }
.cr-crew { background: rgba(48,209,88,.12); color: var(--duty-short-text); }

/* ===== Redesign V2: card calendar mini-grid ===== */
.card-cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 14px; }
.card-cal-dh {
  text-align: center; font-family: var(--mono); font-size: 9px; font-weight: 700;
  color: var(--text-dim); padding: 0 0 4px;
}
.card-cal-dh:first-child { color: var(--danger); }
.card-cal-dh:last-child  { color: var(--accent); }
.card-cal-cell {
  border-radius: 7px; min-height: 36px; display: flex; flex-direction: column;
  align-items: center; padding: 3px 1px 2px;
}
.card-cal-num {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--text-4); line-height: 1.3;
}
.card-cal-cell.has-swap .card-cal-num { color: var(--text); font-weight: 700; }
.card-cal-lbl {
  font-family: var(--mono); font-size: 8px; text-align: center;
  color: var(--text-2); line-height: 1.2; margin-top: 1px; word-break: break-all;
}
.dc-flight  { background: rgba(0,122,255,.10); }
.dc-standby { background: rgba(255,159,10,.14); }
.dc-ground  { background: rgba(48,209,88,.12); }
.dc-leave   { background: rgba(142,142,147,.10); }
.dc-holiday { background: rgba(94,92,230,.10); }

/* ===== Redesign V2: card footer + note ===== */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 0.5px solid var(--border); padding-top: 12px;
}
.cf-label { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.cf-value { font-size: 14px; font-weight: 600; color: var(--text); }
.cf-hours { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text); }
.card-note {
  margin-top: 12px; padding: 10px 12px;
  background: rgba(0,122,255,.05); border-radius: 10px;
  border-left: 3px solid rgba(0,122,255,.3);
  font-family: var(--sans); font-size: 13px; color: var(--text-2);
  line-height: 1.55;
}
