/* ═══════════════════════════════════════════════
   CREW APP — Monochrome Dev Dark Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #161616;
  --border: #1f1f1f;
  --border-2: #2a2a2a;
  --text: #ffffff;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --text-4: #404040;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
  --info: #3b82f6;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body { background: var(--surface); font-family: var(--font-sans); color: var(--text); }
body { display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; min-height: 100vh; width: 1440px; margin: 0 auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea { font-family: inherit; color: inherit; background: none; border: none; outline: none; }

/* ── Device Frame ── */
.device-frame {
  width: 412px;
  background: #000;
  border-radius: 56px;
  padding: 12px;
  box-shadow: 0 0 0 2px #1a1a1a, 0 40px 80px rgba(0,0,0,.6), 0 0 0 12px #0d0d0d;
  position: relative;
}
.device-screen {
  width: 388px;
  height: 844px;
  background: var(--bg);
  border-radius: 46px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.dynamic-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 34px; background: #000; border-radius: 20px; z-index: 20;
}
.status-bar {
  height: 54px; padding: 18px 32px 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: #fff; position: relative; z-index: 10;
  flex-shrink: 0;
}
.status-bar .sb-icons { display: flex; gap: 6px; align-items: center; }
.home-indicator {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; background: #fff; border-radius: 3px; opacity: .9; z-index: 25;
}

/* ── Screen Content Area ── */
.screen-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.screen-content::-webkit-scrollbar { display: none; }

