/* ==========================================================================
   ShiftRelay Design System
   Modern, mobile-first design inspired by Linear and WhatsApp.
   Clean sans-serif (Inter), crisp #E2E8F0 borders, ample whitespace,
   >=48px touch targets, explicit button states, zero AI glare.
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;

  /* Surfaces & Canvas */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-elevated: #ffffff;

  /* Typography Colors */
  --text-main: #0f172a;       /* Slate 900 */
  --text-secondary: #334155;  /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-subtle: #94a3b8;     /* Slate 400 */
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;   /* Slate 200 */
  --border-medium: #cbd5e1;   /* Slate 300 */
  --border-focus: #0f172a;    /* Slate 900 */

  /* Brand Accents (Linear + WhatsApp Emerald) */
  --brand-primary: #0f172a;
  --brand-primary-hover: #1e293b;
  --brand-primary-active: #334155;

  --whatsapp-green: #008751;
  --whatsapp-green-hover: #00663D;
  --whatsapp-green-active: #005A35;
  --whatsapp-green-light: #ecfdf5;
  --whatsapp-green-border: #a7f3d0;

  /* Status Colors */
  --status-green-bg: #ecfdf5;
  --status-green-text: #005A35;
  --status-green-border: #a7f3d0;

  --status-yellow-bg: #fffbeb;
  --status-yellow-text: #92400e;
  --status-yellow-border: #fde68a;

  --status-red-bg: #fef2f2;
  --status-red-text: #991b1b;
  --status-red-border: #fecaca;

  --status-blue-bg: #eff6ff;
  --status-blue-text: #1d4ed8;
  --status-blue-border: #bfdbfe;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-main);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* Typography Helpers */
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--whatsapp-green);
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements (Explicit Hover, Active, Loading, >=48px)
   -------------------------------------------------------------------------- */

.primary, .secondary, .voice, .logout,
.button-row button,
button.primary, button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

/* Primary Button (Linear Solid) */
.primary, button.primary {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  border: 1px solid var(--brand-primary);
}

.primary:hover:not(:disabled), button.primary:hover:not(:disabled) {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.primary:active:not(:disabled), button.primary:active:not(:disabled) {
  background-color: var(--brand-primary-active);
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button (Crisp Slate Border) */
.secondary, button.secondary {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.secondary:hover:not(:disabled), button.secondary:hover:not(:disabled) {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-medium);
  color: var(--text-main);
  transform: translateY(-1px);
}

.secondary:active:not(:disabled), button.secondary:active:not(:disabled) {
  background-color: #e2e8f0;
  transform: scale(0.98);
}

/* Voice & Accent Buttons */
.voice {
  background-color: var(--whatsapp-green-light);
  color: var(--whatsapp-green);
  border: 1px solid var(--whatsapp-green-border);
}

.voice:hover:not(:disabled) {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  color: var(--whatsapp-green-hover);
}

.voice:active:not(:disabled) {
  transform: scale(0.98);
}

/* Disabled & Loading State */
button:disabled, .primary:disabled, .secondary:disabled, .voice:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Forms & Inputs (>=48px touch targets, Inter, 1px solid #E2E8F0) */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover, select:hover, textarea:hover {
  border-color: var(--border-medium);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 16px;
}

label.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Login / Onboarding View
   -------------------------------------------------------------------------- */

/* ==========================================================================
   ShiftRelay Modern SaaS Landing Page Experience
   Symmetrical Design Tokens · Mobile-First · Zero Clutter
   ========================================================================== */

.landing-experience,
.login-page {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

/* 1. Sticky Glassmorphic Navbar */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: max(12px, env(safe-area-inset-top, 12px)) 24px 12px;
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 2. Hero Section */
.landing-hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

@media (max-width: 900px) {
  .landing-hero-section {
    grid-template-columns: 1fr;
    padding: 32px 18px 24px;
    gap: 32px;
  }
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-accent-subtle, rgba(0, 168, 98, 0.1));
  border: 1px solid var(--status-green-border);
  color: var(--status-green-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.landing-hero-title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-main);
}

.landing-hero-desc {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-hero-start {
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--brand-primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 14px rgba(0, 135, 81, 0.25) !important;
}

.btn-hero-demo {
  padding: 12px 20px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
}

.landing-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pill-check {
  color: #00A862;
  font-weight: 800;
}

/* 3. Hero Visual Showcase Card */
.landing-hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.hero-image-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-image-wrap {
    height: 280px;
  }
}

.hero-productivity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.floating-telemetry-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  z-index: 2;
}

.floating-telemetry-chip strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.floating-telemetry-chip small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.chip-streak {
  top: 18px;
  left: 18px;
}

.chip-handover {
  bottom: 20px;
  right: 18px;
}

.chip-shield {
  bottom: 20px;
  left: 18px;
}

@media (max-width: 480px) {
  .chip-shield {
    display: none;
  }
}

/* 4. Interactive Access Portal Section */
.landing-portal-section {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 0 24px;
  width: 100%;
}

.portal-card-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
  .portal-card-container {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
}

.portal-tab-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.portal-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.portal-tab-btn:hover {
  color: var(--text-main);
}

.portal-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.portal-card-container .login-panel {
  padding: 0;
  max-width: 100%;
}

/* 5. Clean Landing Footer */
.landing-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 40px 24px 28px;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand-row {
  margin-bottom: 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.footer-tagline {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.footer-link-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-link-col a,
.footer-link-col span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-link-col a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.footer-bottom-row {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-confidentiality-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00A862;
  font-weight: 600;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.login-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.role-cards {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  min-height: 58px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  text-align: left;
  transition: all 0.15s ease;
}

.role-card:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-surface-subtle);
  transform: translateY(-1px);
}

.role-card:active {
  transform: scale(0.99);
}

.role-icon, .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
}

.role-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.role-card small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   App Shell Layout (Desktop Sidebar + Mobile Bottom Bar)
   -------------------------------------------------------------------------- */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-surface-subtle, #f8fafc);
  position: relative;
}

