* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-tap-highlight-color: transparent; }
    body { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%); min-height: 100vh; padding: 16px; padding-bottom: 80px; font-size: 16px; }
    .card { background: white; border-radius: 20px; padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .header { text-align: center; margin-bottom: 10px; border: 4px solid #10b981; background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
    h1 { color: #065f46; font-size: 24px; margin-bottom: 8px; }
    h2 { font-size: 18px; margin-bottom: 12px; color: #1f2937; display: flex; align-items: center; gap: 8px; }
    h3 { font-size: 16px; margin-bottom: 10px; color: #1f2937; }
    .subtitle { color: #6b7280; font-size: 14px; margin-bottom: 4px; }
    .note { color: #9ca3af; font-size: 12px; }
    .hidden { display: none !important; }
    
    /* Tabs */
    .tabs { display: flex; gap: 6px; background: white; padding: 6px; border-radius: 16px; border: 2px solid #10b981; overflow-x: auto; white-space: nowrap; margin-bottom: 16px; }
    .tab { flex-shrink: 0; padding: 10px 12px; border: none; border-radius: 12px; background: transparent; color: #6b7280; font-weight: bold; font-size: 12px; cursor: pointer; transition: all 0.2s; }
    .tab.active { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3); }
    
    /* Buttons */
    .btn { padding: 8px 14px; border: none; border-radius: 10px; font-weight: bold; font-size: 12px; cursor: pointer; transition: all 0.2s; }
    .btn-primary { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3); }
    .btn-secondary { background: #e5e7eb; color: #1f2937; }
    .btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
    .btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
    .btn-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
    .btn-medical { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
    .btn-sm { padding: 6px 12px; font-size: 11px; }
    .btn-icon { background: #e5e7eb; color: #1f2937; padding: 6px; border: none; border-radius: 6px; font-size: 11px; cursor: pointer; min-width: 28px; min-height: 28px; }
    .btn-icon.danger { background: #fee2e2; color: #dc2626; }
    
    /* Forms */
    .form-group { margin-bottom: 12px; }
    .form-label { display: block; color: #1f2937; font-weight: bold; font-size: 12px; margin-bottom: 4px; }
    .form-input, .form-select, .form-textarea { width: 100%; padding: 10px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
    .form-textarea { min-height: 80px; resize: vertical; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    
    /* Modal */
    .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
    .modal.show { display: flex; }
    .modal-content { background: white; border-radius: 20px; padding: 20px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; }
    .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .close-btn { background: #e5e7eb; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; }
    
    /* Record Cards */
    .record-card { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 2px solid #10b981; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .record-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .record-date { font-weight: bold; color: #065f46; font-size: 14px; }
    .record-body { font-size: 13px; color: #1f2937; line-height: 1.6; }
    .record-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid #10b981; }
    .record-label { color: #6b7280; font-size: 11px; margin-bottom: 2px; }
    .record-value { color: #1f2937; font-weight: bold; }
    .item-actions { display: flex; gap: 6px; }
    
    /* Specific Cards */
    .doctor-card { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 2px solid #3b82f6; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .doctor-name { font-weight: bold; color: #1e40af; font-size: 15px; }
    .doctor-specialty { color: #6b7280; font-size: 12px; }
    .doctor-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; font-size: 12px; }
    
    .visit-card { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #f59e0b; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .visit-doctor { font-weight: bold; color: #92400e; font-size: 14px; }
    
    .symptom-card { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 2px solid #ef4444; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .symptom-severity { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: bold; margin-left: 8px; }
    .severity-low { background: #fef3c7; color: #92400e; }
    .severity-medium { background: #fed7aa; color: #9a3412; }
    .severity-high { background: #fecaca; color: #991b1b; }
    
    .med-card { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border: 2px solid #8b5cf6; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .med-active { border-color: #10b981; }
    .med-inactive { opacity: 0.6; }
    
    .lab-card { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 2px solid #0ea5e9; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .lab-normal { border-color: #10b981; }
    .lab-abnormal { border-color: #ef4444; }
    
    /* Timeline */
    .timeline { position: relative; padding-left: 30px; }
    .timeline-item { position: relative; padding-bottom: 20px; }
    .timeline-item:before { content: ''; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #10b981; border: 3px solid white; box-shadow: 0 0 0 2px #10b981; }
    .timeline-item:after { content: ''; position: absolute; left: -18px; top: 17px; width: 2px; height: calc(100% - 12px); background: #d1fae5; }
    .timeline-item:last-child:after { display: none; }
    .timeline-content { background: white; border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px; }
    .timeline-date { color: #6b7280; font-size: 11px; margin-bottom: 6px; }
    .timeline-type { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: bold; margin-bottom: 6px; }
    .type-visit { background: #dbeafe; color: #1e40af; }
    .type-test { background: #d1fae5; color: #065f46; }
    .type-medication { background: #fef3c7; color: #92400e; }
    .type-symptom { background: #fee2e2; color: #991b1b; }
    .type-nutrition { background: #fce7f3; color: #9f1239; }
    
    /* Stats */
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .stat-card { background: linear-gradient(135deg, #f9fafb, white); border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px; text-align: center; }
    .stat-number { font-size: 24px; font-weight: bold; color: #10b981; }
    .stat-label { font-size: 11px; color: #6b7280; margin-top: 4px; }
    
    /* Alert */
    .alert { padding: 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
    .alert-info { background: #dbeafe; color: #1e40af; border: 2px solid #3b82f6; }
    .alert-warning { background: #fef3c7; color: #92400e; border: 2px solid #f59e0b; }
    .alert-success { background: #d1fae5; color: #065f46; border: 2px solid #10b981; }
    .alert-danger { background: #fee2e2; color: #991b1b; border: 2px solid #ef4444; }
    
    /* Badges */
    .allergy-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; margin: 4px; background: #fee2e2; color: #991b1b; border: 2px solid #ef4444; }
    
    /* Profile */
    .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
    .profile-item { background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px; }
    .profile-label { color: #6b7280; font-size: 11px; margin-bottom: 4px; }
    .profile-value { color: #1f2937; font-size: 14px; font-weight: bold; }
    
    /* Filter Tabs */
    .filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
    .filter-tab { padding: 6px 12px; border: 2px solid #e5e7eb; background: white; border-radius: 8px; font-size: 11px; font-weight: bold; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .filter-tab.active { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; border-color: #10b981; }
    
    /* Search */
    .search-box { position: relative; margin-bottom: 12px; }
    .search-input { width: 100%; padding: 10px 40px 10px 10px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
    .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
    
    /* Category Filter */
    .category-filter { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
    .category-btn { padding: 6px 12px; border: 2px solid #e5e7eb; background: white; border-radius: 8px; font-size: 11px; font-weight: bold; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.2s; }
    .category-btn.active { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; border-color: #10b981; }
    
    /* Food List */
    .food-list { max-height: 300px; overflow-y: auto; margin-bottom: 12px; border: 2px solid #e5e7eb; border-radius: 8px; }
    .food-item { padding: 10px; border-bottom: 1px solid #e5e7eb; cursor: pointer; transition: background 0.2s; }
    .food-item:hover { background: #f9fafb; }
    .food-item:last-child { border-bottom: none; }
    .food-item-name { font-weight: bold; color: #1f2937; font-size: 13px; margin-bottom: 2px; }
    .food-item-nutrients { color: #6b7280; font-size: 11px; }
    
    /* Nutrient Grid */
    .nutrient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    
    /* Meal Card */
    .meal-card { background: linear-gradient(135deg, #fce7f3, #fbcfe8); border: 2px solid #ec4899; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .meal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .meal-title { font-weight: bold; color: #9f1239; font-size: 14px; }
    .meal-items { margin-top: 8px; }
    .meal-item { background: white; border: 1px solid #f9a8d4; border-radius: 6px; padding: 8px; margin-bottom: 6px; font-size: 12px; }
    
    /* Summary Card */
    .summary-card { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 2px solid #fb923c; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
    .summary-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
    .summary-item { text-align: center; }
    .summary-value { font-size: 16px; font-weight: bold; color: #9a3412; }
    .summary-label { font-size: 10px; color: #6b7280; margin-top: 2px; }
    .summary-bar { width: 100%; height: 6px; background: #fed7aa; border-radius: 3px; margin-top: 4px; overflow: hidden; }
    .summary-fill { height: 100%; background: linear-gradient(135deg, #fb923c, #f97316); border-radius: 3px; }
    
    /* Chart Canvas */
    .chart-canvas { width: 100%; height: 250px; border: 2px solid #e5e7eb; border-radius: 12px; background: white; }
    
    /* Bottom Bar */
    .bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 2px solid #e5e7eb; padding: 12px 16px; display: flex; gap: 8px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 100; }
  
    body.kids-mode { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%); }
    body.kids-mode .header { border-color: #f59e0b; background: linear-gradient(135deg, #fef3c7, #fde68a); }
    body.kids-mode h1 { color: #92400e; font-size: 28px; }
    body.kids-mode h2 { font-size: 22px; color: #92400e; }
    body.kids-mode .tab { font-size: 14px; padding: 12px 16px; }
    body.kids-mode .tab.active { background: linear-gradient(135deg, #f59e0b, #d97706); }
    body.kids-mode .btn { font-size: 14px; padding: 10px 16px; }
    body.kids-mode .stat-number { font-size: 32px; color: #f59e0b; }
    
    .kids-toggle { position: fixed; top: 20px; left: 20px; z-index: 1001; background: white; border-radius: 50px; padding: 8px 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 2px solid #10b981; cursor: pointer; font-weight: bold; font-size: 14px; }
    body.kids-mode .kids-toggle { border-color: #f59e0b; background: linear-gradient(135deg, #fef3c7, #fde68a); }
    
    .ai-assistant { position: fixed; bottom: 100px; right: 20px; width: 350px; max-height: 500px; background: white; border-radius: 20px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 999; display: none; flex-direction: column; }
    .ai-assistant.show { display: flex; }
    .ai-header { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; padding: 16px; border-radius: 20px 20px 0 0; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
    .ai-messages { flex: 1; overflow-y: auto; padding: 16px; max-height: 350px; }
    .ai-message { margin-bottom: 12px; padding: 10px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
    .ai-message.user { background: #e0f2fe; color: #0c4a6e; margin-left: 40px; }
    .ai-message.assistant { background: #f5f3ff; color: #5b21b6; margin-right: 40px; }
    .ai-input-container { padding: 12px; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; }
    .ai-input { flex: 1; padding: 8px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 13px; }
    .ai-toggle { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 998; }
    
    .vitamin-card { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #f59e0b; border-radius: 12px; padding: 12px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
    .vitamin-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

/* Clean JanaSama boot shell */
:root {
  --js-teal: #0f766e;
  --js-teal-2: #14b8a6;
  --js-blue: #2563eb;
  --js-sky: #e0f2fe;
  --js-mint: #ecfdf5;
  --js-lavender: #eef2ff;
  --js-ink: #0f172a;
  --js-muted: #64748b;
  --js-line: #dbeafe;
  --js-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

html {
  min-height: 100%;
  background: #f6fbfb;
}

body {
  color: var(--js-ink);
  direction: rtl;
}

body.landing-home,
body.habiba-clean-shell,
body:not(.dashboard-layout) {
  max-width: none;
  margin: 0;
  padding: 0;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 16% 0, rgba(20, 184, 166, .18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, .12), transparent 30%),
    linear-gradient(180deg, #fbfffd 0%, #eef8f7 100%);
}

#appRoot {
  min-height: 100vh;
}

.boot-fallback {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.boot-fallback button,
.landing-actions .btn,
.landing-card .btn,
.habiba-v1-actions .btn,
.habiba-v1-replies .btn,
.account-tabs .btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--js-teal), var(--js-blue));
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, .22);
}

.btn-secondary {
  background: rgba(255, 255, 255, .9);
  color: var(--js-ink);
  border-color: rgba(203, 213, 225, .95);
}

.landing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: grid;
  gap: 54px;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 28px;
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 34px;
  border: 1px solid rgba(203, 213, 225, .76);
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 184, 166, .22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, .16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(236,253,245,.92) 58%, rgba(238,242,255,.9));
  box-shadow: var(--js-shadow);
}

.landing-hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--js-teal);
  margin-bottom: 18px;
}

.landing-title {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0;
  color: var(--js-ink);
}

.landing-tagline {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.9;
  color: #334155;
  margin: 0 0 24px;
  max-width: 680px;
}

.landing-actions,
.trust-chip-row,
.vnext-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.landing-status-chip,
.trust-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .82);
  color: var(--js-ink);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.trust-chip-row {
  margin-top: 18px;
}

.landing-visual {
  position: relative;
  min-height: 360px;
}

.visual-orbit {
  position: absolute;
  inset: 22px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(240,253,250,.82));
  border: 1px solid rgba(203, 213, 225, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 24px 70px rgba(15,23,42,.1);
}

.visual-card {
  position: absolute;
  min-width: 145px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(203,213,225,.86);
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  font-weight: 900;
  color: var(--js-ink);
}

.visual-card span {
  display: block;
  color: var(--js-teal);
  font-size: 12px;
  margin-top: 6px;
}

.visual-card.c1 { top: 36px; right: 18px; }
.visual-card.c2 { top: 112px; left: 10px; }
.visual-card.c3 { top: 196px; right: 62px; }
.visual-card.c4 { bottom: 38px; left: 54px; }
.visual-card.c5 { top: 42%; right: 38%; background: var(--js-teal); color: #fff; }
.visual-card.c5 span { color: #ccfbf1; }

.landing-section {
  display: grid;
  gap: 18px;
}

.landing-section-head {
  max-width: 840px;
}

.landing-section-head h2 {
  margin: 0 0 8px;
  color: var(--js-ink);
  font-size: clamp(26px, 3vw, 38px);
}

.landing-section-head p {
  margin: 0;
  color: var(--js-muted);
  line-height: 1.9;
  font-size: 16px;
}

.assistant-card-grid,
.vision-card-grid,
.value-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.assistant-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-card,
.assistant-card {
  position: relative;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(203,213,225,.78);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(15,23,42,.07);
}

.assistant-card {
  overflow: hidden;
}

.assistant-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-a, var(--js-teal-2)), var(--accent-b, var(--js-blue)));
}

.assistant-icon,
.assistant-portrait {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-soft, #ccfbf1), #fff);
  font-weight: 900;
  color: var(--accent-a, var(--js-teal));
  border: 1px solid rgba(203,213,225,.75);
}

.assistant-title {
  font-weight: 900;
  color: var(--js-teal);
  margin-bottom: 10px;
}

.landing-card h3 {
  margin: 0 0 8px;
  color: var(--js-ink);
  font-size: 22px;
}

.landing-card p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.8;
}

.landing-card ul {
  margin: 0;
  padding: 0 18px 0 0;
  color: #334155;
  line-height: 2;
}

.article-tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--js-teal);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.landing-final-cta {
  text-align: center;
  padding: 42px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--js-teal), var(--js-blue));
  color: #fff;
  box-shadow: 0 24px 70px rgba(15,118,110,.18);
}

.landing-final-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  justify-content: center;
  font-size: clamp(28px, 4vw, 46px);
}

.landing-final-cta .landing-actions {
  justify-content: center;
}

/* Habiba clean shell */
.habiba-clean-shell-root {
  position: fixed;
  inset: 0;
  z-index: 9990;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 0, rgba(45,212,191,.20), transparent 28%),
    linear-gradient(180deg, #f8fffd 0%, #edf7f6 100%);
  direction: rtl;
}

.habiba-shell,
.habiba-v1-shell {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 14px 96px;
  color: var(--js-ink);
}

.hakim-mode .habiba-v1-shell {
  width: min(100%, 720px);
}

.habiba-clean-app {
  display: grid;
  gap: 14px;
}

.habiba-topbar,
.habiba-persona-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(20,184,166,.22);
  background: linear-gradient(135deg, #fff, var(--js-mint));
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(15,118,110,.10);
}

.habiba-persona-avatar {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: radial-gradient(circle at 32% 22%, #fff 0 16%, #99f6e4 17% 42%, var(--js-teal) 43% 100%);
  display: grid;
  place-items: end center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(15,118,110,.22);
  overflow: hidden;
}

.habiba-persona-avatar span {
  background: rgba(255,255,255,.92);
  color: var(--js-teal);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.habiba-persona-card h1 {
  margin: 0;
  color: var(--js-ink);
  font-size: 26px;
}

.habiba-persona-card p {
  margin: 3px 0 0;
  color: #475569;
  line-height: 1.6;
}

.habiba-v1-badge {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  background: #ccfbf1;
  color: var(--js-teal);
  font-weight: 900;
  font-size: 12px;
  padding: 5px 10px;
  margin-top: 8px;
}

.habiba-v1-card {
  border: 1px solid rgba(203,213,225,.72);
  background: rgba(255,255,255,.95);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.habiba-chat,
.habiba-v1-history {
  display: grid;
  gap: 10px;
  max-height: 44vh;
  overflow: auto;
  margin: 12px 0;
  padding-inline: 2px;
}

.habiba-bubble,
.habiba-v1-message {
  border-radius: 20px;
  padding: 12px 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.habiba-v1-message.user {
  background: #e0f2fe;
  margin-inline-start: 18%;
  border-end-end-radius: 6px;
}

.habiba-v1-message.assistant {
  background: #ecfdf5;
  margin-inline-end: 18%;
  border-end-start-radius: 6px;
}

.habiba-quick-replies,
.habiba-v1-replies,
.habiba-v1-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.habiba-v1-replies .btn {
  background: #fff;
  border-color: #cbd5e1;
}

.habiba-v1-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(15,23,42,.07);
}

.habiba-v1-input .form-input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.habiba-bottom-nav,
.habiba-v1-tabs {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 9991;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(410px, calc(100% - 24px));
  border: 1px solid rgba(203,213,225,.75);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(15,23,42,.14);
}

.habiba-v1-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 18px;
  padding: 10px 8px;
  cursor: pointer;
  font-weight: 900;
}

.habiba-v1-tab.active {
  background: var(--js-teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,118,110,.20);
}

.account-drawer-backdrop.open {
  display: grid !important;
  place-items: stretch end;
}

.account-drawer {
  border-radius: 28px 0 0 28px;
}

@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .landing-visual { min-height: 300px; }
  .value-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .assistant-card-grid,
  .assistant-card-grid-two,
  .vision-card-grid,
  .value-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .landing-page { width: min(100% - 20px, 1180px); gap: 38px; padding-top: 14px; }
  .landing-hero { padding: 32px 18px; border-radius: 24px; }
  .landing-title { font-size: 36px; }
  .landing-visual { display: none; }
  .landing-actions .btn { width: 100%; justify-content: center; }
  .habiba-v1-shell { padding: 12px 10px 92px; }
  .habiba-v1-input { grid-template-columns: 1fr; }
  .habiba-v1-message.user,
  .habiba-v1-message.assistant { margin-inline: 0; }
  .habiba-v1-tabs { bottom: 10px; width: calc(100% - 18px); }
  .habiba-v1-tab { font-size: 13px; padding: 9px 4px; }
}

/* Premium clean shell polish */
:root {
  --js-primary: #0f766e;
  --js-primary-dark: #134e4a;
  --js-primary-soft: #ccfbf1;
  --js-accent: #2563eb;
  --js-accent-soft: #dbeafe;
  --js-bg: #f4fbf9;
  --js-bg-warm: #fbfefc;
  --js-surface: rgba(255, 255, 255, .94);
  --js-surface-strong: #ffffff;
  --js-text: #0b1727;
  --js-muted: #5f7087;
  --js-border: rgba(148, 163, 184, .28);
  --js-border-strong: rgba(15, 118, 110, .22);
  --js-shadow-soft: 0 18px 45px rgba(15, 23, 42, .08);
  --js-shadow-premium: 0 32px 90px rgba(15, 23, 42, .14);
  --js-radius-sm: 14px;
  --js-radius-md: 20px;
  --js-radius-lg: 30px;
  --js-radius-xl: 38px;
  --js-space-1: 6px;
  --js-space-2: 10px;
  --js-space-3: 14px;
  --js-space-4: 20px;
  --js-space-5: 28px;
  --js-focus: 0 0 0 4px rgba(20, 184, 166, .22);
  --js-transition: 180ms ease;
  --js-gradient-hero: radial-gradient(circle at 18% 12%, rgba(45, 212, 191, .26), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, .16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,253,245,.95) 58%, rgba(238,242,255,.92));
  --js-gradient-primary: linear-gradient(135deg, #0f766e 0%, #14b8a6 46%, #2563eb 100%);
  --js-gradient-habiba: linear-gradient(135deg, #fff7fb 0%, #ecfdf5 50%, #e0f2fe 100%);
  --js-gradient-hakim: linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #e0f2fe 100%);
}

body.landing-home,
body.habiba-clean-shell,
body:not(.dashboard-layout) {
  color: var(--js-text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(20, 184, 166, .16), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(99, 102, 241, .12), transparent 30%),
    linear-gradient(180deg, var(--js-bg-warm) 0%, var(--js-bg) 100%);
}

.landing-page {
  padding-top: clamp(18px, 3vw, 40px);
  gap: clamp(42px, 6vw, 72px);
}

.landing-hero {
  isolation: isolate;
  border-radius: var(--js-radius-xl);
  border-color: var(--js-border);
  background: var(--js-gradient-hero);
  box-shadow: var(--js-shadow-premium);
}

.landing-hero:before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: calc(var(--js-radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, .72);
  pointer-events: none;
}

.landing-brand,
.landing-status-chip,
.trust-chip,
.article-tag,
.habiba-v1-badge,
.habiba-v1-chip {
  backdrop-filter: blur(12px);
}

.landing-brand {
  color: var(--js-primary-dark);
  box-shadow: 0 10px 30px rgba(15, 118, 110, .08);
}

.landing-title {
  color: var(--js-text);
  text-wrap: balance;
}

.landing-tagline {
  color: #334155;
  text-wrap: pretty;
}

.btn,
button,
.landing-card,
.assistant-card,
.habiba-v1-card,
.habiba-v1-memory-item,
.habiba-v1-candidate,
.visual-card {
  transition: transform var(--js-transition), box-shadow var(--js-transition), border-color var(--js-transition), background var(--js-transition);
}

.btn:focus-visible,
button:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--js-focus) !important;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
}

.btn:active,
button:active {
  transform: translateY(0) scale(.98);
}

.btn-primary {
  background: var(--js-gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 118, 110, .24);
}

.btn-secondary {
  background: rgba(255,255,255,.88);
  border-color: var(--js-border);
  color: var(--js-text);
}

.trust-chip {
  color: var(--js-primary-dark);
  font-weight: 800;
}

.landing-card {
  min-height: 100%;
}

.landing-card:hover,
.assistant-card:hover,
.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}

.assistant-card {
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 18% 0, color-mix(in srgb, var(--accent-soft, #ccfbf1) 78%, transparent), transparent 36%),
    var(--js-surface);
}

.assistant-card:first-child .assistant-portrait {
  background: var(--js-gradient-habiba);
}

.assistant-card:nth-child(2) .assistant-portrait {
  background: var(--js-gradient-hakim);
}

.assistant-portrait {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 30px;
  box-shadow: 0 18px 36px rgba(15, 118, 110, .14);
}

.assistant-portrait:after {
  content: "";
  position: absolute;
  inset: auto 18px 12px;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-a, var(--js-primary)) 42%, white);
  opacity: .7;
}

.landing-final-cta {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.22), transparent 30%),
    var(--js-gradient-primary);
}

.boot-fallback {
  border-radius: var(--js-radius-lg) !important;
  border: 1px solid var(--js-border) !important;
  background: var(--js-surface) !important;
  box-shadow: var(--js-shadow-premium) !important;
}

.habiba-clean-shell-root {
  background:
    radial-gradient(circle at 50% -12%, rgba(20, 184, 166, .22), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, .12), transparent 28%),
    linear-gradient(180deg, #f8fffd 0%, #eef8f7 100%);
}

.habiba-shell,
.habiba-v1-shell {
  width: min(100%, 448px);
  padding: 18px 14px 104px;
}

@media (min-width: 720px) {
  .habiba-shell,
  .habiba-v1-shell {
    margin-block: 18px;
    min-height: calc(100dvh - 36px);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 36px;
    background: rgba(255,255,255,.38);
    box-shadow: 0 36px 100px rgba(15, 23, 42, .12);
  }
}

.habiba-topbar,
.habiba-persona-card {
  border-radius: var(--js-radius-lg);
  padding: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.96), transparent 24%),
    var(--js-gradient-habiba);
  border-color: var(--js-border-strong);
  box-shadow: 0 22px 58px rgba(15, 118, 110, .12);
}

.hakim-mode .habiba-persona-card,
.hakim-mode .habiba-v1-hero {
  background: var(--js-gradient-hakim);
}

.habiba-persona-avatar,
.habiba-v1-avatar {
  position: relative;
  background:
    radial-gradient(circle at 34% 24%, #fff 0 14%, #99f6e4 15% 38%, #0f766e 39% 70%, #134e4a 71% 100%);
}

.hakim-mode .habiba-persona-avatar,
.hakim-mode .habiba-v1-avatar {
  background:
    radial-gradient(circle at 34% 24%, #fff 0 14%, #bfdbfe 15% 38%, #1d4ed8 39% 70%, #1e293b 71% 100%);
}

.habiba-persona-avatar:before,
.habiba-v1-avatar:before {
  content: "";
  position: absolute;
  top: 14px;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 0 10px rgba(255,255,255,.22);
}

.habiba-v1-card {
  border-radius: var(--js-radius-lg);
  background: var(--js-surface);
  box-shadow: var(--js-shadow-soft);
}

.habiba-v1-card h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.habiba-v1-question {
  margin: 12px 0;
  border-radius: var(--js-radius-md);
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  color: var(--js-primary-dark);
  font-size: 19px;
  font-weight: 900;
}

.empty-state,
.note {
  border-radius: var(--js-radius-md);
  color: var(--js-muted);
}

.empty-state {
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px dashed rgba(20, 184, 166, .28);
  padding: 16px;
}

.note {
  font-size: 13px;
  line-height: 1.75;
}

.habiba-v1-history {
  max-height: min(46vh, 440px);
  scrollbar-width: thin;
}

.habiba-bubble,
.habiba-v1-message {
  max-width: 86%;
  font-size: 15px;
}

.habiba-v1-message.assistant {
  justify-self: start;
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
  border: 1px solid rgba(20, 184, 166, .20);
  color: var(--js-text);
}

.habiba-v1-message.user {
  justify-self: end;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  border: 1px solid rgba(37, 99, 235, .16);
  color: #172554;
}

.habiba-v1-replies .btn,
.habiba-v1-actions .btn {
  min-height: 42px;
  font-weight: 800;
}

.habiba-v1-replies .btn {
  border-color: rgba(20, 184, 166, .25);
  background: rgba(255,255,255,.92);
  color: var(--js-primary-dark);
}

.habiba-v1-input {
  position: sticky;
  bottom: 82px;
  z-index: 2;
  border-radius: 24px;
  border-color: rgba(20, 184, 166, .20);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
}

.habiba-v1-input .form-input {
  min-height: 44px;
  font-size: 15px;
}

.habiba-v1-candidate {
  border: 1px solid rgba(20, 184, 166, .28);
  background:
    radial-gradient(circle at 10% 0, rgba(45, 212, 191, .16), transparent 26%),
    #ffffff;
  border-radius: var(--js-radius-lg);
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 18px 42px rgba(15, 118, 110, .09);
}

.habiba-v1-candidate strong {
  display: block;
  color: var(--js-primary-dark);
  font-size: 17px;
  margin-bottom: 8px;
}

.habiba-v1-candidate p {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--js-text);
  line-height: 1.8;
}

.habiba-v1-candidate .btn-secondary:last-child {
  color: #9f1239;
  border-color: rgba(244, 63, 94, .20);
  background: #fff1f2;
}

.habiba-v1-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.habiba-v1-chip {
  border: 1px solid rgba(148, 163, 184, .30);
  background: rgba(255,255,255,.82);
  border-radius: 999px;
  padding: 5px 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.habiba-v1-memory-grid {
  display: grid;
  gap: 12px;
}

.habiba-v1-memory-item {
  position: relative;
  border: 1px solid var(--js-border);
  border-radius: var(--js-radius-md);
  padding: 15px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.habiba-v1-memory-item:before {
  content: "";
  position: absolute;
  inset-block: 16px;
  inset-inline-start: -1px;
  width: 4px;
  border-radius: 999px;
  background: var(--js-primary-soft);
}

.habiba-v1-legacy-grid,
.hakim-v1-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.habiba-v1-legacy-grid button,
.hakim-v1-grid button {
  text-align: right;
}

.habiba-v1-quiet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px dashed rgba(20, 184, 166, .36);
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
  border-radius: var(--js-radius-md);
  padding: 14px;
  margin-top: 14px;
}

.habiba-bottom-nav,
.habiba-v1-tabs {
  bottom: 14px;
  min-height: 66px;
  border-radius: 28px;
  border-color: rgba(148, 163, 184, .30);
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 55px rgba(15,23,42,.15);
}

.habiba-v1-tab {
  min-height: 48px;
  font-size: 14px;
}

.habiba-v1-tab.active {
  background: var(--js-gradient-primary);
}

.account-drawer-backdrop {
  backdrop-filter: blur(10px);
}

.account-drawer {
  width: min(560px, 96vw) !important;
  border-radius: 30px 0 0 30px !important;
  background:
    radial-gradient(circle at 0 0, rgba(20,184,166,.14), transparent 28%),
    var(--js-surface-strong) !important;
  box-shadow: -28px 0 80px rgba(15,23,42,.24) !important;
  padding: 24px !important;
}

.account-card,
.account-tabs .btn,
.account-form-grid .form-input,
.account-form-grid .form-select {
  border-radius: var(--js-radius-sm);
}

.account-card {
  border-color: var(--js-border);
  background: #f8fafc;
}

.account-card.active {
  border-color: var(--js-primary);
  background: #f0fdfa;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .10);
}

@keyframes js-soft-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-hero,
.landing-section,
.landing-final-cta,
.habiba-v1-card,
.habiba-persona-card {
  animation: js-soft-rise 320ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 680px) {
  .habiba-shell,
  .habiba-v1-shell {
    width: 100%;
    padding: 10px 10px 104px;
  }

  .habiba-persona-card {
    border-radius: 24px;
  }

  .habiba-v1-input {
    bottom: 82px;
  }

  .habiba-v1-tabs {
    min-height: 64px;
  }
}

    /* JanaSama dashboard layout */
    body.dashboard-layout { background: #f4f7fb; padding: 18px; padding-bottom: 92px; max-width: 1440px; margin: 0 auto; }
    body.dashboard-layout .header { border: 1px solid #d1fae5; border-radius: 8px; box-shadow: none; margin-bottom: 14px; text-align: right; }
    body.dashboard-layout .tabs { position: sticky; top: 16px; z-index: 60; display: grid; grid-template-columns: 1fr; gap: 6px; max-height: calc(100vh - 120px); overflow-y: auto; overflow-x: hidden; padding: 10px; border: 1px solid #dbeafe; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.08); white-space: normal; }
    body.dashboard-layout .tab { width: 100%; min-height: 42px; padding: 10px 12px; border-radius: 8px; text-align: right; font-size: 13px; color: #334155; background: transparent; border: 1px solid transparent; }
    body.dashboard-layout .tab:hover { background: #f8fafc; border-color: #e2e8f0; }
    body.dashboard-layout .tab.active { background: #0ea5e9; color: #fff; box-shadow: none; }
    body.dashboard-layout .dashboard-tab-hidden { display: none !important; }
    body.dashboard-layout .card { border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
    body.dashboard-layout .record-header { gap: 12px; align-items: flex-start; }
    body.dashboard-layout .btn { border-radius: 8px; }
    .dashboard-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
    .dashboard-main { min-width: 0; }
    .dashboard-mobile-toggle { display: none; width: 100%; margin-bottom: 12px; background: #0f172a; color: #fff; border: 0; border-radius: 8px; padding: 12px 14px; font-weight: 800; text-align: right; }
    .dashboard-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #0f172a; }
    .dashboard-section-title span { color: #64748b; font-size: 13px; font-weight: 600; }
    .dashboard-extra-note { margin-bottom: 12px; border: 1px solid #bae6fd; background: #f0f9ff; color: #075985; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
    .child-profile-page { display: grid; gap: 14px; }
    .child-profile-heading h2 { margin: 0; color: #0f172a; }
    .child-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
    .child-profile-card { background: #fff; border: 1px solid #dbeafe; border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
    .child-profile-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .child-profile-card h3 { margin: 0; color: #0f172a; font-size: 20px; }
    .child-profile-muted { color: #64748b; font-size: 13px; margin-top: 4px; }
    .child-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .child-profile-facts div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; min-width: 0; }
    .child-profile-facts span, .child-profile-section > span { display: block; color: #64748b; font-size: 12px; margin-bottom: 4px; }
    .child-profile-facts strong { color: #0f172a; font-size: 14px; overflow-wrap: anywhere; }
    .child-profile-section { display: grid; gap: 6px; }
    .child-profile-section em { color: #94a3b8; font-style: normal; }
    .child-chip { display: inline-block; margin: 0 0 6px 6px; padding: 5px 9px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 12px; font-weight: 700; }
    .child-profile-note { border-right: 3px solid #0ea5e9; background: #f0f9ff; color: #075985; border-radius: 8px; padding: 10px; line-height: 1.7; }
    .child-profile-empty { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 24px; text-align: center; background: #fff; color: #475569; }
    .child-profile-empty strong { display: block; color: #0f172a; font-size: 18px; margin-bottom: 6px; }
    .child-profile-modal { max-width: 760px; }
    .child-profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .smart-overview-card { background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 16px; margin-bottom: 14px; display: grid; gap: 14px; }
    .smart-overview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .smart-eyebrow { color: #0284c7; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
    .smart-overview-card h2 { margin: 0; color: #0f172a; }
    .smart-child-select { max-width: 220px; }
    .smart-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .smart-summary-grid div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; min-width: 0; }
    .smart-summary-grid span { display: block; color: #64748b; font-size: 12px; margin-bottom: 5px; }
    .smart-summary-grid strong { display: block; color: #0f172a; font-size: 14px; overflow-wrap: anywhere; }
    .smart-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .smart-actions .btn { flex: 1 1 150px; }
    .smart-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px; padding: 12px; line-height: 1.7; }
    .smart-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
    .smart-ok { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
    .smart-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .smart-empty { border: 1px dashed #cbd5e1; border-radius: 8px; padding: 14px; background: #f8fafc; color: #475569; text-align: center; }

    @media (max-width: 860px) {
      body.dashboard-layout { padding: 12px; padding-bottom: 100px; }
      .dashboard-shell { display: block; }
      .dashboard-mobile-toggle { display: block; position: sticky; top: 8px; z-index: 75; }
      body.dashboard-layout .tabs { display: none; position: sticky; top: 56px; max-height: 65vh; margin-bottom: 12px; }
      body.dashboard-layout.dashboard-nav-open .tabs { display: grid; }
      body.dashboard-layout .header { margin-top: 4px; }
      body.dashboard-layout .record-header { flex-direction: column; }
      body.dashboard-layout .record-header .btn,
      body.dashboard-layout .record-header > div { width: 100%; }
      body.dashboard-layout .bottom-bar { overflow-x: auto; }
      .child-profile-card-top { flex-direction: column; }
      .child-profile-facts, .child-profile-form-grid { grid-template-columns: 1fr; }
      .smart-overview-top, .smart-suggestion { flex-direction: column; align-items: stretch; }
      .smart-child-select { max-width: none; }
      .smart-summary-grid { grid-template-columns: 1fr; }
    }

/* Global health platform rebrand */
body.global-health-platform {
  background: #f5f7fb;
  color: #111827;
  letter-spacing: 0;
}
body.global-health-platform .kids-toggle { display: none !important; }
body.global-health-platform.dashboard-layout { max-width: 1480px; }
body.global-health-platform .platform-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border: 1px solid #d8e2ee;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f6 100%);
  border-radius: 8px;
  padding: 22px;
  text-align: right;
}
body.global-health-platform .platform-header h1 {
  color: #0f172a;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}
body.global-health-platform .platform-kicker {
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
body.global-health-platform .platform-header .subtitle {
  color: #475569;
  font-size: 15px;
  max-width: 760px;
  line-height: 1.8;
}
body.global-health-platform .platform-account-types,
body.global-health-platform .platform-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
body.global-health-platform .platform-chip,
body.global-health-platform .platform-share-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
body.global-health-platform.dashboard-layout .tabs {
  border-color: #d8e2ee;
  box-shadow: none;
}
body.global-health-platform.dashboard-layout .tab {
  min-height: 40px;
  color: #334155;
  font-weight: 800;
}
body.global-health-platform.dashboard-layout .tab.active {
  background: #0f766e;
  color: #fff;
}
body.global-health-platform .card,
body.global-health-platform .record-card,
body.global-health-platform .doctor-card,
body.global-health-platform .visit-card,
body.global-health-platform .symptom-card,
body.global-health-platform .med-card,
body.global-health-platform .lab-card {
  border-radius: 8px;
  border: 1px solid #dfe7f1;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
body.global-health-platform h2,
body.global-health-platform h3 {
  color: #0f172a;
}
body.global-health-platform .platform-section-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  margin: -4px 0 12px;
}
body.global-health-platform .platform-sharing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}
body.global-health-platform .platform-sharing-intro h2 {
  margin: 0 0 6px;
}
body.global-health-platform .platform-sharing-intro p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}
body.global-health-platform .bottom-bar {
  border-top: 1px solid #d8e2ee;
}
@media (max-width: 860px) {
  body.global-health-platform .platform-header,
  body.global-health-platform .platform-sharing-intro {
    grid-template-columns: 1fr;
  }
  body.global-health-platform .platform-account-types,
  body.global-health-platform .platform-share-actions {
    justify-content: flex-start;
  }
  body.global-health-platform .platform-header h1 { font-size: 24px; }
}

/* Dedicated medical sharing section */
.platform-medical-sharing-page { scroll-margin-top: 20px; }
.platform-sharing-page-card .record-header { align-items: flex-start; }
.platform-sharing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.platform-sharing-card {
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-width: 0;
}
.platform-sharing-card h3 { margin-bottom: 8px; }
.platform-sharing-card p {
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.platform-placeholder {
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 860px) {
  .platform-sharing-cards { grid-template-columns: 1fr; }
}