/* ── Login Screen ── */
.login-screen { padding: 60px 24px 24px; display: flex; flex-direction: column; height: 100%; }
.login-brand { text-align: center; margin-bottom: 40px; }
.login-brand .brand-mark {
  width: 48px; height: 48px; border: 1px solid var(--border-2); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 20px; font-weight: 600; margin-bottom: 12px;
}
.login-brand .brand-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--text-2); text-transform: uppercase; }
.login-heading { font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-align: center; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text-3); text-align: center; margin-bottom: 32px; }
.crew-card {
  background: var(--surface-2); border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s;
}
.crew-card:active { transform: scale(0.98); }
.crew-card.selected { border-color: #fff; }
.crew-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.crew-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.crew-card-name { font-size: 16px; font-weight: 600; }
.crew-card-rank { font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
.crew-card-meta {
  display: flex; gap: 12px; font-size: 11px; color: var(--text-3); font-family: var(--font-mono);
  letter-spacing: .02em;
}
.login-error { color: var(--danger); font-size: 12px; text-align: center; margin-top: 8px; }
.login-footer { margin-top: auto; }

/* ── Primary Button ── */
.btn-primary {
  width: 100%; height: 48px; background: #fff; color: #000;
  font-size: 14px; font-weight: 600; border-radius: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled, .btn-primary.disabled { background: #333; color: #666; cursor: default; }
.btn-primary:disabled:active, .btn-primary.disabled:active { transform: none; }

/* ── Secondary Button ── */
.btn-secondary {
  width: 100%; height: 48px; background: transparent; color: #fff;
  border: 1px solid #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s;
}
.btn-secondary:active { transform: scale(0.98); }

/* ── Crew Header ── */
.crew-header {
  padding: 8px 20px 10px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.crew-header-left { display: flex; align-items: center; gap: 8px; }
.crew-header-vessel { font-size: 14px; font-weight: 600; }
.connectivity-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.connectivity-dot.online { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.connectivity-dot.offline { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.crew-header-right { display: flex; align-items: center; gap: 8px; }
.crew-header-rank { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .02em; }
.crew-header-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; cursor: pointer;
}

/* ── Tab Bar ── */
.crew-tab-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(0,0,0,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2); border-radius: 22px;
  padding: 10px 8px 12px; display: flex; justify-content: space-around; align-items: center;
  z-index: 15;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-3); padding: 6px 12px; position: relative; flex: 1;
  cursor: pointer; background: none; border: none;
}
.tab-item.active { color: #fff; }
.tab-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.tab-badge {
  position: absolute; top: 0; right: calc(50% - 18px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); border-radius: 8px; border: 1.5px solid #000;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ── Bottom Sheet ── */
.bottom-sheet-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 30;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.bottom-sheet-overlay.visible { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 31;
  background: var(--surface-2); border-top: 1px solid var(--border-2);
  border-radius: 20px 20px 0 0; padding: 24px 20px 40px;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.bottom-sheet-overlay.visible .bottom-sheet { transform: translateY(0); }
.bottom-sheet-handle {
  width: 36px; height: 4px; background: var(--text-4); border-radius: 2px;
  margin: 0 auto 20px;
}
.bottom-sheet-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.bottom-sheet-info { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); margin-bottom: 4px; }
.bottom-sheet-vessel { font-size: 12px; color: var(--text-2); margin-bottom: 16px; }

/* ── Toast ── */
.toast-container {
  position: absolute; bottom: 90px; left: 20px; right: 20px; z-index: 50;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-md);
  padding: 12px 16px; font-size: 13px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .2s ease-out;
  pointer-events: auto;
}
.toast.toast-exit { animation: toastOut .2s ease-in forwards; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(10px); } }

/* ── Task Cards ── */
.task-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; position: relative; overflow: hidden; cursor: pointer;
  transition: transform .05s;
}
.task-card:active { transform: scale(0.99); }
.task-card.overdue { border-color: #3a1414; }
.task-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.task-card-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 6px; border-radius: 4px;
  background: #000; border: 1px solid var(--border-2); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.tag.type-maint { color: #e4e4e4; }
.tag.type-insp { color: #e4e4e4; }
.tag.type-drill { color: #e4e4e4; }
.tag.type-defect { color: #e4e4e4; }
.tag.pri-critical { background: #3a0d0d; border-color: #6d1717; color: #ff6b6b; }
.tag.pri-high { background: #2a0d0d; border-color: #4d1717; color: #ff7a7a; }
.tag.pri-medium { background: #2a1f0a; border-color: #4d3a14; color: #ffb020; }
.tag.pri-low { background: #0e1a12; border-color: #173a24; color: #5cc98a; }
.tag.controlled { background: #0e1424; border-color: #173a5c; color: #8ab8ff; }
.tag.status-complete { background: #0e1a12; border-color: #173a24; color: var(--ok); }
.task-card-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 6px; }
.task-card-sub { font-size: 12px; color: var(--text-3); line-height: 1.4; font-family: var(--font-mono); letter-spacing: .01em; }
.task-card-meta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--border-2);
}
.task-card-meta-left { display: flex; align-items: center; gap: 10px; }
.task-due {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
}
.task-due.overdue { color: var(--danger); }
.task-status-indicator {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-2);
  display: flex; align-items: center; gap: 5px;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.status-dot.assigned { background: var(--text-2); }
.status-dot.in-progress { background: var(--info); }
.status-dot.reported { background: var(--ok); }
.task-card-chevron { color: var(--text-3); flex-shrink: 0; }

/* ── Section Dividers ── */
.section-divider { padding: 14px 20px 6px; display: flex; align-items: center; gap: 10px; }
.section-title {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ── Task Type Tabs ── */
.type-tabs { padding: 12px 20px 0; display: flex; gap: 4px; overflow-x: auto; flex-shrink: 0; }
.type-tabs::-webkit-scrollbar { display: none; }
.type-tab {
  padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 500;
  color: var(--text-3); white-space: nowrap; display: flex; align-items: center; gap: 6px;
  border: 1px solid transparent; cursor: pointer; background: none;
}
.type-tab.active { background: #fff; color: #000; }
.type-tab .tab-count {
  font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,.08); color: var(--text-3);
}
.type-tab.active .tab-count { background: rgba(0,0,0,.1); color: #000; }

/* ── Offline Banner ── */
.offline-banner {
  margin: 0 20px; padding: 10px 12px;
  background: linear-gradient(180deg, #1a0808 0%, #0f0505 100%);
  border: 1px solid #3a1010; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text);
  animation: slideDown .2s ease-out;
}
.offline-banner-icon { color: var(--danger); flex-shrink: 0; }

/* ── Sync Banner ── */
.sync-banner {
  margin: 10px 20px 0; padding: 10px 12px;
  background: linear-gradient(180deg, #1a1408 0%, #0f0c05 100%);
  border: 1px solid #3a2f10; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px;
}
.sync-banner-icon {
  width: 28px; height: 28px; background: #000; border: 1px solid #3a2f10; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--warn);
}
.sync-banner-text { flex: 1; font-size: 12px; line-height: 1.35; }
.sync-banner-text b { font-weight: 600; }
.sync-banner-muted { color: var(--text-3); display: block; font-family: var(--font-mono); font-size: 10px; margin-top: 2px; letter-spacing: .02em; }

/* ── Stats Row ── */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 12px 20px 0; }
.stat-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px;
}
.stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-family: var(--font-mono); }
.stat-value.danger { color: var(--danger); }
.stat-value.warn { color: var(--warn); }
.stat-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; font-family: var(--font-mono); }

/* ── Task Detail ── */
.detail-header { padding: 8px 20px 12px; display: flex; align-items: center; gap: 12px; }
.detail-back { cursor: pointer; color: var(--text-2); display: flex; padding: 8px; margin: -8px; }
.detail-heading { font-size: 18px; font-weight: 600; letter-spacing: -.01em; flex: 1; }
.detail-section { padding: 0 20px 16px; }
.detail-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.detail-desc { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.controlled-banner {
  margin: 0 20px 12px; padding: 10px 12px;
  background: linear-gradient(180deg, #1a1508 0%, #0f0c05 100%);
  border: 1px solid #4d3a14; border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600; color: var(--warn);
  display: flex; align-items: center; gap: 8px;
}
.instructions-list { list-style: none; counter-reset: steps; }
.instructions-list li {
  counter-increment: steps; position: relative; padding: 8px 0 8px 32px;
  font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border);
}
.instructions-list li:last-child { border-bottom: none; }
.instructions-list li::before {
  content: counter(steps); position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3);
}
.attachment-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-2); cursor: pointer; margin-right: 8px; margin-bottom: 8px;
}
.attachment-chip:active { background: var(--surface-3); }

/* ── Checklist ── */
.checklist-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-toggle {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border-2);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all .1s; margin-top: 2px;
}
.checklist-toggle.pass { background: var(--ok); border-color: var(--ok); color: #000; }
.checklist-toggle.fail { background: var(--danger); border-color: var(--danger); color: #fff; }
.checklist-toggle.na { background: var(--text-4); border-color: var(--text-4); color: #fff; font-size: 9px; font-weight: 600; }
.checklist-toggle:active { transform: scale(0.9); }
.checklist-content { flex: 1; min-width: 0; }
.checklist-step { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.checklist-step .required-mark { color: var(--danger); }
.checklist-expected { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.checklist-value-input {
  width: 100%; padding: 8px; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
}
.checklist-value-input:focus { border-color: var(--text-3); }

/* ── Progress Bar ── */
.progress-bar-track { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #fff; border-radius: 2px; transition: width .3s ease; }

/* ── Sticky Bottom Action ── */
.sticky-bottom {
  padding: 16px 20px; background: var(--bg); border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Evidence Capture ── */
.evidence-section { margin-bottom: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-thumb {
  aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text-3); overflow: hidden; position: relative;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 6px;
  background: rgba(0,0,0,.8); font-size: 9px; color: var(--text-2);
  font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.add-photo-btn {
  aspect-ratio: 1; background: var(--bg); border: 1px dashed var(--border-2); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 10px; color: var(--text-3); cursor: pointer;
  font-family: var(--font-mono); letter-spacing: .02em;
}
.add-photo-btn:active { background: var(--surface-2); }
.reading-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.reading-row:last-child { border-bottom: none; }
.reading-label { font-size: 13px; color: var(--text-2); flex: 1; }
.reading-input {
  width: 80px; padding: 8px; text-align: right;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text);
}
.reading-input:focus { border-color: var(--text-3); }
.reading-unit { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); width: 36px; }
.evidence-notes {
  width: 100%; padding: 12px; min-height: 80px; resize: vertical;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); line-height: 1.5;
}
.evidence-notes:focus { border-color: var(--text-3); }
.required-banner {
  margin: 0 20px 12px; padding: 10px 12px;
  background: linear-gradient(180deg, #1a0808 0%, #0f0505 100%);
  border: 1px solid #4d1717; border-radius: var(--radius-md);
  font-size: 12px; color: var(--danger);
  display: flex; align-items: center; gap: 8px;
}

/* ── Submit Review ── */
.review-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 12px;
}
.review-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.review-value { font-size: 14px; color: var(--text); }
.review-value.mono { font-family: var(--font-mono); }

/* ── Sync Status Screen ── */
.sync-toggle-wrapper {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
}
.sync-toggle-label { font-size: 14px; font-weight: 500; }
.toggle-switch {
  width: 52px; height: 28px; border-radius: 14px; padding: 2px; cursor: pointer;
  background: var(--text-4); transition: background .2s; position: relative;
}
.toggle-switch.on { background: var(--ok); }
.toggle-knob {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  transition: transform .2s; position: absolute; top: 2px; left: 2px;
}
.toggle-switch.on .toggle-knob { transform: translateX(24px); }
.sync-status-indicator {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
}
.sync-status-dot { width: 12px; height: 12px; border-radius: 50%; }
.sync-status-dot.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.sync-status-dot.offline { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.sync-item {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px; margin-bottom: 8px;
}
.sync-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sync-item-title { font-size: 13px; font-weight: 500; }
.sync-item-type { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.sync-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.sync-badge.pending { background: #2a1f0a; border: 1px solid #4d3a14; color: var(--warn); }
.sync-badge.syncing { background: #0e1424; border: 1px solid #173a5c; color: var(--info); }
.sync-badge.synced { background: #0e1a12; border: 1px solid #173a24; color: var(--ok); }
.sync-badge.failed { background: #2a0d0d; border: 1px solid #4d1717; color: var(--danger); }
.merge-outcome {
  margin-top: 8px; padding: 8px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.merge-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); padding: 3px 0; }
.merge-winner { font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.merge-winner.crew { background: #0e1a12; color: var(--ok); }
.merge-winner.shore { background: #0e1424; color: var(--info); }

/* ── Notification Cards ── */
.notif-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 8px; cursor: pointer; display: flex; gap: 12px;
  transition: transform .05s;
}
.notif-card:active { transform: scale(0.99); }
.notif-card.unread { border-left: 2px solid #fff; }
.notif-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-2);
}
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.notif-body { font-size: 12px; color: var(--text-3); line-height: 1.4; margin-bottom: 6px; }
.notif-footer { display: flex; justify-content: space-between; align-items: center; }
.notif-time { font-size: 10px; color: var(--text-4); font-family: var(--font-mono); }
.notif-deferred {
  font-size: 10px; color: var(--warn); font-family: var(--font-mono);
  display: flex; align-items: center; gap: 4px;
}
.mark-read-btn {
  font-size: 10px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .04em;
  cursor: pointer; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px;
  background: none; text-transform: uppercase;
}
.mark-read-btn:active { background: var(--surface-3); }

/* ── Empty States ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 40px; text-align: center; color: var(--text-3);
}
.empty-state-icon { margin-bottom: 16px; opacity: .4; }
.empty-state-text { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--text-2); }
.empty-state-sub { font-size: 12px; font-family: var(--font-mono); }

/* ── Scrollable Task List ── */
.task-list { padding: 8px 20px 120px; display: flex; flex-direction: column; gap: 10px; }

/* ── Animations ── */
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes cardFlash { 0% { background: var(--surface-2); } 30% { background: rgba(255,255,255,.08); } 100% { background: var(--surface-2); } }
@keyframes togglePulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes slideInUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.anim-slide-down { animation: slideDown .2s ease-out; }
.anim-fade-in { animation: fadeIn .2s ease-out; }
.task-card:active { animation: cardFlash .15s ease-out; }
.checklist-toggle:active { animation: togglePulse .1s ease-out; }
.notif-card:active { animation: cardFlash .15s ease-out; }
.sync-item { animation: slideInUp .2s ease-out; }
.photo-thumb { animation: slideInUp .2s ease-out; }

/* ── Filter Row ── */
.filter-row { padding: 10px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.filter-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

/* ── Sync Footer ── */
.sync-footer {
  padding: 16px 20px; font-size: 12px; color: var(--text-3); text-align: center;
  font-family: var(--font-mono); letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── Retry Button ── */
.retry-btn {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 12px; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  color: #fff; cursor: pointer; text-transform: uppercase; margin-top: 8px;
}
.retry-btn:active { background: var(--surface-2); }

/* ── Submitted Badge ── */
.submitted-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: #0e1a12; border: 1px solid #173a24; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ok);
}

/* ── Photo Capture Feedback ── */
.photo-added-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
  background: #0e1a12; border: 1px solid #173a24; border-radius: 4px;
  font-size: 10px; color: var(--ok); font-family: var(--font-mono);
  animation: fadeIn .2s;
}