/* User directive: no dropdowns or listed sidebars */
.sidebar {
  display: none !important;
}

.signed-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.signed-in strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.signed-in small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

.side-nav button, .logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.12s ease;
  text-align: left;
}

.side-nav button:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
}

.side-nav button.active {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
  font-weight: 600;
  border-left: 3px solid var(--whatsapp-green);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.logout {
  margin-top: auto;
  color: #dc2626;
}

.logout:hover {
  background-color: #fef2f2;
}

.main-content {
  flex: 1;
  padding: 16px 18px calc(104px + env(safe-area-inset-bottom, 0px));
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: max(12px, env(safe-area-inset-top, 12px)) max(16px, env(safe-area-inset-right, 16px)) 12px max(16px, env(safe-area-inset-left, 16px));
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-center {
  flex: 1;
  text-align: left;
  min-width: 0;
  padding-left: 8px;
}

.header-center .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle, #94a3b8);
  margin: 0;
  text-transform: uppercase;
}

.app-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-status {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.api-status.connected {
  background-color: var(--status-green-bg);
  color: var(--status-green-text);
  border-color: var(--status-green-border);
}

.api-status.missing {
  background-color: var(--status-yellow-bg);
  color: var(--status-yellow-text);
  border-color: var(--status-yellow-border);
}

.bell {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bell:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-medium);
}

.bell b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background-color: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   Cards, Metrics, and Content Containers (1px solid #E2E8F0, Crisp Slate)
   -------------------------------------------------------------------------- */

.workspace-card, .metric, .welcome-card, .handover-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.workspace-card {
  padding: 24px;
  margin-bottom: 24px;
}

.workspace-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.metric span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-top: 4px;
}

/* Welcome Card */
.welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  margin-bottom: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.welcome-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.welcome-card p:not(.eyebrow) {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.welcome-activity {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: 320px;
}

.welcome-activity span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--whatsapp-green);
}

.welcome-activity strong {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

/* Action Lists & Items */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.handover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.handover-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.handover-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.handover-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.badge.awaiting_review {
  background-color: var(--status-yellow-bg);
  color: var(--status-yellow-text);
  border: 1px solid var(--status-yellow-border);
}

.badge.relayed {
  background-color: var(--status-blue-bg);
  color: var(--status-blue-text);
  border: 1px solid var(--status-blue-border);
}

.badge.acknowledged {
  background-color: var(--status-green-bg);
  color: var(--status-green-text);
  border: 1px solid var(--status-green-border);
}

/* Notifications Panel */
.notification-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 50;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.notification-panel > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.notification {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  transition: background-color 0.12s ease;
}

.notification:hover {
  background-color: var(--bg-surface-subtle);
}

.notification.unread {
  background-color: var(--status-blue-bg);
  color: var(--text-main);
  font-weight: 600;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Frontline Bottom Navigation Dock (Twitter / Facebook Style Architecture)
   Universal across mobile, tablet, and desktop: Feed, Channels, Post/Relay, Charts, Passport
   -------------------------------------------------------------------------- */

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
}

.header-user-pill strong {
  font-size: 13px;
  color: var(--text-main);
  display: block;
  line-height: 1.2;
}

.header-user-pill small {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
}

.frontline-dock {
  display: block !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dock-container {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: 64px;
  padding: 0 8px;
  position: relative;
}

.dock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 4px 0;
  transition: all 0.15s ease;
  position: relative;
}

.dock-tab:hover {
  color: #008751;
}

.dock-tab.active {
  color: #008751;
  font-weight: 700;
}

.dock-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: #008751;
  border-radius: 0 0 3px 3px;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.dock-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.15s ease;
}

.dock-tab:active .dock-icon svg {
  transform: scale(0.92);
}

.dock-tab.active .dock-icon svg {
  transform: scale(1.12);
  stroke-width: 2.5;
}

/* Center Elevated Action Button (+ Post / Relay) */
.dock-compose-tab {
  position: relative;
  overflow: visible;
}

.dock-compose-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008751 0%, #00A862 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 135, 81, 0.4);
  transform: translateY(-12px);
  border: 3px solid #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-compose-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.dock-compose-tab:hover .dock-compose-btn {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 135, 81, 0.5);
}

.dock-compose-tab:active .dock-compose-btn {
  transform: translateY(-10px) scale(0.96);
}

.dock-compose-tab .dock-label {
  margin-top: -6px;
}

@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-intro {
    padding: 36px 24px;
  }

  .login-panel {
    padding: 32px 24px;
  }

  .main-content {
    padding: 12px 14px calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .app-header h1 {
    font-size: 22px;
  }
}

/* ==========================================================================
   Shift Handover Hub & Task Relay Component
   ========================================================================== */

.pinned-handover-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.pinned-handover-card.status-green {
  border-left: 5px solid #008751;
}

.pinned-handover-card.status-yellow {
  border-left: 5px solid #d97706;
}

.pinned-handover-card.status-red {
  border-left: 5px solid #dc2626;
}

.pinned-handover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.shift-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.shift-status-pill.green {
  background-color: var(--status-green-bg);
  color: var(--status-green-text);
  border: 1px solid var(--status-green-border);
}

.shift-status-pill.yellow {
  background-color: var(--status-yellow-bg);
  color: var(--status-yellow-text);
  border: 1px solid var(--status-yellow-border);
}

.shift-status-pill.red {
  background-color: var(--status-red-bg);
  color: var(--status-red-text);
  border: 1px solid var(--status-red-border);
}

.pinned-handover-notes {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.handover-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.handover-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: all 0.12s ease;
}

.handover-task-item:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-surface-subtle);
}

.handover-task-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--whatsapp-green);
  cursor: pointer;
}

.handover-task-item span.task-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.12s ease;
}

.handover-task-item small.task-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.handover-task-item.done {
  background-color: #f8fafc;
  border-color: var(--border-subtle);
}

.handover-task-item.done span.task-text {
  text-decoration: line-through;
  color: var(--text-subtle);
}

/* Shift Status Radio Selector */
.shift-status-selector {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
}

.status-radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.12s ease;
}

.status-radio-option input[type="radio"] {
  display: none;
}

.status-radio-option.selected-green {
  background-color: var(--status-green-bg);
  border-color: var(--whatsapp-green);
  color: var(--status-green-text);
}

.status-radio-option.selected-yellow {
  background-color: var(--status-yellow-bg);
  border-color: #d97706;
  color: var(--status-yellow-text);
}

.status-radio-option.selected-red {
  background-color: var(--status-red-bg);
  border-color: #dc2626;
  color: var(--status-red-text);
}


/* ── Page Transition Fade-in ─────────────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.page-fade-in {
  animation: pageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Skeleton Loading Cards ──────────────────────────────────────────────── */
.skeleton-post-card {
  background: var(--bg-surface, #fff);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  overflow: hidden;
}
.skel-author-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.skel-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #e2e8f0;
}
.skel-text-block { flex: 1; }
.skel-line {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
}
.skel-pulse {
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.42; }
}

/* ── Stories Bar (Lounge) ────────────────────────────────────────────────── */
.stories-bar {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 0;
}
.stories-bar::-webkit-scrollbar { display: none; }

.story-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #008751 0%, #00A862 100%);
  box-shadow: 0 2px 8px rgba(0, 135, 81,0.22);
  transition: transform 0.15s ease;
}
.story-ring:hover .story-avatar-ring {
  transform: scale(1.06);
}
.story-avatar-ring.story-self {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}
.story-avatar-ring.story-unseen {
  background: linear-gradient(135deg, #008751 0%, #00A862 100%);
}
.story-avatar-ring.story-seen {
  background: #cbd5e1;
}
.story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #00663D 0%, #008751 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  border: 2.5px solid #fff;
  overflow: hidden;
}
.story-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.story-plus-ring .story-avatar-inner {
  background: #f1f5f9;
  color: #008751;
}
.story-name {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ── Quick Actions Grid (Today dashboard) ───────────────────────────────── */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  border: 1.5px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  background: var(--bg-surface, #fff);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
  padding: 12px 6px 10px;
  text-align: center;
  letter-spacing: -0.01em;
}
.quick-action-btn:hover {
  border-color: #008751;
  color: #008751;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 135, 81, 0.10);
}
.quick-action-btn:active {
  transform: translateY(0) scale(0.96);
}
.quick-action-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ── Empty State Card System ─────────────────────────────────────────────── */
.empty-feed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface, #ffffff);
  border: 1.5px dashed var(--border-subtle, #cbd5e1);
  border-radius: 20px;
  margin: 16px 0 24px;
}
.empty-feed-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #008751;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.empty-feed-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}
.empty-feed-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}
.empty-feed-card p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary, #64748b);
  max-width: 360px;
  line-height: 1.5;
}
.btn-empty-action {
  min-height: 42px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
}

/* ── Interactive Fullscreen Photo Lightbox ───────────────────────────────── */
.photo-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.photo-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lightbox-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  animation: lightboxZoomIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1);    }
}
.lightbox-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #ffffff;
}
.lightbox-author-info strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
}
.lightbox-author-info time {
  font-size: 12px;
  color: #94a3b8;
}
.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}
.lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.lightbox-img {
  max-width: 88vw;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}
.lightbox-caption {
  width: 100%;
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px 16px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  backdrop-filter: blur(8px);
}
.lightbox-caption p { margin: 0; }

/* ── Interactive Story Viewer Modal ──────────────────────────────────────── */
.story-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.story-viewer-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.story-modal-card {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 420px;
  background: linear-gradient(180deg, #008751 0%, #004D2E 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  animation: storyModalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes storyModalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1);       }
}
.story-progress-bar {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
}
.story-progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  animation: storyProgress 5s linear forwards;
}
@keyframes storyProgress {
  from { width: 0%;   }
  to   { width: 100%; }
}
.story-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 12px;
}
.story-viewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid #ffffff;
}
.story-viewer-info { flex: 1; }
.story-viewer-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.story-viewer-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #99f6e4;
}
.story-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.story-card-body {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  max-height: 240px;
}
.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-quote-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.story-text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
  color: #ffffff;
}
.story-tag {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #a7f3d0;
}
.story-actions-footer {
  padding: 0 20px 20px;
}
.btn-story-kudos {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  background: #ffffff !important;
  color: #008751 !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.btn-story-kudos svg {
  width: 18px;
  height: 18px;
  fill: #e11d48;
  stroke: #e11d48;
}

/* ── Tap to Expand Badge & Floating Heart Burst ──────────────────────────── */
.post-image-container {
  position: relative;
  cursor: pointer;
}
.image-tap-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.post-image-container:hover .image-tap-hint {
  opacity: 1;
}

.floating-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 10;
  animation: heartBurst 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.floating-heart-burst svg {
  width: 72px;
  height: 72px;
  fill: #e11d48;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 4px 16px rgba(225, 29, 72, 0.5));
}
@keyframes heartBurst {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  35%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  70%  { transform: translate(-50%, -50%) scale(1.05); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* ── Composer Pulse Highlight ────────────────────────────────────────────── */
.composer-pulse {
  animation: composerPulseAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes composerPulseAnim {
  0%   { box-shadow: 0 0 0 0 rgba(0, 135, 81, 0.4); }
  50%  { box-shadow: 0 0 0 8px rgba(0, 135, 81, 0.2); }
  100% { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
}

/* ── Dialog Close Button Normalization ───────────────────────────────────── */
.dialog-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}
.dialog-close svg {
  stroke: currentColor;
  stroke-width: 2;
}

/* ── Frontline Network Offline / Online Monitor ──────────────────────────── */
.network-status-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-35px);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}
.network-status-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.network-status-banner.offline {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
}
.network-status-banner.online {
  background: #005A35;
  color: #ecfdf5;
  border: 1px solid #00A862;
}
.network-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
}
.network-dot.offline {
  background: #f59e0b;
}
.network-dot.online {
  background: #34d399;
}

/* ==========================================================================
   PULL-TO-REFRESH MOBILE GESTURE
   ========================================================================== */
.pull-refresh-indicator {
  height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface, #ffffff);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: height 0.15s ease, opacity 0.15s ease;
}
.pull-refresh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s linear;
}
.pull-refreshing .pull-refresh-icon {
  animation: spinRefresh 0.8s linear infinite;
}
@keyframes spinRefresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Voice recording pulsing state */
.composer-tool-btn.recording-pulse {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
  animation: recPulse 1.2s infinite ease-in-out;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   INLINE AUDIO VOICE PLAYER (FEED)
   ========================================================================== */
.feed-audio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
}
.audio-play-toggle-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #008751;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.audio-play-toggle-btn:active {
  transform: scale(0.92);
}
.audio-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.audio-track-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.audio-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.audio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-main);
}
.audio-timer {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.audio-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.audio-progress-bar-fill {
  height: 100%;
  background: #008751;
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* ==========================================================================
   OFFICIAL PRINTABLE HANDOVER SHEET (@media print)
   ========================================================================== */
#printable-handover-sheet {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 20mm;
  }

  body > * {
    display: none !important;
  }

  #printable-handover-sheet {
    display: block !important;
    position: static;
    width: 100%;
  }

  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #008751;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .print-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .print-status-badge.status-green {
    background: #dcfce7;
    color: #15803d;
  }

  .print-status-badge.status-yellow {
    background: #fef9c3;
    color: #854d0e;
  }

  .print-status-badge.status-red {
    background: #fee2e2;
    color: #b91c1c;
  }

  .print-tasks-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
  }

  .print-tasks-table th,
  .print-tasks-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    font-size: 12px;
    text-align: left;
  }

  .print-tasks-table th {
    background: #f8fafc;
    font-weight: 700;
  }
}

/* ==========================================================================
   [RIFA-7 & RIFA-9] 2026 Web3 Bento Glassmorphism Token System & 60FPS Physics
   Lead UI/UX: Kelechi Nnamdi | Motion & Haptics: Simi Balogun
   Tenant: Riffmax Technology Limited (RIF-2026)
   ========================================================================== */
:root {
  --sr-glass-bg: rgba(10, 15, 29, 0.72);
  --sr-glass-elevated: rgba(15, 23, 42, 0.84);
  --sr-glass-border: rgba(0, 229, 153, 0.22);
  --sr-emerald-accent: #00E599;
  --sr-sunlight-fg: #F8FAFC;
  --sr-spring-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sr-spring-duration: 140ms;
}

.bento-card,
.handover-item,
.stat-card {
  transition:
    transform var(--sr-spring-duration) var(--sr-spring-ease),
    box-shadow var(--sr-spring-duration) var(--sr-spring-ease),
    border-color var(--sr-spring-duration) var(--sr-spring-ease);
  will-change: transform;
}

.bento-card:active,
button.primary:active,
button.secondary:active {
  transform: scale(0.985);
}

/* ==========================================================================
   Android Adaptive & Desktop Experience Polish (v197)
   - High-contrast keyboard focus rings (:focus-visible)
   - Consistent button-group spacing & >=44px coarse touch targets
   - Sleek desktop/trackpad scrollbars
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00A862;
  outline-offset: 2px;
}

.action-row,
.btn-group,
.card-actions,
.toolbar-actions {
  gap: 10px;
}

@media (pointer: coarse) {
  button,
  a.btn,
  .btn,
  [role="button"] {
    min-height: 42px;
  }
}


