
    /* font loaded via <link> */

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* ═══ ORBIO THEME SYSTEM — 8 tém + auto day/night ═══ */
    :root, html[data-theme="vesmir"] {
      --bg: #0a1628;
      --bg-rgb: 10, 22, 40;
      --glass: rgba(15, 32, 53, 0.6);
      --glass-border: rgba(255, 255, 255, 0.06);
      --text: #e8f4f8;
      --text-rgb: 232, 244, 248;
      --text-dim: rgba(136, 153, 179, 0.6);
      --text-muted: rgba(136, 153, 179, 0.4);
      --accent: #00d4aa;
      --accent-rgb: 0, 212, 170;
      --accent2: #0099cc;
      --shadow: rgba(0, 0, 0, 0.12);
      --input-bg: rgba(15, 32, 53, 0.4);
      --scheme: dark;
      --neon: 0, 212, 170;
      --neon-line: 0.45;
      --neon-glow: 0.15;
      --neon-text: 0.7;
      --neon-dot: 0.25;
      --neon-border: 0.2;
    }
    html[data-theme="svetlo"] {
      --bg: #e8ecf4;
      --bg-rgb: 232, 236, 244;
      --glass: rgba(240, 243, 250, 0.85);
      --glass-border: rgba(0, 60, 100, 0.14);
      --text: #111827;
      --text-rgb: 17, 24, 39;
      --text-dim: #374151;
      --text-muted: #6b7280;
      --accent: #0e7490;
      --accent-rgb: 14, 116, 144;
      --accent2: #0369a1;
      --shadow: rgba(0, 30, 60, 0.1);
      --input-bg: rgba(0, 40, 80, 0.06);
      --scheme: light;
      --neon: 14, 116, 144;
      --neon-line: 0.60;
      --neon-glow: 0.30;
      --neon-text: 0.85;
      --neon-dot: 0.40;
      --neon-border: 0.35;
    }

    /* ═══ SVETLÁ TÉMA — HIGH CONTRAST — krémovo-šedé pozadie, tmavé texty ═══ */
    html[data-theme="svetlo"] body { background: linear-gradient(165deg, #e8ecf4 0%, #dde3ef 40%, #e4e9f3 100%); }

    /* Ikony — tmavé, plne viditeľné */
    html[data-theme="svetlo"] .chat-header svg,
    html[data-theme="svetlo"] .send-btn svg,
    html[data-theme="svetlo"] .attach-btn svg,
    html[data-theme="svetlo"] .input-bubble-cam svg,
    html[data-theme="svetlo"] .header-hover-btn svg,
    html[data-theme="svetlo"] .menu-back svg,
    html[data-theme="svetlo"] .menu-tab-panel-resize-btn svg,
    html[data-theme="svetlo"] .photo-menu-item svg { color: #1e293b; stroke: #1e293b; }
    html[data-theme="svetlo"] .send-btn { background: rgba(14,116,144,0.12); color: #0e7490; }
    html[data-theme="svetlo"] .send-btn.has-text { background: rgba(14,116,144,0.2); color: #0e7490; box-shadow: 0 2px 12px rgba(14,116,144,0.15); }
    html[data-theme="svetlo"] .send-btn:hover { background: rgba(14,116,144,0.25); color: #0e7490; }
    html[data-theme="svetlo"] .send-btn svg { color: currentColor; }
    html[data-theme="svetlo"] .attach-btn { color: #475569; }
    html[data-theme="svetlo"] .attach-btn:hover { color: #0e7490; background: rgba(14,116,144,0.1); }
    html[data-theme="svetlo"] .input-bubble-cam { background: rgba(14,116,144,0.08); color: #475569; }
    html[data-theme="svetlo"] .input-bubble-cam:hover { color: #0e7490; background: rgba(14,116,144,0.14); }

    /* Textarea — tmavý font, krémové pozadie */
    html[data-theme="svetlo"] .chat-textarea {
      background: rgba(255,255,255,0.7);
      color: #111827;
      border: 1.5px solid rgba(0,60,100,0.15);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 8px rgba(0,30,60,0.06), inset 0 1px 2px rgba(255,255,255,0.6);
    }
    html[data-theme="svetlo"] .chat-textarea:focus {
      border-color: rgba(14,116,144,0.4);
      box-shadow: 0 2px 16px rgba(14,116,144,0.12), inset 0 1px 2px rgba(255,255,255,0.6);
    }
    html[data-theme="svetlo"] .chat-textarea::placeholder { color: rgba(75,85,99,0.6); }
    html[data-theme="svetlo"] .chat-textarea.neuron-active { border-color: rgba(14,116,144,0.3); box-shadow: 0 0 14px rgba(14,116,144,0.1); }

    /* Roletka (menu panel) — solid krémové pozadie */
    html[data-theme="svetlo"] .menu-tab-panel {
      background: rgba(232,236,244,0.95);
      border-bottom: 1.5px solid rgba(0,60,100,0.12);
      backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
      box-shadow: 0 8px 40px rgba(0,30,60,0.1), 0 1px 3px rgba(0,30,60,0.06);
    }
    html[data-theme="svetlo"] .menu-tab-panel-handle-bar { background: rgba(0,40,80,0.2); }
    html[data-theme="svetlo"] .menu-tab-panel-handle:hover .menu-tab-panel-handle-bar { background: rgba(14,116,144,0.5); }
    html[data-theme="svetlo"] .menu-tab-panel-resize-btn { border-color: rgba(0,40,80,0.15); background: rgba(14,116,144,0.08); color: #475569; }
    html[data-theme="svetlo"] .menu-tab-panel-content { color: #111827; }

    /* Menu overlay */
    html[data-theme="svetlo"] .menu-overlay { background: rgba(232,236,244,0.97); }
    html[data-theme="svetlo"] .menu-back { color: #374151; }
    html[data-theme="svetlo"] .menu-back:hover { background: rgba(14,116,144,0.1); color: #0e7490; }

    /* Photo menu popup */
    html[data-theme="svetlo"] .photo-menu-popup {
      background: rgba(240,243,250,0.95);
      border: 1.5px solid rgba(0,60,100,0.14);
      box-shadow: 0 8px 32px rgba(0,30,60,0.12);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    html[data-theme="svetlo"] .photo-menu-item { color: #1e293b; }
    html[data-theme="svetlo"] .photo-menu-item:active { background: rgba(14,116,144,0.1); }
    html[data-theme="svetlo"] .photo-menu-item + .photo-menu-item { border-top-color: rgba(0,40,80,0.1); }

    /* Bubliny správ — čierny text, kontrastné bordery */
    html[data-theme="svetlo"] .msg-bubble-ai {
      background: rgba(255,255,255,0.75);
      border: 1.5px solid rgba(0,60,100,0.1);
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      box-shadow: 0 1px 8px rgba(0,30,60,0.06);
      color: #111827;
    }
    html[data-theme="svetlo"] .msg-bubble-ai p,
    html[data-theme="svetlo"] .msg-bubble-ai span,
    html[data-theme="svetlo"] .msg-bubble-ai li,
    html[data-theme="svetlo"] .msg-bubble-ai div { color: #111827; }
    html[data-theme="svetlo"] .msg-bubble-ai strong { color: #0e7490; }
    html[data-theme="svetlo"] .msg-bubble-user {
      background: rgba(14,116,144,0.14);
      border: 1.5px solid rgba(14,116,144,0.2);
      color: #111827;
    }
    html[data-theme="svetlo"] .msg-bubble-proactive {
      color: #111827;
    }

    /* Selects, inputs v nastaveniach */
    html[data-theme="svetlo"] select,
    html[data-theme="svetlo"] .admin-select,
    html[data-theme="svetlo"] .pet-form-select {
      background: rgba(255,255,255,0.75) !important;
      color: #111827 !important;
      border-color: rgba(0,60,100,0.15) !important;
    }
    html[data-theme="svetlo"] select option { background: #f0f3fa !important; color: #111827 !important; }
    html[data-theme="svetlo"] input,
    html[data-theme="svetlo"] textarea { color: #111827; }
    html[data-theme="svetlo"] input::placeholder,
    html[data-theme="svetlo"] textarea::placeholder { color: rgba(75,85,99,0.6); }

    /* Pet name v headeri */
    html[data-theme="svetlo"] .problem-pet-name { background: linear-gradient(135deg, #0e7490, #0369a1); -webkit-background-clip: text; background-clip: text; }

    /* Neuron glow — silnejší pre svetlú tému */
    html[data-theme="svetlo"] .neuron-glow.active { opacity: 0.5; }
    html[data-theme="svetlo"] .neuron-glow.thinking { opacity: 0.35; }

    /* Info bubble text */
    html[data-theme="svetlo"] .info-bubble-text { color: rgba(14,116,144,0.2); }

    /* Force light color scheme na inputy */
    html[data-theme="svetlo"], html[data-theme="svetlo"] select,
    html[data-theme="svetlo"] input, html[data-theme="svetlo"] textarea,
    html[data-theme="svetlo"] button { color-scheme: light; }

    /* Welcome text */
    html[data-theme="svetlo"] .chat-welcome-text { color: #374151; }

    /* ═══ SVETLÁ — Chat header + input area — solid krémové pozadie ═══ */
    html[data-theme="svetlo"] .chat-header {
      background: #e8ecf4;
    }
    html[data-theme="svetlo"] .chat-input-area {
      background: rgba(232,236,244,0.9);
    }

    /* Hamburger menu ikony — tmavé, silný kontrast */
    html[data-theme="svetlo"] .hamburger-btn { color: #374151; }
    html[data-theme="svetlo"] .hamburger-btn:hover { color: #0e7490; }
    html[data-theme="svetlo"] .menu-h-icon {
      color: rgba(55,65,81,0.7);
      border: none;
      background: none;
    }
    html[data-theme="svetlo"] .menu-h-icon:hover { color: #0e7490; background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .menu-h-icon.active { color: #0e7490; background: rgba(14,116,144,0.1); box-shadow: 0 0 12px rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .menu-h-icon.danger { color: rgba(220,38,38,0.6); }
    html[data-theme="svetlo"] .menu-h-icon.danger:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
    html[data-theme="svetlo"] .menu-h-icon .mh-badge { background: rgba(14,116,144,0.2); color: #0e7490; }
    html[data-theme="svetlo"] .menu-h-scroll-hint { background: rgba(14,116,144,0.18); color: #0e7490; }

    /* Menu panel content — solid */
    html[data-theme="svetlo"] .menu-section-title,
    html[data-theme="svetlo"] .menu-label,
    html[data-theme="svetlo"] label { color: #1e293b; }
    html[data-theme="svetlo"] .admin-select,
    html[data-theme="svetlo"] .admin-input { color: #111827; background: rgba(255,255,255,0.7); border-color: rgba(0,60,100,0.14); }

    /* Vision camera btn */
    html[data-theme="svetlo"] .vision-camera-btn { color: #475569; }
    html[data-theme="svetlo"] .vision-camera-btn:hover { color: #0e7490; }

    /* Problem row / pet name */
    html[data-theme="svetlo"] .problem-label { color: #374151; }

    /* New conversation btn */
    html[data-theme="svetlo"] .new-conv-btn { color: #475569; }
    html[data-theme="svetlo"] .new-conv-btn:hover { color: #0e7490; background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .voice-btn { color: #475569; }
    html[data-theme="svetlo"] .voice-btn:hover { color: #0e7490; }

    /* Scrollbar — viditeľnejší */
    html[data-theme="svetlo"] ::-webkit-scrollbar-thumb { background: rgba(0,40,80,0.18); }
    html[data-theme="svetlo"] ::-webkit-scrollbar-track { background: transparent; }

    /* ═══ SVETLÁ — Neon override cez CSS premenné (bez pomalých [style*=] selektorov) ═══ */

    /* ═══ SVETLÁ — Health records, calendar, care — kontrastné texty ═══ */
    html[data-theme="svetlo"] .health-record-card {
      background: rgba(255,255,255,0.7);
      border-color: rgba(0,60,100,0.12);
    }
    html[data-theme="svetlo"] .health-record-title { color: #111827; }
    html[data-theme="svetlo"] .health-record-date { color: #6b7280; }
    html[data-theme="svetlo"] .health-record-tag { background: rgba(14,116,144,0.1); color: #0e7490; }
    html[data-theme="svetlo"] .health-no-records { color: rgba(107,114,128,0.6); }
    html[data-theme="svetlo"] .health-photo-month-label { color: #0e7490; border-bottom-color: rgba(14,116,144,0.12); }
    html[data-theme="svetlo"] .health-photo-day-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-photo-tile { border-color: rgba(0,60,100,0.1); background: rgba(255,255,255,0.5); }
    html[data-theme="svetlo"] .health-next-due { color: rgba(180,120,0,0.8); }

    /* Calendar events */
    html[data-theme="svetlo"] .cal-event-card {
      background: rgba(255,255,255,0.7);
      border-color: rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .cal-day-label { color: #374151; }
    html[data-theme="svetlo"] .cal-event-title { color: #111827; }
    html[data-theme="svetlo"] .cal-event-time { color: #6b7280; }

    /* Time capsule / memories */
    html[data-theme="svetlo"] .tc-card {
      background: rgba(255,255,255,0.7);
      border-color: rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .tc-card-title { color: #111827; }
    html[data-theme="svetlo"] .tc-card-date { color: #6b7280; }
    html[data-theme="svetlo"] .tc-card-preview { color: #374151; }
    html[data-theme="svetlo"] .tc-back-btn { color: #475569; }
    html[data-theme="svetlo"] .tc-back-btn:hover { color: #0e7490; background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .tc-photos-btn { color: #475569; }

    /* Care / daily care */
    html[data-theme="svetlo"] .care-task-card {
      background: rgba(255,255,255,0.7);
      border-color: rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .care-task-title { color: #111827; }
    html[data-theme="svetlo"] .care-task-desc { color: #6b7280; }

    /* Settings panel texts */
    html[data-theme="svetlo"] .settings-section-title { color: #1e293b; }
    html[data-theme="svetlo"] .settings-item-label { color: #374151; }
    html[data-theme="svetlo"] .settings-item-value { color: #6b7280; }

    /* Pet cards in admin/pets tab */
    html[data-theme="svetlo"] .pet-card {
      background: rgba(255,255,255,0.7);
      border-color: rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .pet-card-name { color: #111827; }
    html[data-theme="svetlo"] .pet-card-info { color: #6b7280; }

    /* Sub-tabs (health subtabs, pet subtabs) */
    html[data-theme="svetlo"] .health-subtab { color: #6b7280; }
    html[data-theme="svetlo"] .health-subtab.active { color: #0e7490; border-bottom-color: #0e7490; }
    html[data-theme="svetlo"] .health-subtab:hover { color: #0e7490; }

    /* ═══ SVETLÁ TÉMA — Widget mode topbar — krémové pozadie ═══ */
    html[data-theme="svetlo"] .widget-mode-topbar {
      background: rgba(226,230,240,0.95);
      backdrop-filter: blur(16px);
      border-bottom: 1.5px solid rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .widget-topbar-logo {
      color: #0e7490;
    }
    html[data-theme="svetlo"] .widget-topbar-title {
      background: linear-gradient(135deg, #0e7490, #0891b2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    html[data-theme="svetlo"] .widget-topbar-icon {
      color: rgba(55,65,81,0.55);
    }
    html[data-theme="svetlo"] .widget-topbar-icon:hover {
      background: rgba(14,116,144,0.1);
      color: #0e7490;
    }
    html[data-theme="svetlo"] .widget-topbar-icon.active {
      background: rgba(14,116,144,0.12);
      color: #0e7490;
    }

    /* ═══ SVETLÁ TÉMA — Floating widget panels — krémové ═══ */
    html[data-theme="svetlo"] .orbio-widget {
      background: rgba(240,243,250,0.96);
      border-color: rgba(0,60,100,0.14);
      box-shadow: 0 8px 40px rgba(0,30,60,0.1), 0 0 20px rgba(14,116,144,0.04);
    }
    html[data-theme="svetlo"] .orbio-widget:hover {
      box-shadow: 0 8px 40px rgba(0,30,60,0.14), 0 0 24px rgba(14,116,144,0.08);
    }
    html[data-theme="svetlo"] .widget-header {
      border-bottom-color: rgba(0,60,100,0.1);
      background: rgba(14,116,144,0.05);
    }
    html[data-theme="svetlo"] .widget-header-icon {
      background: rgba(14,116,144,0.12);
      color: #0e7490;
    }
    html[data-theme="svetlo"] .widget-header-title {
      color: #1e293b;
    }
    html[data-theme="svetlo"] .widget-header-close {
      color: rgba(75,85,99,0.5);
    }
    html[data-theme="svetlo"] .widget-header-close:hover {
      background: rgba(239,68,68,0.1);
      color: rgba(239,68,68,0.8);
    }
    html[data-theme="svetlo"] .widget-body {
      color: #111827;
    }
    html[data-theme="svetlo"] .widget-body::-webkit-scrollbar-thumb {
      background: rgba(0,40,80,0.14);
    }
    html[data-theme="svetlo"] .widget-resize-handle::after {
      border-color: rgba(0,60,100,0.2);
    }

    /* ═══ SVETLÁ TÉMA — Mini widget stats ═══ */
    html[data-theme="svetlo"] .mini-widget-stat {
      background: rgba(255,255,255,0.6);
      border-color: rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .mini-widget-stat-value {
      color: #111827;
    }
    html[data-theme="svetlo"] .mini-widget-stat-label {
      color: #6b7280;
    }

    /* ═══ SVETLÁ TÉMA — Chat widget floating ═══ */
    html[data-theme="svetlo"] .chat-widget-float {
      background: rgba(240,243,250,0.97);
      border-color: rgba(0,60,100,0.16);
      box-shadow: 0 12px 48px rgba(0,30,60,0.12), 0 0 30px rgba(14,116,144,0.05);
    }
    html[data-theme="svetlo"] .chat-widget-float:hover {
      box-shadow: 0 12px 48px rgba(0,30,60,0.18), 0 0 36px rgba(14,116,144,0.08);
    }
    html[data-theme="svetlo"] .chat-widget-float .chat-header {
      border-bottom-color: rgba(0,60,100,0.1);
    }
    html[data-theme="svetlo"] .chat-widget-toggle-btn {
      color: rgba(55,65,81,0.6);
    }
    html[data-theme="svetlo"] .chat-widget-toggle-btn:hover {
      color: #0e7490;
      background: rgba(14,116,144,0.08);
    }
    html[data-theme="svetlo"] .chat-widget-toggle-btn.active {
      color: #0e7490;
      background: rgba(14,116,144,0.12);
    }

    /* ═══ SVETLÁ TÉMA — Widget mode background — šedý tón ═══ */
    html[data-theme="svetlo"] .widget-mode-bg {
      background: radial-gradient(ellipse at 70% 50%, rgba(14,116,144,0.05) 0%, transparent 60%),
                  radial-gradient(ellipse at 30% 30%, rgba(3,105,161,0.03) 0%, transparent 50%),
                  #e0e5ef;
    }
    html[data-theme="svetlo"] .chat-widget-bg-placeholder {
      background: var(--bg, #e8ecf4);
      color: rgba(14,116,144,0.4);
    }

    /* ═══ SVETLÁ TÉMA — Mini calendar in widget ═══ */
    html[data-theme="svetlo"] .mini-widget-cal-day {
      border-bottom-color: rgba(0,60,100,0.06);
    }

    /* ═══ SVETLÁ — Rôzne globálne prvky — zvýšený kontrast ═══ */
    html[data-theme="svetlo"] .msg-timestamp { color: #9ca3af; }
    html[data-theme="svetlo"] .chat-messages { background: rgba(232,236,244,0.4); }
    html[data-theme="svetlo"] .typing-indicator span { background: #0e7490; }
    html[data-theme="svetlo"] .orbio-logo-header svg { color: #0e7490; }
    html[data-theme="svetlo"] .container { background: #e8ecf4; }

    /* ═══ SVETLÁ — Timeline (tc-*) — všetky texty a čiary tmavé ═══ */
    html[data-theme="svetlo"] .tc-timeline-line {
      border-left-color: rgba(14,116,144,0.15);
    }
    html[data-theme="svetlo"] .tc-month-sep {
      color: #0e7490;
      background: rgba(14,116,144,0.06);
      border-top-color: rgba(14,116,144,0.12);
    }
    html[data-theme="svetlo"] .tc-month-sep::before {
      background: rgba(14,116,144,0.4);
    }
    html[data-theme="svetlo"] .tc-date-sep {
      color: #6b7280;
    }
    html[data-theme="svetlo"] .tc-keyword {
      color: #111827 !important;
    }
    html[data-theme="svetlo"] .tc-meta {
      color: #6b7280 !important;
    }
    html[data-theme="svetlo"] .tc-meta span {
      color: #6b7280 !important;
    }
    html[data-theme="svetlo"] .tc-summary {
      color: #6b7280 !important;
    }
    html[data-theme="svetlo"] .tc-node:hover {
      background: rgba(14,116,144,0.06);
      box-shadow: 0 2px 12px rgba(14,116,144,0.08);
    }
    html[data-theme="svetlo"] .tc-node:hover .tc-keyword {
      color: #0e7490 !important;
    }
    html[data-theme="svetlo"] .tc-node:active {
      background: rgba(14,116,144,0.08);
    }
    html[data-theme="svetlo"] .tc-dot {
      background: #e8ecf4;
    }
    html[data-theme="svetlo"] .tc-dot.neutral {
      border-color: rgba(107,114,128,0.5);
      box-shadow: 0 0 4px rgba(107,114,128,0.2);
    }
    html[data-theme="svetlo"] .tc-dot.joy {
      border-color: #0e7490;
      box-shadow: 0 0 6px rgba(14,116,144,0.3);
    }
    html[data-theme="svetlo"] .tc-photo-thumb {
      border-color: rgba(14,116,144,0.15);
    }
    /* ═══ SVETLÁ — Health timeline + record items ═══ */
    html[data-theme="svetlo"] .health-timeline {
      border-left-color: rgba(14,116,144,0.12);
    }
    html[data-theme="svetlo"] .health-month-sep {
      color: #0e7490;
      background: rgba(14,116,144,0.05);
    }
    html[data-theme="svetlo"] .health-record-item {
      color: #374151;
    }
    html[data-theme="svetlo"] .health-record-item:hover {
      background: rgba(14,116,144,0.04);
    }
    html[data-theme="svetlo"] .health-record-dot {
      background: #e8ecf4;
      border-color: rgba(14,116,144,0.5);
    }
    html[data-theme="svetlo"] .health-record-type {
      color: #111827 !important;
    }
    html[data-theme="svetlo"] .health-record-date {
      color: #6b7280 !important;
    }
    html[data-theme="svetlo"] .health-record-info {
      color: #6b7280 !important;
    }
    html[data-theme="svetlo"] .health-record-tag {
      background: rgba(14,116,144,0.1);
      color: #0e7490;
    }
    /* ═══ SVETLÁ — Inline styles override pre widget body texty ═══ */
    html[data-theme="svetlo"] .tc-node-text div[style],
    html[data-theme="svetlo"] .tc-node-text span[style],
    html[data-theme="svetlo"] .widget-body div[style],
    html[data-theme="svetlo"] .widget-body span[style] {
      color: #374151 !important;
    }
    html[data-theme="svetlo"] .tc-node-text .tc-keyword[style] {
      color: #111827 !important;
    }
    /* Výnimky — zachovaj farebné badges (NEPLATNÁ/PLATNÁ) */
    html[data-theme="svetlo"] .tc-node-text span[style*="border-radius:3px"],
    html[data-theme="svetlo"] .widget-body span[style*="border-radius:3px"] {
      color: unset !important;
    }
    /* ═══ SVETLÁ — Stamp badges (PLATNÁ/NEPLATNÁ) — silnejší kontrast ═══ */
    html[data-theme="svetlo"] .tc-node-text span[style*="border-radius:3px"] {
      text-shadow: none !important;
      box-shadow: none !important;
      font-weight: 800 !important;
    }
    /* ═══ SVETLÁ — Pet carousel v widget ═══ */
    html[data-theme="svetlo"] .pet-scroll-arrow { color: rgba(14,116,144,0.4); }
    html[data-theme="svetlo"] .pet-scroll-arrow:hover { color: #0e7490; background: rgba(14,116,144,0.06); }
    /* ═══ SVETLÁ — Pet sub-tab buttons (health timeline, vaccination, etc.) ═══ */
    html[data-theme="svetlo"] .pet-subtab-btn { color: rgba(55,65,81,0.7); }
    html[data-theme="svetlo"] .pet-subtab-btn:hover { color: #0e7490; background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .pet-subtab-btn.active { background: rgba(14,116,144,0.1); }
    /* ═══ Vet sub-tab buttons (Nová / Aktívna / História) — base + light ═══ */
    .vet-subtab-btn { color: rgba(224,232,240,0.4); border: 2px solid rgba(224,232,240,0.12); transition: all 0.15s; }
    .vet-subtab-btn:hover { color: rgba(232,244,248,0.7); background: rgba(255,255,255,0.04); }
    html[data-theme="svetlo"] .vet-subtab-btn { color: rgba(55,65,81,0.7); border-color: rgba(0,60,100,0.15); }
    html[data-theme="svetlo"] .vet-subtab-btn:hover { color: #0e7490; background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .vet-subtab-btn.active { background: rgba(14,116,144,0.1); }
    /* ═══ SVETLÁ — Time capsule detail ═══ */
    html[data-theme="svetlo"] .tc-detail-header { color: #111827; }
    html[data-theme="svetlo"] .tc-back-btn { color: #475569 !important; }
    html[data-theme="svetlo"] .tc-photos-btn { color: #475569 !important; }
    html[data-theme="svetlo"] .tc-continue-btn {
      background: rgba(14,116,144,0.12);
      border-color: rgba(14,116,144,0.25);
      color: #0e7490;
    }
    html[data-theme="svetlo"] .tc-continue-btn:hover {
      background: rgba(14,116,144,0.2);
    }
    /* ═══ SVETLÁ — PP recap (Pet Passport) ═══ */
    html[data-theme="svetlo"] .pp-recap { background: rgba(240,243,250,0.95); border-color: rgba(0,60,100,0.12); }
    html[data-theme="svetlo"] .pp-recap-title { color: #111827; }
    html[data-theme="svetlo"] .pp-recap-label { color: #111827; }
    html[data-theme="svetlo"] .pp-recap-detail { color: #6b7280; }
    html[data-theme="svetlo"] .pp-recap-item { border-color: rgba(0,60,100,0.08); }
    html[data-theme="svetlo"] .pp-recap-item.selected { background: rgba(14,116,144,0.06); }
    html[data-theme="svetlo"] .pp-recap-btn.save { background: rgba(14,116,144,0.15); color: #0e7490; border-color: rgba(14,116,144,0.3); }
    html[data-theme="svetlo"] .pp-recap-btn.cancel { color: #6b7280; border-color: rgba(0,60,100,0.12); }
    /* ═══ SVETLÁ — Toggle switches + rows (settings) ═══ */
    html[data-theme="svetlo"] .toggle-label { color: #1e293b !important; }
    html[data-theme="svetlo"] .toggle-sub { color: #6b7280 !important; }
    html[data-theme="svetlo"] .toggle-row span[style] { color: #475569 !important; }
    /* ═══ SVETLÁ — Orbio canvas + mascot background — viditeľnejší ═══ */
    html[data-theme="svetlo"] .orbio-canvas-container canvas,
    html[data-theme="svetlo"] canvas[style*="pointer-events"] {
      opacity: 0.35 !important;
      filter: invert(0.7) hue-rotate(160deg) saturate(2);
    }
    /* ═══ SVETLÁ — MOJE ZVIERATÁ nadpis a pet-name v widget ═══ */
    html[data-theme="svetlo"] .menu-section-title,
    html[data-theme="svetlo"] .pet-card-name,
    html[data-theme="svetlo"] .orbio-widget .menu-section-title {
      color: #0e7490 !important;
    }
    /* ═══ SVETLÁ — Generický override pre svetlé inline texty vo widgetoch ═══ */
    html[data-theme="svetlo"] .orbio-widget .widget-body * {
      border-color: rgba(0,60,100,0.08);
    }
    html[data-theme="svetlo"] .orbio-widget .widget-body svg {
      color: inherit;
    }
    /* ═══ SVETLÁ — VETID, Games content vo widgetoch ═══ */
    html[data-theme="svetlo"] .vetid-chat-msg { color: #111827 !important; }
    html[data-theme="svetlo"] .game-card { background: rgba(255,255,255,0.7); border-color: rgba(0,60,100,0.1); }
    html[data-theme="svetlo"] .game-card-title { color: #111827; }
    html[data-theme="svetlo"] .game-card-desc { color: #6b7280; }

    html[data-theme="polnoc"] {
      --bg: #030308;
      --bg-rgb: 3, 3, 8;
      --glass: rgba(18, 18, 28, 0.85);
      --glass-border: rgba(255, 255, 255, 0.08);
      --text: #e4e4ec;
      --text-rgb: 228, 228, 236;
      --text-dim: #8888a0;
      --text-muted: #5a5a72;
      --accent: #00e4b8;
      --accent-rgb: 0, 228, 184;
      --accent2: #22aadd;
      --shadow: rgba(0, 0, 0, 0.6);
      --input-bg: rgba(20, 20, 32, 0.8);
      --scheme: dark;
    }
    html[data-theme="ocean"] {
      --bg: #071a28;
      --bg-rgb: 7, 26, 40;
      --glass: rgba(12, 42, 68, 0.7);
      --glass-border: rgba(80, 170, 255, 0.14);
      --text: #daeef9;
      --text-rgb: 218, 238, 249;
      --text-dim: #7aafc8;
      --text-muted: #5a8da8;
      --accent: #2cc8df;
      --accent-rgb: 44, 200, 223;
      --accent2: #4aacf5;
      --shadow: rgba(0, 0, 0, 0.2);
      --input-bg: rgba(14, 45, 70, 0.55);
      --scheme: dark;
    }
    html[data-theme="les"] {
      --bg: #04120a;
      --bg-rgb: 4, 18, 10;
      --glass: rgba(10, 40, 22, 0.75);
      --glass-border: rgba(60, 180, 100, 0.16);
      --text: #d8f5e0;
      --text-rgb: 216, 245, 224;
      --text-dim: #6ab882;
      --text-muted: #4a9060;
      --accent: #34d058;
      --accent-rgb: 52, 208, 88;
      --accent2: #20c884;
      --shadow: rgba(0, 0, 0, 0.3);
      --input-bg: rgba(12, 42, 24, 0.65);
      --scheme: dark;
    }
    html[data-theme="levandula"] {
      --bg: #0c0818;
      --bg-rgb: 12, 8, 24;
      --glass: rgba(28, 20, 55, 0.78);
      --glass-border: rgba(140, 110, 255, 0.16);
      --text: #ece6f8;
      --text-rgb: 236, 230, 248;
      --text-dim: #9880c0;
      --text-muted: #6e5898;
      --accent: #a078ff;
      --accent-rgb: 160, 120, 255;
      --accent2: #d870f0;
      --shadow: rgba(0, 0, 0, 0.3);
      --input-bg: rgba(30, 22, 58, 0.65);
      --scheme: dark;
    }
    html[data-theme="pieskovy"] {
      --bg: #100c08;
      --bg-rgb: 16, 12, 8;
      --glass: rgba(44, 36, 24, 0.78);
      --glass-border: rgba(200, 160, 80, 0.18);
      --text: #f4ece0;
      --text-rgb: 244, 236, 224;
      --text-dim: #b89870;
      --text-muted: #8a7050;
      --accent: #f0a000;
      --accent-rgb: 240, 160, 0;
      --accent2: #e89030;
      --shadow: rgba(0, 0, 0, 0.35);
      --input-bg: rgba(48, 38, 24, 0.7);
      --scheme: dark;
    }
    html[data-theme="ruzovy"] {
      --bg: #120810;
      --bg-rgb: 18, 8, 16;
      --glass: rgba(44, 18, 36, 0.78);
      --glass-border: rgba(240, 100, 160, 0.16);
      --text: #f8e4ee;
      --text-rgb: 248, 228, 238;
      --text-dim: #c07898;
      --text-muted: #905870;
      --accent: #f06898;
      --accent-rgb: 240, 104, 152;
      --accent2: #e84888;
      --shadow: rgba(0, 0, 0, 0.35);
      --input-bg: rgba(48, 20, 38, 0.7);
      --scheme: dark;
    }

    /* ═══ SIZE SYSTEM — 3 veľkosti (small/medium/maxi) — len desktop ═══ */
    /* Používame CSS scale premenné namiesto zoom — zachováva rozlíšenie a layout */
    :root { --zoom: 1; --ui-scale: 1; --font-scale: 1; }
    html[data-size="small"]  { --zoom: 1; --ui-scale: 1; --font-scale: 1; }
    html[data-size="medium"] { --zoom: 1.2; --ui-scale: 1.15; --font-scale: 1.12; }
    html[data-size="maxi"]   { --zoom: 1.5; --ui-scale: 1.35; --font-scale: 1.25; }

    /* ═══ THEME OVERRIDES — aplikovanie CSS vars ═══ */
    html {
      background: var(--bg);
      background-color: var(--bg);
      min-height: 100%;
      overscroll-behavior: none;
      color-scheme: var(--scheme);
    }
    body {
      background: var(--bg);
      background-color: var(--bg);
      font-family: 'Inter', sans-serif;
      color: var(--text);
      overflow: hidden;
      height: 100vh;
      height: 100dvh;
      margin: 0;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: none;
    }
    /* iPhone full-bleed background — covers ALL safe area zones */
    body::before {
      content: '';
      position: fixed;
      inset: -100px;
      background: var(--bg);
      z-index: -1;
    }

    #root {
      width: 100%;
      height: 100vh;
      height: 100dvh;
      background: var(--bg);
      overflow: hidden;
    }

    .container {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      /* Výška nastavená cez JS (window.innerHeight/zoom) — CSS fallback */
      height: calc(100vh / var(--zoom, 1));
      height: calc(100dvh / var(--zoom, 1));
      display: flex;
      flex-direction: column;
      zoom: var(--zoom);
      position: relative;
      background: var(--bg);
      overflow: hidden;
      /* ostrý rendering */
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    /* Firefox fallback — nemá zoom, používa transform */
    @-moz-document url-prefix() {
      .container {
        zoom: unset;
        transform: scale(var(--zoom, 1));
        transform-origin: top center;
      }
    }

    .glass {
      backdrop-filter: blur(20px);
      background: var(--glass);
      border: 1px solid var(--glass-border);
    }

    .glass-card {
      backdrop-filter: blur(20px);
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 8px 32px var(--shadow);
    }

    /* Theme-aware color palette chip in settings */
    .theme-grid { display: flex; flex-wrap: wrap; gap: 10px; }
    .theme-chip {
      width: 48px; height: 48px; border-radius: 12px; border: 2px solid transparent;
      cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
    }
    .theme-chip:hover { transform: scale(1.1); }
    .theme-chip.active { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(var(--accent-rgb), 0.2); }
    .theme-chip .theme-label {
      position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
      font-size: 7px; font-weight: 600; letter-spacing: 0.5px; padding: 2px 0;
      background: rgba(0,0,0,0.4); color: #fff;
    }
    .theme-chip[data-theme="svetlo"] .theme-label { background: rgba(0,0,0,0.15); color: #333; }
    .theme-auto-row {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 14px;
    }

    /* Size picker in settings */
    .size-grid { display: flex; gap: 10px; }
    .size-card {
      flex: 1; padding: 14px 10px; border-radius: 14px; border: none;
      background: none; cursor: pointer; transition: all 0.25s; text-align: center;
    }
    .size-card:hover { background: rgba(var(--accent-rgb), 0.04); }
    .size-card.active { background: rgba(var(--accent-rgb), 0.06); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.1); }
    .size-card .size-icon { font-size: 22px; margin-bottom: 4px; }
    .size-card .size-name { font-size: 13px; font-weight: 600; color: var(--text); }
    .size-card .size-desc { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
    .size-card.active .size-name { color: var(--accent); }

    .logo-svg {
      width: 100%;
      height: 100%;
    }

    @keyframes pulse-glow {
      0%, 100% { filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.3)); }
      50% { filter: drop-shadow(0 0 24px rgba(0, 212, 170, 0.6)); }
    }

    @keyframes float-in {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fade-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* LOGIN SCREEN */
    .login-screen {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 24px;
      gap: 24px;
    }

    .login-logo {
      width: 100px;
      height: 100px;
      animation: pulse-glow 3s ease-in-out infinite;
    }

    .login-title {
      font-size: 36px;
      font-weight: 300;
      letter-spacing: 6px;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .login-subtitle {
      font-size: 13px;
      color: rgba(136, 153, 179, 0.6);
      letter-spacing: 1px;
      text-align: center;
    }

    .login-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: min(320px, 90vw);
      margin-top: 16px;
    }

    .login-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 14px 24px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: var(--glass);
      backdrop-filter: blur(20px);
      color: #e8f4f8;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
      min-height: 44px;
      touch-action: manipulation;
    }

    .login-btn:hover {
      border-color: rgba(0, 212, 170, 0.3);
      background: rgba(0, 212, 170, 0.05);
    }

    .login-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .login-btn svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    .login-divider {
      display: flex;
      align-items: center;
      gap: 16px;
      width: 100%;
      max-width: 320px;
      color: rgba(136, 153, 179, 0.3);
      font-size: 12px;
    }

    .login-divider::before,
    .login-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.06);
    }

    .login-input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: var(--input-bg);
      color: #e8f4f8;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s;
      min-height: 44px;
    }

    .login-input:focus {
      border-color: rgba(0, 212, 170, 0.4);
    }

    .login-input::placeholder {
      color: rgba(136, 153, 179, 0.4);
    }

    .login-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: 320px;
    }

    .btn-primary {
      padding: 14px 24px;
      border-radius: 12px;
      border: none;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      color: var(--bg);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 44px;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
    }

    .link-btn {
      background: none;
      border: none;
      color: #00d4aa;
      font-size: 13px;
      cursor: pointer;
      padding: 8px 4px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .link-btn:hover {
      text-decoration: underline;
    }

    .error-msg {
      color: #ff7777;
      font-size: 12px;
      text-align: center;
    }

    .success-msg {
      color: #00d4aa;
      font-size: 12px;
      text-align: center;
    }

    /* ONBOARDING */
    .onboarding {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 24px;
      animation: fade-in 0.5s ease;
      overflow-y: auto;
      position: relative;
    }

    .onboarding-logo {
      width: 80px;
      height: 80px;
      margin-bottom: 16px;
      animation: pulse-glow 3s ease-in-out infinite;
    }

    .onboarding-greeting {
      font-size: 20px;
      font-weight: 300;
      text-align: center;
      color: rgba(232, 244, 248, 0.9);
      margin-bottom: 8px;
      line-height: 1.5;
    }

    .onboarding-sub {
      font-size: 13px;
      color: rgba(136, 153, 179, 0.5);
      text-align: center;
      margin-bottom: 32px;
    }

    .onboarding-question {
      animation: float-in 0.4s ease;
      width: 100%;
      max-width: 360px;
    }

    .onboarding-q-text {
      font-size: 16px;
      font-weight: 400;
      text-align: center;
      color: rgba(232, 244, 248, 0.85);
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .onboarding-input {
      width: 100%;
      padding: 16px 20px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: var(--input-bg);
      color: #e8f4f8;
      font-size: 16px;
      outline: none;
      transition: all 0.2s;
      text-align: center;
      min-height: 44px;
    }

    .onboarding-input:focus {
      border-color: rgba(0, 212, 170, 0.4);
      background: var(--glass);
    }

    .onboarding-input::placeholder {
      color: rgba(136, 153, 179, 0.35);
    }

    .species-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
      width: 100%;
    }

    .species-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 16px 8px;
      border-radius: 14px;
      border: none;
      background: none;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 80px;
      justify-content: center;
    }

    .species-card:hover {
      background: rgba(255,255,255,0.03);
    }

    .species-card.selected {
      background: rgba(0, 212, 170, 0.06);
    }

    .species-card svg {
      width: 28px;
      height: 28px;
      color: rgba(232, 244, 248, 0.6);
    }

    .species-card.selected svg {
      color: #00d4aa;
    }

    .species-card span {
      font-size: 12px;
      color: rgba(232, 244, 248, 0.5);
    }

    .species-card.selected span {
      color: #00d4aa;
    }

    .gender-row {
      display: flex;
      gap: 10px;
      width: 100%;
    }

    .gender-btn {
      flex: 1;
      padding: 14px;
      border-radius: 14px;
      border: none;
      background: none;
      color: rgba(232, 244, 248, 0.5);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 44px;
    }

    .gender-btn.selected {
      background: rgba(0, 212, 170, 0.06);
      color: #00d4aa;
    }

    .onboarding-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-top: 24px;
    }

    .onboarding-next {
      padding: 12px 32px;
      border-radius: 12px;
      border: none;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      color: var(--bg);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 44px;
    }

    .onboarding-next:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
    }

    .onboarding-next:disabled {
      opacity: 0.3;
      cursor: default;
      transform: none;
      box-shadow: none;
    }

    .onboarding-skip {
      background: none;
      border: none;
      color: rgba(136, 153, 179, 0.4);
      font-size: 13px;
      cursor: pointer;
      padding: 8px;
      min-height: 44px;
    }

    .onboarding-skip:hover {
      color: rgba(136, 153, 179, 0.7);
    }

    .step-dots {
      display: flex;
      gap: 6px;
      margin-top: 20px;
    }

    .step-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      transition: all 0.3s;
    }

    .step-dot.active {
      background: #00d4aa;
      box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
    }

    .step-dot.done {
      background: rgba(0, 212, 170, 0.3);
    }

    /* ═══ TUTORIAL SYSTEM — 3-tier onboarding with animations ═══ */

    @keyframes tut-particle-float {
      0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
      10% { opacity: 1; } 90% { opacity: 1; }
      50% { transform: translateY(-40vh) translateX(20px) scale(0.5); }
    }
    @keyframes tut-logo-pulse {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(var(--neon), 0.3)); }
      50% { transform: scale(1.06); filter: drop-shadow(0 0 28px rgba(var(--neon), 0.6)) drop-shadow(0 0 56px rgba(var(--neon), 0.2)); }
    }
    @keyframes tut-card-enter {
      0% { opacity: 0; transform: translateY(30px) scale(0.95); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes tut-feature-glow {
      0%, 100% { box-shadow: 0 0 20px rgba(var(--tc), 0.1), inset 0 0 20px rgba(var(--tc), 0.02); }
      50% { box-shadow: 0 0 40px rgba(var(--tc), 0.25), inset 0 0 30px rgba(var(--tc), 0.05); }
    }
    @keyframes tut-voice-ring {
      0% { transform: scale(0.8); opacity: 1; }
      100% { transform: scale(2.5); opacity: 0; }
    }
    @keyframes tut-typing {
      0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
      30% { opacity: 1; transform: scale(1); }
    }
    @keyframes tut-shine {
      0% { left: -100%; } 100% { left: 200%; }
    }
    @keyframes tut-wave-bg {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    @keyframes tut-icon-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    .tut-overlay {
      position: fixed; inset: 0; background: var(--bg);
      z-index: 9999; display: flex; flex-direction: column; overflow: hidden;
    }
    .tut-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
    .tut-particle {
      position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
      background: rgba(var(--neon), 0.4);
      animation: tut-particle-float linear infinite;
    }
    .tut-content {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 40px 24px; position: relative; z-index: 1; overflow-y: auto;
    }
    .tut-logo-wrap {
      width: 100px; height: 100px;
      animation: tut-logo-pulse 3s ease-in-out infinite;
      margin-bottom: 20px;
    }
    .tut-title {
      font-size: 32px; font-weight: 300; letter-spacing: 8px;
      background: linear-gradient(135deg, rgba(var(--neon), 1), var(--accent2));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      margin-bottom: 8px; text-align: center;
    }
    .tut-subtitle {
      font-size: 13px; color: var(--text-dim);
      text-align: center; margin-bottom: 40px; letter-spacing: 0.5px;
    }

    /* Level picker */
    .tut-levels { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 360px; }
    .tut-level-card {
      position: relative; padding: 20px 22px; border-radius: 16px; cursor: pointer;
      background: rgba(var(--bg-rgb), 0.6); border: 1px solid rgba(var(--neon), 0.12);
      backdrop-filter: blur(20px); transition: all 0.3s ease;
      animation: tut-card-enter 0.5s ease backwards; overflow: hidden;
    }
    .tut-level-card::before {
      content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
      background: linear-gradient(135deg, rgba(var(--neon), 0.3), transparent, rgba(var(--neon), 0.1));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none; opacity: 0; transition: opacity 0.3s;
    }
    .tut-level-card:hover::before { opacity: 1; }
    .tut-level-card:hover {
      border-color: rgba(var(--neon), 0.3); transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(var(--neon), 0.08);
    }
    .tut-level-card:nth-child(1) { animation-delay: 0.1s; }
    .tut-level-card:nth-child(2) { animation-delay: 0.25s; }
    .tut-level-card:nth-child(3) { animation-delay: 0.4s; }
    .tut-level-card .shine {
      position: absolute; top: 0; width: 60%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(var(--neon), 0.04), transparent);
      animation: tut-shine 3s ease-in-out infinite; pointer-events: none;
    }
    .tut-level-header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
    .tut-level-icon {
      width: 40px; height: 40px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(var(--neon), 0.08); color: var(--accent); flex-shrink: 0;
    }
    .tut-level-icon svg { width: 22px; height: 22px; }
    .tut-level-name { font-size: 16px; font-weight: 500; color: var(--text); }
    .tut-level-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
    .tut-level-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; padding-left: 54px; }
    .tut-level-card.active { border-color: rgba(var(--neon), 0.5); background: rgba(var(--neon), 0.04); }

    /* Steps */
    .tut-step { animation: tut-card-enter 0.4s ease; width: 100%; max-width: 380px; text-align: center; }
    .tut-q { font-size: 18px; font-weight: 400; color: var(--text); margin-bottom: 24px; line-height: 1.5; opacity: 0.9; }
    .tut-q-sub { font-size: 13px; color: var(--text-dim); margin-top: -16px; margin-bottom: 20px; }

    /* One-click chips */
    .tut-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
    .tut-chip {
      padding: 12px 20px; border-radius: 24px;
      border: 1px solid rgba(var(--neon), 0.12);
      background: rgba(var(--neon), 0.03); color: var(--text); font-size: 14px;
      cursor: pointer; transition: all 0.25s;
      display: flex; align-items: center; gap: 8px; min-height: 44px;
    }
    .tut-chip:hover {
      border-color: rgba(var(--neon), 0.35); background: rgba(var(--neon), 0.08);
      transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--neon), 0.1);
    }
    .tut-chip.selected {
      border-color: var(--accent); background: rgba(var(--neon), 0.12);
      color: var(--accent); box-shadow: 0 0 16px rgba(var(--neon), 0.15);
    }

    /* Species grid enhanced */
    .tut-species-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; width: 100%; }
    .tut-species-card {
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      padding: 20px 8px; border-radius: 16px;
      border: 1px solid rgba(var(--neon), 0.08);
      background: none; cursor: pointer; transition: all 0.25s;
      min-height: 88px; justify-content: center;
    }
    .tut-species-card:hover { background: rgba(var(--neon), 0.04); border-color: rgba(var(--neon), 0.2); transform: translateY(-2px); }
    .tut-species-card.selected { background: rgba(var(--neon), 0.08); border-color: var(--accent); box-shadow: 0 0 20px rgba(var(--neon), 0.12); }
    .tut-species-card svg { width: 32px; height: 32px; color: var(--text-dim); transition: color 0.25s; }
    .tut-species-card.selected svg { color: var(--accent); }
    .tut-species-card span { font-size: 12px; color: var(--text-dim); transition: color 0.25s; }
    .tut-species-card.selected span { color: var(--accent); }

    /* Input */
    .tut-input {
      width: 100%; padding: 16px 20px; border-radius: 14px;
      border: 1px solid rgba(var(--neon), 0.1); background: var(--input-bg);
      color: var(--text); font-size: 16px; outline: none; transition: all 0.3s;
      text-align: center; min-height: 44px;
    }
    .tut-input:focus { border-color: rgba(var(--neon), 0.4); box-shadow: 0 0 16px rgba(var(--neon), 0.08); }
    .tut-input::placeholder { color: var(--text-muted); }

    /* Nav */
    .tut-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
    .tut-next-btn {
      padding: 14px 40px; border-radius: 14px; border: none;
      font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
      min-height: 48px; position: relative; overflow: hidden;
      background: linear-gradient(135deg, rgba(var(--neon), 1), var(--accent2));
      color: var(--bg);
    }
    .tut-next-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(var(--neon), 0.3); }
    .tut-next-btn:disabled { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }
    .tut-skip-btn {
      background: none; border: none; color: var(--text-muted); font-size: 13px;
      cursor: pointer; padding: 8px 12px; min-height: 44px; transition: color 0.2s;
    }
    .tut-skip-btn:hover { color: var(--text-dim); }

    /* Progress */
    .tut-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(var(--neon), 0.06); z-index: 10; }
    .tut-progress-bar {
      height: 100%; border-radius: 0 2px 2px 0;
      background: linear-gradient(90deg, rgba(var(--neon), 0.8), var(--accent2));
      transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative;
    }
    .tut-progress-bar::after {
      content: ''; position: absolute; right: 0; top: -2px;
      width: 8px; height: 7px; border-radius: 50%;
      background: rgba(var(--neon), 1); box-shadow: 0 0 12px rgba(var(--neon), 0.6);
    }
    .tut-back {
      position: absolute; top: 16px; left: 16px; background: none; border: none;
      color: var(--text-muted); font-size: 22px; cursor: pointer; padding: 8px; z-index: 10;
    }

    /* Feature showcase */
    .tut-feature { width: 100%; max-width: 360px; animation: tut-card-enter 0.5s ease; text-align: center; }
    .tut-feature-visual {
      width: 100%; aspect-ratio: 16/10; border-radius: 20px; margin-bottom: 24px;
      position: relative; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .tut-feature-visual svg {
      width: 64px; height: 64px;
      filter: drop-shadow(0 0 20px rgba(var(--tc), 0.3));
      animation: tut-icon-float 3s ease-in-out infinite;
    }
    .tut-feature-badge {
      position: absolute; top: 12px; right: 12px;
      padding: 4px 10px; border-radius: 8px; font-size: 10px;
      letter-spacing: 0.5px; font-weight: 600;
    }
    .tut-feature-title { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
    .tut-feature-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
    .tut-feature-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .tut-feature-tag {
      padding: 6px 14px; border-radius: 20px; font-size: 12px;
    }

    /* Voice demo */
    .tut-voice-demo {
      width: 120px; height: 120px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px; position: relative; cursor: pointer;
      transition: all 0.3s;
    }
    .tut-voice-demo svg { width: 40px; height: 40px; }
    .tut-voice-ring {
      position: absolute; inset: -8px; border-radius: 50%;
      animation: tut-voice-ring 2s ease-out infinite;
    }
    .tut-voice-ring:nth-child(2) { animation-delay: 0.6s; }
    .tut-voice-ring:nth-child(3) { animation-delay: 1.2s; }

    /* Typing dots */
    .tut-typing-dots { display: flex; gap: 4px; justify-content: center; margin: 16px 0; }
    .tut-typing-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: rgba(var(--neon), 0.5);
      animation: tut-typing 1.2s ease-in-out infinite;
    }
    .tut-typing-dot:nth-child(2) { animation-delay: 0.15s; }
    .tut-typing-dot:nth-child(3) { animation-delay: 0.3s; }

    /* Summary */
    .tut-summary-card {
      width: 100%; max-width: 360px; padding: 24px;
      border-radius: 20px; text-align: left;
      background: rgba(var(--neon), 0.03); border: 1px solid rgba(var(--neon), 0.1);
      animation: tut-card-enter 0.5s ease;
    }
    .tut-summary-row {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 0; font-size: 13px; color: var(--text-dim);
    }
    .tut-summary-row svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

    /* Mini mockup */
    .tut-mockup {
      width: 140px; height: 200px; border-radius: 16px;
      background: rgba(var(--bg-rgb), 0.8);
      border: 1px solid rgba(var(--tc), 0.15);
      padding: 12px 10px; display: flex; flex-direction: column; gap: 6px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    .tut-mockup-bar { height: 6px; border-radius: 3px; }
    .tut-mockup-bar.short { width: 60%; }

    /* Gender row for tutorial */
    .tut-gender-row { display: flex; gap: 10px; width: 100%; }
    .tut-gender-btn {
      flex: 1; padding: 14px; border-radius: 14px; border: 1px solid rgba(var(--neon), 0.08);
      background: none; color: var(--text-dim); font-size: 14px;
      cursor: pointer; transition: all 0.25s; min-height: 44px;
    }
    .tut-gender-btn:hover { border-color: rgba(var(--neon), 0.25); background: rgba(var(--neon), 0.04); }
    .tut-gender-btn.selected { background: rgba(var(--neon), 0.08); border-color: var(--accent); color: var(--accent); }

    /* CHAT SCREEN */
    .chat-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px 16px 6px;
      padding-top: max(10px, env(safe-area-inset-top));
      border-bottom: none;
      border: none;
      position: relative;
      z-index: 100;
      background: var(--bg);
      flex-shrink: 0;
    }

    .chat-header-row {
      display: flex;
      align-items: center;
      width: 100%;
      gap: 12px;
    }

    .problem-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 4px 0 2px;
      min-height: 26px;
    }

    .problem-pet-name {
      font-size: 18px;
      font-weight: 500;
      letter-spacing: 1.5px;
      background: linear-gradient(135deg, #00d4aa, #7dd3fc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .problem-dot-separator {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #00d4aa;
      flex-shrink: 0;
      animation: problem-pulse 2.5s ease-in-out infinite;
      box-shadow: 0 0 6px rgba(0,212,170,0.5);
    }

    .problem-label {
      font-size: 18px;
      font-weight: 400;
      letter-spacing: 1px;
      color: rgba(0, 212, 170, 0.85);
      text-align: center;
      max-width: 60%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: opacity 0.3s ease;
    }

    @keyframes problem-pulse {
      0%, 100% { opacity: 0.4; transform: scale(0.8); }
      50% { opacity: 1; transform: scale(1.2); }
    }

    /* Animácia uloženia spomienky — guľôčka letiaca k Orbio logu */
    .memory-save-particle {
      position: fixed;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #00d4aa;
      box-shadow: 0 0 12px rgba(0,212,170,0.8), 0 0 24px rgba(0,212,170,0.4);
      z-index: 9999;
      pointer-events: none;
      top: auto;
      bottom: 80px;
      left: 50%;
      animation: memory-fly 1.6s ease-in-out forwards;
    }

    @keyframes memory-fly {
      0% {
        bottom: 80px;
        left: 50%;
        opacity: 1;
        transform: scale(1.5) translateX(-50%);
      }
      40% {
        bottom: 55%;
        left: 25%;
        opacity: 1;
        transform: scale(1);
      }
      100% {
        bottom: calc(100% - 32px);
        left: 24px;
        opacity: 0;
        transform: scale(0.3);
      }
    }

    /* Glow na Orbio logu keď sa spomienka uloží */
    .memory-save-glow .chat-header-logo {
      animation: memory-glow 1.8s ease-out;
    }

    @keyframes memory-glow {
      0% { filter: drop-shadow(0 0 0 rgba(0,212,170,0)); }
      40% { filter: drop-shadow(0 0 12px rgba(0,212,170,0.8)); }
      70% { filter: drop-shadow(0 0 8px rgba(0,212,170,0.4)); }
      100% { filter: drop-shadow(0 0 0 rgba(0,212,170,0)); }
    }

    /* Decay vizuál — staršie správy hasnú */
    .msg-row.msg-decay-old {
      opacity: 0.4;
      transform: scale(0.97);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .msg-row.msg-decay-mid {
      opacity: 0.7;
      transition: opacity 0.5s ease;
    }

    .problem-char {
      display: inline-block;
      animation: problem-fade-in 0.08s ease forwards;
      opacity: 0;
    }

    @keyframes problem-fade-in {
      to { opacity: 1; }
    }

    .orbio-heart-logo {
      position: relative;
      width: 52px;
      height: 52px;
      flex-shrink: 0;
    }

    .chat-header-logo {
      width: 52px;
      height: 52px;
      flex-shrink: 0;
    }

    .heart-dot {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      bottom: 2px;
      right: 0px;
      background: #00d4aa;
      animation: heart-pulse 3s ease-in-out infinite;
      transition: background 0.6s ease, box-shadow 0.6s ease;
    }

    .heart-dot.online {
      background: #00d4aa;
      box-shadow: 0 0 6px rgba(0,212,170,0.6);
      animation: heartbeat-alive 2.5s ease-in-out infinite;
    }

    .heart-dot.offline {
      background: #ff4757;
      box-shadow: 0 0 4px rgba(255,71,87,0.4);
      animation: none;
      opacity: 0.6;
    }

    .heart-dot.reconnecting {
      background: #ffa502;
      box-shadow: 0 0 6px rgba(255,165,2,0.5);
      animation: heartbeat-reconnect 1.2s ease-in-out infinite;
    }

    @keyframes heart-pulse {
      0%, 100% { transform: scale(0.7); opacity: 0.4; }
      50% { transform: scale(1.3); opacity: 1; }
    }

    @keyframes heartbeat-alive {
      0%, 100% { transform: scale(0.85); opacity: 0.5; }
      15% { transform: scale(1.4); opacity: 1; }
      30% { transform: scale(0.9); opacity: 0.6; }
      45% { transform: scale(1.2); opacity: 0.9; }
      60% { transform: scale(0.85); opacity: 0.5; }
    }

    @keyframes heartbeat-reconnect {
      0%, 100% { transform: scale(0.8); opacity: 0.3; }
      50% { transform: scale(1.1); opacity: 0.8; }
    }

    .chat-header-title {
      font-size: 24px;
      font-weight: 400;
      letter-spacing: 2.5px;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .chat-header-spacer {
      flex: 1;
    }

    /* Memory Recall Mode — SPOMIENKA badge vedľa ORBIO */
    .memory-recall-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      color: #f0c04c;
      background: rgba(240, 192, 76, 0.08);
      border: 1px solid rgba(240, 192, 76, 0.15);
      border-radius: 6px;
      padding: 3px 8px;
      margin-left: 8px;
      animation: recall-pulse 3s ease-in-out infinite;
      flex-shrink: 0;
    }
    .memory-recall-badge svg {
      opacity: 0.7;
    }
    @keyframes recall-pulse {
      0%, 100% { opacity: 0.8; }
      50% { opacity: 1; }
    }

    /* Šípka späť z recall mode */
    .memory-recall-back {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border: none;
      background: rgba(240, 192, 76, 0.1);
      border-radius: 50%;
      color: #f0c04c;
      cursor: pointer;
      margin-left: 6px;
      transition: background 0.2s, transform 0.2s;
      flex-shrink: 0;
    }
    .memory-recall-back:hover {
      background: rgba(240, 192, 76, 0.2);
      transform: scale(1.1);
    }

    /* Info text — flying background text in bottom 1/3 of chat area */
    .info-bubble-zone {
      position: absolute;
      left: 0; right: 0;
      top: 33%;
      height: 34%;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
      display: flex;
      align-items: center;
    }
    .info-bubble-text {
      position: absolute;
      white-space: nowrap;
      font-size: calc(46px * var(--zoom, 1));
      font-weight: 700;
      letter-spacing: 6px;
      color: var(--accent);
      opacity: 0;
      text-transform: uppercase;
      line-height: 1;
      animation: info-fly-across 14s linear forwards;
    }
    @keyframes info-fly-across {
      0%   { right: -100%; opacity: 0; }
      5%   { opacity: 0.055; }
      50%  { opacity: 0.055; }
      95%  { opacity: 0.055; }
      100% { right: 120%; opacity: 0; }
    }

    /* ── Header Hover Bubbles — neviditeľné, aktivujú sa na hover ── */
    .header-hover-actions {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: auto;
    }
    .header-hover-btn {
      background: none;
      border: none;
      color: rgba(0, 212, 170, 0);
      font-size: 0;
      padding: 6px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.4s ease;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 0;
      overflow: hidden;
      max-width: 28px;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }
    .hover-btn-label {
      font-size: 0;
      opacity: 0;
      max-width: 0;
      overflow: hidden;
      transition: all 0.35s ease;
      font-weight: 500;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .chat-header-row:hover .header-hover-btn,
    .header-hover-btn:focus {
      color: rgba(0, 212, 170, 0.5);
      background: rgba(0, 212, 170, 0.04);
      max-width: 120px;
      padding: 5px 10px;
      gap: 5px;
    }
    .chat-header-row:hover .hover-btn-label,
    .header-hover-btn:focus .hover-btn-label {
      font-size: 9px;
      opacity: 1;
      max-width: 80px;
    }
    .header-hover-btn:hover {
      color: rgba(0, 212, 170, 0.9) !important;
      background: rgba(0, 212, 170, 0.1) !important;
    }
    .header-hover-btn:active {
      transform: scale(0.92);
    }
    .header-hover-btn svg {
      width: 14px; height: 14px;
      flex-shrink: 0;
    }
    /* Na mobile — vždy viditeľné ako ikony */
    @media (max-width: 480px) {
      .header-hover-btn {
        color: rgba(0, 212, 170, 0.35);
        max-width: 28px;
      }
      .header-hover-btn:active {
        color: rgba(0, 212, 170, 0.8);
        background: rgba(0, 212, 170, 0.08);
        max-width: 120px;
        padding: 5px 10px;
        gap: 5px;
      }
      .header-hover-btn:active .hover-btn-label {
        font-size: 9px;
        opacity: 1;
        max-width: 80px;
      }
    }

    /* ── Time Capsule Screen — Strom Spomienok ── */
    .time-capsule-overlay {
      position: fixed; inset: 0;
      background: var(--bg);
      z-index: 200;
      display: flex; flex-direction: column;
      max-width: 600px; margin: 0 auto;
      animation: tc-fade-in 0.4s ease;
    }
    .tc-elephant-canvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 0;
      opacity: 0.4;
    }
    @keyframes tc-fade-in {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .tc-header {
      position: relative; z-index: 1;
      display: flex; align-items: center; gap: 12px;
      padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
      border-bottom: 1px solid rgba(0, 212, 170, 0.06);
    }
    .tc-back-btn {
      background: none; border: none;
      color: rgba(0, 212, 170, 0.6);
      cursor: pointer; padding: 8px;
      border-radius: 50%; transition: all 0.3s;
      touch-action: manipulation;
    }
    .tc-back-btn:active { color: #00d4aa; background: rgba(0,212,170,0.08); }
    .tc-back-btn svg { width: 20px; height: 20px; }
    .tc-title {
      font-size: 13px; font-weight: 400;
      letter-spacing: 2px; text-transform: uppercase;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      flex: 1;
    }
    /* Foto galéria tlačidlo v headeri */
    .tc-photos-btn {
      background: none; border: none;
      color: rgba(0, 212, 170, 0.4);
      cursor: pointer; padding: 6px;
      border-radius: 8px; transition: all 0.3s;
    }
    .tc-photos-btn:active { color: #00d4aa; background: rgba(0,212,170,0.06); }
    .tc-photos-btn svg { width: 18px; height: 18px; }

    /* ── Timeline — vertikálny strom zhora nadol ── */
    .tc-timeline {
      position: relative; z-index: 1;
      flex: 1; overflow-y: auto; overflow-x: hidden;
      padding: 12px 16px 80px;
      -webkit-overflow-scrolling: touch;
    }
    .tc-timeline-line {
      position: relative;
      margin-left: 20px;
      padding-left: 24px;
      border-left: 1px solid rgba(0, 212, 170, 0.06);
    }

    /* ── Date separator ── */
    /* ── Month separator ── */
    .tc-month-sep {
      position: relative;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(0, 212, 170, 0.55);
      margin: 32px 0 10px -24px;
      padding: 8px 12px 8px 44px;
      background: rgba(0, 212, 170, 0.04);
      border-radius: 8px;
      border-top: 1px solid rgba(0, 212, 170, 0.1);
    }
    .tc-month-sep::before {
      content: '';
      position: absolute;
      left: 10px; top: 50%;
      width: 14px; height: 2px;
      background: rgba(0,212,170,0.3);
      border-radius: 1px;
    }
    .tc-month-sep:first-child {
      margin-top: 4px;
      border-top: none;
    }

    .tc-date-sep {
      position: relative;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: rgba(136,153,179,0.4);
      margin: 20px 0 10px -24px;
      padding: 4px 12px 4px 44px;
      border-top: 1px solid rgba(136,153,179,0.08);
    }
    .tc-date-sep::before {
      content: '';
      position: absolute;
      left: 10px; top: 50%;
      width: 10px; height: 1px;
      background: rgba(0,212,170,0.2);
      border-radius: 1px;
    }

    /* ── Timeline Node (gulička) ── */
    .tc-node {
      position: relative;
      margin-bottom: 6px;
      cursor: pointer;
      padding: 10px 12px;
      border-radius: 12px;
      transition: background 0.3s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
      animation: tc-node-in 0.4s ease both;
      transform-origin: left center;
    }
    /* Aladin efekt — desktop only (hover) */
    @media (hover: hover) and (pointer: fine) {
      .tc-node:hover {
        transform: scale(1.04);
        background: rgba(0, 212, 170, 0.06);
        box-shadow: 0 2px 12px rgba(0, 212, 170, 0.08);
        z-index: 2;
      }
      .tc-node:hover .tc-keyword {
        color: rgba(0, 212, 170, 0.9);
      }
      .tc-node:hover .tc-dot {
        transform: scale(1.4);
        box-shadow: 0 0 8px currentColor;
      }
    }
    /* Mobil — klik efekt (active) */
    @media (hover: none) {
      .tc-node:active {
        transform: scale(0.97);
        background: rgba(0, 212, 170, 0.08);
      }
    }
    .tc-node:nth-child(1) { animation-delay: 0s; }
    .tc-node:nth-child(2) { animation-delay: 0.04s; }
    .tc-node:nth-child(3) { animation-delay: 0.08s; }
    .tc-node:nth-child(4) { animation-delay: 0.12s; }
    .tc-node:nth-child(5) { animation-delay: 0.16s; }
    .tc-node:nth-child(6) { animation-delay: 0.20s; }
    .tc-node:nth-child(7) { animation-delay: 0.24s; }
    .tc-node:nth-child(8) { animation-delay: 0.28s; }
    @keyframes tc-node-in {
      from { opacity: 0; transform: translateX(-8px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .tc-node:active {
      background: rgba(0,212,170,0.04);
    }

    /* Guľôčka na timeline čiare */
    .tc-dot {
      position: absolute;
      left: -31px; top: 14px;
      width: 12px; height: 12px;
      border-radius: 50%;
      border: 2px solid;
      background: var(--bg);
      transition: all 0.3s;
    }
    .tc-node:active .tc-dot {
      transform: scale(1.4);
    }
    /* Emócia farby — jemné glow */
    .tc-dot.joy { border-color: #00d4aa; box-shadow: 0 0 6px rgba(0,212,170,0.25); }
    .tc-dot.concern { border-color: #ff9f43; box-shadow: 0 0 6px rgba(255,159,67,0.25); }
    .tc-dot.sadness { border-color: #6c7ce0; box-shadow: 0 0 6px rgba(108,124,224,0.25); }
    .tc-dot.fear { border-color: #ee5a6f; box-shadow: 0 0 6px rgba(238,90,111,0.25); }
    .tc-dot.neutral { border-color: rgba(136,153,179,0.3); box-shadow: 0 0 4px rgba(136,153,179,0.1); }
    .tc-dot.curiosity { border-color: #54a0ff; box-shadow: 0 0 6px rgba(84,160,255,0.25); }
    .tc-dot.love { border-color: #ff6b9d; box-shadow: 0 0 6px rgba(255,107,157,0.25); }
    .tc-dot.trust { border-color: #2ed573; box-shadow: 0 0 6px rgba(46,213,115,0.25); }

    .tc-node-content {
      display: flex; align-items: flex-start; gap: 10px;
    }
    .tc-node-text {
      flex: 1; min-width: 0;
    }
    .tc-keyword {
      font-size: 13px; font-weight: 500;
      color: #e8f4f8;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.25s ease;
    }
    .tc-meta {
      font-size: 10px;
      color: rgba(136,153,179,0.35);
      display: flex; gap: 6px; align-items: center;
    }
    .tc-summary {
      font-size: 11px;
      color: rgba(136,153,179,0.25);
      margin-top: 3px;
      line-height: 1.4;
      max-height: 0; overflow: hidden;
      transition: max-height 0.3s ease;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .tc-node:active .tc-summary { max-height: 40px; }

    /* Foto thumbnaily na node */
    .tc-photos-row {
      display: flex; gap: 4px;
      flex-shrink: 0;
    }
    .tc-photo-thumb {
      width: 32px; height: 32px;
      border-radius: 8px; object-fit: cover;
      border: 1px solid rgba(0,212,170,0.08);
      cursor: pointer; flex-shrink: 0;
      transition: all 0.3s;
    }
    .tc-photo-thumb:active { transform: scale(1.2); border-color: #00d4aa; }

    /* ── Time Capsule Detail (konverzácia) ── */
    .tc-detail {
      position: relative; z-index: 1;
      animation: tc-fade-in 0.3s ease;
      flex: 1; overflow-y: auto;
      display: flex; flex-direction: column;
    }
    .tc-detail-header {
      display: flex; align-items: center; gap: 10px;
      padding: 16px;
      border-bottom: 1px solid rgba(0,212,170,0.04);
    }
    .tc-detail-keyword {
      font-size: 15px; font-weight: 500;
      color: #e8f4f8;
    }
    .tc-detail-meta {
      font-size: 10px; color: rgba(136,153,179,0.35);
      margin-top: 2px;
    }
    .tc-continue-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 6px 14px;
      background: rgba(0,212,170,0.1);
      border: 1px solid rgba(0,212,170,0.2);
      border-radius: 16px;
      color: #00d4aa;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s;
      flex-shrink: 0;
      margin-left: auto;
    }
    .tc-continue-btn:hover { background: rgba(0,212,170,0.2); }
    .tc-continue-btn:active { transform: scale(0.95); }
    .tc-continue-btn svg { opacity: 0.7; }
    .tc-detail-photos {
      display: flex; gap: 8px; padding: 12px 16px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-bottom: 1px solid rgba(0,212,170,0.04);
    }
    .tc-detail-photo {
      width: 56px; height: 56px;
      border-radius: 10px; object-fit: cover;
      border: 1px solid rgba(0,212,170,0.1);
      cursor: pointer; flex-shrink: 0;
      transition: all 0.3s;
    }
    .tc-detail-photo:active { transform: scale(1.1); border-color: #00d4aa; }
    .tc-detail-messages {
      flex: 1; overflow-y: auto;
      padding: 12px 16px 80px;
    }
    .tc-detail-msg {
      padding: 10px 14px;
      border-radius: 14px;
      margin-bottom: 6px;
      font-size: 13px; line-height: 1.5;
      max-width: 85%;
    }
    .tc-detail-msg.user {
      background: rgba(0, 212, 170, 0.06);
      color: rgba(232, 244, 248, 0.75);
      margin-left: auto;
      border-bottom-right-radius: 4px;
    }
    .tc-detail-msg.assistant {
      background: rgba(var(--bg-rgb), 0.5);
      color: rgba(232, 244, 248, 0.65);
      border-bottom-left-radius: 4px;
    }
    .tc-detail-img {
      max-width: 200px; border-radius: 12px;
      border: 1px solid rgba(0,212,170,0.08);
      margin-bottom: 6px;
      cursor: pointer;
    }
    .tc-detail-img:active { transform: scale(0.98); }
    .tc-empty {
      text-align: center; padding: 60px 20px;
      color: rgba(136,153,179,0.25);
    }
    .tc-empty svg {
      width: 48px; height: 48px;
      opacity: 0.12; margin-bottom: 16px;
    }
    /* Foto lightbox overlay */
    .tc-lightbox {
      position: fixed; inset: 0;
      background: rgba(10,22,40,0.95);
      z-index: 300;
      display: flex; align-items: center; justify-content: center;
      animation: tc-fade-in 0.2s ease;
      cursor: pointer;
    }
    .tc-lightbox img {
      max-width: 90%; max-height: 80vh;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .tc-lightbox-info {
      position: absolute;
      bottom: max(20px, env(safe-area-inset-bottom));
      left: 0; right: 0;
      text-align: center;
      padding: 12px;
    }
    .tc-lightbox-topic {
      font-size: 12px;
      color: rgba(0,212,170,0.6);
      font-weight: 500;
    }
    .tc-lightbox-date {
      font-size: 10px;
      color: rgba(136,153,179,0.3);
      margin-top: 4px;
    }

    /* ── Language Confirm Dialog ── */
    .lang-confirm-overlay {
      position: fixed; inset: 0;
      background: rgba(10, 22, 40, 0.85);
      z-index: 9998;
      display: flex; align-items: center; justify-content: center;
      animation: tc-fade-in 0.25s ease;
      backdrop-filter: blur(4px);
    }
    .lang-confirm-box {
      background: rgba(var(--bg-rgb), 0.95);
      border: 1px solid rgba(0, 212, 170, 0.12);
      border-radius: 20px;
      padding: 28px 24px;
      max-width: 320px; width: 90%;
      text-align: center;
      backdrop-filter: blur(20px);
      animation: lang-modal-pop 0.25s ease;
      overflow: hidden;
    }
    @keyframes lang-modal-pop {
      from { opacity: 0; transform: scale(0.9) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .lang-confirm-icon {
      font-size: 32px;
      margin-bottom: 12px;
    }
    .lang-confirm-text {
      color: rgba(232, 244, 248, 0.8);
      font-size: 15px; line-height: 1.5;
      margin-bottom: 16px;
    }
    .lang-confirm-name {
      color: #00d4aa;
      font-weight: 600;
      font-size: 18px;
      display: block;
      margin-top: 8px;
    }
    .lang-confirm-countdown {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      padding: 0 8px;
    }
    .lang-countdown-bar {
      flex: 1;
      height: 3px;
      background: rgba(255,255,255,0.06);
      border-radius: 2px;
      overflow: hidden;
    }
    .lang-countdown-fill {
      height: 100%;
      background: #00d4aa;
      border-radius: 2px;
      animation: langCountdownShrink 5s linear forwards;
    }
    @keyframes langCountdownShrink {
      from { width: 100%; }
      to { width: 0%; }
    }
    .lang-countdown-text {
      font-size: 11px;
      color: rgba(136,153,179,0.5);
      min-width: 20px;
      text-align: right;
    }
    .lang-confirm-btns {
      display: flex; gap: 10px;
      justify-content: center;
    }
    .lang-confirm-btns button {
      padding: 12px 24px;
      border-radius: 12px;
      border: none;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      flex: 1;
      touch-action: manipulation;
    }
    .lang-confirm-yes {
      background: rgba(0, 212, 170, 0.15);
      color: #00d4aa;
    }
    .lang-confirm-yes:active {
      background: rgba(0, 212, 170, 0.3);
      transform: scale(0.97);
    }
    .lang-confirm-no {
      background: rgba(136, 153, 179, 0.08);
      color: rgba(136, 153, 179, 0.5);
    }
    .lang-confirm-no:active {
      background: rgba(136, 153, 179, 0.15);
      color: rgba(136, 153, 179, 0.7);
    }

    /* ── Language Selector Grid ── */
    .lang-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px; width: 100%;
    }
    .lang-grid .lang-chip {
      font-size: 11px;
      padding: 8px 4px;
      text-align: center;
    }

    .chat-settings-btn {
      width: 44px;
      height: 44px;
      border: none;
      background: none;
      color: rgba(136, 153, 179, 0.2);
      cursor: pointer;
      padding: 8px;
      border-radius: 50%;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      touch-action: manipulation;
    }

    .chat-settings-btn:hover {
      color: rgba(136, 153, 179, 0.5);
    }

    .chat-settings-btn svg {
      width: 18px;
      height: 18px;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      -webkit-overflow-scrolling: touch;
      min-height: 0;
    }

    .chat-welcome {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      flex: 1;
      gap: 12px;
      padding: 40px 20px 60px;
      animation: fade-in 0.6s ease;
      position: relative;
      z-index: 1;
    }

    .welcome-neural-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      opacity: 0.4;
      pointer-events: none;
      z-index: 0;
    }

    .chat-welcome-text {
      font-size: 14px;
      color: rgba(136, 153, 179, 0.35);
      text-align: center;
      line-height: 1.6;
      max-width: 280px;
    }

    .msg-row {
      display: flex;
      gap: 8px;
      max-width: 88%;
      animation: float-in 0.35s cubic-bezier(0.4,0,0.2,1);
    }

    .msg-row-user {
      align-self: flex-end;
      flex-direction: row-reverse;
    }

    .msg-row-ai {
      align-self: flex-start;
    }

    .msg-avatar {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 15px;
      margin-top: 2px;
      min-width: 32px;
      overflow: hidden;
    }

    .avatar-orbio {
      background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,153,204,0.12));
      border: 1.5px solid rgba(0,212,170,0.2);
    }

    .avatar-user {
      background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,153,204,0.12));
      border: 1.5px solid rgba(108,92,231,0.2);
    }

    .msg-avatar-ring {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 2px;
      padding: 2px;
      background: rgba(0,212,170,0.15);
      animation: avatarPulse 3s ease-in-out infinite;
    }

    .msg-avatar-ring .msg-avatar {
      width: 100%;
      height: 100%;
      margin-top: 0;
    }

    @keyframes avatarPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.08); background: rgba(0,212,170,0.1); }
      50% { box-shadow: 0 0 10px 2px rgba(0,212,170,0.18); background: rgba(0,212,170,0.2); }
    }

    .msg-avatar-ring.ring-critical {
      background: rgba(239,68,68,0.15);
      animation: avatarPulseCrit 3s ease-in-out infinite;
    }

    .msg-avatar-ring.ring-critical .avatar-orbio {
      border-color: rgba(239,68,68,0.35);
      background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(220,38,38,0.08));
    }

    .msg-avatar-ring.ring-critical svg g { stroke: #ef4444; }

    @keyframes avatarPulseCrit {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.1); background: rgba(239,68,68,0.1); }
      50% { box-shadow: 0 0 10px 2px rgba(239,68,68,0.25); background: rgba(239,68,68,0.22); }
    }

    .msg-avatar-ring.ring-thinking {
      width: 32px;
      height: 32px;
      animation: avatarPulseThink 3s ease-in-out infinite;
    }

    @keyframes avatarPulseThink {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.1); background: rgba(0,212,170,0.12); }
      50% { box-shadow: 0 0 12px 3px rgba(0,212,170,0.25); background: rgba(0,212,170,0.28); }
    }

    .msg-avatar-ring.ring-writing {
      animation: avatarPulseWrite 3s ease-in-out infinite;
    }

    @keyframes avatarPulseWrite {
      0%, 100% { box-shadow: 0 0 2px 1px rgba(0,212,170,0.12); background: rgba(0,212,170,0.12); }
      50% { box-shadow: 0 0 10px 3px rgba(0,212,170,0.3); background: rgba(0,212,170,0.25); }
    }

    /* Inline klikateľné možnosti — VYPNUTÉ (text je len text, žiadne aktívne polia) */

    /* removed has-chips */

    .tw-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #00d4aa;
      margin-left: 3px;
      margin-bottom: 1px;
      vertical-align: middle;
      animation: twDotPulse 3s ease-in-out infinite;
      box-shadow: 0 0 6px rgba(0,212,170,0.4);
    }

    .tw-dot.tw-dot-crit {
      background: #ef4444;
      box-shadow: 0 0 6px rgba(239,68,68,0.4);
      animation: twDotPulseCrit 3s ease-in-out infinite;
    }

    @keyframes twDotPulse {
      0%, 100% { opacity: 0.5; transform: scale(0.8); box-shadow: 0 0 4px rgba(0,212,170,0.2); }
      50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 10px rgba(0,212,170,0.5); }
    }

    @keyframes twDotPulseCrit {
      0%, 100% { opacity: 0.5; transform: scale(0.8); box-shadow: 0 0 4px rgba(239,68,68,0.2); }
      50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 10px rgba(239,68,68,0.5); }
    }

    .msg-col {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }

    .msg-bubble {
      padding: 10px 14px;
      border-radius: 16px;
      font-size: 14px;
      line-height: 1.6;
      word-wrap: break-word;
      overflow-wrap: break-word;
      max-width: 100%;
      min-width: 0;
    }

    .msg-bubble-ai {
      background: var(--glass);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: rgba(232, 244, 248, 0.9);
      border-top-left-radius: 4px;
      position: relative;
      overflow: visible;
    }

    /* ── Vision System UI ── */
    .vision-camera-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      background: transparent;
      border: none;
      border-radius: 50%;
      color: rgba(0, 212, 170, 0.45);
      cursor: pointer;
      margin-top: 4px;
      margin-left: 2px;
      transition: all 0.2s;
    }
    .vision-camera-btn:hover { color: rgba(0,212,170,0.7); }
    .vision-camera-btn:active { transform: scale(0.92); }
    .vision-camera-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

    /* ═══ QR Vision Modal — modálne okno s canvas neural animáciou ═══ */
    .vision-qr-modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(10, 22, 40, 0.45);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .qr-modal-box {
      position: relative;
      width: 340px;
      min-height: 360px;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(0,212,170,0.12);
      box-shadow: 0 12px 48px rgba(0,0,0,0.5);
      animation: float-in 0.3s ease-out;
    }
    .qr-modal-box canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
    .qr-modal-content {
      position: relative; z-index: 1;
      display: flex; flex-direction: column; align-items: center;
      padding: 28px 24px 24px;
      min-height: 360px;
      justify-content: flex-end;
      padding-bottom: 32px;
    }
    .qr-modal-close {
      position: absolute; top: 12px; right: 12px; z-index: 2;
      width: 30px; height: 30px; border-radius: 50%;
      background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.25);
      color: #ff8888; font-size: 16px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; line-height: 1;
    }
    .qr-modal-close:hover { background: rgba(255,80,80,0.25); }
    .qr-modal-title { font-size: 17px; font-weight: 600; color: #e0e8f0; margin-bottom: 6px; text-align: center; }
    .qr-modal-sub { font-size: 12px; color: rgba(224,232,240,0.45); text-align: center; margin-bottom: 18px; line-height: 1.4; }
    .qr-modal-qrcode {
      width: 170px; height: 170px; background: white; border-radius: 12px;
      display: flex; align-items: center; justify-content: center; padding: 10px;
      margin-bottom: 16px;
    }
    .qr-modal-qrcode img { width: 100%; height: 100%; }
    .qr-modal-status { font-size: 13px; color: rgba(0,212,170,0.7); font-weight: 500; letter-spacing: 0.3px; }

    /* Preview grid v modáli */
    .qr-preview-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      max-width: 260px;
      max-height: 200px;
      overflow-y: auto;
      width: 100%;
      padding: 4px;
      scrollbar-width: thin;
      scrollbar-color: rgba(0,212,170,0.3) transparent;
    }
    .qr-preview-grid::-webkit-scrollbar { width: 4px; }
    .qr-preview-grid::-webkit-scrollbar-thumb { background: rgba(0,212,170,0.3); border-radius: 2px; }
    .qr-preview-item {
      position: relative; aspect-ratio: 1; border-radius: 10px;
      overflow: hidden; border: 2px solid rgba(0,180,216,0.3);
    }
    .qr-preview-item img { width: 100%; height: 100%; object-fit: cover; }
    .qr-preview-num {
      position: absolute; bottom: 3px; right: 3px;
      background: rgba(0,180,216,0.9); color: #fff;
      font-size: 10px; font-weight: 700;
      width: 18px; height: 18px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
    }
    .qr-modal-analyzing {
      display: flex; align-items: center; gap: 8px; justify-content: center;
      margin-top: 14px; color: rgba(0,212,170,0.6);
      font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
    }
    @keyframes pulse-dot { 0%,100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

    /* Fotky v konverzácii — inline strip vedľa seba */
    .msg-photos-strip {
      display: flex; gap: 6px; flex-wrap: wrap;
    }
    .msg-photos-strip .msg-photo-numbered {
      position: relative; width: 100px; height: 100px;
      border-radius: 10px; overflow: hidden;
    }
    .msg-photos-strip .msg-photo-numbered img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .msg-photos-strip .msg-photo-num {
      position: absolute; top: 4px; left: 4px;
      background: rgba(0,180,216,0.9); color: #fff;
      font-size: 9px; font-weight: 700;
      width: 16px; height: 16px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
    }

    @keyframes qr-elephant-pulse {
      0%, 100% { opacity: 0.35; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(1.08); }
    }
    .vision-processing { color: rgba(0, 180, 216, 0.7); font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
    .vision-processing::after { content: '...'; animation: dots 1.5s infinite; }
    .vision-processing-bar {
      position: absolute;
      bottom: -2px; left: 0; right: 0; height: 2px;
      background: rgba(0, 180, 216, 0.15);
      border-radius: 1px;
      overflow: hidden;
    }
    .vision-processing-bar::after {
      content: '';
      display: block;
      width: 40%;
      height: 100%;
      background: linear-gradient(90deg, #00d4aa, #00b4d8);
      border-radius: 1px;
      animation: vision-progress 1.5s ease-in-out infinite;
    }
    @keyframes vision-progress {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(350%); }
    }

    .msg-image-preview {
      max-width: 220px;
      max-height: 220px;
      border-radius: 12px;
      display: block;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,0.06);
    }
    /* Bublina s fotkou — bez extra padding */
    .msg-bubble:has(.msg-image-preview),
    .msg-bubble:has(.msg-photos-strip) {
      padding: 3px;
      background: transparent;
      border: none;
      box-shadow: none;
    }
    @keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

    /* ═══ ORBIO SPINNER — sloník s obiehajúcimi guličkami ═══ */
    .orbio-spinner-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      z-index: 9999;
      background: rgba(10, 22, 40, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      animation: orbio-fade-in 0.3s ease-out;
    }
    @keyframes orbio-fade-in { from { opacity: 0; } to { opacity: 1; } }
    .orbio-spinner-ring {
      position: relative;
      width: 120px; height: 120px;
      border: 3px solid rgba(0, 212, 170, 0.15);
      border-top-color: #00d4aa;
      border-radius: 50%;
      animation: orbio-ring-spin 1.6s linear infinite;
      display: flex; align-items: center; justify-content: center;
    }
    @keyframes orbio-ring-spin { to { transform: rotate(360deg); } }
    .orbio-spinner-elephant {
      position: absolute;
      width: 70px; height: 70px;
      animation: orbio-elephant-pulse 2.4s ease-in-out infinite;
      filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.3));
    }
    @keyframes orbio-elephant-pulse {
      0%, 100% { opacity: 0.7; transform: scale(0.95); }
      50% { opacity: 1; transform: scale(1.05); }
    }
    .orbio-spinner-dots {
      display: flex; gap: 8px; margin-top: 20px;
    }
    .orbio-spinner-dots span {
      width: 8px; height: 8px; border-radius: 50%; background: #00d4aa;
      animation: orbio-dot-pulse 1.4s ease-in-out infinite;
    }
    .orbio-spinner-dots span:nth-child(2) { animation-delay: 0.2s; }
    .orbio-spinner-dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes orbio-dot-pulse {
      0%, 80%, 100% { opacity: 0.15; transform: scale(0.7); }
      40% { opacity: 1; transform: scale(1.3); }
    }
    /* Univerzálny Orbio wait dot — pre QR modal, inline, mobile */
    .orbio-wait-dot {
      display: inline-block; width: 8px; height: 8px; border-radius: 50%;
      background: #00d4aa; animation: orbio-dot-pulse 1.4s ease-in-out infinite;
    }
    .orbio-spinner-text {
      margin-top: 16px;
      color: rgba(0, 212, 170, 0.8);
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.5px;
      animation: orbio-text-pulse 2s ease-in-out infinite;
    }
    @keyframes orbio-text-pulse {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }

    /* ═══ REMINDER UI ═══ */
    .reminder-icon-btn {
      background: none; border: none; cursor: pointer;
      display: flex; align-items: center; gap: 3px;
      padding: 2px 6px; border-radius: 10px;
      opacity: 0.8; transition: opacity 0.2s;
      animation: reminder-pulse 3s ease-in-out infinite;
    }
    .reminder-icon-btn:hover { opacity: 1; }
    @keyframes reminder-pulse {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 1; }
    }
    .reminder-badge {
      font-size: 9px; font-weight: 700; color: #fff;
      background: #ff9f43; border-radius: 6px;
      min-width: 14px; height: 14px;
      display: flex; align-items: center; justify-content: center;
      padding: 0 3px; line-height: 1;
    }
    .reminder-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      z-index: 9998;
      background: rgba(10, 22, 40, 0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex; align-items: center; justify-content: center;
      animation: orbio-fade-in 0.2s ease-out;
    }
    .reminder-modal {
      background: rgba(20, 35, 60, 0.95);
      border: 1px solid rgba(255, 159, 67, 0.2);
      border-radius: 16px;
      width: 92%; max-width: 380px; max-height: 70vh;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,159,67,0.08);
    }
    .reminder-modal-header {
      display: flex; align-items: center; gap: 8px;
      padding: 14px 16px; border-bottom: 1px solid rgba(255,159,67,0.12);
      font-size: 14px; font-weight: 600; color: #ff9f43;
    }
    .reminder-modal-close {
      margin-left: auto; background: none; border: none;
      cursor: pointer; color: rgba(255,255,255,0.4); padding: 4px;
    }
    .reminder-modal-close:hover { color: rgba(255,255,255,0.8); }
    .reminder-list {
      padding: 8px 0; overflow-y: auto; max-height: calc(70vh - 60px);
    }
    .reminder-empty {
      padding: 24px 16px; text-align: center;
      color: rgba(255,255,255,0.3); font-size: 13px;
    }
    .reminder-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 16px; transition: background 0.2s;
    }
    .reminder-item:hover { background: rgba(255,159,67,0.05); }
    .reminder-pending { border-left: 3px solid #ff9f43; }
    .reminder-fired { border-left: 3px solid rgba(255,255,255,0.1); opacity: 0.5; }
    .reminder-item-info { flex: 1; min-width: 0; }
    .reminder-item-text {
      font-size: 13px; color: rgba(255,255,255,0.85);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .reminder-item-time {
      font-size: 11px; color: rgba(255,159,67,0.7); margin-top: 2px;
    }
    .reminder-item-delete {
      background: none; border: none; cursor: pointer;
      color: rgba(255,255,255,0.2); padding: 4px; flex-shrink: 0;
    }
    .reminder-item-delete:hover { color: rgba(255,100,100,0.8); }
    .reminder-section-label {
      padding: 8px 16px 4px; font-size: 10px; font-weight: 600;
      text-transform: uppercase; letter-spacing: 1px;
      color: rgba(255,255,255,0.2);
    }
    /* ═══ SUPER REMINDER UPOZORNENIE — fullscreen overlay ═══ */
    .reminder-super-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      z-index: 9999;
      background: rgba(10, 18, 35, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      display: flex; align-items: center; justify-content: center;
      animation: orbio-fade-in 0.3s ease-out;
    }
    .reminder-super-card {
      background: rgba(20, 35, 60, 0.95);
      border: 2px solid rgba(255, 159, 67, 0.35);
      border-radius: 24px; padding: 32px 28px;
      text-align: center; max-width: 320px; width: 88%;
      box-shadow: 0 0 40px rgba(255, 159, 67, 0.12), 0 12px 40px rgba(0,0,0,0.4);
      animation: reminder-super-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes reminder-super-pop {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .reminder-super-icon { margin-bottom: 16px; }
    .reminder-super-ring {
      display: inline-flex; align-items: center; justify-content: center;
      width: 72px; height: 72px;
      border: 3px solid rgba(255, 159, 67, 0.2);
      border-top-color: #ff9f43;
      border-radius: 50%;
      animation: orbio-ring-spin 1.6s linear infinite;
    }
    .reminder-super-label {
      font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 2px; color: #ff9f43; margin-bottom: 10px;
      animation: reminder-pulse 2s ease-in-out infinite;
    }
    .reminder-super-text {
      font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.95);
      line-height: 1.4; margin-bottom: 8px;
    }
    .reminder-super-time {
      font-size: 13px; color: rgba(255,159,67,0.6); margin-bottom: 20px;
    }
    .reminder-super-dismiss {
      background: rgba(255, 159, 67, 0.15); border: 1px solid rgba(255,159,67,0.3);
      color: #ff9f43; font-size: 14px; font-weight: 600;
      padding: 10px 40px; border-radius: 12px; cursor: pointer;
      transition: all 0.2s;
    }
    .reminder-super-dismiss:hover {
      background: rgba(255, 159, 67, 0.25); border-color: rgba(255,159,67,0.5);
    }

    /* ═══ CALENDAR — minimalistický air dizajn ═══ */
    .calendar-icon-btn {
      background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.35);
      padding: 6px; font-size: 18px; transition: all 0.2s; opacity: 0.65;
      display: none; /* replaced by notif-action-bar */
    }
    .calendar-icon-btn:hover { opacity: 1; color: rgba(0, 212, 170, 0.9); }
    .calendar-badge {
      position: absolute; top: -3px; right: -3px; background: #ff6b6b;
      color: #fff; font-size: 9px; min-width: 14px; height: 14px;
      border-radius: 7px; display: flex; align-items: center; justify-content: center;
      font-weight: 700; padding: 0 3px;
    }

    /* ── Notification action icons bar ── */
    .notif-action-bar {
      display: flex; align-items: center; gap: 3px; margin-left: 4px;
    }
    .notif-icon {
      position: relative; background: none; border: none; cursor: pointer;
      width: 22px; height: 22px; border-radius: 6px; padding: 0;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.25s ease;
    }
    .notif-icon svg { width: 13px; height: 13px; }
    .notif-icon.neon-orange { color: #ff9f43; filter: drop-shadow(0 0 4px rgba(255,159,67,0.5)); }
    .notif-icon.neon-orange:hover { filter: drop-shadow(0 0 8px rgba(255,159,67,0.8)); transform: scale(1.15); }
    .notif-icon.neon-expired { color: #ff6b6b; filter: drop-shadow(0 0 5px rgba(255,107,107,0.6)); animation: expired-pulse 1.8s ease-in-out infinite; }
    .notif-icon.neon-expired:hover { filter: drop-shadow(0 0 10px rgba(255,107,107,0.9)); transform: scale(1.2); }
    @keyframes expired-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.08); } }
    .notif-icon.neon-green { color: #00d4aa; filter: drop-shadow(0 0 4px rgba(0,212,170,0.5)); }
    .notif-icon.neon-green:hover { filter: drop-shadow(0 0 8px rgba(0,212,170,0.8)); transform: scale(1.15); }
    .notif-icon.neon-red { color: #ee5a6f; filter: drop-shadow(0 0 4px rgba(238,90,111,0.5)); }
    .notif-icon.neon-red:hover { filter: drop-shadow(0 0 8px rgba(238,90,111,0.8)); transform: scale(1.15); }
    .notif-icon.neon-heart { color: #ff6b9d; filter: drop-shadow(0 0 5px rgba(255,107,157,0.6)); animation: heart-pulse 2s ease-in-out infinite; }
    .notif-icon.neon-heart:hover { filter: drop-shadow(0 0 10px rgba(255,107,157,0.9)); transform: scale(1.2); }
    @keyframes heart-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
    .notif-badge {
      position: absolute; top: -3px; right: -3px; background: #ff6b6b;
      color: #fff; font-size: 7px; font-weight: 700; min-width: 12px; height: 12px;
      border-radius: 6px; display: flex; align-items: center; justify-content: center;
      padding: 0 2px; line-height: 1; pointer-events: none;
    }
    .notif-icon-enter { animation: notif-pop 0.35s cubic-bezier(0.34,1.56,0.64,1); }
    @keyframes notif-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
    .calendar-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;
      background: rgba(10, 18, 35, 0.85); backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex; align-items: center; justify-content: center;
      animation: orbio-fade-in 0.25s ease-out;
    }
    .calendar-modal {
      background: rgba(20, 35, 60, 0.97); border: 1px solid rgba(255,255,255,0.06);
      border-radius: 20px; width: 92%; max-width: 460px; max-height: 85vh;
      overflow: hidden; display: flex; flex-direction: column;
      box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    }
    .calendar-modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .calendar-modal-header h3 {
      margin: 0; font-size: 15px; font-weight: 600;
      color: rgba(255,255,255,0.9); letter-spacing: 0.3px;
    }
    .calendar-modal-close {
      background: none; border: none; cursor: pointer; font-size: 18px;
      color: rgba(255,255,255,0.3); padding: 4px;
    }
    .calendar-modal-close:hover { color: rgba(255,255,255,0.7); }
    .calendar-nav {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .calendar-nav-btn {
      background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.4);
      font-size: 16px; padding: 4px 8px; transition: color 0.15s;
    }
    .calendar-nav-btn:hover { color: rgba(255,255,255,0.8); }
    .calendar-nav-title {
      font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6);
      letter-spacing: 0.5px; text-transform: uppercase;
    }
    .calendar-grid {
      display: grid; grid-template-columns: repeat(7, 1fr);
      gap: 1px; padding: 2px 8px 0;
    }
    .calendar-grid-header {
      font-size: 9px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 1px; color: rgba(255,255,255,0.2);
      text-align: center; padding: 2px 0;
    }
    .calendar-day {
      aspect-ratio: 1.4; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      font-size: 11px; color: rgba(255,255,255,0.4);
      border-radius: 8px; cursor: pointer; transition: all 0.15s;
      position: relative;
    }
    .calendar-day:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); }
    .calendar-day.today {
      color: #00d4aa; font-weight: 700;
      box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.25);
    }
    .calendar-day.other-month { color: rgba(255,255,255,0.12); }
    .calendar-day.has-event::after {
      content: ''; position: absolute; bottom: 4px;
      width: 4px; height: 4px; border-radius: 50%;
      background: #00d4aa;
    }
    .calendar-day.has-overdue::after { background: #ff6b6b; }
    .calendar-day.selected {
      background: rgba(0, 212, 170, 0.12); color: #00d4aa;
    }
    .calendar-events-list {
      flex: 1; overflow-y: auto; padding: 8px 12px 12px;
      min-height: 100px; max-height: 260px;
    }
    .calendar-event-item {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 10px 12px; margin-bottom: 6px; border-radius: 12px;
      background: rgba(255,255,255,0.02); transition: all 0.15s;
      border-left: 3px solid transparent;
    }
    .calendar-event-item:hover { background: rgba(255,255,255,0.04); }
    .calendar-event-item.type-vaccination { border-left-color: #54a0ff; }
    .calendar-event-item.type-deworming { border-left-color: #feca57; }
    .calendar-event-item.type-vet_visit { border-left-color: #ff6b6b; }
    .calendar-event-item.type-medication { border-left-color: #ff9f43; }
    .calendar-event-item.type-general { border-left-color: rgba(255,255,255,0.1); }
    .calendar-event-item.overdue { border-left-color: #ff6b6b; opacity: 0.85; }
    .calendar-event-item.completed { opacity: 0.35; }
    .calendar-event-info { flex: 1; min-width: 0; }
    .calendar-event-title {
      font-size: 13px; color: rgba(255,255,255,0.8);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .calendar-event-meta {
      font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 2px;
    }
    .calendar-event-actions {
      display: flex; gap: 4px; flex-shrink: 0;
    }
    .calendar-event-action-btn {
      background: none; border: none; cursor: pointer; padding: 4px;
      color: rgba(255,255,255,0.2); font-size: 14px; transition: color 0.15s;
    }
    .calendar-event-action-btn:hover { color: rgba(255,255,255,0.6); }
    .calendar-event-action-btn.complete:hover { color: #00d4aa; }
    .calendar-event-action-btn.delete:hover { color: #ff6b6b; }
    .calendar-empty {
      text-align: center; padding: 24px; color: rgba(255,255,255,0.15);
      font-size: 12px;
    }
    .calendar-add-bar {
      display: flex; gap: 6px; padding: 10px 14px;
      border-top: 1px solid rgba(255,255,255,0.04);
    }
    .calendar-add-input {
      flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
      border-radius: 10px; padding: 8px 12px; color: rgba(255,255,255,0.8);
      font-size: 12px; outline: none;
    }
    .calendar-add-input:focus { border-color: rgba(0, 212, 170, 0.3); }
    .calendar-add-input::placeholder { color: rgba(255,255,255,0.15); }
    .calendar-add-btn {
      background: rgba(0, 212, 170, 0.15); border: 1px solid rgba(0, 212, 170, 0.25);
      border-radius: 10px; padding: 8px 14px; color: #00d4aa;
      font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s;
      white-space: nowrap;
    }
    .calendar-add-btn:hover { background: rgba(0, 212, 170, 0.25); }
    .calendar-type-select {
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
      border-radius: 10px; padding: 8px 6px; color: rgba(255,255,255,0.6);
      font-size: 11px; outline: none; cursor: pointer;
    }
    .calendar-section-label {
      padding: 8px 16px 4px; font-size: 10px; font-weight: 600;
      text-transform: uppercase; letter-spacing: 1px;
      color: rgba(255,255,255,0.15);
    }

    input.vision-file-input { display: none; }

    .msg-bubble-proactive.fading {
      animation: proactiveFade 2s ease forwards;
    }
    @keyframes proactiveFade {
      from { opacity: 1; }
      to { opacity: 0.3; transform: scale(0.97); }
    }
    .proactive-resonance-bar {
      height: 2px;
      background: linear-gradient(90deg, rgba(0,212,170,0.6), rgba(0,212,170,0));
      border-radius: 1px;
      margin-top: 4px;
      transition: width 30s linear;
    }
    .msg-bubble-proactive {
      border-color: rgba(0, 212, 170, 0.15);
      background: rgba(0, 212, 170, 0.04);
    }

    .proactive-badge {
      font-size: 10px;
      color: rgba(0, 212, 170, 0.5);
      margin-top: 2px;
      letter-spacing: 0.5px;
    }

    .msg-bubble-user {
      background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 153, 204, 0.15));
      border: 1px solid rgba(0, 212, 170, 0.2);
      color: #e8f4f8;
      border-top-right-radius: 4px;
      position: relative;
      overflow: visible;
    }

    .msg-bubble-ai::before {
      content: '';
      position: absolute;
      inset: calc(-1 * var(--nw, 1px));
      border-radius: 17px;
      border-top-left-radius: 5px;
      padding: var(--nw, 1px);
      background: rgba(var(--nc, 0,212,170), 0.55);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      opacity: 0;
      transition: opacity 2s ease;
    }

    .msg-bubble-ai::after {
      content: '';
      position: absolute;
      inset: calc(-1 * var(--nw, 1px) - 2px);
      border-radius: 19px;
      border-top-left-radius: 7px;
      background: rgba(var(--nc, 0,212,170), 0.07);
      filter: blur(8px);
      pointer-events: none;
      opacity: 0;
      transition: opacity 2s ease;
      z-index: -1;
    }

    .msg-bubble-ai.neuron-resonating::before {
      opacity: calc(var(--nr, 0) * 0.5);
    }

    .msg-bubble-ai.neuron-resonating::after {
      opacity: calc(var(--nr, 0) * 0.4);
    }

    .msg-bubble-ai.neuron-bright::before {
      animation: neuronBreathe 3s ease-in-out infinite;
    }

    .msg-bubble-ai.neuron-bright::after {
      animation: neuronGlowBreathe 3s ease-in-out infinite;
    }

    .msg-bubble-user::before {
      content: '';
      position: absolute;
      inset: calc(-1 * var(--nw, 1px));
      border-radius: 17px;
      border-top-right-radius: 5px;
      padding: var(--nw, 1px);
      background: rgba(0,212,170, 0.4);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      opacity: 0;
      transition: opacity 2s ease;
    }

    .msg-bubble-user.neuron-resonating::before {
      opacity: calc(var(--nr, 0) * 0.35);
    }

    .msg-bubble-user.neuron-bright::before {
      animation: neuronBreathe 3s ease-in-out infinite;
    }

    @keyframes neuronBreathe {
      0%, 100% { opacity: calc(var(--nr, 0) * 0.35); }
      50% { opacity: calc(var(--nr, 0) * 0.7); }
    }

    @keyframes neuronGlowBreathe {
      0%, 100% { opacity: calc(var(--nr, 0) * 0.2); filter: blur(8px); }
      50% { opacity: calc(var(--nr, 0) * 0.5); filter: blur(12px); }
    }

    .msg-time {
      font-size: 10px;
      color: rgba(136,153,179,0.3);
      padding: 0 4px;
    }

    .msg-time-right { text-align: right; }

    .msg-bubble-ai p { margin: 0; padding: 0; }
    .msg-bubble-ai p + p { margin-top: 2px; }
    .msg-bubble-ai strong { color: #00d4aa; font-weight: 500; }
    .msg-bubble-ai ul, .msg-bubble-ai ol { padding-left: 20px; margin: 8px 0; }
    .msg-bubble-ai li { margin-bottom: 4px; }

    /* ── Copy button in bubbles ── */
    .msg-copy-btn {
      position: absolute;
      bottom: 6px;
      right: 6px;
      width: 26px;
      height: 26px;
      border: none;
      border-radius: 6px;
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.35);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.2s, background 0.2s, color 0.2s;
      padding: 0;
      z-index: 5;
    }
    .msg-bubble:hover .msg-copy-btn { opacity: 1; }
    .msg-copy-btn:hover { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
    .msg-copy-btn.copied { color: #00d4aa; opacity: 1; }
    .msg-copy-btn svg { width: 14px; height: 14px; }
    .msg-bubble-user .msg-copy-btn { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.3); }
    .msg-bubble-user:hover .msg-copy-btn { opacity: 1; }
    .msg-bubble-user .msg-copy-btn:hover { background: rgba(0,0,0,0.15); color: rgba(0,0,0,0.6); }
    .msg-bubble-user .msg-copy-btn.copied { color: #00d4aa; }
    html[data-theme="svetlo"] .msg-bubble-ai .msg-copy-btn { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.25); }
    html[data-theme="svetlo"] .msg-bubble-ai .msg-copy-btn:hover { background: rgba(0,0,0,0.1); color: rgba(0,0,0,0.5); }

    .thinking-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      align-self: flex-start;
      animation: float-in 0.3s ease;
    }

    .thinking-avatar {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,153,204,0.12));
      border: 1.5px solid rgba(0,212,170,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      flex-shrink: 0;
      animation: avatar-think-pulse 3s ease-in-out infinite;
    }

    @keyframes avatar-think-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.15); border-color: rgba(0,212,170,0.2); }
      50% { box-shadow: 0 0 10px 3px rgba(0,212,170,0.12); border-color: rgba(0,212,170,0.45); }
    }

    .thinking-dots {
      display: flex;
      gap: 5px;
      padding: 10px 14px;
      background: rgba(15,32,53,0.6);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 16px;
      border-top-left-radius: 4px;
    }

    .neuron-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      animation: neuron-fire 3s ease-in-out infinite;
    }

    .nd-dom  { background: #f5c542; animation-delay: 0s; }
    .nd-ram  { background: #00d4aa; animation-delay: 0.3s; }
    .nd-rom  { background: #0099cc; animation-delay: 0.6s; }
    .nd-rom2 { background: #6c5ce7; animation-delay: 0.9s; }

    @keyframes neuron-fire {
      0%, 100% { opacity: 0.15; transform: scale(0.7); box-shadow: none; }
      40% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 8px currentColor; }
      60% { opacity: 0.7; transform: scale(1); }
    }

    /* ── Quick Reply Bubbles — iba mobile ── */
    .quick-replies {
      display: flex;
      gap: 8px;
      padding: 8px 12px 4px 12px;
      flex-wrap: nowrap;
      justify-content: flex-start;
      overflow-x: auto;
      scrollbar-width: none;
      animation: quick-replies-in 0.3s ease;
      /* Čisté bubliny bez rámika */
      background: transparent;
      margin: 0;
    }
    .quick-replies::-webkit-scrollbar { display: none; }
    @keyframes quick-replies-in {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .quick-reply-btn {
      background: rgba(0, 212, 170, 0.06);
      border: 1px solid rgba(0, 212, 170, 0.15);
      border-radius: 12px;
      padding: 5px 14px;
      color: rgba(0, 212, 170, 0.8);
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
      letter-spacing: 0.2px;
    }
    .quick-reply-btn:hover {
      background: rgba(0, 212, 170, 0.15);
      color: #00d4aa;
      border-color: rgba(0, 212, 170, 0.3);
    }
    .quick-reply-btn:active {
      background: rgba(0, 212, 170, 0.25);
      transform: scale(0.96);
    }
    .quick-reply-btn.qr-health {
      background: rgba(239, 68, 68, 0.08);
      border-color: rgba(239, 68, 68, 0.2);
      color: rgba(239, 100, 100, 0.9);
    }
    .quick-reply-btn.qr-health:hover {
      background: rgba(239, 68, 68, 0.18);
      color: #ef6464;
      border-color: rgba(239, 68, 68, 0.35);
    }

    /* ═══ PetPass Recap Panel ═══ */
    .pp-recap {
      background: rgba(0,212,170,0.04);
      border: 1px solid rgba(0,212,170,0.15);
      border-radius: 14px;
      padding: 14px;
      margin: 8px 12px;
      animation: fadeInUp 0.3s ease;
    }
    .pp-recap-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 10px;
    }
    .pp-recap-title {
      font-size: 13px; font-weight: 600; color: #00d4aa;
      display: flex; align-items: center; gap: 6px;
    }
    .pp-recap-count {
      font-size: 11px; color: rgba(136,153,179,0.7);
    }
    .pp-recap-select-all {
      background: none; border: none; color: #00d4aa; font-size: 11px;
      cursor: pointer; padding: 2px 8px; border-radius: 8px;
    }
    .pp-recap-select-all:hover { background: rgba(0,212,170,0.1); }
    .pp-recap-list {
      display: flex; flex-direction: column; gap: 6px;
      max-height: 260px; overflow-y: auto;
      scrollbar-width: thin; scrollbar-color: rgba(0,212,170,0.2) transparent;
    }
    .pp-recap-item {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 8px 10px;
      background: rgba(0,212,170,0.03);
      border: 1px solid rgba(0,212,170,0.08);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .pp-recap-item:hover { background: rgba(0,212,170,0.08); }
    .pp-recap-item.selected { border-color: rgba(0,212,170,0.3); background: rgba(0,212,170,0.08); }
    .pp-recap-check {
      width: 20px; height: 20px; min-width: 20px;
      border-radius: 5px;
      border: 1.5px solid rgba(136,153,179,0.3);
      display: flex; align-items: center; justify-content: center;
      margin-top: 1px;
      transition: all 0.15s ease;
    }
    .pp-recap-item.selected .pp-recap-check {
      background: #00d4aa; border-color: #00d4aa;
    }
    .pp-recap-info { flex: 1; min-width: 0; }
    .pp-recap-label {
      font-size: 12px; font-weight: 500; color: #e8f4f8;
      display: flex; align-items: center; gap: 6px;
    }
    .pp-recap-cat {
      font-size: 9px; padding: 1px 6px; border-radius: 6px;
      font-weight: 600; text-transform: uppercase;
    }
    .pp-recap-cat.vacc { background: rgba(84,160,255,0.15); color: #54a0ff; }
    .pp-recap-cat.deworm { background: rgba(254,202,87,0.15); color: #feca57; }
    .pp-recap-cat.pet { background: rgba(0,212,170,0.15); color: #00d4aa; }
    .pp-recap-cat.other { background: rgba(136,153,179,0.1); color: #8899b3; }
    .pp-recap-detail {
      font-size: 10px; color: rgba(136,153,179,0.6); margin-top: 2px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .pp-recap-note {
      font-size: 10px; color: rgba(136,153,179,0.4); margin-top: 1px; font-style: italic;
    }
    .pp-recap-actions {
      display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end;
    }
    .pp-recap-btn {
      padding: 8px 16px; border-radius: 10px; font-size: 12px; font-weight: 600;
      cursor: pointer; border: none; transition: all 0.15s ease;
    }
    .pp-recap-btn.save {
      background: rgba(0,212,170,0.15); color: #00d4aa;
    }
    .pp-recap-btn.save:hover { background: rgba(0,212,170,0.25); }
    .pp-recap-btn.save:disabled { opacity: 0.4; cursor: not-allowed; }
    .pp-recap-btn.cancel {
      background: rgba(136,153,179,0.08); color: rgba(136,153,179,0.6);
    }
    .pp-recap-btn.cancel:hover { background: rgba(136,153,179,0.15); }

    .chat-input-area {
      flex-shrink: 0;
      z-index: 100;
      padding: 8px 16px;
      padding-bottom: max(8px, env(safe-area-inset-bottom));
      border-top: none;
      background: transparent;
      overflow: visible;
    }

    .chat-input-row {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      position: relative;
      z-index: 1;
    }

    .neuron-glow {
      position: absolute;
      top: 2px;
      left: 10px;
      right: 56px;
      bottom: 2px;
      border-radius: 22px;
      pointer-events: none;
      z-index: 0;
      opacity: 0;
      transition: opacity 0.6s ease;
      filter: blur(8px);
    }

    .neuron-glow.active {
      opacity: 1;
    }

    .ng-layer {
      position: absolute;
      inset: -4px;
      border-radius: 24px;
    }

    .ng-l-dom  { background: radial-gradient(ellipse at 5% 50%, rgba(245,197,66,0.35) 0%, transparent 50%); }
    .ng-l-ram  { background: radial-gradient(ellipse at 35% 50%, rgba(0,212,170,0.35) 0%, transparent 50%); }
    .ng-l-rom  { background: radial-gradient(ellipse at 65% 50%, rgba(0,153,204,0.35) 0%, transparent 50%); }
    .ng-l-rom2 { background: radial-gradient(ellipse at 95% 50%, rgba(108,92,231,0.35) 0%, transparent 50%); }

    .neuron-glow.thinking {
      opacity: 1;
      animation: neuron-glow-breathe 3s ease-in-out infinite;
    }

    @keyframes neuron-glow-breathe {
      0%, 100% { opacity: 0.5; filter: blur(8px); }
      50% { opacity: 1; filter: blur(12px); }
    }

    .chat-textarea {
      flex: 1;
      padding: 12px 16px;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.04);
      background: rgba(var(--bg-rgb), 0.35);
      color: #e8f4f8;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      resize: none;
      outline: none;
      min-height: 44px;
      max-height: 120px;
      transition: border-color 0.6s ease, box-shadow 0.6s ease;
      position: relative;
      z-index: 2;
      -webkit-appearance: none;
    }

    .chat-textarea:focus {
      border-color: rgba(0, 212, 170, 0.3);
    }

    .chat-textarea.neuron-active {
      border-color: rgba(0, 212, 170, 0.15);
      box-shadow: 0 0 12px rgba(0,212,170,0.08);
    }

    .chat-textarea.neuron-thinking {
      border-color: rgba(0,212,170,0.12);
      box-shadow: 0 0 8px rgba(0,212,170,0.06);
    }

    /* Input bubble wrapper — textarea + camera inside */
    .input-bubble-wrap {
      flex: 1;
      display: flex;
      align-items: flex-end;
      position: relative;
    }
    .input-bubble-wrap .chat-textarea {
      padding-right: 46px;
    }
    .input-bubble-cam {
      position: absolute;
      right: 4px;
      bottom: 4px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 212, 170, 0.06);
      color: rgba(0, 212, 170, 0.5);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3;
      transition: all 0.2s ease;
    }
    .input-bubble-cam:hover { color: rgba(0,212,170,0.7); background: rgba(0,212,170,0.1); }
    .input-bubble-cam svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
    .input-bubble-cam.has-request { color: #00d4aa; animation: cam-pulse 2s ease-in-out infinite; }
    @keyframes cam-pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

    /* Photo menu popup — mobile Fotiť/Galéria výber */
    .photo-menu-popup {
      position: absolute; bottom: 44px; right: 0; z-index: 100;
      background: rgba(15, 28, 48, 0.96); border: 1px solid rgba(0,212,170,0.2);
      border-radius: 12px; overflow: hidden; min-width: 140px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      animation: photo-menu-in 0.15s ease-out;
    }
    @keyframes photo-menu-in { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: none; } }
    .photo-menu-item {
      display: flex; align-items: center; gap: 10px; padding: 12px 16px; width: 100%;
      border: none; background: transparent; color: rgba(224,232,240,0.8); cursor: pointer;
      font-size: 13px; font-family: inherit; transition: background 0.15s;
    }
    .photo-menu-item:active { background: rgba(0,212,170,0.1); }
    .photo-menu-item + .photo-menu-item { border-top: 1px solid rgba(255,255,255,0.05); }
    .photo-menu-item svg { color: rgba(0,212,170,0.7); flex-shrink: 0; }

    /* ═══ Drag & Drop Modal ═══ */
    .drop-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
      background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
      display: flex; align-items: center; justify-content: center;
      animation: photo-menu-in 0.15s ease-out;
    }
    .drop-modal {
      background: rgba(15, 28, 48, 0.97); border: 1px solid rgba(0,212,170,0.2);
      border-radius: 16px; width: 90%; max-width: 420px; max-height: 80vh;
      display: flex; flex-direction: column; overflow: hidden;
      box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 24px rgba(0,212,170,0.06);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .drop-modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 16px 10px; border-bottom: 1px solid rgba(224,232,240,0.06);
    }
    .drop-modal-title { font-size: 14px; font-weight: 600; color: rgba(224,232,240,0.85); letter-spacing: 0.3px; }
    .drop-modal-close {
      width: 30px; height: 30px; border-radius: 8px; border: none; background: none;
      color: rgba(224,232,240,0.4); cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.15s;
    }
    .drop-modal-close:hover { color: rgba(255,107,107,0.8); background: rgba(255,107,107,0.08); }
    .drop-zone {
      margin: 12px 16px; border: 2px dashed rgba(0,212,170,0.25); border-radius: 12px;
      padding: 28px 16px; cursor: pointer; transition: all 0.2s; min-height: 80px;
      display: flex; align-items: center; justify-content: center;
    }
    .drop-zone:hover, .drop-zone.drag-over {
      border-color: rgba(0,212,170,0.6); background: rgba(0,212,170,0.04);
    }
    .drop-zone.drag-over { box-shadow: inset 0 0 20px rgba(0,212,170,0.06); }
    .drop-zone.has-files { padding: 10px 16px; min-height: auto; }
    .drop-zone-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(224,232,240,0.35); }
    .drop-zone-text { font-size: 13px; color: rgba(224,232,240,0.5); }
    .drop-zone-sub { font-size: 11px; color: rgba(224,232,240,0.3); }
    .drop-zone-hint {
      display: flex; align-items: center; gap: 6px; font-size: 12px;
      color: rgba(0,212,170,0.5); transition: color 0.15s;
    }
    .drop-zone:hover .drop-zone-hint { color: rgba(0,212,170,0.8); }
    .drop-files-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
      gap: 8px; padding: 0 16px 12px; max-height: 280px; overflow-y: auto;
    }
    .drop-files-grid::-webkit-scrollbar { width: 4px; }
    .drop-files-grid::-webkit-scrollbar-thumb { background: rgba(0,212,170,0.15); border-radius: 4px; }
    .drop-file-item {
      display: flex; flex-direction: column; align-items: center; gap: 4px;
    }
    .drop-file-preview {
      width: 80px; height: 80px; border-radius: 10px; overflow: hidden; position: relative;
      background: rgba(224,232,240,0.04); border: 1px solid rgba(224,232,240,0.08);
    }
    .drop-file-preview img { width: 100%; height: 100%; object-fit: cover; }
    .drop-file-icon {
      width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
      color: rgba(224,232,240,0.3);
    }
    .drop-file-remove {
      position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
      background: rgba(0,0,0,0.6); border: none; color: rgba(255,255,255,0.7);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.15s;
    }
    .drop-file-preview:hover .drop-file-remove { opacity: 1; }
    .drop-file-remove:hover { background: rgba(255,107,107,0.7); color: #fff; }
    .drop-file-name {
      font-size: 9.5px; color: rgba(224,232,240,0.5); max-width: 80px;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
    }
    .drop-file-size { font-size: 8.5px; color: rgba(224,232,240,0.25); }
    .drop-modal-footer {
      padding: 10px 16px 14px; border-top: 1px solid rgba(224,232,240,0.06);
      display: flex; justify-content: flex-end;
    }
    .drop-send-btn {
      display: flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 10px;
      border: none; background: rgba(0,212,170,0.15); color: rgba(0,212,170,0.85);
      font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit;
    }
    .drop-send-btn:hover { background: rgba(0,212,170,0.25); color: rgba(0,212,170,1); box-shadow: 0 2px 12px rgba(0,212,170,0.15); }

    /* ═══ SVETLÁ — Drag & Drop Modal ═══ */
    html[data-theme="svetlo"] .drop-modal {
      background: rgba(240,243,250,0.97); border-color: rgba(0,60,100,0.14);
      box-shadow: 0 16px 48px rgba(0,30,60,0.15), 0 0 24px rgba(14,116,144,0.06);
    }
    html[data-theme="svetlo"] .drop-modal-header { border-bottom-color: rgba(0,40,80,0.08); }
    html[data-theme="svetlo"] .drop-modal-title { color: #111827; }
    html[data-theme="svetlo"] .drop-modal-close { color: rgba(55,65,81,0.5); }
    html[data-theme="svetlo"] .drop-modal-close:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
    html[data-theme="svetlo"] .drop-zone { border-color: rgba(14,116,144,0.25); }
    html[data-theme="svetlo"] .drop-zone:hover, html[data-theme="svetlo"] .drop-zone.drag-over { border-color: rgba(14,116,144,0.5); background: rgba(14,116,144,0.04); }
    html[data-theme="svetlo"] .drop-zone-empty { color: rgba(55,65,81,0.5); }
    html[data-theme="svetlo"] .drop-zone-text { color: rgba(55,65,81,0.6); }
    html[data-theme="svetlo"] .drop-zone-sub { color: rgba(55,65,81,0.4); }
    html[data-theme="svetlo"] .drop-zone-hint { color: rgba(14,116,144,0.5); }
    html[data-theme="svetlo"] .drop-zone:hover .drop-zone-hint { color: #0e7490; }
    html[data-theme="svetlo"] .drop-file-preview { background: rgba(0,40,80,0.04); border-color: rgba(0,40,80,0.1); }
    html[data-theme="svetlo"] .drop-file-name { color: #374151; }
    html[data-theme="svetlo"] .drop-file-size { color: #6b7280; }
    html[data-theme="svetlo"] .drop-modal-footer { border-top-color: rgba(0,40,80,0.08); }
    html[data-theme="svetlo"] .drop-send-btn { background: rgba(14,116,144,0.12); color: #0e7490; }
    html[data-theme="svetlo"] .drop-send-btn:hover { background: rgba(14,116,144,0.2); box-shadow: 0 2px 12px rgba(14,116,144,0.12); }
    html[data-theme="svetlo"] .drop-files-grid::-webkit-scrollbar-thumb { background: rgba(14,116,144,0.15); }

    .chat-textarea::placeholder {
      color: rgba(136, 153, 179, 0.35);
    }

    .send-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 212, 170, 0.12);
      color: rgba(0, 212, 170, 0.5);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.3s;
      min-width: 40px;
      touch-action: manipulation;
    }

    .send-btn.has-text {
      background: rgba(0, 212, 170, 0.25);
      color: #00d4aa;
      box-shadow: 0 0 12px rgba(0,212,170,0.2);
    }

    .send-btn:hover {
      background: rgba(0, 212, 170, 0.3);
      color: #00d4aa;
    }

    .send-btn:disabled {
      opacity: 0.2;
      cursor: default;
      box-shadow: none;
    }

    .send-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Attach / Camera button v input bare */
    .attach-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: transparent;
      color: rgba(0, 212, 170, 0.45);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.25s;
      touch-action: manipulation;
      padding: 0;
    }
    .attach-btn:hover, .attach-btn:active {
      color: rgba(0, 212, 170, 0.85);
      background: rgba(0, 212, 170, 0.08);
    }
    .attach-btn svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .attach-btn.has-request {
      color: rgba(0, 180, 216, 0.9);
      animation: attach-pulse 2s ease-in-out infinite;
    }
    @keyframes attach-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.15); color: rgba(0, 212, 170, 0.95); }
    }

    .vision-file-input { display: none; }

    /* ═══ MENU ICONS — horizontal roll-out from hamburger ═══ */
    .chat-header-row .orbio-title-blur {
      transition: filter 0.3s, opacity 0.3s;
    }
    .chat-header-row .orbio-title-blur.blurred {
      filter: blur(6px); opacity: 0.15; pointer-events: none;
    }
    .menu-h-icons {
      display: flex; align-items: center; gap: 4px;
      position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
      z-index: 5;
      padding: 0;
      background: none;
      max-width: calc(100% - 100px);
      overflow-x: auto; overflow-y: hidden;
      scrollbar-width: none; -ms-overflow-style: none;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }
    .menu-h-icons::-webkit-scrollbar { display: none; }
    .pet-scroll-arrow {
      width: 28px; height: 90px; flex-shrink: 0;
      border: none; background: none; cursor: pointer;
      color: rgba(0,212,170,0.3);
      display: flex; align-items: center; justify-content: center;
      transition: color 0.2s, background 0.2s;
      border-radius: 10px; position: relative; z-index: 2;
    }
    .pet-scroll-arrow:hover {
      color: rgba(0,212,170,0.8);
      background: rgba(0,212,170,0.06);
    }
    .pet-scroll-arrow:active {
      color: #00d4aa;
      background: rgba(0,212,170,0.1);
    }
    .pet-scroll-arrow svg { transition: transform 0.15s; }
    .pet-scroll-arrow:active svg { transform: scale(0.85); }
    .menu-h-icons-nudge {
      animation: pets-nudge-open 2s ease-in-out 0.3s 1 both;
    }
    @keyframes pets-nudge-open {
      0% { gap: 8px; }
      10% { gap: 18px; }
      20% { gap: 6px; }
      30% { gap: 14px; }
      42% { gap: 8px; }
      55% { gap: 11px; }
      70% { gap: 8px; }
      100% { gap: 8px; }
    }
    /* Scroll hint arrow — fades out when scrolled */
    .menu-h-scroll-hint {
      position: sticky; left: 0;
      width: 0; overflow: visible; flex-shrink: 0;
      background: none; color: rgba(0,212,170,0.6);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; font-weight: 300; pointer-events: none; z-index: 6;
      animation: scroll-hint-bounce 1.2s ease-in-out infinite;
      margin-right: -2px;
    }
    .menu-h-scroll-hint.hidden { opacity: 0; transition: opacity 0.3s; }
    @keyframes scroll-hint-bounce { 0%,100% { opacity: 0.4; transform: translateX(0); } 50% { opacity: 1; transform: translateX(-5px); } }
    .menu-h-icon {
      width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
      border: none;
      background: none;
      color: rgba(224,232,240,0.35); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.25s; position: relative;
      opacity: 0; transform: translateX(20px);
      animation: menu-h-roll 0.25s ease-out forwards;
      touch-action: manipulation;
    }
    .menu-h-icon:nth-child(1) { animation-delay: 0.02s; }
    .menu-h-icon:nth-child(2) { animation-delay: 0.05s; }
    .menu-h-icon:nth-child(3) { animation-delay: 0.08s; }
    .menu-h-icon:nth-child(4) { animation-delay: 0.11s; }
    .menu-h-icon:nth-child(5) { animation-delay: 0.14s; }
    .menu-h-icon:nth-child(6) { animation-delay: 0.17s; }
    .menu-h-icon:nth-child(7) { animation-delay: 0.20s; }
    .menu-h-icon:nth-child(8) { animation-delay: 0.23s; }
    @keyframes menu-h-roll {
      from { opacity: 0; transform: translateX(20px); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes pet-sub-pop {
      0% { opacity: 0; transform: translateX(-10px) scale(0.5); }
      70% { opacity: 1; transform: translateX(2px) scale(1.05); }
      100% { opacity: 1; transform: translateX(0) scale(1); }
    }
    .pet-subtab-btn {
      width: 42px; height: 42px; min-width: 42px; border-radius: 10px;
      border: none; background: none;
      color: rgba(224,232,240,0.35);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      position: relative; transition: all 0.2s; box-sizing: border-box; padding: 0;
    }
    .pet-subtab-btn:hover { color: rgba(232,244,248,0.7); background: rgba(255,255,255,0.04); }
    .pet-subtab-btn:active { transform: scale(0.92); }
    .pet-subtab-btn.active { background: rgba(0,212,170,0.06); }
    @keyframes health-detail-slide-in {
      from { transform: translateX(-100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    @keyframes health-detail-slide-out {
      from { transform: translateX(0); opacity: 1; }
      to { transform: translateX(-100%); opacity: 0; }
    }
    @keyframes health-detail-slide-up {
      from { transform: translateY(100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes health-detail-slide-down {
      from { transform: translateY(0); opacity: 1; }
      to { transform: translateY(100%); opacity: 0; }
    }
    .health-detail-panel {
      flex: 1; min-height: 0;
      background: rgba(10,22,40,0.92);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      animation: health-detail-slide-in 0.28s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
      display: flex; flex-direction: column; overflow: hidden;
    }
    .health-detail-panel.closing {
      animation: health-detail-slide-out 0.22s cubic-bezier(0.55,0.085,0.68,0.53) forwards;
    }
    .health-detail-header {
      display: flex; align-items: center; gap: 8px; padding: 10px 12px;
      border-bottom: 1px solid rgba(0,212,170,0.08); flex-shrink: 0;
    }
    .health-detail-back {
      background: none; border: none; color: rgba(0,212,170,0.7); cursor: pointer;
      padding: 6px; display: flex; align-items: center; border-radius: 8px;
      transition: background 0.15s;
    }
    .health-detail-back:hover { background: rgba(0,212,170,0.1); }
    @keyframes health-arrow-nudge {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(-5px); }
    }
    .health-detail-back svg { animation: health-arrow-nudge 2s ease-in-out infinite; }
    .health-detail-panel.closing .health-detail-back svg { animation: none; }
    .health-detail-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 14px; }
    .health-detail-section { display: flex; flex-direction: column; gap: 4px; }
    .health-detail-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(0,212,170,0.5); }
    .health-detail-value { font-size: 13px; color: rgba(224,232,240,0.85); line-height: 1.4; word-break: break-word; overflow-wrap: break-word; }
    .health-detail-input {
      background: rgba(0,212,170,0.04); border: 1px solid rgba(0,212,170,0.1);
      border-radius: 8px; padding: 6px 10px; color: rgba(224,232,240,0.9);
      font-size: 13px; font-family: inherit; outline: none; width: 100%;
      transition: border-color 0.15s;
    }
    .health-detail-input:focus { border-color: rgba(0,212,170,0.3); }
    .health-detail-textarea {
      background: rgba(0,212,170,0.04); border: 1px solid rgba(0,212,170,0.1);
      border-radius: 8px; padding: 8px 10px; color: rgba(224,232,240,0.9);
      font-size: 13px; font-family: inherit; outline: none; width: 100%;
      min-height: 60px; resize: vertical; transition: border-color 0.15s;
    }
    .health-detail-textarea:focus { border-color: rgba(0,212,170,0.3); }
    .health-detail-photos { display: flex; flex-wrap: wrap; gap: 6px; }
    .health-detail-photo { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(0,212,170,0.1); cursor: pointer; transition: transform 0.15s; }
    /* Photo gallery in detail panel — same style as photos sub-tab */
    .health-detail-gallery {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; margin-top: 4px;
    }
    .health-detail-gallery-tile {
      position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
      aspect-ratio: 1; border: 1px solid rgba(0,212,170,0.06);
      background: rgba(15,32,53,0.3); transition: all 0.2s;
    }
    .health-detail-gallery-tile:hover { border-color: rgba(0,212,170,0.2); transform: scale(1.03); }
    .health-detail-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .health-detail-gallery-tile .gallery-delete {
      position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
      border-radius: 50%; border: none; background: rgba(0,0,0,0.6);
      color: #ff6b6b; cursor: pointer; display: none; align-items: center;
      justify-content: center; font-size: 11px; line-height: 1;
    }
    .health-detail-gallery-tile:hover .gallery-delete { display: flex; }
    .health-detail-gallery-add {
      aspect-ratio: 1; border-radius: 8px; border: 1.5px dashed rgba(0,212,170,0.2);
      background: rgba(0,212,170,0.03); display: flex; align-items: center;
      justify-content: center; cursor: pointer; transition: all 0.2s;
      color: rgba(0,212,170,0.4); font-size: 22px;
    }
    .health-detail-gallery-add:hover { border-color: rgba(0,212,170,0.4); background: rgba(0,212,170,0.08); color: rgba(0,212,170,0.7); }
    /* Gallery nav bar */
    .health-detail-gallery-nav {
      display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
    }
    .health-detail-gallery-nav-btn {
      display: flex; align-items: center; gap: 3px; padding: 3px 8px;
      border-radius: 6px; border: 1px solid rgba(0,212,170,0.12);
      background: rgba(0,212,170,0.04); color: rgba(0,212,170,0.5);
      font-size: 10px; cursor: pointer; transition: all 0.15s;
    }
    .health-detail-gallery-nav-btn:hover { background: rgba(0,212,170,0.1); color: rgba(0,212,170,0.8); }
    /* Inline editable title in header */
    .health-detail-title-input {
      font-size: 14px; font-weight: 600; color: rgba(224,232,240,0.9);
      background: transparent; border: none; outline: none; width: 100%;
      padding: 0; margin: 0; line-height: 1.3;
    }
    .health-detail-title-input:focus { color: #fff; }
    .health-detail-title-input::placeholder { color: rgba(224,232,240,0.3); }
    .health-detail-date-input {
      font-size: 10px; color: rgba(0,212,170,0.5); background: transparent;
      border: none; outline: none; padding: 0; margin: 1px 0 0; width: auto;
      font-family: inherit;
    }
    .health-detail-date-input:focus { color: rgba(0,212,170,0.8); }
    .health-detail-photo:hover { transform: scale(1.05); }
    .health-detail-conv { background: rgba(0,212,170,0.03); border: 1px solid rgba(0,212,170,0.06); border-radius: 8px; padding: 8px 10px; }
    .health-detail-conv-msg { font-size: 12px; color: rgba(224,232,240,0.6); padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
    .health-detail-conv-msg:last-child { border-bottom: none; }
    .health-detail-conv-role { font-weight: 600; font-size: 10px; text-transform: uppercase; margin-right: 6px; }
    /* Extended detail fields grid (vaccination/deworming details from scan) */
    .health-detail-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px;
    }
    .health-detail-grid-item {
      display: flex; flex-direction: column; gap: 1px;
    }
    .health-detail-grid-item.full { grid-column: 1 / -1; }
    .health-detail-grid-label {
      font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
      color: rgba(0,212,170,0.4);
    }
    .health-detail-grid-value {
      font-size: 12px; color: rgba(224,232,240,0.8); line-height: 1.3;
      word-break: break-word; overflow-wrap: break-word;
    }
    .health-detail-grid-input {
      background: rgba(0,212,170,0.04); border: 1px solid rgba(0,212,170,0.08);
      border-radius: 6px; padding: 4px 8px; color: rgba(224,232,240,0.85);
      font-size: 12px; font-family: inherit; outline: none; width: 100%;
      transition: border-color 0.15s;
    }
    .health-detail-grid-input:focus { border-color: rgba(0,212,170,0.3); }
    .health-detail-badge {
      display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px;
      border-radius: 4px; font-size: 10px; font-weight: 600;
    }
    .health-detail-badge.scan { background: rgba(99,102,241,0.12); color: #818cf8; }
    .health-detail-badge.stamp { background: rgba(34,197,94,0.12); color: #4ade80; }
    .health-detail-badge.manual { background: rgba(245,158,11,0.12); color: #fbbf24; }
    .health-detail-scan-thumb {
      width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px;
      border: 1px solid rgba(99,102,241,0.15); cursor: pointer; transition: transform 0.15s;
    }
    .health-detail-scan-thumb:hover { transform: scale(1.02); }
    .health-detail-save {
      background: rgba(0,212,170,0.15); border: 1px solid rgba(0,212,170,0.25);
      border-radius: 8px; padding: 8px 16px; color: rgba(0,212,170,0.9);
      font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
      transition: all 0.15s; align-self: flex-end;
    }
    .health-detail-save:hover { background: rgba(0,212,170,0.25); }
    .menu-h-icon:hover { color: rgba(232,244,248,0.7); background: rgba(255,255,255,0.04); }
    .menu-h-icon:active { transform: scale(0.92); }
    .menu-h-icon.active { color: rgba(0,212,170,1); background: rgba(0,212,170,0.06); box-shadow: 0 0 16px rgba(0,212,170,0.08); }
    .menu-h-icon.danger { color: rgba(239,68,68,0.4); }
    .menu-h-icon.danger:hover { color: rgba(239,68,68,0.8); background: rgba(239,68,68,0.05); }
    .menu-h-icon svg { width: 18px; height: 18px; }
    .menu-h-icon .mh-badge {
      position: absolute; top: 1px; right: 0;
      font-size: 7px; padding: 0 4px; border-radius: 6px; min-width: 12px;
      background: rgba(0,212,170,0.25); color: rgba(0,212,170,1); line-height: 14px; text-align: center;
    }

    /* ═══ TAB PANEL — roller blind from top, reveals chat below ═══ */
    .menu-tab-panel {
      position: absolute; left: 0; right: 0;
      top: max(52px, calc(env(safe-area-inset-top) + 48px));
      background: rgba(10,22,40,0.82);
      border-bottom: 1px solid rgba(0,212,170,0.12);
      display: flex; flex-direction: column;
      backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
      box-shadow: 0 8px 32px rgba(0,0,0,0.5);
      animation: panel-slide-down 0.25s ease-out;
      overflow: hidden; z-index: 99;
    }
    @keyframes panel-slide-down { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 90vh; } }
    .menu-tab-panel-content {
      flex: 1; overflow-y: auto; overflow-x: hidden;
      padding: 8px 16px 4px; -webkit-overflow-scrolling: touch;
    }
    .menu-tab-panel-handle {
      display: flex; align-items: center; justify-content: center;
      padding: 10px 0 12px; cursor: ns-resize; flex-shrink: 0;
      touch-action: none; position: relative;
      min-height: 36px; /* väčšia zóna pre prst na mobile */
    }
    .menu-tab-panel-handle-bar {
      width: 42px; height: 5px; border-radius: 3px;
      background: rgba(255,255,255,0.15);
      transition: background 0.15s, transform 0.15s;
      animation: handle-nudge 2.4s ease-in-out 0.4s 1 both;
    }
    @keyframes handle-nudge {
      0% { background: rgba(255,255,255,0.15); transform: scaleX(1) translateY(0); }
      8% { background: rgba(0,212,170,0.45); transform: scaleX(1.3) translateY(3px); }
      16% { transform: scaleX(1.1) translateY(-2px); }
      24% { background: rgba(0,212,170,0.35); transform: scaleX(1.25) translateY(2px); }
      32% { transform: scaleX(1.05) translateY(-1px); }
      40% { background: rgba(0,212,170,0.2); transform: scaleX(1.15) translateY(1px); }
      55% { background: rgba(255,255,255,0.18); transform: scaleX(1) translateY(0); }
      100% { background: rgba(255,255,255,0.15); transform: scaleX(1) translateY(0); }
    }
    .menu-tab-panel-handle:hover .menu-tab-panel-handle-bar,
    .menu-tab-panel-handle:active .menu-tab-panel-handle-bar {
      background: rgba(0,212,170,0.4); transform: scaleX(1.15);
    }
    .menu-tab-panel-resize-btn {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      width: 28px; height: 28px; border-radius: 50%;
      border: 1px solid rgba(0,212,170,0.12);
      background: rgba(0,212,170,0.04);
      color: rgba(0,212,170,0.4); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      z-index: 2; transition: all 0.15s;
    }
    .menu-tab-panel-resize-btn:hover { background: rgba(0,212,170,0.1); color: rgba(0,212,170,0.7); }
    .menu-tab-panel-resize-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }

    /* ADMIN PANEL — sub-panels (pets, settings, account) still use overlay */
    /* ═══ MENU OVERLAY — onboarding air style ═══ */
    .menu-overlay {
      position: fixed; inset: 0;
      background: var(--bg);
      z-index: 500; display: flex; flex-direction: column; align-items: center;
      animation: fade-in 0.3s ease;
      overflow: hidden;
    }
    .menu-bg-canvas {
      position: absolute; inset: 0; width: 100%; height: 100%;
      opacity: 0.65; pointer-events: none; z-index: 0;
    }
    .menu-inner {
      position: relative; z-index: 1;
      width: 100%; max-width: 420px;
      flex: 1; display: flex; flex-direction: column;
      overflow: hidden;
      padding: 0 24px;
    }
    .menu-header {
      display: flex; align-items: center; padding: 20px 0; gap: 14px;
      min-height: 56px; flex-shrink: 0;
    }
    .menu-back {
      width: 44px; height: 44px; border: none; background: none;
      color: rgba(232,244,248,0.5); cursor: pointer; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 12px; transition: all 0.2s; touch-action: manipulation;
    }
    .menu-back:hover { color: #e8f4f8; background: rgba(255,255,255,0.04); }
    .menu-back svg { width: 20px; height: 20px; }
    .menu-title {
      font-size: 16px; font-weight: 300; color: rgba(232,244,248,0.85);
      letter-spacing: 0.5px;
    }

    /* Menu nav — centered onboarding-like layout */
    .menu-nav-center {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 10px; padding: 20px 0;
      overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .menu-nav-logo { width: 64px; height: 64px; margin-bottom: 8px; animation: pulse-glow 3s ease-in-out infinite; }
    .menu-nav-greeting {
      font-size: 18px; font-weight: 300; color: rgba(232,244,248,0.8);
      text-align: center; margin-bottom: 24px; letter-spacing: 0.3px;
    }
    .menu-nav-grid {
      display: flex; flex-direction: column; gap: 8px; width: 100%;
    }
    .menu-nav-item {
      display: flex; align-items: center; gap: 16px;
      padding: 16px 20px; border: none;
      border-radius: 14px; background: none;
      color: rgba(232,244,248,0.6); font-size: 15px; font-weight: 400;
      cursor: pointer; transition: all 0.2s; text-align: left;
      font-family: 'Inter', sans-serif; touch-action: manipulation; min-height: 56px;
    }
    .menu-nav-item:hover { color: #e8f4f8; background: rgba(255,255,255,0.03); }
    .menu-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; color: rgba(232,244,248,0.35); }
    .menu-nav-item:hover svg { color: rgba(0,212,170,0.7); }
    .menu-nav-item .menu-badge {
      margin-left: auto; font-size: 11px; padding: 3px 10px;
      border-radius: 10px; background: rgba(0,212,170,0.08); color: rgba(0,212,170,0.7);
    }
    .menu-nav-item.special {
      background: none;
    }
    .menu-nav-item.special:hover { background: rgba(0,212,170,0.04); }
    .menu-nav-item.special svg { color: rgba(0,212,170,0.5); }
    .menu-nav-item.danger { color: rgba(239,68,68,0.5); }
    .menu-nav-item.danger:hover { color: #ef4444; background: rgba(239,68,68,0.03); }
    .menu-nav-item.danger svg { color: rgba(239,68,68,0.35); }
    .menu-nav-divider { height: 1px; margin: 4px 0; }
    .menu-footer {
      padding: 16px 0; text-align: center; flex-shrink: 0;
    }

    /* Menu content panels — onboarding centered style */
    .menu-content {
      flex: 1; overflow-y: auto; padding: 8px 12px 40px 0;
      -webkit-overflow-scrolling: touch;
      animation: float-in 0.3s ease;
      scrollbar-width: thin;
      scrollbar-color: rgba(0,212,170,0.15) transparent;
    }
    .menu-content::-webkit-scrollbar { width: 4px; }
    .menu-content::-webkit-scrollbar-track { background: transparent; }
    .menu-content::-webkit-scrollbar-thumb { background: rgba(0,212,170,0.15); border-radius: 4px; }
    .menu-section { margin-bottom: 28px; }
    .menu-section-title {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 1.5px; color: rgba(136,153,179,0.35); margin-bottom: 14px;
    }
    .menu-hint {
      font-size: 12px; color: rgba(136,153,179,0.4); line-height: 1.5; margin-top: 4px;
    }

    /* Toggle rows — clean */
    .toggle-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .toggle-row:last-child { border-bottom: none; }
    .toggle-label { font-size: 14px; color: rgba(232,244,248,0.8); }
    .toggle-sub { font-size: 11px; color: rgba(136,153,179,0.35); margin-top: 3px; }
    .toggle-switch {
      width: 48px; height: 26px; border-radius: 13px; border: none; cursor: pointer;
      position: relative; transition: background 0.3s; flex-shrink: 0; touch-action: manipulation;
    }
    .toggle-switch.on { background: rgba(0,212,170,0.35); }
    .toggle-switch.off { background: rgba(136,153,179,0.12); }
    .toggle-switch .toggle-knob {
      width: 20px; height: 20px; border-radius: 50%; background: #e8f4f8;
      position: absolute; top: 3px; transition: left 0.25s;
    }
    .toggle-switch.on .toggle-knob { left: 25px; }
    .toggle-switch.off .toggle-knob { left: 3px; }

    /* Personality cards — species-card style */
    .personality-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .personality-card {
      padding: 18px 10px; border-radius: 14px;
      border: none; background: none;
      text-align: center; cursor: pointer; transition: all 0.2s; touch-action: manipulation;
    }
    .personality-card:hover { background: rgba(255,255,255,0.03); }
    .personality-card.active {
      background: rgba(0,212,170,0.06);
    }
    .personality-card svg { width: 28px; height: 28px; color: rgba(232,244,248,0.5); margin-bottom: 10px; }
    .personality-card.active svg { color: #00d4aa; }
    .personality-name { font-size: 13px; font-weight: 500; color: rgba(232,244,248,0.8); margin-bottom: 4px; }
    .personality-card.active .personality-name { color: #00d4aa; }
    .personality-desc { font-size: 10px; color: rgba(136,153,179,0.4); line-height: 1.3; }

    /* Pet cards — clean air */
    .pet-card {
      display: flex; align-items: center; gap: 14px;
      padding: 16px; border-radius: 14px;
      border: none; background: none;
      margin-bottom: 8px; transition: all 0.2s;
    }
    .pet-card:hover { background: rgba(255,255,255,0.03); }
    .pet-avatar {
      width: 48px; height: 48px; border-radius: 12px;
      background: rgba(15,32,53,0.3); border: none;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .pet-avatar svg { width: 24px; height: 24px; color: rgba(0,212,170,0.6); }
    .pet-info { flex: 1; min-width: 0; }
    .pet-name { font-size: 15px; font-weight: 500; color: rgba(232,244,248,0.9); margin-bottom: 2px; }
    .pet-detail { font-size: 12px; color: rgba(136,153,179,0.45); }
    .pet-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
    .pet-tag {
      font-size: 10px; padding: 2px 8px; border-radius: 8px;
      background: rgba(0,212,170,0.06); color: rgba(0,212,170,0.6); border: 1px solid rgba(0,212,170,0.08);
    }
    .pet-tag.warn { background: rgba(239,68,68,0.06); color: rgba(239,68,68,0.6); border-color: rgba(239,68,68,0.08); }
    .pet-action-btn {
      width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
      background: transparent; color: rgba(232,244,248,0.4); cursor: pointer;
      display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    }
    .pet-action-btn:hover { border-color: rgba(0,212,170,0.2); color: #00d4aa; }
    .pet-action-btn svg { width: 16px; height: 16px; }
    .pet-add-btn {
      width: 100%; padding: 14px; border-radius: 14px;
      border: 1px dashed rgba(255,255,255,0.08); background: transparent;
      color: rgba(232,244,248,0.4); font-size: 14px; cursor: pointer;
      transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
      font-family: 'Inter', sans-serif; touch-action: manipulation; margin-top: 4px;
    }
    .pet-add-btn:hover { border-color: rgba(0,212,170,0.2); color: rgba(0,212,170,0.6); }

    /* Pet form — onboarding-input style */
    .pet-form { padding: 8px 0; }
    .pet-form-field { margin-bottom: 22px; }
    .pet-form-label { font-size: 12px; color: rgba(136,153,179,0.45); margin-bottom: 8px; display: block; }
    .pet-form-input {
      width: 100%; padding: 14px 18px; border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.08); background: rgba(15,32,53,0.4);
      color: #e8f4f8; font-size: 15px; outline: none; font-family: 'Inter', sans-serif;
      min-height: 48px; transition: all 0.2s; text-align: center;
    }
    .pet-form-input:focus { border-color: rgba(0,212,170,0.4); background: rgba(15,32,53,0.6); }
    .pet-form-input::placeholder { color: rgba(136,153,179,0.3); }
    .pet-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .pet-form-select {
      width: 100%; padding: 14px 18px; border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.08); background: rgba(15,32,53,0.5);
      color: #e8f4f8; font-size: 15px; outline: none; min-height: 48px; cursor: pointer;
      font-family: 'Inter', sans-serif; text-align: center;
      -webkit-appearance: none; -moz-appearance: none; appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(136,153,179,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 16px center;
      padding-right: 40px; transition: all 0.2s;
    }
    .pet-form-select:focus { border-color: rgba(0,212,170,0.4); background-color: rgba(15,32,53,0.6); }
    .pet-form-select option { background: var(--bg); color: var(--text); padding: 8px; }
    /* Force dark on ALL inputs/selects/textareas */
    html, select, input, textarea, button { color-scheme: var(--scheme, dark); }
    select option { background-color: var(--bg) !important; color: var(--text) !important; }
    input:-webkit-autofill { -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important; -webkit-text-fill-color: var(--text) !important; }

    /* Air bubble toggle buttons — pohlavie, zivotne podmienky */
    .living-toggle {
      display: flex; gap: 10px;
    }
    .living-option {
      flex: 1; padding: 14px 12px; border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.06); background: rgba(15,32,53,0.3);
      color: rgba(232,244,248,0.6); font-size: 14px; font-weight: 400;
      cursor: pointer; transition: all 0.25s ease;
      font-family: 'Inter', sans-serif; text-align: center;
      min-height: 48px; touch-action: manipulation;
    }
    .living-option:hover { border-color: rgba(0,212,170,0.2); color: rgba(232,244,248,0.8); }
    .living-option.active {
      border-color: rgba(0,212,170,0.5); background: rgba(0,212,170,0.08); color: #00d4aa;
      box-shadow: 0 0 16px rgba(0,212,170,0.08);
    }
    .pet-form-actions { display: flex; gap: 10px; margin-top: 24px; }
    .pet-form-actions button {
      flex: 1; padding: 14px; border-radius: 12px; font-size: 14px;
      font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif;
      min-height: 48px; touch-action: manipulation;
    }
    .btn-save { border: none; background: linear-gradient(135deg,#00d4aa,#0099cc); color: var(--bg); font-weight: 600; }
    .btn-save:hover { box-shadow: 0 4px 16px rgba(0,212,170,0.3); }
    .btn-save:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
    .btn-cancel { border: 1px solid rgba(255,255,255,0.08); background: transparent; color: rgba(232,244,248,0.5); }

    /* Account */
    .account-card {
      padding: 16px 20px; border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.06); background: rgba(15,32,53,0.3); margin-bottom: 10px;
    }
    .account-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .account-row:last-child { border-bottom: none; }
    .account-key { font-size: 13px; color: rgba(136,153,179,0.45); }
    .account-val { font-size: 14px; color: rgba(232,244,248,0.85); font-weight: 500; }
    .tier-display {
      padding: 24px; border-radius: 14px; text-align: center;
      border: 1px solid rgba(0,212,170,0.1); background: rgba(15,32,53,0.3); margin-bottom: 12px;
    }
    .tier-current { font-size: 22px; font-weight: 300; color: rgba(0,212,170,0.8); letter-spacing: 2px; }
    .tier-sub { font-size: 12px; color: rgba(136,153,179,0.4); margin-top: 4px; }
    .upgrade-btn {
      width: 100%; padding: 14px; border-radius: 14px; border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--bg);
      font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
      touch-action: manipulation;
    }
    .upgrade-btn:hover { box-shadow: 0 4px 16px rgba(0,212,170,0.3); }

    /* Danger buttons */
    .danger-btn {
      width: 100%; padding: 14px; border-radius: 14px; font-size: 13px;
      cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
      min-height: 48px; touch-action: manipulation; text-align: center;
    }
    .danger-btn.warning { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.1); color: rgba(251,191,36,0.7); }
    .danger-btn.warning:hover { border-color: rgba(251,191,36,0.2); }
    .danger-btn.critical { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.1); color: rgba(239,68,68,0.7); }
    .danger-btn.critical:hover { border-color: rgba(239,68,68,0.2); }

    /* Neuron fullscreen */
    .neuron-fullscreen { position: fixed; inset: 0; z-index: 600; background: var(--bg); animation: fade-in 0.4s ease; }
    .neuron-fullscreen canvas { width: 100%; height: 100%; display: block; }
    .neuron-close {
      position: fixed; top: 20px; right: 20px; z-index: 601;
      width: 44px; height: 44px; border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08); background: rgba(10,22,40,0.8);
      backdrop-filter: blur(10px); color: rgba(232,244,248,0.6); cursor: pointer;
      display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    }
    .neuron-close:hover { color: #e8f4f8; }
    .neuron-close svg { width: 18px; height: 18px; }
    .neuron-title {
      position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 601;
      font-size: 12px; font-weight: 300; letter-spacing: 4px;
      color: rgba(0,212,170,0.3); text-transform: uppercase;
    }

    /* Legacy */
    .admin-overlay { display: none; }
    .admin-section { margin-bottom: 24px; }
    .admin-label {
      font-size: 12px;
      color: rgba(136, 153, 179, 0.5);
      margin-bottom: 8px;
      letter-spacing: 0.5px;
    }

    .admin-input {
      width: 100%;
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: var(--input-bg);
      color: #e8f4f8;
      font-size: 14px;
      outline: none;
      min-height: 44px;
    }

    .admin-input:focus {
      border-color: rgba(0, 212, 170, 0.4);
    }

    .admin-input::placeholder {
      color: rgba(136, 153, 179, 0.35);
    }

    .admin-select {
      width: 100%;
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(var(--bg-rgb), 0.8);
      color: #e8f4f8;
      font-size: 14px;
      outline: none;
      min-height: 44px;
      cursor: pointer;
    }

    .admin-select:focus {
      border-color: rgba(0, 212, 170, 0.4);
    }

    .admin-textarea {
      width: 100%;
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: var(--input-bg);
      color: #e8f4f8;
      font-size: 12px;
      font-family: monospace;
      line-height: 1.6;
      outline: none;
      resize: vertical;
      min-height: 200px;
    }

    .admin-textarea:focus {
      border-color: rgba(0, 212, 170, 0.4);
    }

    .admin-btn-row {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .admin-btn {
      padding: 10px 20px;
      border-radius: 10px;
      border: 1px solid rgba(0, 212, 170, 0.3);
      background: rgba(0, 212, 170, 0.05);
      color: #00d4aa;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 40px;
      touch-action: manipulation;
    }

    .admin-btn:hover {
      background: rgba(0, 212, 170, 0.1);
    }

    .admin-btn-save {
      padding: 10px 20px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      color: var(--bg);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      min-height: 40px;
      touch-action: manipulation;
    }

    .admin-status {
      font-size: 12px;
      margin-top: 8px;
    }

    .lang-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .lang-chip {
      padding: 8px 14px;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255,255,255,0.02);
      color: rgba(232, 244, 248, 0.5);
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 36px;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .lang-chip:active {
      transform: scale(0.94);
      background: rgba(0, 212, 170, 0.08);
    }

    .lang-chip.active {
      border-color: rgba(0, 212, 170, 0.5);
      color: #00d4aa;
      background: rgba(0, 212, 170, 0.1);
      font-weight: 600;
      box-shadow: 0 0 8px rgba(0, 212, 170, 0.1);
    }

    .disclaimer-mini {
      font-size: 10px;
      color: rgba(136, 153, 179, 0.2);
      text-align: center;
      padding: 0 16px 4px;
      flex-shrink: 0;
    }

    .brain-pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #00d4aa;
      animation: brain-beat 3s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes brain-beat {
      0%, 100% { opacity: 0.3; transform: scale(0.8); box-shadow: none; }
      50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 8px rgba(0, 212, 170, 0.5); }
    }

    .brain-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 2px 0;
    }

    .brain-energy-track {
      width: 40px;
      height: 3px;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.04);
      overflow: hidden;
    }

    .brain-energy-fill {
      height: 100%;
      border-radius: 2px;
      background: linear-gradient(90deg, #00d4aa, #0099cc);
      transition: width 1s ease;
    }

    .brain-label {
      font-size: 9px;
      color: rgba(136, 153, 179, 0.25);
      letter-spacing: 0.5px;
    }

    .admin-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    .admin-table th {
      text-align: left;
      padding: 8px;
      color: rgba(136, 153, 179, 0.6);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      font-weight: 500;
    }

    .admin-table td {
      padding: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      color: rgba(232, 244, 248, 0.8);
    }

    .admin-table tr:hover {
      background: rgba(0, 212, 170, 0.05);
    }

    .user-stat {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px;
      background: var(--input-bg);
      border-radius: 8px;
      margin-bottom: 8px;
    }

    .user-stat-label {
      color: rgba(136, 153, 179, 0.6);
      font-size: 12px;
      flex: 1;
    }

    .user-stat-value {
      color: #00d4aa;
      font-weight: 600;
      font-size: 14px;
    }

    .chart-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .chart-label {
      font-size: 11px;
      color: rgba(136, 153, 179, 0.5);
      min-width: 60px;
    }

    .chart-fill {
      flex: 1;
      height: 20px;
      border-radius: 4px;
      background: linear-gradient(90deg, rgba(0, 212, 170, 0.3), rgba(0, 212, 170, 0.6));
      position: relative;
    }

    .chart-value {
      font-size: 10px;
      color: rgba(232, 244, 248, 0.6);
      padding: 0 6px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      min-width: 30px;
    }

    /* MOBILE RESPONSIVE */
    @media (max-width: 768px) {
      .container {
        max-width: 100%;
      }

      .login-logo {
        width: 80px;
        height: 80px;
      }

      .login-title {
        font-size: 28px;
      }

      .login-buttons {
        max-width: 100%;
      }

      .login-form {
        max-width: 100%;
      }

      .onboarding {
        padding: 20px 16px;
      }

      .onboarding-logo {
        width: 64px;
        height: 64px;
      }

      .onboarding-greeting {
        font-size: 18px;
      }

      .onboarding-question {
        max-width: 100%;
      }

      .species-grid {
        grid-template-columns: 1fr 1fr;
      }

      .chat-header {
        padding: 8px 12px 6px;
        padding-top: max(8px, env(safe-area-inset-top));
      }

      .chat-messages {
        padding: 12px;
      }

      .msg-row {
        max-width: 92%;
      }

      .admin-content {
        padding: 16px 12px;
      }

      .admin-section {
        margin-bottom: 16px;
      }

      .admin-input,
      .admin-textarea,
      .admin-select {
        font-size: 16px;
      }

      .admin-tabs {
        padding: 0 8px;
      }

      .admin-tab {
        padding: 10px 12px;
        font-size: 11px;
      }
    }

    @media (max-width: 480px) {
      body {
        font-size: 17px;
      }

      .container {
        max-width: 100%;
      }

      /* ── Login — velke, dotykove ── */
      .login-screen {
        padding: 24px 16px;
        gap: 16px;
      }

      .login-logo {
        width: 80px;
        height: 80px;
      }

      .login-title {
        font-size: 28px;
        letter-spacing: 4px;
      }

      .login-subtitle {
        font-size: 15px;
      }

      .login-buttons {
        max-width: 100%;
        gap: 12px;
      }

      .login-btn {
        padding: 16px 20px;
        font-size: 16px;
        gap: 12px;
        border-radius: 14px;
      }

      .login-btn svg {
        width: 24px;
        height: 24px;
      }

      .login-input {
        padding: 16px 18px;
        font-size: 17px;
        border-radius: 14px;
      }

      .btn-primary {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 14px;
      }

      .link-btn {
        font-size: 15px;
        padding: 8px;
      }

      .lang-chip {
        padding: 8px 16px;
        font-size: 14px;
      }

      /* ── Onboarding — väčšie ── */
      .onboarding {
        padding: 24px 20px;
        gap: 16px;
      }

      .onboarding-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
      }

      .onboarding-greeting {
        font-size: 22px;
        margin-bottom: 8px;
      }

      .onboarding-sub {
        font-size: 14px;
        margin-bottom: 24px;
      }

      .onboarding-q-text {
        font-size: 17px;
        margin-bottom: 18px;
      }

      .onboarding-input {
        padding: 16px 18px;
        font-size: 17px;
      }

      .species-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .species-card {
        padding: 16px 8px;
        min-height: 80px;
      }

      .species-card svg {
        width: 32px;
        height: 32px;
      }

      .species-card span {
        font-size: 14px;
      }

      .gender-row {
        gap: 10px;
      }

      .gender-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 14px;
      }

      .onboarding-nav {
        gap: 14px;
        margin-top: 20px;
      }

      .onboarding-next {
        padding: 14px 32px;
        font-size: 16px;
        border-radius: 14px;
      }

      .onboarding-skip {
        font-size: 14px;
      }

      .step-dot {
        width: 7px;
        height: 7px;
      }

      /* ── Chat — väčšie bubliny, text, avatary ── */
      .chat-header {
        padding: 10px 14px 6px;
        padding-top: max(10px, env(safe-area-inset-top));
      }

      .chat-header-row {
        gap: 10px;
      }

      .chat-header-logo {
        width: 42px;
        height: 42px;
      }

      .orbio-heart-logo {
        width: 42px;
        height: 42px;
      }

      .heart-dot {
        width: 8px;
        height: 8px;
      }

      .chat-header-title {
        font-size: 19px;
        letter-spacing: 2px;
      }

      .info-bubble-text {
        font-size: 32px;
        letter-spacing: 4px;
      }

      .problem-pet-name {
        font-size: 20px;
      }

      .problem-label {
        font-size: 20px;
      }

      .problem-dot-separator {
        width: 8px;
        height: 8px;
      }

      .chat-messages {
      }

      .chat-settings-btn {
        width: 44px;
        height: 44px;
        padding: 8px;
      }

      .chat-settings-btn svg {
        width: 22px;
        height: 22px;
      }

      .msg-row {
        max-width: 92%;
        gap: 8px;
      }

      .msg-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
      }

      .msg-avatar-ring {
        width: 44px;
        height: 44px;
      }

      .msg-bubble {
        padding: 12px 16px;
        font-size: 16px;
        line-height: 1.65;
        border-radius: 16px;
      }

      .msg-bubble-ai strong {
        font-size: 16px;
      }

      .msg-time {
        font-size: 11px;
      }

      /* .inline-option removed — VYPNUTÉ */

      .tw-dot {
        width: 9px;
        height: 9px;
      }

      .chat-welcome-logo {
        width: 80px;
        height: 80px;
      }

      .chat-welcome-text {
        font-size: 16px;
        max-width: 90%;
      }

      /* ── Input area ── */
      .chat-input-area {
        padding: 12px 14px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
      }

      .chat-textarea {
        min-height: 48px;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 24px;
      }

      .send-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
      }

      .send-btn svg {
        width: 20px;
        height: 20px;
      }

      .disclaimer-mini {
        font-size: 11px;
        padding: 0 14px 4px;
      }

      /* ── Thinking indicator ── */
      .thinking-avatar {
        width: 38px;
        height: 38px;
      }

      .neuron-dot {
        width: 10px;
        height: 10px;
      }

      .thinking-dots {
        padding: 12px 16px;
        gap: 7px;
      }

      /* ── Brain energy bar ── */
      .brain-pulse {
        width: 10px;
        height: 10px;
      }

      .brain-label {
        font-size: 11px;
      }

      .brain-energy-track {
        width: 50px;
        height: 4px;
      }

      .pet-info-pill {
        font-size: 13px;
        padding: 6px 12px;
      }

      /* ── Admin panel ── */
      .admin-header {
        padding: 14px;
        gap: 10px;
        min-height: 52px;
      }

      .admin-close {
        width: 44px;
        height: 44px;
        font-size: 22px;
      }

      .admin-title {
        font-size: 17px;
      }

      .admin-tabs {
        padding: 0 8px;
      }

      .admin-tab {
        padding: 12px 12px;
        font-size: 12px;
        min-height: 44px;
      }

      .admin-content {
        padding: 16px 14px;
      }

      .admin-label {
        font-size: 14px;
      }

      .admin-input {
        padding: 14px 16px;
        font-size: 16px;
      }

      .admin-select {
        padding: 14px 16px;
        font-size: 16px;
      }

      .admin-textarea {
        font-size: 14px;
        min-height: 180px;
      }

      .admin-btn, .admin-btn-save {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
      }

      .admin-section {
        margin-bottom: 12px;
      }

      .admin-label {
        font-size: 11px;
        margin-bottom: 6px;
      }

      .admin-input,
      .admin-textarea,
      .admin-select {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 40px;
      }

      .admin-textarea {
        min-height: 120px;
      }

      .admin-btn,
      .admin-btn-save {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 36px;
      }

      .lang-chip {
        padding: 4px 10px;
        font-size: 11px;
        min-height: 28px;
      }

      .user-stat {
        padding: 10px;
        margin-bottom: 6px;
      }

      .user-stat-label {
        font-size: 11px;
      }

      .user-stat-value {
        font-size: 13px;
      }

      .admin-table {
        font-size: 11px;
      }

      .admin-table th,
      .admin-table td {
        padding: 6px;
      }

      /* ── Pet form — single column on mobile ── */
      .pet-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .pet-form-input, .pet-form-select {
        min-height: 44px;
        font-size: 14px;
        padding: 12px 14px;
      }
      .pet-form-label {
        font-size: 11px;
        color: rgba(136,153,179,0.55);
      }
      .pet-form-input::placeholder {
        color: rgba(136,153,179,0.4);
      }

      /* ── Health forms — responsive fixes ── */
      .health-add-form .haf-row {
        flex-wrap: wrap;
      }
      .health-add-form input, .health-add-form select {
        min-height: 36px;
        font-size: 13px;
      }
      .health-add-form .haf-actions {
        flex-wrap: wrap;
      }
      .health-add-form .haf-save, .health-add-form .haf-cancel {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 36px;
      }
      .health-detail-grid {
        grid-template-columns: 1fr;
        gap: 6px;
      }
      .health-detail-value {
        word-break: break-word;
        overflow-wrap: break-word;
      }
      .health-detail-input, .health-detail-textarea {
        font-size: 14px;
      }

      /* ── Calendar form — responsive ── */
      .calendar-add-input {
        font-size: 14px;
        padding: 12px;
      }

      /* ── VETID — responsive ── */
      .vetid-input {
        font-size: 14px;
        min-height: 44px;
      }

      /* ── FastCatch — mobile touch targets ── */
      .fc-action-card {
        padding: 14px 8px;
        min-height: 80px;
      }
      .fc-action-card .fc-action-label {
        font-size: 10px;
      }
    }

    @media (max-width: 360px) {
      .login-title {
        font-size: 20px;
        letter-spacing: 3px;
      }

      .login-logo {
        width: 56px;
        height: 56px;
      }

      .login-buttons {
        gap: 8px;
      }

      .login-btn {
        padding: 10px 12px;
        font-size: 12px;
      }

      .onboarding-greeting {
        font-size: 14px;
      }

      .onboarding-input {
        padding: 10px 12px;
      }

      .species-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
      }

      .chat-header { padding: 6px 10px 4px; }
      .chat-messages { padding: 8px; }
      .chat-input-area { padding: 8px 10px; }
      .info-bubble-text { font-size: 22px; letter-spacing: 2px; }
      .chat-header-title { font-size: 14px; letter-spacing: 1.5px; }
      .problem-pet-name { font-size: 15px; }
      .problem-label { font-size: 15px; }
      .problem-dot-separator { width: 5px; height: 5px; }

      .msg-row {
        max-width: 90%;
      }

      .msg-bubble {
        padding: 6px 10px;
        font-size: 12px;
      }

      .chat-textarea {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12px;
      }

      .admin-input,
      .admin-textarea,
      .admin-select {
        font-size: 13px;
      }

      .admin-section {
        margin-bottom: 10px;
      }
    }

    @media (max-height: 600px) {
      .login-logo { width: 72px; height: 72px; }
      .login-title { font-size: 28px; }
      .onboarding-logo { width: 56px; height: 56px; }
      .tut-logo-wrap { width: 64px; height: 64px; margin-bottom: 12px; }
      .tut-title { font-size: 24px; letter-spacing: 5px; }
      .tut-subtitle { margin-bottom: 24px; }
      .tut-content { padding: 24px 16px; }
      .tut-q { font-size: 16px; margin-bottom: 16px; }
      .tut-feature-visual { aspect-ratio: 16/8; }
      .chat-header { padding: 8px 12px; }
      .chat-messages { padding: 8px; }
      .chat-input-area { padding: 8px 12px; }
      /* Landscape — compact panels */
      .health-detail-header { padding: 6px 10px; }
      .health-detail-body { padding: 8px 10px; gap: 8px; }
      .fastcatch-header { padding: 8px 12px; }
      .fastcatch-body { padding: 8px 12px; gap: 6px; }
      .fc-pet-chip .fc-pet-avatar { width: 36px; height: 36px; border-radius: 10px; }
      .fc-pet-chip .fc-pet-name { font-size: 9px; }
    }

    /* ═══ VETID — Veterinary Diagnostic Engine ═══ */
    .vetid-header {
      display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    }
    .vetid-logo {
      width: 36px; height: 36px; border-radius: 10px;
      background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,150,136,0.1));
      border: 1px solid rgba(0,212,170,0.2);
      display: flex; align-items: center; justify-content: center;
      color: #00d4aa; flex-shrink: 0;
    }
    .vetid-title { font-size: 15px; font-weight: 700; color: #00d4aa; letter-spacing: 1px;
      text-shadow: 0 0 12px rgba(0,212,170,0.5), 0 0 4px rgba(0,212,170,0.3); }
    .vetid-subtitle { font-size: 11px; color: rgba(224,232,240,0.4); margin-top: 1px; }
    .vetid-tabs {
      display: flex; gap: 4px; margin-bottom: 14px;
      background: rgba(255,255,255,0.03); border-radius: 10px; padding: 3px;
    }
    .vetid-tab {
      flex: 1; padding: 7px 0; border-radius: 8px; border: none;
      background: none; color: rgba(224,232,240,0.4); font-size: 11px;
      font-weight: 500; cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 5px;
    }
    .vetid-tab.active {
      background: rgba(0,212,170,0.1); color: rgba(0,212,170,0.9);
      box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .vetid-tab:hover:not(.active) { color: rgba(224,232,240,0.6); }
    .vetid-pet-select {
      display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
    }
    .vetid-pet-card {
      display: flex; align-items: center; gap: 8px; padding: 10px 14px;
      border-radius: 12px; border: 1px solid rgba(255,255,255,0.06);
      background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.2s;
      flex: 1; min-width: 120px;
    }
    .vetid-pet-card:hover { background: rgba(0,212,170,0.06); border-color: rgba(0,212,170,0.15); }
    .vetid-pet-card.selected {
      background: rgba(0,212,170,0.1); border-color: rgba(0,212,170,0.3);
      box-shadow: 0 0 12px rgba(0,212,170,0.08);
    }
    .vetid-pet-avatar {
      width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
      background: rgba(0,212,170,0.08); display: flex; align-items: center;
      justify-content: center; font-size: 18px; flex-shrink: 0;
    }
    .vetid-pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .vetid-pet-name { font-size: 13px; font-weight: 600; color: rgba(224,232,240,0.85); }
    .vetid-pet-info { font-size: 10px; color: rgba(224,232,240,0.4); margin-top: 1px; }
    .vetid-start-btn {
      width: 100%; padding: 12px; border-radius: 12px; border: none;
      background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(0,150,136,0.15));
      color: #00d4aa; font-size: 13px; font-weight: 600; cursor: pointer;
      transition: all 0.2s; letter-spacing: 0.3px;
      border: 1px solid rgba(0,212,170,0.2);
    }
    .vetid-start-btn:hover { background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(0,150,136,0.25)); }
    .vetid-start-btn:disabled {
      opacity: 0.4; cursor: not-allowed;
      background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); color: rgba(224,232,240,0.3);
    }
    .vetid-chat {
      display: flex; flex-direction: column; gap: 12px; min-height: 120px;
      overflow-y: auto; padding: 8px 4px 8px 0;
      scroll-behavior: smooth;
    }
    .vetid-msg-row {
      display: flex; gap: 8px; max-width: 88%;
      animation: vetid-float-in 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    .vetid-msg-row.vetid-row-user { flex-direction: row-reverse; margin-left: auto; }
    .vetid-msg-row.vetid-row-ai { margin-right: auto; }
    @keyframes vetid-float-in {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    /* Avatar ring — matches ORBIO msg-avatar-ring */
    .vetid-avatar-ring {
      width: 36px; height: 36px; border-radius: 12px; padding: 2px;
      background: rgba(0,212,170,0.15); flex-shrink: 0; margin-top: 2px;
      animation: vetid-avatar-pulse 3s ease-in-out infinite;
      display: flex; align-items: center; justify-content: center;
    }
    @keyframes vetid-avatar-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
      50% { box-shadow: 0 0 8px 2px rgba(0,212,170,0.15); }
    }
    .vetid-avatar-ring.vetid-ring-thinking {
      animation: vetid-avatar-think 1.5s ease-in-out infinite;
    }
    @keyframes vetid-avatar-think {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
      50% { box-shadow: 0 0 12px 3px rgba(0,212,170,0.25); }
    }
    .vetid-avatar {
      width: 32px; height: 32px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; font-size: 14px; overflow: hidden;
    }
    .vetid-avatar-ai {
      background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,153,204,0.12));
      border: 1.5px solid rgba(0,212,170,0.2);
    }
    .vetid-avatar-user {
      width: 32px; height: 32px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 2px; overflow: hidden;
      background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,153,204,0.12));
      border: 1.5px solid rgba(108,92,231,0.2);
    }
    /* Bubble — matches ORBIO msg-bubble */
    .vetid-msg-col { display: flex; flex-direction: column; min-width: 0; }
    .vetid-msg-bubble {
      padding: 10px 14px; border-radius: 16px; font-size: 14px;
      line-height: 1.6; max-width: 100%; color: rgba(232,244,248,0.9);
      word-wrap: break-word; overflow-wrap: break-word;
      position: relative; overflow: visible;
    }
    .vetid-msg-bubble-ai {
      background: var(--glass, rgba(15,32,53,0.6));
      border: 1px solid rgba(255,255,255,0.06);
      border-top-left-radius: 4px;
    }
    .vetid-msg-bubble-user {
      background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,153,204,0.15));
      border: 1px solid rgba(0,212,170,0.2);
      color: #e8f4f8;
      border-top-right-radius: 4px;
    }
    /* Timestamp */
    .vetid-msg-time {
      font-size: 10px; color: rgba(136,153,179,0.3); margin-top: 4px;
      padding: 0 4px;
    }
    .vetid-msg-time-right { text-align: right; }
    /* Input row — matches ORBIO input area */
    .vetid-input-row {
      display: flex; align-items: flex-end; gap: 6px; margin-top: 10px;
    }
    .vetid-input {
      flex: 1; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
      background: var(--glass, rgba(15,32,53,0.6)); color: rgba(232,244,248,0.9); font-size: 14px;
      font-family: inherit; resize: none; outline: none; min-height: 40px; max-height: 90px;
      transition: border-color 0.2s;
    }
    .vetid-input:focus { border-color: rgba(0,212,170,0.3); box-shadow: 0 0 0 2px rgba(0,212,170,0.06); }
    .vetid-input::placeholder { color: rgba(232,244,248,0.2); }
    .vetid-send {
      width: 40px; height: 40px; border-radius: 12px; border: none;
      background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(0,153,204,0.2));
      color: #00d4aa; cursor: pointer;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      transition: all 0.2s;
      border: 1px solid rgba(0,212,170,0.15);
    }
    .vetid-send:hover { background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(0,153,204,0.3)); box-shadow: 0 0 12px rgba(0,212,170,0.15); }
    .vetid-send:disabled { opacity: 0.3; cursor: not-allowed; }
    .vetid-attach-row {
      display: flex; gap: 6px; margin-top: 6px;
    }
    .vetid-attach-btn {
      padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
      background: var(--glass, rgba(15,32,53,0.6)); color: rgba(232,244,248,0.35); font-size: 11px;
      cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 4px;
    }
    .vetid-attach-btn:hover { border-color: rgba(0,212,170,0.3); color: rgba(0,212,170,0.7); background: rgba(0,212,170,0.05); }
    .vetid-thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
    .vetid-thumb {
      width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08); position: relative;
    }
    .vetid-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .vetid-thumb-remove {
      position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
      border-radius: 50%; background: rgba(0,0,0,0.7); color: white; border: none;
      font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    }
    /* Thinking indicator — matches ORBIO neuron dots */
    .vetid-thinking {
      display: flex; align-items: center; gap: 8px;
      animation: vetid-float-in 0.3s ease;
    }
    .vetid-thinking-bubble {
      display: flex; gap: 5px; padding: 10px 14px;
      background: var(--glass, rgba(15,32,53,0.6));
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 16px; border-top-left-radius: 4px;
    }
    .vetid-neuron-dot {
      width: 7px; height: 7px; border-radius: 50%;
      animation: vetid-neuron-fire 1.6s ease-in-out infinite;
    }
    .vetid-nd-1 { background: #f5c542; animation-delay: 0s; }
    .vetid-nd-2 { background: #00d4aa; animation-delay: 0.15s; }
    .vetid-nd-3 { background: #0099cc; animation-delay: 0.3s; }
    .vetid-nd-4 { background: #6c5ce7; animation-delay: 0.45s; }
    @keyframes vetid-neuron-fire {
      0%, 100% { opacity: 0.15; transform: scale(0.7); box-shadow: none; }
      40% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 8px currentColor; }
      60% { opacity: 0.7; transform: scale(1); }
    }
    .vetid-result {
      background: rgba(255,255,255,0.03); border: 1px solid rgba(0,212,170,0.12);
      border-radius: 14px; padding: 16px; margin-top: 10px;
    }
    .vetid-result-header {
      display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
      padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .vetid-result-icon {
      width: 32px; height: 32px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
    }
    .vetid-severity {
      display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
      border-radius: 20px; font-size: 11px; font-weight: 600;
    }
    .vetid-severity.low { background: rgba(46,213,115,0.12); color: #2ed573; }
    .vetid-severity.medium { background: rgba(255,165,2,0.12); color: #ffa502; }
    .vetid-severity.high { background: rgba(255,71,87,0.12); color: #ff4757; }
    .vetid-severity.critical { background: rgba(255,0,0,0.15); color: #ff3838; animation: vetid-pulse 1.5s infinite; }
    @keyframes vetid-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
    .vetid-dx-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
    .vetid-dx-item {
      display: flex; align-items: center; gap: 10px; padding: 10px 12px;
      border-radius: 10px; background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.05);
    }
    .vetid-dx-prob {
      width: 48px; height: 48px; border-radius: 50%; display: flex;
      align-items: center; justify-content: center; font-size: 14px;
      font-weight: 700; flex-shrink: 0; border: 2px solid;
    }
    .vetid-dx-info { flex: 1; }
    .vetid-dx-name { font-size: 13px; font-weight: 600; color: rgba(224,232,240,0.9); }
    .vetid-dx-desc { font-size: 11px; color: rgba(224,232,240,0.5); margin-top: 2px; line-height: 1.4; }
    .vetid-section {
      margin-top: 12px; padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.04);
    }
    .vetid-section-title {
      font-size: 12px; font-weight: 600; color: rgba(0,212,170,0.7);
      margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
    }
    .vetid-treatment-compare {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px;
    }
    .vetid-treatment-card {
      padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
      background: rgba(255,255,255,0.02);
    }
    .vetid-treatment-label {
      font-size: 11px; font-weight: 600; color: rgba(224,232,240,0.7);
      margin-bottom: 6px;
    }
    .vetid-treatment-stat {
      font-size: 10px; color: rgba(224,232,240,0.5); line-height: 1.5;
    }
    .vetid-disclaimer {
      margin-top: 12px; padding: 10px 12px; border-radius: 10px;
      background: rgba(255,165,2,0.06); border: 1px solid rgba(255,165,2,0.12);
      font-size: 10px; color: rgba(255,165,2,0.7); line-height: 1.5;
    }
    .vetid-copy-btn[data-copied="true"] {
      border-color: rgba(0,212,170,0.4) !important; color: #00d4aa !important;
      background: rgba(0,212,170,0.1) !important;
    }
    .vetid-copy-btn[data-copied="true"]::after {
      content: ' ✓';
    }
    .vetid-history-list { display: flex; flex-direction: column; gap: 8px; }
    .vetid-history-item {
      display: flex; align-items: center; gap: 10px; padding: 10px 12px;
      border-radius: 12px; background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: all 0.2s;
    }
    .vetid-history-item:hover { background: rgba(0,212,170,0.06); border-color: rgba(0,212,170,0.12); }
    .vetid-history-icon {
      width: 36px; height: 36px; border-radius: 10px; display: flex;
      align-items: center; justify-content: center; flex-shrink: 0;
    }
    .vetid-history-meta { flex: 1; }
    .vetid-history-title { font-size: 12px; font-weight: 600; color: rgba(224,232,240,0.85); }
    .vetid-history-sub { font-size: 10px; color: rgba(224,232,240,0.4); margin-top: 2px; }
    .vetid-empty {
      text-align: center; padding: 30px 20px; color: rgba(224,232,240,0.3);
    }
    .vetid-empty svg { margin-bottom: 10px; opacity: 0.3; }
    .vetid-empty-text { font-size: 13px; margin-bottom: 4px; }
    .vetid-empty-sub { font-size: 11px; opacity: 0.7; }
    .vetid-back-btn {
      display: flex; align-items: center; gap: 6px; padding: 6px 12px;
      border-radius: 8px; border: none; background: rgba(255,255,255,0.04);
      color: rgba(224,232,240,0.5); font-size: 11px; cursor: pointer;
      transition: all 0.2s; margin-bottom: 10px;
    }
    .vetid-back-btn:hover { background: rgba(255,255,255,0.08); color: rgba(224,232,240,0.7); }
    /* old vetid-typing replaced by vetid-thinking + vetid-neuron-dot above */

    /* ═══ UNKNOWN PET PROMPT ═══ */
    .unknown-pet-prompt {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      margin: 0 16px 8px;
      border-radius: 14px;
      background: rgba(0, 212, 170, 0.08);
      border: 1px solid rgba(0, 212, 170, 0.15);
      animation: unknown-pet-fade-in 0.4s ease;
    }
    @keyframes unknown-pet-fade-in {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .unknown-pet-prompt-text {
      flex: 1;
      font-size: 13px;
      color: rgba(255,255,255,0.7);
      line-height: 1.4;
    }
    .unknown-pet-prompt-name {
      color: #00d4aa;
      font-weight: 600;
    }
    .unknown-pet-prompt-btns {
      display: flex;
      gap: 6px;
    }
    .unknown-pet-btn-add, .unknown-pet-btn-dismiss {
      padding: 6px 14px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .unknown-pet-btn-add {
      background: rgba(0,212,170,0.15);
      color: #00d4aa;
    }
    .unknown-pet-btn-add:hover { background: rgba(0,212,170,0.25); }
    .unknown-pet-btn-dismiss {
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.5);
    }
    .unknown-pet-btn-dismiss:hover { background: rgba(255,255,255,0.1); }

    /* ═══ WIDGET MODE ═══ */
    .container.widget-mode-active {
      padding-top: 56px;
      display: flex;
      flex-direction: column;
      height: 100vh;
    }
    /* Widget mode: entire chat-header is hidden — everything is in topbar */
    .container.widget-mode-active .chat-header {
      display: none !important;
    }
    /* Chat area — shifts right as floating panel */
    .container.widget-mode-active .chat-area,
    .container.widget-mode-active .messages-area,
    .container.widget-mode-active .chat-input-area {
      max-width: 440px;
      margin-left: auto;
      margin-right: 0;
    }
    /* chat-header is hidden in widget mode — no layout needed */
    /* ═══ Widget mode top bar — 1:1 copy of mobile header ═══ */
    .widget-mode-topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 56px;
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 9000;
      background: rgba(10,22,40,0.95);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(0,212,170,0.08);
      padding: 0 12px;
      animation: widgetTopbarIn 0.3s ease;
    }
    @keyframes widgetTopbarIn {
      from { transform: translateY(-100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    /* Logo + dot — same as mobile .orbio-heart-logo */
    .widget-topbar-logo {
      position: relative;
      width: 38px; height: 38px;
      flex-shrink: 0;
    }
    .widget-topbar-logo svg { width: 38px; height: 38px; }
    .widget-topbar-logo .topbar-pulse-dot {
      width: 8px; height: 8px; border-radius: 50%;
      position: absolute; bottom: 1px; right: 0;
      box-shadow: 0 0 6px rgba(0,212,170,0.6);
      animation: heartbeat-alive 2.5s ease-in-out infinite;
    }
    /* ORBIO title — same as mobile .chat-header-title */
    .widget-topbar-title {
      font-size: 20px;
      font-weight: 400;
      letter-spacing: 2.5px;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      flex-shrink: 0;
    }
    /* Spacer to push icons right */
    .widget-topbar-spacer { flex: 1; }
    /* Menu icons row — inline, same size as mobile hamburger/voice/scan */
    .widget-topbar-icons {
      display: flex;
      align-items: center;
      gap: 2px;
    }
    .widget-topbar-icon {
      width: 36px; height: 36px;
      border: none; background: none;
      color: rgba(224,232,240,0.45);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 10px;
      transition: all 0.15s;
      padding: 0;
      position: relative;
    }
    .widget-topbar-icon:hover {
      background: rgba(0,212,170,0.08);
      color: rgba(0,212,170,0.8);
    }
    .widget-topbar-icon.active {
      color: #00d4aa;
      background: rgba(0,212,170,0.1);
    }
    .widget-topbar-icon svg { width: 20px; height: 20px; }
    .widget-topbar-icon .wt-badge {
      position: absolute; top: 2px; right: 2px;
      min-width: 14px; height: 14px;
      border-radius: 7px; font-size: 8px; font-weight: 700;
      background: #ff6b6b; color: #fff;
      display: flex; align-items: center; justify-content: center;
      padding: 0 3px;
      box-shadow: 0 0 4px rgba(255,107,107,0.4);
    }
    /* Notification bell in topbar */
    .widget-topbar-notif {
      position: relative;
    }
    .widget-topbar-notif .wt-notif-badge {
      position: absolute; top: 0; right: 0;
      min-width: 16px; height: 16px;
      border-radius: 8px; font-size: 9px; font-weight: 700;
      background: #ffa502; color: #fff;
      display: flex; align-items: center; justify-content: center;
      padding: 0 3px;
      box-shadow: 0 0 6px rgba(255,165,2,0.5);
      animation: notifBounce 0.4s ease;
    }
    @keyframes notifBounce {
      0% { transform: scale(0); }
      60% { transform: scale(1.2); }
      100% { transform: scale(1); }
    }
    /* Pop-out chat toggle */
    .widget-topbar-icon.chat-popout {
      margin-left: 4px;
      border-left: 1px solid rgba(0,212,170,0.1);
      padding-left: 6px;
      border-radius: 0 10px 10px 0;
    }

    /* ═══ FASTCATCH — sliding panel from right ═══ */
    .fastcatch-overlay {
      position: fixed; inset: 0; z-index: 9500;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(4px);
      animation: fcOverlayIn 0.2s ease;
    }
    @keyframes fcOverlayIn { from { opacity: 0; } to { opacity: 1; } }
    .fastcatch-overlay.closing { animation: fcOverlayOut 0.25s ease forwards; }
    @keyframes fcOverlayOut { from { opacity: 1; } to { opacity: 0; } }
    .fastcatch-panel {
      position: fixed; top: 0; right: 0; bottom: 0;
      width: min(380px, 88vw);
      z-index: 9501;
      background: rgba(10,22,40,0.97);
      backdrop-filter: blur(20px);
      border-left: 1px solid rgba(0,212,170,0.12);
      box-shadow: -8px 0 40px rgba(0,0,0,0.5);
      display: flex; flex-direction: column;
      animation: fcPanelIn 0.3s cubic-bezier(0.22,1,0.36,1);
      overflow: hidden;
    }
    @keyframes fcPanelIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
    .fastcatch-panel.closing { animation: fcPanelOut 0.25s ease forwards; }
    @keyframes fcPanelOut { from { transform: translateX(0); } to { transform: translateX(100%); } }
    .fastcatch-header {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 16px; border-bottom: 1px solid rgba(0,212,170,0.08);
      flex-shrink: 0;
    }
    .fastcatch-header-title {
      font-size: 16px; font-weight: 600; letter-spacing: 1.5px;
      background: linear-gradient(135deg, #00d4aa, #ffa502);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      flex: 1;
    }
    .fastcatch-close {
      width: 32px; height: 32px; border: none; background: none;
      color: rgba(224,232,240,0.4); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 8px; transition: all 0.15s;
    }
    .fastcatch-close:hover { background: rgba(255,100,100,0.1); color: rgba(255,100,100,0.7); }
    .fastcatch-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
    /* Pet selector chips */
    .fc-pet-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
    .fc-pet-chip {
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      padding: 8px 6px; border-radius: 14px;
      border: 1.5px solid rgba(0,212,170,0.08);
      background: none;
      color: rgba(224,232,240,0.5); font-size: 11px; font-weight: 500;
      cursor: pointer; transition: all 0.2s; min-width: 64px;
    }
    .fc-pet-chip:hover { border-color: rgba(0,212,170,0.2); background: rgba(0,212,170,0.04); }
    .fc-pet-chip.active {
      border-color: rgba(0,212,170,0.35); background: rgba(0,212,170,0.06);
      color: #00d4aa; box-shadow: 0 0 12px rgba(0,212,170,0.12);
    }
    .fc-pet-chip .fc-pet-avatar {
      width: 48px; height: 48px; border-radius: 12px;
      background: rgba(15,32,53,0.3); border: 1.5px solid transparent;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      overflow: hidden; transition: all 0.2s;
    }
    .fc-pet-chip.active .fc-pet-avatar { border-color: rgba(0,212,170,0.3); box-shadow: 0 0 10px rgba(0,212,170,0.15); }
    .fc-pet-chip .fc-pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .fc-pet-chip .fc-pet-avatar svg { width: 24px; height: 24px; color: rgba(0,212,170,0.5); }
    .fc-pet-chip .fc-pet-name { text-align: center; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
    /* Quick action cards */
    .fc-actions { display: flex; gap: 8px; }
    .fc-action-card {
      flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
      padding: 16px 10px; border-radius: 14px;
      border: 1px solid rgba(0,212,170,0.1);
      background: rgba(0,212,170,0.03);
      cursor: pointer; transition: all 0.2s; position: relative;
    }
    .fc-action-card:hover { border-color: rgba(0,212,170,0.25); background: rgba(0,212,170,0.07); transform: translateY(-1px); }
    .fc-action-card:active { transform: scale(0.97); }
    .fc-action-card .fc-action-icon {
      width: 44px; height: 44px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
    }
    .fc-action-card .fc-action-icon svg { width: 24px; height: 24px; }
    .fc-action-card .fc-action-label { font-size: 11px; font-weight: 600; color: rgba(224,232,240,0.7); text-align: center; letter-spacing: 0.3px; }
    /* Photo capture area */
    .fc-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
    .fc-photo-thumb {
      width: 80px; height: 80px; border-radius: 10px; overflow: hidden;
      border: 1px solid rgba(0,212,170,0.15); position: relative;
    }
    .fc-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .fc-photo-thumb .fc-photo-status {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 2px 4px; font-size: 8px; font-weight: 700; text-align: center;
      background: rgba(0,0,0,0.7); color: #00d4aa;
    }
    .fc-photo-add {
      width: 80px; height: 80px; border-radius: 10px;
      border: 2px dashed rgba(0,212,170,0.2);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.15s; color: rgba(0,212,170,0.4);
    }
    .fc-photo-add:hover { border-color: rgba(0,212,170,0.4); color: rgba(0,212,170,0.7); background: rgba(0,212,170,0.04); }
    /* Recognition result cards */
    .fc-recog-card {
      padding: 10px 12px; border-radius: 10px;
      border: 1px solid rgba(0,212,170,0.1);
      background: rgba(0,212,170,0.03);
      display: flex; flex-direction: column; gap: 6px;
    }
    .fc-recog-card .fc-recog-type {
      font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    }
    .fc-recog-card .fc-recog-name { font-size: 13px; font-weight: 500; color: rgba(224,232,240,0.85); }
    .fc-recog-card .fc-recog-missing { font-size: 10px; color: rgba(255,107,107,0.8); }
    .fc-recog-actions { display: flex; gap: 6px; margin-top: 4px; }
    .fc-recog-btn {
      flex: 1; padding: 6px 8px; border-radius: 8px;
      border: none; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s;
    }
    .fc-recog-btn.save { background: rgba(0,212,170,0.15); color: #00d4aa; }
    .fc-recog-btn.save:hover { background: rgba(0,212,170,0.25); }
    .fc-recog-btn.edit { background: rgba(255,165,2,0.12); color: #ffa502; }
    .fc-recog-btn.edit:hover { background: rgba(255,165,2,0.2); }
    /* Pending records list */
    .fc-pending-item {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 10px; border-radius: 8px;
      border: 1px solid rgba(255,107,107,0.12);
      background: rgba(255,107,107,0.03);
      cursor: pointer; transition: all 0.15s;
    }
    .fc-pending-item:hover { border-color: rgba(255,107,107,0.25); background: rgba(255,107,107,0.06); }
    .fc-pending-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .fc-pending-info { flex: 1; min-width: 0; }
    .fc-pending-name { font-size: 12px; font-weight: 500; color: rgba(224,232,240,0.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fc-pending-missing { font-size: 10px; color: rgba(255,107,107,0.7); }
    /* FastCatch icon */
    .fastcatch-btn {
      width: 36px; height: 36px; border: none; background: none;
      color: rgba(255,165,2,0.7); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 10px; transition: all 0.15s; position: relative;
    }
    .fastcatch-btn:hover { background: rgba(255,165,2,0.1); color: #ffa502; }
    .fastcatch-btn svg { width: 22px; height: 22px; }
    .fastcatch-btn .fc-badge {
      position: absolute; top: 0; right: 0;
      min-width: 14px; height: 14px; border-radius: 7px;
      font-size: 8px; font-weight: 700;
      background: #ff6b6b; color: #fff;
      display: flex; align-items: center; justify-content: center;
      padding: 0 3px; box-shadow: 0 0 4px rgba(255,107,107,0.4);
      animation: notifBounce 0.4s ease;
    }
    /* Section label in FC panel */
    .fc-section-label {
      font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
      color: rgba(0,212,170,0.5); margin-top: 4px;
    }
    /* Light theme */
    html[data-theme="svetlo"] .fastcatch-panel {
      background: rgba(240,243,250,0.97);
      border-left-color: rgba(14,116,144,0.12);
      box-shadow: -8px 0 40px rgba(0,30,60,0.12);
    }
    html[data-theme="svetlo"] .fastcatch-header { border-bottom-color: rgba(14,116,144,0.1); }
    html[data-theme="svetlo"] .fc-pet-chip { border-color: rgba(14,116,144,0.08); color: rgba(55,65,81,0.6); }
    html[data-theme="svetlo"] .fc-pet-chip.active { border-color: rgba(14,116,144,0.3); background: rgba(14,116,144,0.06); color: #0e7490; }
    html[data-theme="svetlo"] .fc-pet-chip .fc-pet-avatar { background: rgba(14,116,144,0.06); }
    html[data-theme="svetlo"] .fc-action-card { border-color: rgba(14,116,144,0.1); background: rgba(14,116,144,0.03); }
    html[data-theme="svetlo"] .fc-action-card:hover { border-color: rgba(14,116,144,0.2); }
    html[data-theme="svetlo"] .fc-action-card .fc-action-label { color: rgba(55,65,81,0.7); }
    html[data-theme="svetlo"] .fc-recog-card { border-color: rgba(14,116,144,0.1); background: rgba(14,116,144,0.03); }
    html[data-theme="svetlo"] .fc-recog-card .fc-recog-name { color: rgba(55,65,81,0.85); }
    html[data-theme="svetlo"] .fastcatch-btn { color: rgba(217,119,6,0.7); }
    html[data-theme="svetlo"] .fastcatch-btn:hover { background: rgba(217,119,6,0.1); color: #d97706; }
    html[data-theme="svetlo"] .fastcatch-close { color: rgba(55,65,81,0.4); }
    html[data-theme="svetlo"] .fastcatch-close:hover { background: rgba(255,100,100,0.08); }

    /* ═══════════════════════════════════════════════════════════════════════
       SVETLÁ TÉMA — KOMPLETNÉ OVERRIDES PRE VŠETKY CHÝBAJÚCE ELEMENTY
       Unified: text=#111827, dim=#374151, muted=#6b7280, accent=#0e7490
       ═══════════════════════════════════════════════════════════════════════ */

    /* ── TRETIA VRSTVA: Health detail panel (vaccination, deworming, vet detail) ── */
    html[data-theme="svetlo"] .health-detail-panel {
      background: rgba(232,236,244,0.97);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 -4px 24px rgba(0,30,60,0.08);
    }
    html[data-theme="svetlo"] .health-detail-header { border-bottom-color: rgba(14,116,144,0.12); }
    html[data-theme="svetlo"] .health-detail-back { color: #0e7490; }
    html[data-theme="svetlo"] .health-detail-back:hover { background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .health-detail-body { color: #111827; }
    html[data-theme="svetlo"] .health-detail-label { color: rgba(14,116,144,0.65); }
    html[data-theme="svetlo"] .health-detail-value { color: #111827; }
    html[data-theme="svetlo"] .health-detail-input {
      background: rgba(0,40,80,0.04); border-color: rgba(14,116,144,0.15);
      color: #111827;
    }
    html[data-theme="svetlo"] .health-detail-input:focus { border-color: rgba(14,116,144,0.4); }
    html[data-theme="svetlo"] .health-detail-textarea {
      background: rgba(0,40,80,0.04); border-color: rgba(14,116,144,0.15);
      color: #111827;
    }
    html[data-theme="svetlo"] .health-detail-textarea:focus { border-color: rgba(14,116,144,0.4); }
    html[data-theme="svetlo"] .health-detail-title-input { color: #111827; }
    html[data-theme="svetlo"] .health-detail-title-input:focus { color: #111827; }
    html[data-theme="svetlo"] .health-detail-title-input::placeholder { color: #9ca3af; }
    html[data-theme="svetlo"] .health-detail-date-input { color: rgba(14,116,144,0.6); }
    html[data-theme="svetlo"] .health-detail-date-input:focus { color: #0e7490; }
    html[data-theme="svetlo"] .health-detail-conv { background: rgba(14,116,144,0.04); border-color: rgba(14,116,144,0.1); }
    html[data-theme="svetlo"] .health-detail-conv-msg { color: #374151; border-bottom-color: rgba(0,60,100,0.06); }
    html[data-theme="svetlo"] .health-detail-conv-role { color: #0e7490; }
    html[data-theme="svetlo"] .health-detail-grid-label { color: rgba(14,116,144,0.55); }
    html[data-theme="svetlo"] .health-detail-grid-value { color: #374151; }
    html[data-theme="svetlo"] .health-detail-grid-input {
      background: rgba(0,40,80,0.04); border-color: rgba(14,116,144,0.12);
      color: #111827;
    }
    html[data-theme="svetlo"] .health-detail-grid-input:focus { border-color: rgba(14,116,144,0.35); }
    html[data-theme="svetlo"] .health-detail-photo { border-color: rgba(14,116,144,0.12); }
    html[data-theme="svetlo"] .health-detail-gallery-tile {
      border-color: rgba(0,60,100,0.1); background: rgba(0,40,80,0.03);
    }
    html[data-theme="svetlo"] .health-detail-gallery-tile:hover { border-color: rgba(14,116,144,0.25); }
    html[data-theme="svetlo"] .health-detail-gallery-add {
      border-color: rgba(14,116,144,0.2); background: rgba(14,116,144,0.03);
      color: rgba(14,116,144,0.4);
    }
    html[data-theme="svetlo"] .health-detail-gallery-add:hover {
      border-color: rgba(14,116,144,0.4); background: rgba(14,116,144,0.08);
      color: rgba(14,116,144,0.7);
    }
    html[data-theme="svetlo"] .health-detail-gallery-nav-btn {
      border-color: rgba(14,116,144,0.12); background: rgba(14,116,144,0.04);
      color: rgba(14,116,144,0.5);
    }
    html[data-theme="svetlo"] .health-detail-gallery-nav-btn:hover { background: rgba(14,116,144,0.1); color: #0e7490; }
    html[data-theme="svetlo"] .health-detail-badge.scan { background: rgba(99,102,241,0.1); }

    /* ── TRETIA VRSTVA: Lightbox (zobrazenie fotiek) ── */
    html[data-theme="svetlo"] .tc-lightbox { background: rgba(232,236,244,0.97); }

    /* ── TRETIA VRSTVA: Inline dark overlays/modals (reminder, calendar, popups) ── */
    html[data-theme="svetlo"] .health-detail-panel span[style*="0, 212, 170"] { color: #0e7490 !important; }
    html[data-theme="svetlo"] .health-detail-panel div[style*="0, 212, 170"][style*="background"] {
      background: rgba(14,116,144,0.04) !important; border-color: rgba(14,116,144,0.12) !important;
    }
    html[data-theme="svetlo"] .health-detail-panel input[style*="0, 212, 170"] {
      background: rgba(0,40,80,0.04) !important; border-color: rgba(14,116,144,0.15) !important;
      color: #111827 !important;
    }
    html[data-theme="svetlo"] .health-detail-panel select[style*="0, 212, 170"] {
      background: rgba(0,40,80,0.04) !important; border-color: rgba(14,116,144,0.15) !important;
      color: #111827 !important;
    }
    html[data-theme="svetlo"] .health-detail-panel textarea[style*="0, 212, 170"] {
      background: rgba(0,40,80,0.04) !important; border-color: rgba(14,116,144,0.15) !important;
      color: #111827 !important;
    }
    html[data-theme="svetlo"] .health-detail-panel button[style*="0, 212, 170"] {
      color: #0e7490 !important; border-color: rgba(14,116,144,0.25) !important;
    }
    /* Allergy Nie/Áno toggle buttons in detail */
    html[data-theme="svetlo"] .health-detail-panel button[style*="background"][style*="0, 212, 170"] {
      background: rgba(14,116,144,0.12) !important; color: #0e7490 !important;
      border-color: rgba(14,116,144,0.3) !important;
    }
    /* Delete button in detail header */
    html[data-theme="svetlo"] .health-detail-panel button[style*="239, 68, 68"],
    html[data-theme="svetlo"] .health-detail-panel button[style*="255, 107, 107"] {
      color: #ef4444 !important;
    }
    /* Save/submit buttons in detail */
    html[data-theme="svetlo"] .health-detail-panel button[style*="background"][style*="0, 212, 170"][style*="border-radius"] {
      background: rgba(14,116,144,0.15) !important; color: #0e7490 !important;
    }
    /* Section divider "VIAC INFO" */
    html[data-theme="svetlo"] .health-detail-panel div[style*="border"][style*="0, 212, 170"] {
      border-color: rgba(14,116,144,0.15) !important;
    }
    /* Breadcrumb at top (e.g. "LIA · VAKCINÁCIA") */
    html[data-theme="svetlo"] .health-detail-panel span[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] .health-detail-panel span[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .health-detail-panel span[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .health-detail-panel div[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .health-detail-panel span[style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] .health-detail-panel div[style*="255, 255, 255"]:not([style*="background"]) { color: #374151 !important; }

    /* ── Menu navigation / settings ── */
    html[data-theme="svetlo"] .menu-close-icon { color: #6b7280; }
    html[data-theme="svetlo"] .menu-nav-title { color: #111827; }
    html[data-theme="svetlo"] .menu-nav-subtitle { color: #374151; }
    html[data-theme="svetlo"] .menu-nav-desc { color: #6b7280; }
    html[data-theme="svetlo"] .menu-nav-item:hover { color: #0e7490; }
    html[data-theme="svetlo"] .menu-nav-item svg { color: #6b7280; }
    html[data-theme="svetlo"] .menu-section-label { color: #6b7280; }
    html[data-theme="svetlo"] .menu-section-sub { color: #9ca3af; }

    /* ── Toggles & settings ── */
    html[data-theme="svetlo"] .toggle-label { color: #374151; }
    html[data-theme="svetlo"] .toggle-sub { color: #9ca3af; }

    /* ── Personality cards ── */
    html[data-theme="svetlo"] .personality-card svg { color: #6b7280; }
    html[data-theme="svetlo"] .personality-name { color: #111827; }
    html[data-theme="svetlo"] .personality-desc { color: #9ca3af; }

    /* ── Pet management ── */
    html[data-theme="svetlo"] .pet-name { color: #111827; }
    html[data-theme="svetlo"] .pet-detail { color: #6b7280; }
    html[data-theme="svetlo"] .pet-edit-btn { color: #6b7280; }
    html[data-theme="svetlo"] .pet-edit-btn:hover { color: #0e7490; }
    html[data-theme="svetlo"] .pet-delete-btn { color: #6b7280; }
    html[data-theme="svetlo"] .pet-delete-btn:hover { color: #ef4444; }
    html[data-theme="svetlo"] .pet-form-label { color: #6b7280; }
    html[data-theme="svetlo"] .pet-form-input { color: #111827; background: rgba(0,40,80,0.04); border-color: rgba(0,60,100,0.15); }
    html[data-theme="svetlo"] .pet-form-input::placeholder { color: #9ca3af; }
    html[data-theme="svetlo"] .pet-form-select { color: #111827; background: rgba(0,40,80,0.04); border-color: rgba(0,60,100,0.15); }
    html[data-theme="svetlo"] .pet-icon-btn { color: #6b7280; }
    html[data-theme="svetlo"] .living-option-label { color: #374151; }

    /* ── Account section ── */
    html[data-theme="svetlo"] .account-key { color: #6b7280; }
    html[data-theme="svetlo"] .account-val { color: #111827; }
    html[data-theme="svetlo"] .tier-sub { color: #9ca3af; }

    /* ── Neuron/emotion popups ── */
    html[data-theme="svetlo"] .neuron-close-popup { color: #6b7280; }
    html[data-theme="svetlo"] .neuron-close:hover { color: #0e7490; }

    /* ── VETID diagnostics ── */
    html[data-theme="svetlo"] .vetid-subtitle { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-tab { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-tab.active { color: #0e7490; }
    html[data-theme="svetlo"] .vetid-pet-name { color: #111827; }
    html[data-theme="svetlo"] .vetid-pet-info { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-chat-msg-content { color: #111827; }
    html[data-theme="svetlo"] .vetid-chat-msg-key { color: #111827; }
    html[data-theme="svetlo"] .vetid-chat-msg-note { color: #9ca3af; }
    html[data-theme="svetlo"] .vetid-dx-name { color: #111827; }
    html[data-theme="svetlo"] .vetid-dx-desc { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-detail-label { color: #374151; }
    html[data-theme="svetlo"] .vetid-detail-desc { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-history-title { color: #111827; }
    html[data-theme="svetlo"] .vetid-history-sub { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-history-empty { color: #9ca3af; }
    html[data-theme="svetlo"] .vetid-history-item-date { color: #6b7280; }
    html[data-theme="svetlo"] .vetid-select { color: #111827; background: rgba(0,40,80,0.04); }
    html[data-theme="svetlo"] .vetid-input { color: #111827; }
    html[data-theme="svetlo"] .vetid-select-label { color: #6b7280; }

    /* ── Health detail views ── */
    html[data-theme="svetlo"] .health-detail-value { color: #111827; }
    html[data-theme="svetlo"] .health-detail-copy { color: #111827; }
    html[data-theme="svetlo"] .health-detail-status { color: #111827; }
    html[data-theme="svetlo"] .health-detail-title { color: #111827; }
    html[data-theme="svetlo"] .health-detail-title-input { color: #111827; background: rgba(0,40,80,0.04); }
    html[data-theme="svetlo"] .health-detail-title-input::placeholder { color: #9ca3af; }
    html[data-theme="svetlo"] .health-detail-conv-msg { color: #374151; }
    html[data-theme="svetlo"] .health-detail-nav-label { color: #374151; }
    html[data-theme="svetlo"] .health-detail-copy-btn { color: #374151; }
    html[data-theme="svetlo"] .health-detail-modal-header { color: #111827; }
    html[data-theme="svetlo"] .health-detail-modal-title { color: #111827; }
    html[data-theme="svetlo"] .health-detail-modal-sub { color: #6b7280; }
    html[data-theme="svetlo"] .health-detail-modal-label { color: #374151; }

    /* ── Health photos ── */
    html[data-theme="svetlo"] .health-photo-input-label { color: #374151; background: rgba(0,40,80,0.04); }
    html[data-theme="svetlo"] .health-photo-btn { color: #111827; }
    html[data-theme="svetlo"] .health-photo-note { color: #374151; }
    html[data-theme="svetlo"] .health-photo-edit-row label { color: #6b7280; }
    html[data-theme="svetlo"] .health-photo-month-label { color: #6b7280; }

    /* ── Health tabs & filters ── */
    html[data-theme="svetlo"] .health-tab { color: #6b7280; }
    html[data-theme="svetlo"] .health-tab.active { color: #0e7490; }
    html[data-theme="svetlo"] .health-tab-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-tab-nav-btn { color: #6b7280; }
    html[data-theme="svetlo"] .health-tab-nav-hint { color: #9ca3af; }
    html[data-theme="svetlo"] .health-subtab-content-header { color: #111827; }
    html[data-theme="svetlo"] .health-subtab-sub { color: #6b7280; }
    html[data-theme="svetlo"] .health-month-sep-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-record-note { color: #6b7280; }
    html[data-theme="svetlo"] .health-error-label { color: #9ca3af; }

    /* ── Health history detail ── */
    html[data-theme="svetlo"] .health-history-filter-btn { color: #6b7280; }
    html[data-theme="svetlo"] .health-history-filter-title { color: #6b7280; }
    html[data-theme="svetlo"] .health-history-detail-title { color: #111827; }
    html[data-theme="svetlo"] .health-history-detail-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-history-modal-close { color: #6b7280; }
    html[data-theme="svetlo"] .health-history-select-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-history-select:hover { color: #0e7490; }
    html[data-theme="svetlo"] .health-history-status-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-history-status:hover { color: #0e7490; }

    /* ── Health filter / search ── */
    html[data-theme="svetlo"] .health-filter-title { color: #111827; }
    html[data-theme="svetlo"] .health-filter-close { color: #6b7280; }
    html[data-theme="svetlo"] .health-filter-label { color: #6b7280; }
    html[data-theme="svetlo"] .health-filter-input { color: #111827; background: rgba(0,40,80,0.04); }
    html[data-theme="svetlo"] .health-filter-input::placeholder { color: #9ca3af; }
    html[data-theme="svetlo"] .health-filter-dash { color: #9ca3af; }
    html[data-theme="svetlo"] .health-filter-date-picker { color: #374151; }
    html[data-theme="svetlo"] .health-search-input { color: #111827; background: rgba(0,40,80,0.04); }
    html[data-theme="svetlo"] .health-search-input::placeholder { color: #9ca3af; }
    html[data-theme="svetlo"] .health-search-close { color: #6b7280; }
    html[data-theme="svetlo"] .health-search-hint { color: #9ca3af; }

    /* ── Calendar modal ── */
    html[data-theme="svetlo"] .calendar-modal-icon { color: #6b7280; }
    html[data-theme="svetlo"] .calendar-modal-close { color: #6b7280; }
    html[data-theme="svetlo"] .calendar-nav-btn { color: #374151; }
    html[data-theme="svetlo"] .calendar-weekday { color: #9ca3af; }
    html[data-theme="svetlo"] .calendar-day { color: #374151; }
    html[data-theme="svetlo"] .calendar-day.other-month { color: #d1d5db; }
    html[data-theme="svetlo"] .calendar-day:hover { background: rgba(14,116,144,0.06); }
    html[data-theme="svetlo"] .calendar-event-item.type-general { border-left-color: rgba(0,60,100,0.15); }
    html[data-theme="svetlo"] .calendar-event-item-time { color: #6b7280; }
    html[data-theme="svetlo"] .calendar-event-action-btn { color: #6b7280; }
    html[data-theme="svetlo"] .calendar-add-input { color: #111827; }
    html[data-theme="svetlo"] .calendar-add-input::placeholder { color: #9ca3af; }
    html[data-theme="svetlo"] .calendar-add-sub { color: #9ca3af; }

    /* ── Reminder modal ── */
    html[data-theme="svetlo"] .reminder-modal-close { color: #6b7280; }
    html[data-theme="svetlo"] .reminder-modal-sub { color: #6b7280; }
    html[data-theme="svetlo"] .reminder-modal-icon { color: #9ca3af; }
    html[data-theme="svetlo"] .reminder-modal-action-btn { color: #6b7280; }

    /* ── QR modal ── */
    html[data-theme="svetlo"] .qr-modal-sub { color: #6b7280; }

    /* ── Scan mode ── */
    html[data-theme="svetlo"] .scan-mode-card-title { color: #111827; }
    html[data-theme="svetlo"] .scan-mode-card-sub { color: #6b7280; }
    html[data-theme="svetlo"] .scan-mode-card-arrow { color: #9ca3af; }
    html[data-theme="svetlo"] .scan-modal-preview-form-label { color: #374151; }
    html[data-theme="svetlo"] .scan-modal-preview-form { background: rgba(0,40,80,0.04); }
    html[data-theme="svetlo"] .scan-modal-error { color: #9ca3af; }

    /* ── Chat scan attachment ── */
    html[data-theme="svetlo"] .chat-scan-attachment { background: rgba(14,116,144,0.06); border-color: rgba(14,116,144,0.15); }
    html[data-theme="svetlo"] .chat-scan-attachment-label { color: #374151; }
    html[data-theme="svetlo"] .chat-scan-attachment-sub { color: #6b7280; }
    html[data-theme="svetlo"] .chat-scan-attachment-remove { color: #6b7280; }

    /* ── Message copy button ── */
    html[data-theme="svetlo"] .msg-copy-btn { color: #9ca3af; }
    html[data-theme="svetlo"] .msg-copy-btn:hover { color: #0e7490; }

    /* ── Message vet cards ── */
    html[data-theme="svetlo"] .msg-vet-title { color: #111827; }
    html[data-theme="svetlo"] .msg-vet-desc { color: #6b7280; }
    html[data-theme="svetlo"] .msg-vet-note { color: #9ca3af; }

    /* ── Upgrade modal ── */
    html[data-theme="svetlo"] .upgrade-header-title { color: #111827; }
    html[data-theme="svetlo"] .upgrade-tier-title { color: #374151; }
    html[data-theme="svetlo"] .upgrade-tier-label { color: #6b7280; }
    html[data-theme="svetlo"] .upgrade-tier-sub { color: #6b7280; }
    html[data-theme="svetlo"] .upgrade-tier-desc { color: #6b7280; }
    html[data-theme="svetlo"] .upgrade-tier-price-sub { color: #6b7280; }
    html[data-theme="svetlo"] .upgrade-tier-features .feat-no { color: #d1d5db; }
    html[data-theme="svetlo"] .upgrade-feature-label { color: #374151; }
    html[data-theme="svetlo"] .upgrade-feature-sub { color: #9ca3af; }
    html[data-theme="svetlo"] .upgrade-btn-label { color: #374151; }
    html[data-theme="svetlo"] .upgrade-done-btn-label { color: #374151; }

    /* ── Admin / form ── */
    html[data-theme="svetlo"] .admin-form-label { color: #374151; }
    html[data-theme="svetlo"] .admin-form-title { color: #374151; }
    html[data-theme="svetlo"] .admin-form-sub { color: #6b7280; }
    html[data-theme="svetlo"] .admin-form-note { color: #9ca3af; }
    html[data-theme="svetlo"] .admin-table-header { color: #374151; }
    html[data-theme="svetlo"] .admin-table-cell { color: #6b7280; }
    html[data-theme="svetlo"] .admin-table-footer { color: #6b7280; }
    html[data-theme="svetlo"] .admin-icon { color: #374151; }
    html[data-theme="svetlo"] .admin-btn-icon { color: #6b7280; }

    /* ── Icon/settings labels ── */
    html[data-theme="svetlo"] .icon-settings { color: #374151; }
    html[data-theme="svetlo"] .icon-settings-secondary { color: #6b7280; }
    html[data-theme="svetlo"] .icon-label { color: #374151; }
    html[data-theme="svetlo"] .icon-label-secondary { color: #6b7280; }
    html[data-theme="svetlo"] .modal-btn-text { color: #374151; }

    /* ── App version ── */
    html[data-theme="svetlo"] .app-version { color: #9ca3af; }

    /* ── FastCatch chip text ── */
    html[data-theme="svetlo"] .fc-pet-chip-text { color: #374151; }
    html[data-theme="svetlo"] .fc-pet-chip-sub { color: #6b7280; }
    html[data-theme="svetlo"] .fc-pending-name { color: #374151; }
    html[data-theme="svetlo"] .fc-action-card .fc-action-label { color: #374151; }
    html[data-theme="svetlo"] .fc-recog-card .fc-recog-name { color: #111827; }

    /* ── Transfer status ── */
    html[data-theme="svetlo"] .transfer-status-label { color: #374151; }

    /* ── Neon lines & glow — boosted visibility (+15%) ── */
    html[data-theme="svetlo"] .tc-timeline-line { border-left-color: rgba(14,116,144,0.3); }
    html[data-theme="svetlo"] .health-timeline { border-left-color: rgba(14,116,144,0.3); }

    /* ═══ SVETLÁ — Global overrides for inline light-colored text & icons ═══ */
    /* These use !important to override inline styles that would be invisible on light backgrounds */

    /* Section headers with neon lines (inline styled) */
    html[data-theme="svetlo"] .menu-tab-panel-content div[style*="rgba(0,212,170,0.7)"] { color: #0e7490 !important; }
    html[data-theme="svetlo"] .menu-tab-panel-content span[style*="rgba(0,212,170,0.7)"] { color: #0e7490 !important; }

    /* Neon divider lines — boost opacity on light bg */
    html[data-theme="svetlo"] .menu-tab-panel-content div[style*="linear-gradient"][style*="0,212,170"] {
      background: linear-gradient(90deg, transparent 5%, rgba(14,116,144,0.35) 30%, rgba(14,116,144,0.55) 95%) !important;
      box-shadow: 0 0 6px rgba(14,116,144,0.2), 0 0 2px rgba(14,116,144,0.15) !important;
    }
    /* Vertical neon dividers */
    html[data-theme="svetlo"] .menu-tab-panel-content div[style*="180deg"][style*="0,212,170"] {
      background: linear-gradient(180deg, transparent 5%, rgba(14,116,144,0.35) 30%, rgba(14,116,144,0.55) 50%, rgba(14,116,144,0.35) 70%, transparent 95%) !important;
      box-shadow: 0 0 6px rgba(14,116,144,0.2), 0 0 2px rgba(14,116,144,0.15) !important;
    }

    /* Pet names under cards (inline color) */
    html[data-theme="svetlo"] .menu-h-icons span[style*="rgba(224,232,240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-h-icons span[style*="rgba(0,212,170"] { color: #0e7490 !important; }

    /* Inline light text in panels — broad catch (React renders with spaces: "rgba(224, 232, 240") */
    html[data-theme="svetlo"] .menu-tab-panel span[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-tab-panel div[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-tab-panel p[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-tab-panel span[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .menu-tab-panel div[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .menu-tab-panel span[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-tab-panel div[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-tab-panel span[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] .menu-tab-panel div[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] .menu-tab-panel label[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-tab-panel label[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .menu-tab-panel label[style*="136, 153, 179"] { color: #9ca3af !important; }

    /* Inline buttons/icons in panels */
    html[data-theme="svetlo"] .menu-tab-panel button[style*="224, 232, 240"] { color: #6b7280 !important; border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] .menu-tab-panel button[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .menu-tab-panel button[style*="255, 255, 255"] { color: #374151 !important; }

    /* Chat area inline overrides */
    html[data-theme="svetlo"] .chat-messages span[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .chat-messages span[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] .chat-messages div[style*="224, 232, 240"]:not([style*="background"]) { color: #6b7280 !important; }
    html[data-theme="svetlo"] .chat-messages div[style*="232, 244, 248"]:not([style*="background"]) { color: #374151 !important; }

    /* Inline text in overlays / modals */
    html[data-theme="svetlo"] .menu-overlay span[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-overlay div[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-overlay span[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .menu-overlay div[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] .menu-overlay span[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] .menu-overlay label[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] .menu-overlay span[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-overlay div[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-overlay input[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-overlay select[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-overlay button[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] .menu-overlay button[style*="232, 244, 248"] { color: #374151 !important; }

    /* Arrow icon in "klikni na zviera hore" prompt */
    html[data-theme="svetlo"] .menu-tab-panel svg[stroke*="0, 212, 170"] { stroke: rgba(14,116,144,0.5) !important; }

    /* Neon section headers — inline styled */
    html[data-theme="svetlo"] .menu-tab-panel span[style*="0, 212, 170"] { color: #0e7490 !important; }
    html[data-theme="svetlo"] .menu-tab-panel div[style*="0, 212, 170"][style*="height: 1.5px"],
    html[data-theme="svetlo"] .menu-tab-panel div[style*="0, 212, 170"][style*="height:1.5px"] {
      opacity: 0.8;
    }

    /* Inline light borders */
    html[data-theme="svetlo"] .menu-tab-panel div[style*="border"][style*="224, 232, 240"] { border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] .menu-tab-panel div[style*="border"][style*="255, 255, 255"] { border-color: rgba(0,60,100,0.1) !important; }

    /* Modals — calendar, reminder, etc. with inline dark backgrounds */
    html[data-theme="svetlo"] div[style*="8, 18, 32"] { background: rgba(240,243,250,0.97) !important; }
    html[data-theme="svetlo"] div[style*="10, 22, 40"] { background: rgba(240,243,250,0.97) !important; }
    html[data-theme="svetlo"] div[style*="12, 24, 42"] { background: rgba(240,243,250,0.97) !important; }
    html[data-theme="svetlo"] div[style*="15, 28, 48"] { background: rgba(240,243,250,0.97) !important; }

    /* ═══════════════════════════════════════════════════════════════════════
       SVETLÁ TÉMA — GLOBÁLNE INLINE OVERRIDES PRE CELÚ APLIKÁCIU
       Prepísanie VŠETKÝCH bielych/svetlých inline farieb na tmavé
       Tieto pravidlá pokrývajú: Kalendár, Dennú starostlivosť, Nastavenia,
       Health, VETID, Onboarding, Chat, Modály a všetko ostatné
       ═══════════════════════════════════════════════════════════════════════ */

    /* ── rgba(255,255,255,...) — biely text/ikony → tmavý ── */
    html[data-theme="svetlo"] span[style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] div[style*="color"][style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] p[style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] label[style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] button[style*="color"][style*="255, 255, 255"]:not([style*="background"]) { color: #374151 !important; }
    html[data-theme="svetlo"] td[style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] th[style*="255, 255, 255"] { color: #374151 !important; }
    html[data-theme="svetlo"] h1[style*="255, 255, 255"], html[data-theme="svetlo"] h2[style*="255, 255, 255"],
    html[data-theme="svetlo"] h3[style*="255, 255, 255"], html[data-theme="svetlo"] h4[style*="255, 255, 255"] { color: #111827 !important; }

    /* ── rgba(224,232,240,...) — svetlo-šedý text → tmavý ── */
    html[data-theme="svetlo"] span[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] div[style*="color"][style*="224, 232, 240"]:not([style*="background-color"]):not([style*="background:"]):not([style*="border"]) { color: #6b7280 !important; }
    html[data-theme="svetlo"] p[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] label[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] button[style*="color"][style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] td[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] input[style*="224, 232, 240"] { color: #111827 !important; }
    html[data-theme="svetlo"] select[style*="224, 232, 240"] { color: #111827 !important; }
    html[data-theme="svetlo"] textarea[style*="224, 232, 240"] { color: #111827 !important; }

    /* ── rgba(232,244,248,...) / #e8f4f8 — svetlo-modrý text → tmavý ── */
    html[data-theme="svetlo"] span[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] div[style*="color"][style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] p[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] label[style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] button[style*="color"][style*="232, 244, 248"] { color: #374151 !important; }
    html[data-theme="svetlo"] input[style*="232, 244, 248"] { color: #111827 !important; }
    html[data-theme="svetlo"] input[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] select[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] span[style*="e8f4f8"] { color: #111827 !important; }
    html[data-theme="svetlo"] div[style*="color"][style*="e8f4f8"] { color: #111827 !important; }

    /* ── rgba(136,153,179,...) — tlmený šedý text → lepší kontrast ── */
    html[data-theme="svetlo"] span[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] div[style*="color"][style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] p[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] label[style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] button[style*="color"][style*="136, 153, 179"] { color: #9ca3af !important; }
    html[data-theme="svetlo"] input[style*="136, 153, 179"]::placeholder { color: #9ca3af !important; }

    /* ── Neonové/accent inline farby — tmavší teal pre svetlú tému ── */
    html[data-theme="svetlo"] span[style*="0, 212, 170"] { color: #0e7490 !important; }
    html[data-theme="svetlo"] div[style*="color"][style*="0, 212, 170"]:not([style*="background"]):not([style*="height: 1"]):not([style*="height:1"]) { color: #0e7490 !important; }

    /* ── Inline border overrides — svetlé bordery → tmavšie ── */
    html[data-theme="svetlo"] div[style*="border"][style*="224, 232, 240"]:not([style*="color:"]) { border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] div[style*="border"][style*="255, 255, 255"]:not([style*="color:"]) { border-color: rgba(0,60,100,0.1) !important; }
    html[data-theme="svetlo"] button[style*="border"][style*="224, 232, 240"] { border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] button[style*="border"][style*="255, 255, 255"] { border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] input[style*="border"][style*="224, 232, 240"] { border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] input[style*="border"][style*="255, 255, 255"] { border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] select[style*="border"][style*="224, 232, 240"] { border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] textarea[style*="border"][style*="224, 232, 240"] { border-color: rgba(0,60,100,0.15) !important; }

    /* ── Inline tmavé pozadia v modáloch → svetlé ── */
    html[data-theme="svetlo"] div[style*="background"][style*="8, 18, 32"] { background: rgba(240,243,250,0.97) !important; border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] div[style*="background"][style*="10, 22, 40"] { background: rgba(240,243,250,0.97) !important; border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] div[style*="background"][style*="12, 24, 42"] { background: rgba(240,243,250,0.97) !important; border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] div[style*="background"][style*="15, 28, 48"] { background: rgba(240,243,250,0.97) !important; border-color: rgba(0,60,100,0.12) !important; }
    html[data-theme="svetlo"] div[style*="background"][style*="15, 32, 53"] { background: rgba(240,243,250,0.85) !important; border-color: rgba(0,60,100,0.1) !important; }
    html[data-theme="svetlo"] div[style*="background"][style*="20, 35, 58"] { background: rgba(240,243,250,0.85) !important; }

    /* ── Inline SVG stroke overrides ── */
    html[data-theme="svetlo"] svg[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] svg[stroke*="224, 232, 240"] { stroke: #6b7280 !important; }
    html[data-theme="svetlo"] svg[stroke*="232, 244, 248"] { stroke: #374151 !important; }
    html[data-theme="svetlo"] svg[stroke*="255, 255, 255"] { stroke: #374151 !important; }
    html[data-theme="svetlo"] svg[stroke*="136, 153, 179"] { stroke: #9ca3af !important; }

    /* ── Inline input/select s tmavým pozadím → svetlé ── */
    html[data-theme="svetlo"] input[style*="background"][style*="15, 32, 53"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] input[style*="background"][style*="255, 255, 255, 0.0"] { background: rgba(0,40,80,0.04) !important; }
    html[data-theme="svetlo"] select[style*="background"][style*="15, 32, 53"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] textarea[style*="background"][style*="15, 32, 53"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] select[style*="background"][style*="255, 255, 255, 0.0"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; }

    /* ── Placeholdery ── */
    html[data-theme="svetlo"] input[style*="224, 232, 240"]::placeholder { color: #9ca3af !important; }
    html[data-theme="svetlo"] input[style*="136, 153, 179"]::placeholder { color: #9ca3af !important; }
    html[data-theme="svetlo"] textarea[style*="224, 232, 240"]::placeholder { color: #9ca3af !important; }

    /* ── Špeciálne: color:'white' a color:'#fff' ── */
    html[data-theme="svetlo"] span[style*="color: white"] { color: #374151 !important; }
    html[data-theme="svetlo"] div[style*="color: white"] { color: #374151 !important; }
    html[data-theme="svetlo"] button[style*="color: white"] { color: #374151 !important; }
    html[data-theme="svetlo"] span[style*="color: rgb(255, 255, 255)"] { color: #374151 !important; }
    html[data-theme="svetlo"] div[style*="color: rgb(255, 255, 255)"] { color: #374151 !important; }

    /* ── Scrollbar tracks v tmavom ── */
    html[data-theme="svetlo"] div[style*="scrollbar"] { scrollbar-color: rgba(14,116,144,0.2) transparent; }

    /* Floating widget panel */
    .orbio-widget {
      position: fixed;
      z-index: 8500;
      min-width: 280px;
      min-height: 200px;
      border-radius: 16px;
      border: 1px solid rgba(0,212,170,0.1);
      background: rgba(10,22,40,0.94);
      backdrop-filter: blur(20px);
      box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,170,0.04);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      animation: widgetPopIn 0.25s ease;
      transition: box-shadow 0.2s;
    }
    .orbio-widget:hover {
      box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 24px rgba(0,212,170,0.08);
    }
    @keyframes widgetPopIn {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .orbio-widget.widget-closing {
      animation: widgetPopOut 0.2s ease forwards;
    }
    @keyframes widgetPopOut {
      from { transform: scale(1); opacity: 1; }
      to { transform: scale(0.9); opacity: 0; }
    }
    .widget-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      cursor: grab;
      user-select: none;
      border-bottom: 1px solid rgba(136,153,179,0.06);
      background: rgba(0,212,170,0.03);
      flex-shrink: 0;
    }
    .widget-header:active { cursor: grabbing; }
    .widget-header-icon {
      width: 22px; height: 22px;
      border-radius: 6px;
      background: rgba(0,212,170,0.08);
      display: flex; align-items: center; justify-content: center;
      color: rgba(0,212,170,0.7);
    }
    .widget-header-icon svg { width: 13px; height: 13px; }
    .widget-header-title {
      flex: 1;
      font-size: 12px;
      font-weight: 600;
      color: rgba(224,232,240,0.7);
      letter-spacing: 0.3px;
    }
    .widget-header-close {
      width: 22px; height: 22px;
      border: none; background: none;
      color: rgba(136,153,179,0.3);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 6px;
      transition: all 0.2s;
    }
    .widget-header-close:hover {
      background: rgba(255,107,107,0.1);
      color: rgba(255,107,107,0.7);
    }
    .widget-body {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 12px;
    }
    .widget-body::-webkit-scrollbar { width: 4px; }
    .widget-body::-webkit-scrollbar-track { background: transparent; }
    .widget-body::-webkit-scrollbar-thumb { background: rgba(136,153,179,0.1); border-radius: 2px; }
    .widget-resize-handle {
      position: absolute;
      bottom: 0; right: 0;
      width: 18px; height: 18px;
      cursor: nwse-resize;
      z-index: 10;
    }
    .widget-resize-handle::after {
      content: '';
      position: absolute;
      bottom: 4px; right: 4px;
      width: 8px; height: 8px;
      border-right: 2px solid rgba(136,153,179,0.15);
      border-bottom: 2px solid rgba(136,153,179,0.15);
      border-radius: 0 0 3px 0;
    }
    /* ═══ CHAT AS WIDGET — floating chat window ═══ */
    .chat-widget-float {
      position: fixed;
      z-index: 9000;
      min-width: 320px;
      min-height: 300px;
      border-radius: 18px;
      border: 1px solid rgba(0,212,170,0.15);
      background: rgba(10,22,40,0.97);
      backdrop-filter: blur(24px);
      box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 30px rgba(0,212,170,0.06);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      animation: widgetPopIn 0.3s ease;
    }
    .chat-widget-float:hover {
      box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 36px rgba(0,212,170,0.1);
    }
    .chat-widget-float .chat-header {
      border-bottom: 1px solid rgba(0,212,170,0.08);
      flex-shrink: 0;
    }
    .chat-widget-float .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding-top: 8px !important;
    }
    .chat-widget-float .chat-input-area {
      flex-shrink: 0;
    }
    .chat-widget-drag-handle {
      position: absolute;
      top: 0; left: 0; right: 40px;
      height: 38px;
      cursor: grab;
      z-index: 10;
    }
    .chat-widget-drag-handle:active { cursor: grabbing; }
    .chat-widget-resize {
      position: absolute;
      bottom: 0; right: 0;
      width: 20px; height: 20px;
      cursor: nwse-resize;
      z-index: 10;
    }
    .chat-widget-resize::after {
      content: '';
      position: absolute;
      bottom: 5px; right: 5px;
      width: 10px; height: 10px;
      border-right: 2px solid rgba(0,212,170,0.2);
      border-bottom: 2px solid rgba(0,212,170,0.2);
      border-radius: 0 0 4px 0;
    }
    .chat-widget-close-btn {
      position: absolute;
      top: 8px; right: 8px;
      width: 24px; height: 24px;
      border: none;
      background: rgba(255,255,255,0.04);
      color: rgba(136,153,179,0.4);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 8px;
      transition: all 0.2s;
      z-index: 15;
    }
    .chat-widget-close-btn:hover {
      background: rgba(255,107,107,0.1);
      color: rgba(255,107,107,0.7);
    }
    .chat-widget-toggle-btn {
      width: 40px; height: 40px;
      border: none;
      background: none;
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 10px;
      transition: all 0.2s;
      padding: 0;
      flex-shrink: 0;
      touch-action: manipulation;
    }
    .chat-widget-toggle-btn svg {
      width: 20px; height: 20px;
    }
    .chat-widget-toggle-btn:hover {
      background: rgba(0,212,170,0.08);
      color: #00d4aa;
    }
    .chat-widget-toggle-btn.active {
      color: #00d4aa;
      background: rgba(0,212,170,0.1);
      box-shadow: 0 0 10px rgba(0,212,170,0.15);
    }
    /* Widget tab panel inner — tab content rendered inside floating widget via portal */
    .widget-tab-panel-inner {
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
    }
    .widget-tab-panel-inner .menu-tab-panel-content {
      flex: 1;
      overflow: auto;
      overflow-x: hidden;
    }
    .widget-tab-panel-inner .menu-tab-panel-content::-webkit-scrollbar { width: 4px; }
    .widget-tab-panel-inner .menu-tab-panel-content::-webkit-scrollbar-track { background: transparent; }
    .widget-tab-panel-inner .menu-tab-panel-content::-webkit-scrollbar-thumb { background: rgba(136,153,179,0.1); border-radius: 2px; }
    /* Override container styles when in floating chat widget mode */
    .container.chat-widget-float {
      max-width: none;
      width: auto !important;
      height: auto !important;
      margin: 0;
      border-radius: 18px;
      zoom: 1 !important;
      z-index: 9500;
    }
    .widget-mode-active.chat-widget-float {
      padding-top: 0 !important;
      position: fixed;
    }
    /* Floating widget: show ORBIO logo + title back in header (topbar is behind) */
    .widget-mode-active.chat-widget-float .orbio-heart-logo,
    .widget-mode-active.chat-widget-float .orbio-title-blur {
      display: flex !important;
    }
    .widget-mode-active.chat-widget-float .orbio-heart-logo {
      transform: scale(0.75);
      transform-origin: left center;
    }
    .widget-mode-active.chat-widget-float .chat-header-row {
      padding: 6px 8px;
      gap: 4px;
    }
    .widget-mode-active.chat-widget-float .chat-header-title {
      font-size: 13px !important;
      letter-spacing: 1.5px !important;
    }
    /* In floating widget, hide notification icons — they stay in topbar */
    .widget-mode-active.chat-widget-float .notif-action-bar {
      display: none;
    }
    /* Compact header for floating widget — restore visibility (overrides widget-mode hide) */
    .widget-mode-active.chat-widget-float .chat-header {
      display: flex !important;
      min-height: auto;
      padding: 0;
    }
    .widget-mode-active.chat-widget-float .header-quick-actions {
      margin-left: auto;
    }
    /* When chat is in widget mode, show background placeholder */
    .chat-widget-bg-placeholder {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      color: rgba(0,212,170,0.3);
      background: var(--bg, #0a1628);
      z-index: 1;
    }
    /* Mini widget styles */
    .mini-widget-stat {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(136,153,179,0.03);
      border: 1px solid rgba(136,153,179,0.05);
      margin-bottom: 8px;
    }
    .mini-widget-stat-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .mini-widget-stat-value {
      font-size: 18px; font-weight: 700;
      color: rgba(224,232,240,0.85);
      line-height: 1;
    }
    .mini-widget-stat-label {
      font-size: 10px;
      color: rgba(136,153,179,0.5);
      margin-top: 2px;
    }
    .mini-widget-cal-day {
      display: flex; align-items: center; gap: 8px;
      padding: 6px 8px;
      border-radius: 8px;
      border-left: 3px solid rgba(0,212,170,0.3);
      background: rgba(136,153,179,0.03);
      margin-bottom: 6px;
      font-size: 11px;
      color: rgba(224,232,240,0.6);
    }
    .mini-widget-cal-day-date {
      font-size: 10px;
      color: rgba(136,153,179,0.4);
      min-width: 55px;
    }
    .mini-widget-notif-item {
      display: flex; align-items: flex-start; gap: 8px;
      padding: 8px 10px;
      border-radius: 8px;
      background: rgba(255,159,67,0.04);
      border: 1px solid rgba(255,159,67,0.08);
      margin-bottom: 6px;
    }
    .mini-widget-notif-icon {
      width: 24px; height: 24px;
      border-radius: 6px;
      background: rgba(255,159,67,0.1);
      color: rgba(255,159,67,0.7);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .mini-widget-notif-icon svg { width: 12px; height: 12px; }
    .mini-widget-notif-text {
      font-size: 11px;
      color: rgba(224,232,240,0.6);
      line-height: 1.4;
    }
    .mini-widget-notif-time {
      font-size: 9px;
      color: rgba(136,153,179,0.35);
      margin-top: 2px;
    }
    /* Widget mode background */
    .widget-mode-bg {
      position: fixed;
      inset: 0;
      z-index: -1;
      background: radial-gradient(ellipse at 70% 50%, rgba(0,212,170,0.03) 0%, transparent 60%),
                  radial-gradient(ellipse at 30% 30%, rgba(96,165,250,0.02) 0%, transparent 50%),
                  #0a1628;
    }

    /* ═══ SETTINGS CHANGE BANNER ═══ */
    .settings-change-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      margin: 0 16px 8px;
      border-radius: 14px;
      background: rgba(100, 140, 255, 0.08);
      border: 1px solid rgba(100, 140, 255, 0.18);
      animation: unknown-pet-fade-in 0.4s ease;
    }
    .settings-change-text {
      flex: 1;
      font-size: 13px;
      color: rgba(255,255,255,0.8);
      line-height: 1.4;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .settings-change-text svg { color: rgba(100, 140, 255, 0.7); }
    .settings-change-btns {
      display: flex;
      gap: 6px;
    }
    .settings-change-confirm, .settings-change-dismiss {
      padding: 6px 14px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .settings-change-confirm {
      background: rgba(100, 140, 255, 0.15);
      color: #648cff;
    }
    .settings-change-confirm:hover { background: rgba(100, 140, 255, 0.25); }
    .settings-change-dismiss {
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.5);
    }
    .settings-change-dismiss:hover { background: rgba(255,255,255,0.1); }

    /* ═══ DATA CHANGE BANNER (pet/health potvrdenie) ═══ */
    .data-change-banner {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 10px 16px;
      margin: 0 16px 8px;
      border-radius: 14px;
      background: rgba(0, 212, 170, 0.06);
      border: 1px solid rgba(0, 212, 170, 0.15);
      animation: unknown-pet-fade-in 0.4s ease;
    }
    .data-change-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 600;
      color: rgba(0, 212, 170, 0.85);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .data-change-items {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .data-change-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: rgba(255,255,255,0.8);
      line-height: 1.4;
      padding: 4px 0;
    }
    .data-change-item-icon {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-shrink: 0;
      background: rgba(0, 212, 170, 0.1);
    }
    .data-change-btns {
      display: flex;
      gap: 6px;
      margin-top: 4px;
    }
    .data-change-confirm {
      padding: 6px 14px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
      background: rgba(0, 212, 170, 0.15);
      color: #00d4aa;
    }
    .data-change-confirm:hover { background: rgba(0, 212, 170, 0.25); }
    .data-change-dismiss {
      padding: 6px 14px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.5);
    }
    .data-change-dismiss:hover { background: rgba(255,255,255,0.1); }

    /* ═══ TRIAL BANNER ═══ */
    .trial-banner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 6px 16px;
      background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,153,204,0.12));
      border-bottom: 1px solid rgba(0,212,170,0.15);
      font-size: 12px;
      color: rgba(232,244,248,0.8);
      cursor: pointer;
      transition: background 0.2s;
      z-index: 99;
    }
    .trial-banner:hover {
      background: linear-gradient(135deg, rgba(0,212,170,0.18), rgba(0,153,204,0.18));
    }
    .trial-banner .trial-icon {
      font-size: 14px;
    }
    .trial-banner .trial-days {
      font-weight: 600;
      color: #00d4aa;
    }
    .trial-banner .trial-upgrade-btn {
      margin-left: 8px;
      padding: 3px 10px;
      border-radius: 8px;
      border: 1px solid rgba(0,212,170,0.3);
      background: rgba(0,212,170,0.1);
      color: #00d4aa;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .trial-banner .trial-upgrade-btn:hover {
      background: rgba(0,212,170,0.2);
      border-color: rgba(0,212,170,0.5);
    }

    /* Expired / ad banner */
    .expired-banner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 16px;
      background: linear-gradient(135deg, rgba(255,119,119,0.1), rgba(255,170,68,0.1));
      border-bottom: 1px solid rgba(255,119,119,0.15);
      font-size: 12px;
      color: rgba(255,200,150,0.9);
      cursor: pointer;
    }
    .expired-banner .expired-upgrade-btn {
      margin-left: 8px;
      padding: 4px 12px;
      border-radius: 8px;
      border: none;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      color: var(--bg);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
    }

    /* Tier badge v headeri */
    .tier-badge {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 600;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .tier-badge.tier-pet { background: rgba(136,179,160,0.15); color: #88b3a0; }
    .tier-badge.tier-pet-plus { background: rgba(0,212,170,0.12); color: #00d4aa; }
    .tier-badge.tier-vet { background: rgba(0,153,204,0.12); color: #66ccee; }
    .tier-badge.tier-vet-plus { background: rgba(162,89,255,0.12); color: #a259ff; }
    .tier-badge.tier-profi { background: rgba(255,170,68,0.12); color: #ffaa44; }

    /* ═══ UPGRADE MODAL ═══ */
    .upgrade-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(5,12,25,0.85);
      backdrop-filter: blur(12px);
      z-index: 5000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fade-in 0.3s ease;
    }
    .upgrade-modal {
      width: 100%;
      max-width: 400px;
      max-height: 80vh;
      overflow-y: auto;
      border-radius: 20px;
      background: rgba(15,32,53,0.95);
      border: 1px solid rgba(0,212,170,0.15);
      padding: 28px 24px;
      animation: float-in 0.3s ease;
    }
    .upgrade-modal h2 {
      font-size: 20px;
      font-weight: 400;
      text-align: center;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 6px;
    }
    .upgrade-modal .upgrade-sub {
      text-align: center;
      font-size: 12px;
      color: rgba(136,153,179,0.5);
      margin-bottom: 24px;
    }
    .upgrade-tier-card {
      padding: 16px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.06);
      background: rgba(15,32,53,0.5);
      margin-bottom: 10px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .upgrade-tier-card:hover {
      border-color: rgba(0,212,170,0.3);
      background: rgba(0,212,170,0.04);
    }
    .upgrade-tier-card.current {
      border-color: rgba(0,212,170,0.3);
      background: rgba(0,212,170,0.06);
    }
    .upgrade-tier-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .upgrade-tier-name {
      font-size: 15px;
      font-weight: 500;
      color: #e8f4f8;
    }
    .upgrade-tier-price {
      font-size: 14px;
      font-weight: 600;
      color: #00d4aa;
    }
    .upgrade-tier-features {
      font-size: 11px;
      color: rgba(136,153,179,0.6);
      line-height: 1.6;
    }
    .upgrade-tier-features .feat-yes { color: #00d4aa; }
    .upgrade-tier-features .feat-no { color: rgba(136,153,179,0.3); text-decoration: line-through; }
    .upgrade-select-btn {
      width: 100%;
      padding: 10px;
      border-radius: 10px;
      border: 1px solid rgba(0,212,170,0.3);
      background: rgba(0,212,170,0.08);
      color: #00d4aa;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      margin-top: 10px;
      transition: all 0.2s;
    }
    .upgrade-select-btn:hover {
      background: rgba(0,212,170,0.15);
    }
    .upgrade-select-btn.primary {
      border: none;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      color: var(--bg);
      font-weight: 600;
    }
    .upgrade-close-btn {
      display: block;
      width: 100%;
      margin-top: 16px;
      padding: 10px;
      border: none;
      background: none;
      color: rgba(136,153,179,0.4);
      font-size: 13px;
      cursor: pointer;
    }

    /* Feature lock overlay for locked features */
    .feature-locked-hint {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: rgba(255,170,68,0.7);
      padding: 2px 8px;
      border-radius: 6px;
      background: rgba(255,170,68,0.08);
    }

    /* ═══ HEALTH RECORDS ═══ */
    .health-overlay {
      position: fixed; inset: 0;
      background: var(--bg);
      z-index: 200;
      display: flex; flex-direction: column;
      max-width: 600px; margin: 0 auto;
      animation: tc-fade-in 0.4s ease;
    }
    .health-bg-canvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 0;
      opacity: 0.4;
    }
    .health-header {
      position: relative; z-index: 1;
      display: flex; align-items: center; gap: 12px;
      padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
      border-bottom: 1px solid rgba(0, 212, 170, 0.06);
    }
    .health-back-btn {
      background: none; border: none;
      color: rgba(0, 212, 170, 0.6);
      cursor: pointer; padding: 8px;
      border-radius: 50%; transition: all 0.3s;
      touch-action: manipulation;
    }
    .health-back-btn:active { color: #00d4aa; background: rgba(0,212,170,0.08); }
    .health-back-btn svg { width: 20px; height: 20px; }
    .health-title {
      font-size: 13px; font-weight: 400;
      letter-spacing: 2px; text-transform: uppercase;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      flex: 1;
    }

    /* ═══ HEALTH — Icon tabs ═══ */
    .health-tabs {
      display: flex;
      gap: 6px;
      padding: 8px 16px 12px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      z-index: 2;
    }
    .health-tab {
      display: flex; flex-direction: column; align-items: center; gap: 5px;
      flex: 0 0 auto;
      min-width: 62px;
      padding: 10px 8px 8px;
      border: 1px solid rgba(0,212,170,0.06);
      border-radius: 14px;
      background: rgba(15,32,53,0.25);
      color: rgba(232,244,248,0.35);
      font-size: 9px; font-weight: 500;
      letter-spacing: 0.3px;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
      text-align: center;
    }
    .health-tab svg { width: 20px; height: 20px; opacity: 0.4; transition: opacity 0.3s; }
    .health-tab:hover { border-color: rgba(0,212,170,0.12); background: rgba(15,32,53,0.4); color: rgba(232,244,248,0.6); }
    .health-tab:hover svg { opacity: 0.7; }
    .health-tab.active {
      border-color: rgba(0,212,170,0.2);
      background: rgba(0,212,170,0.06);
      color: rgba(0,212,170,0.9);
    }
    .health-tab.active svg { opacity: 1; stroke: #00d4aa; }
    .health-tab .ht-count {
      font-size: 8px; opacity: 0.4;
      background: rgba(0,212,170,0.08); padding: 1px 5px; border-radius: 6px;
    }
    .health-tab.active .ht-count { opacity: 0.7; background: rgba(0,212,170,0.12); }

    /* ═══ HEALTH — Content ═══ */
    .health-content {
      position: relative; z-index: 1;
      flex: 1; overflow-y: auto; overflow-x: hidden;
      padding: 4px 16px 80px;
      -webkit-overflow-scrolling: touch;
    }

    /* ═══ HEALTH — Timeline ═══ */
    .health-timeline {
      position: relative;
      margin-left: 16px;
      padding-left: 20px;
      border-left: 1px solid rgba(0,212,170,0.06);
    }
    .health-month-sep {
      position: relative;
      font-size: 10px; font-weight: 600;
      letter-spacing: 1.5px; text-transform: uppercase;
      color: rgba(0,212,170,0.5);
      margin: 24px 0 8px -20px;
      padding: 6px 10px 6px 36px;
      background: rgba(0,212,170,0.03);
      border-radius: 8px;
    }

    /* ═══ HEALTH — Record card ═══ */
    .health-record-item {
      position: relative;
      padding: 14px 14px 12px;
      margin-bottom: 10px;
      border: none;
      border-radius: 14px;
      background: none;
      color: rgba(232,244,248,0.7);
      transition: all 0.2s;
    }
    .health-record-item:hover {
      background: rgba(255,255,255,0.03);
    }
    .health-record-dot {
      position: absolute;
      left: -27px; top: 18px;
      width: 8px; height: 8px;
      border-radius: 50%;
      border: 2px solid rgba(var(--accent-rgb),0.4);
      background: var(--bg);
    }
    .health-record-head {
      display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
    }
    .health-record-icon {
      width: 28px; height: 28px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .health-record-icon svg { width: 15px; height: 15px; }
    .health-record-icon.vacc { background: rgba(99,102,241,0.12); color: #818cf8; }
    .health-record-icon.deworm { background: rgba(34,197,94,0.12); color: #4ade80; }
    .health-record-icon.photo { background: rgba(245,158,11,0.12); color: #fbbf24; }
    .health-record-icon.timeline { background: rgba(0,212,170,0.1); color: #00d4aa; }
    .health-record-icon.other { background: rgba(148,163,184,0.1); color: #94a3b8; }
    .health-record-type {
      font-size: 13px; font-weight: 600;
      color: rgba(232,244,248,0.85);
    }
    .health-record-date {
      font-size: 10px; color: rgba(136,153,179,0.4);
      margin-left: auto; flex-shrink: 0;
    }
    .health-record-info {
      font-size: 11px;
      color: rgba(136,153,179,0.5);
      margin-top: 3px;
      line-height: 1.5;
    }
    .health-record-tags {
      display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px;
    }
    .health-record-tag {
      font-size: 9px; padding: 2px 6px; border-radius: 4px;
      background: rgba(0,212,170,0.06); color: rgba(0,212,170,0.5);
      letter-spacing: 0.3px;
    }
    .health-record-concern {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 9px; padding: 2px 7px; border-radius: 4px;
      font-weight: 600;
    }
    .health-record-concern.low { background: rgba(34,197,94,0.1); color: #4ade80; }
    .health-record-concern.med { background: rgba(245,158,11,0.1); color: #fbbf24; }
    .health-record-concern.high { background: rgba(239,68,68,0.1); color: #f87171; }
    .health-next-due {
      font-size: 10px; color: rgba(245,158,11,0.6);
      display: flex; align-items: center; gap: 4px; margin-top: 4px;
    }
    .health-next-due svg { width: 12px; height: 12px; }
    .health-no-records {
      text-align: center;
      padding: 48px 16px 32px;
      color: rgba(136,153,179,0.3);
      font-size: 13px;
    }
    .health-no-records svg { width: 40px; height: 40px; opacity: 0.15; margin-bottom: 12px; }
    .health-photo-grid { padding: 0; }
    .health-photo-month { margin-bottom: 16px; }
    .health-photo-month-label {
      font-size: 13px; font-weight: 600; color: rgba(0,212,170,0.7);
      padding: 8px 0 6px; text-transform: capitalize;
      border-bottom: 1px solid rgba(0,212,170,0.08); margin-bottom: 8px;
    }
    .health-photo-day { margin-bottom: 10px; }
    .health-photo-day-label {
      font-size: 10px; color: rgba(136,153,179,0.5); padding: 2px 0 4px;
    }
    .health-photo-day-tiles {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px;
    }
    .health-photo-tile {
      position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
      aspect-ratio: 1; border: 1px solid rgba(0,212,170,0.06);
      background: rgba(15,32,53,0.3); transition: all 0.2s;
    }
    .health-photo-tile:hover { border-color: rgba(0,212,170,0.2); transform: scale(1.03); }
    .health-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .health-photo-tile-name {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 2px 4px; font-size: 8px; color: #fff;
      background: linear-gradient(transparent, rgba(0,0,0,0.7));
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* Photo detail overlay */
    /* ── Photo Lightbox (gallery detail in record) ── */
    .photo-lightbox-overlay {
      position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;
      background: rgba(5,12,24,0.92);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      display: flex; align-items: center; justify-content: center;
      animation: photo-lightbox-in 0.2s ease-out;
    }
    @keyframes photo-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
    .photo-lightbox-img {
      max-width: 88%; max-height: 78%; object-fit: contain;
      border-radius: 10px; user-select: none; -webkit-user-drag: none;
      box-shadow: 0 8px 40px rgba(0,0,0,0.6);
      transition: max-height 0.15s ease, max-width 0.15s ease;
      animation: lb-photo-fade 0.25s ease-out;
    }
    @keyframes lb-photo-fade {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }
    .photo-lightbox-btn {
      position: absolute; width: 38px; height: 38px; border-radius: 50%;
      border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.85);
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      transition: background 0.15s, transform 0.15s;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .photo-lightbox-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.1); }
    .photo-lightbox-btn.lb-close { top: 10px; right: 10px; }
    .photo-lightbox-btn.lb-delete { top: 10px; right: 56px; color: rgba(255,100,100,0.9); }
    .photo-lightbox-btn.lb-delete:hover { background: rgba(255,60,60,0.25); }
    .photo-lightbox-btn.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
    .photo-lightbox-btn.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
    .photo-lightbox-btn.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
    .photo-lightbox-btn.lb-next:hover { transform: translateY(-50%) scale(1.1); }
    /* Animated arrows — nudge animation like sub-tab arrows */
    @keyframes lb-arrow-nudge-left {
      0%, 100% { transform: translateY(-50%) translateX(0); }
      50% { transform: translateY(-50%) translateX(-4px); }
    }
    @keyframes lb-arrow-nudge-right {
      0%, 100% { transform: translateY(-50%) translateX(0); }
      50% { transform: translateY(-50%) translateX(4px); }
    }
    .photo-lightbox-btn.lb-prev svg { animation: lb-arrow-nudge-left 2s ease-in-out infinite; }
    .photo-lightbox-btn.lb-next svg { animation: lb-arrow-nudge-right 2s ease-in-out infinite; }
    .photo-lightbox-btn.lb-prev:hover svg,
    .photo-lightbox-btn.lb-next:hover svg { animation: none; }
    .photo-lightbox-counter {
      position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
      font-size: 11px; color: rgba(255,255,255,0.5); background: rgba(0,0,0,0.35);
      padding: 3px 10px; border-radius: 10px; backdrop-filter: blur(6px);
    }
    @media (max-width: 600px) {
      .photo-lightbox-btn { width: 34px; height: 34px; }
      .photo-lightbox-btn.lb-close { top: 8px; right: 8px; }
      .photo-lightbox-btn.lb-delete { top: 8px; right: 50px; }
      .photo-lightbox-btn.lb-prev { left: 4px; }
      .photo-lightbox-btn.lb-next { right: 4px; }
    }

    .health-photo-detail {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 210;
      background: rgba(5,12,24,0.95); display: flex; flex-direction: column;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      animation: photo-detail-in 0.2s ease-out;
    }
    @keyframes photo-detail-in { from { opacity: 0; } to { opacity: 1; } }
    .health-photo-detail-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 16px; flex-shrink: 0;
    }
    .health-photo-detail-close {
      width: 36px; height: 36px; border-radius: 50%; border: none;
      background: rgba(255,255,255,0.08); color: rgba(224,232,240,0.8);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .health-photo-detail-close:hover { background: rgba(255,255,255,0.15); }
    .health-photo-detail-img {
      flex: 1; display: flex; align-items: center; justify-content: center;
      padding: 8px; overflow: hidden;
    }
    .health-photo-detail-img img {
      max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
    }
    .health-photo-detail-info {
      padding: 12px 16px; flex-shrink: 0;
    }
    .health-photo-detail-name {
      font-size: 15px; font-weight: 600; color: rgba(224,232,240,0.9); margin-bottom: 4px;
    }
    .health-photo-detail-meta {
      font-size: 11px; color: rgba(136,153,179,0.6); margin-bottom: 8px;
    }
    .health-photo-detail-notes {
      font-size: 12px; color: rgba(136,153,179,0.7); margin-bottom: 8px;
    }
    .health-photo-detail-actions {
      display: flex; gap: 6px; padding: 10px 16px 16px; flex-shrink: 0;
      justify-content: center; flex-wrap: wrap;
    }
    .health-photo-detail-btn {
      display: flex; align-items: center; gap: 6px; padding: 10px 14px;
      border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04); color: rgba(224,232,240,0.75);
      font-size: 12px; cursor: pointer; transition: all 0.15s; font-family: inherit;
    }
    .health-photo-detail-btn:hover { background: rgba(255,255,255,0.08); }
    .health-photo-detail-btn.danger { border-color: rgba(255,80,80,0.15); color: rgba(255,120,120,0.8); }
    .health-photo-detail-btn.danger:hover { background: rgba(255,80,80,0.1); }
    .health-photo-detail-btn.primary { border-color: rgba(0,212,170,0.2); color: rgba(0,212,170,0.8); }
    .health-photo-detail-btn.primary:hover { background: rgba(0,212,170,0.1); }
    /* Photo edit inline */
    .health-photo-edit-row {
      display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
    }
    .health-photo-edit-row label { font-size: 11px; color: rgba(136,153,179,0.5); min-width: 55px; }
    .health-photo-edit-row input {
      flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px; padding: 6px 8px; color: rgba(224,232,240,0.9);
      font-size: 12px; font-family: inherit; outline: none;
    }
    .health-photo-edit-row input:focus { border-color: rgba(0,212,170,0.3); }

    /* ═══ HEALTH — Add record form ═══ */
    .health-add-btn {
      width: 28px; height: 28px; border-radius: 50%;
      border: 1px solid rgba(0,212,170,0.15);
      background: rgba(0,212,170,0.06);
      color: rgba(0,212,170,0.7);
      font-size: 16px; font-weight: 300;
      cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .health-add-btn:hover { background: rgba(0,212,170,0.12); color: #00d4aa; border-color: rgba(0,212,170,0.3); }
    .health-add-form {
      padding: 14px;
      margin: 0 0 12px;
      border: 1px solid rgba(0,212,170,0.12);
      border-radius: 14px;
      background: rgba(0,30,60,0.5);
      animation: healthFormIn 0.25s ease;
    }
    @keyframes healthFormIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
    .health-add-form .haf-title {
      font-size: 11px; font-weight: 600;
      color: rgba(0,212,170,0.8);
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      word-break: break-word; overflow-wrap: break-word;
    }
    .health-add-form .haf-row {
      display: flex; gap: 8px; margin-bottom: 8px; align-items: center;
    }
    .health-add-form label {
      font-size: 10px; color: rgba(136,153,179,0.5);
      min-width: 50px; flex-shrink: 0;
    }
    .health-add-form input, .health-add-form select {
      flex: 1; padding: 7px 10px;
      border: 1px solid rgba(0,212,170,0.08);
      border-radius: 8px;
      background: rgba(15,32,53,0.5);
      color: rgba(232,244,248,0.85);
      font-size: 12px; font-family: inherit;
      outline: none; transition: border-color 0.2s;
    }
    .health-add-form input:focus, .health-add-form select:focus {
      border-color: rgba(0,212,170,0.3);
    }
    .health-add-form input[type="checkbox"] {
      flex: 0; width: 16px; height: 16px;
      accent-color: #00d4aa;
    }
    .health-add-form .haf-actions {
      display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end;
    }
    .health-add-form .haf-cancel {
      padding: 6px 14px; border-radius: 8px;
      border: 1px solid rgba(136,153,179,0.12);
      background: transparent;
      color: rgba(136,153,179,0.5);
      font-size: 11px; cursor: pointer;
    }
    .health-add-form .haf-save {
      padding: 6px 16px; border-radius: 8px;
      border: none;
      background: rgba(0,212,170,0.15);
      color: #00d4aa;
      font-size: 11px; font-weight: 600; cursor: pointer;
      transition: all 0.2s;
    }
    .health-add-form .haf-save:hover { background: rgba(0,212,170,0.25); }

    /* Header buttons */
    .header-quick-actions {
      display: flex; gap: 8px; align-items: center;
    }
    .hamburger-btn {
      width: 40px; height: 40px;
      background: none; border: none;
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      border-radius: 10px;
      transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
      touch-action: manipulation;
    }
    .hamburger-btn:hover {
      color: rgba(232,244,248,0.8);
      background: rgba(0,212,170,0.08);
    }
    .hamburger-btn svg {
      width: 20px; height: 20px;
    }
    .new-conv-btn {
      width: 40px; height: 40px;
      background: none; border: none;
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      border-radius: 10px;
      transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
      touch-action: manipulation;
    }
    .new-conv-btn:hover {
      color: #00d4aa;
      background: rgba(0,212,170,0.08);
    }
    .new-conv-btn svg {
      width: 20px; height: 20px;
    }

    /* ═══ VOICE ASSISTANT ═══ */
    .voice-btn {
      width: 40px; height: 40px;
      background: none; border: none;
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      border-radius: 10px;
      transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
      touch-action: manipulation;
      position: relative;
    }
    .voice-btn:hover {
      color: #ff6b6b;
      background: rgba(255,107,107,0.08);
    }
    .voice-btn.voice-active {
      color: #ff6b6b;
      animation: voice-pulse 1s ease infinite;
    }
    .voice-btn.voice-playing {
      color: #00d4aa;
      animation: voice-play-pulse 1.5s ease infinite;
    }
    .voice-btn svg {
      width: 20px; height: 20px;
    }
    @keyframes voice-pulse {
      0%, 100% { color: rgba(255,107,107,0.5); transform: scale(1); }
      50% { color: #ff6b6b; transform: scale(1.1); }
    }
    @keyframes voice-play-pulse {
      0%, 100% { color: rgba(0,212,170,0.5); }
      50% { color: #00d4aa; }
    }
    /* Voice mic button in chat input */
    .voice-mic-btn {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: none;
      background: rgba(255,107,107,0.08);
      color: rgba(255,107,107,0.5);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: all 0.3s;
      touch-action: manipulation;
    }
    .voice-mic-btn:hover {
      background: rgba(255,107,107,0.15);
      color: #ff6b6b;
    }
    .voice-mic-btn.recording {
      background: rgba(255,107,107,0.25);
      color: #ff6b6b;
      animation: mic-recording 1.2s ease infinite;
      box-shadow: 0 0 16px rgba(255,107,107,0.3);
    }
    .voice-mic-btn.stt-processing {
      background: rgba(255,107,107,0.12);
      color: rgba(255,107,107,0.6);
      animation: scan-pulse 1.2s ease infinite;
    }
    .voice-mic-btn svg {
      width: 18px; height: 18px;
    }
    @keyframes mic-recording {
      0%, 100% { box-shadow: 0 0 8px rgba(255,107,107,0.2); transform: scale(1); }
      50% { box-shadow: 0 0 20px rgba(255,107,107,0.4); transform: scale(1.05); }
    }
    /* Waveform overlay during recording */
    .voice-waveform-overlay {
      position: fixed;
      bottom: 80px;
      left: 50%; transform: translateX(-50%);
      width: 280px;
      height: 56px;
      background: rgba(15,32,53,0.92);
      border: 1px solid rgba(255,107,107,0.15);
      border-radius: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      z-index: 200;
      animation: tc-fade-in 0.2s ease;
      backdrop-filter: blur(12px);
      padding: 0 16px;
    }
    .voice-waveform-overlay canvas {
      width: 160px;
      height: 36px;
      border-radius: 8px;
    }
    .voice-waveform-time {
      font-size: 12px;
      color: rgba(255,107,107,0.7);
      font-variant-numeric: tabular-nums;
      min-width: 32px;
      text-align: center;
    }
    .voice-waveform-stop {
      width: 32px; height: 32px;
      border-radius: 50%;
      border: 2px solid rgba(255,107,107,0.5);
      background: rgba(255,107,107,0.1);
      color: #ff6b6b;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s;
    }
    .voice-waveform-stop:hover {
      background: rgba(255,107,107,0.25);
      border-color: #ff6b6b;
    }
    .voice-waveform-stop svg {
      width: 14px; height: 14px;
    }
    /* TTS playback indicator */
    .voice-tts-indicator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 12px;
      background: rgba(0,212,170,0.08);
      color: rgba(0,212,170,0.7);
      font-size: 11px;
      margin-top: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .voice-tts-indicator:hover {
      background: rgba(0,212,170,0.15);
      color: #00d4aa;
    }
    .voice-tts-indicator svg {
      width: 14px; height: 14px;
    }
    .voice-tts-bars {
      display: flex; gap: 2px; align-items: center; height: 14px;
    }
    .voice-tts-bars span {
      width: 2px;
      background: currentColor;
      border-radius: 1px;
      animation: tts-bar 0.8s ease infinite;
    }
    .voice-tts-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
    .voice-tts-bars span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
    .voice-tts-bars span:nth-child(3) { height: 14px; animation-delay: 0.3s; }
    .voice-tts-bars span:nth-child(4) { height: 8px; animation-delay: 0.45s; }
    @keyframes tts-bar {
      0%, 100% { transform: scaleY(0.4); }
      50% { transform: scaleY(1); }
    }
    /* Voice conversation mode overlay */
    .voice-conv-overlay {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      z-index: 200;
      display: flex; flex-direction: column;
      align-items: center;
      padding: 16px 20px;
      padding-bottom: max(16px, env(safe-area-inset-bottom));
      background: linear-gradient(to top, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.85) 70%, transparent 100%);
      animation: tc-fade-in 0.3s ease;
    }
    .voice-conv-status {
      font-size: 12px;
      color: rgba(232,244,248,0.4);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .voice-conv-status.listening { color: rgba(255,107,107,0.7); }
    .voice-conv-status.processing { color: rgba(255,193,7,0.7); }
    .voice-conv-status.speaking { color: rgba(0,212,170,0.7); }
    .voice-conv-interim {
      font-size: 15px;
      color: rgba(232,244,248,0.7);
      font-style: italic;
      margin-bottom: 12px;
      max-width: 340px;
      text-align: center;
      min-height: 22px;
      line-height: 1.4;
    }
    .voice-conv-controls {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .voice-conv-mic {
      width: 64px; height: 64px;
      border-radius: 50%;
      border: 2px solid rgba(255,107,107,0.3);
      background: rgba(255,107,107,0.08);
      color: #ff6b6b;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.3s;
      position: relative;
    }
    .voice-conv-mic.listening {
      border-color: rgba(255,107,107,0.6);
      animation: mic-recording 1.5s ease infinite;
    }
    .voice-conv-mic.processing {
      border-color: rgba(255,193,7,0.4);
      background: rgba(255,193,7,0.08);
      color: #ffc107;
    }
    .voice-conv-mic.speaking {
      border-color: rgba(0,212,170,0.4);
      background: rgba(0,212,170,0.08);
      color: #00d4aa;
      animation: voice-play-pulse 1.5s ease infinite;
    }
    .voice-conv-mic svg {
      width: 28px; height: 28px;
    }
    .voice-conv-close {
      width: 40px; height: 40px;
      border-radius: 50%;
      border: 1px solid rgba(232,244,248,0.1);
      background: rgba(232,244,248,0.05);
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s;
    }
    .voice-conv-close:hover {
      background: rgba(232,244,248,0.1);
      color: rgba(232,244,248,0.7);
    }
    .voice-conv-close svg {
      width: 18px; height: 18px;
    }
    /* Pulsing ring around mic */
    .voice-conv-mic.listening::before {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      border: 2px solid rgba(255,107,107,0.2);
      animation: voice-ring 2s ease infinite;
    }
    @keyframes voice-ring {
      0% { transform: scale(1); opacity: 0.6; }
      100% { transform: scale(1.4); opacity: 0; }
    }

    /* ═══ REALTIME FLOATING PILL — non-blocking voice widget ═══ */
    .rtc-floating-pill {
      position: fixed;
      bottom: 90px;
      right: 16px;
      z-index: 180;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px 8px 12px;
      background: rgba(10,22,40,0.92);
      border: 1px solid rgba(255,107,53,0.25);
      border-radius: 24px;
      backdrop-filter: blur(16px);
      box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,107,53,0.08);
      animation: rtc-pill-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: default;
      user-select: none;
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    .rtc-floating-pill:hover {
      border-color: rgba(255,107,53,0.4);
      box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(255,107,53,0.1);
    }
    .rtc-floating-pill.speaking {
      border-color: rgba(0,212,170,0.35);
      box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 16px rgba(0,212,170,0.08);
    }
    .rtc-floating-pill.recording {
      border-color: rgba(255,107,107,0.4);
      box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 16px rgba(255,107,107,0.1);
    }
    .rtc-floating-pill.sleeping {
      border-color: rgba(136,153,179,0.15);
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    .rtc-floating-pill.sleeping .rtc-pill-wave span {
      background: rgba(136,153,179,0.25);
      animation-duration: 3s;
    }
    .rtc-floating-pill.sleeping .rtc-pill-status {
      color: rgba(136,153,179,0.5);
      font-size: 10px;
    }
    @keyframes rtc-pill-in {
      0% { opacity: 0; transform: translateY(20px) scale(0.9); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    .rtc-pill-wave {
      display: flex;
      align-items: center;
      gap: 2px;
      height: 20px;
    }
    .rtc-pill-wave span {
      display: block;
      width: 3px;
      border-radius: 2px;
      background: #ff6b35;
      animation: rtc-wave 1.2s ease-in-out infinite;
    }
    .rtc-floating-pill.speaking .rtc-pill-wave span { background: #00d4aa; }
    .rtc-floating-pill.recording .rtc-pill-wave span { background: #ff6b6b; }
    .rtc-pill-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
    .rtc-pill-wave span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
    .rtc-pill-wave span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
    .rtc-pill-wave span:nth-child(4) { height: 16px; animation-delay: 0.45s; }
    .rtc-pill-wave span:nth-child(5) { height: 10px; animation-delay: 0.6s; }
    @keyframes rtc-wave {
      0%, 100% { transform: scaleY(0.4); }
      50% { transform: scaleY(1); }
    }
    .rtc-pill-status {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      color: #ff6b35;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .rtc-floating-pill.speaking .rtc-pill-status { color: #00d4aa; }
    .rtc-floating-pill.recording .rtc-pill-status { color: #ff6b6b; }
    .rtc-pill-text {
      font-size: 11px;
      color: rgba(232,244,248,0.5);
      max-width: 140px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: italic;
    }
    .rtc-pill-close {
      width: 22px; height: 22px;
      border-radius: 50%;
      border: none;
      background: rgba(232,244,248,0.06);
      color: rgba(232,244,248,0.35);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s;
      padding: 0;
      flex-shrink: 0;
    }
    .rtc-pill-close:hover {
      background: rgba(255,107,107,0.15);
      color: #ff6b6b;
    }
    .rtc-pill-close svg { width: 12px; height: 12px; }

    /* ═══ COUNTDOWN TIMER — kruhový progress v floating pill ═══ */
    .rtc-pill-countdown {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-left: 2px;
    }
    .rtc-countdown-ring {
      width: 24px;
      height: 24px;
      position: relative;
      flex-shrink: 0;
    }
    .rtc-countdown-ring svg {
      width: 24px;
      height: 24px;
      transform: rotate(-90deg);
    }
    .rtc-countdown-ring .ring-bg {
      fill: none;
      stroke: rgba(136,153,179,0.15);
      stroke-width: 2.5;
    }
    .rtc-countdown-ring .ring-progress {
      fill: none;
      stroke: #ff6b35;
      stroke-width: 2.5;
      stroke-linecap: round;
      transition: stroke-dashoffset 1s linear, stroke 0.3s;
    }
    .rtc-countdown-ring.warning .ring-progress {
      stroke: #ff6b6b;
    }
    .rtc-countdown-secs {
      font-size: 10px;
      font-weight: 700;
      color: rgba(255,107,53,0.8);
      letter-spacing: 0.3px;
      font-variant-numeric: tabular-nums;
      min-width: 18px;
      text-align: center;
    }
    .rtc-countdown-secs.warning {
      color: #ff6b6b;
      animation: countdown-blink 1s ease infinite;
    }
    @keyframes countdown-blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }
    .rtc-pill-countdown .rtc-countdown-label {
      font-size: 8px;
      color: rgba(136,153,179,0.5);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    /* Active countdown state na floating pill */
    .rtc-floating-pill.countdown-active {
      border-color: rgba(255,107,53,0.2);
      box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 8px rgba(255,107,53,0.06);
    }
    .rtc-floating-pill.countdown-warning {
      border-color: rgba(255,107,107,0.3);
      box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 12px rgba(255,107,107,0.08);
      animation: countdown-pill-pulse 1.5s ease infinite;
    }
    @keyframes countdown-pill-pulse {
      0%, 100% { border-color: rgba(255,107,107,0.3); }
      50% { border-color: rgba(255,107,107,0.5); }
    }

    .voice-btn.rtc-floating-active {
      color: #ff6b35 !important;
      border-color: rgba(255,107,53,0.4) !important;
      background: rgba(255,107,53,0.1) !important;
      animation: rtc-btn-pulse 2s ease infinite;
    }
    @keyframes rtc-btn-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.3); }
      50% { box-shadow: 0 0 0 6px rgba(255,107,53,0); }
    }

    /* ═══ TEACHING MODE — Learning AI Interface ═══ */
    .teaching-overlay {
      position: fixed; inset: 0;
      z-index: 250;
      pointer-events: none;
    }
    .teaching-overlay.active {
      pointer-events: auto;
    }
    .teaching-bar {
      position: fixed;
      bottom: 70px; left: 12px; right: 12px;
      z-index: 260;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      background: linear-gradient(135deg, rgba(255,59,48,0.95), rgba(255,107,53,0.95));
      backdrop-filter: blur(16px);
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(255,59,48,0.3), 0 0 0 1px rgba(255,255,255,0.1);
      animation: teaching-bar-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
    }
    @keyframes teaching-bar-in {
      0% { transform: translateY(20px); opacity: 0; }
      100% { transform: translateY(0); opacity: 1; }
    }
    .teaching-bar-dot {
      width: 10px; height: 10px;
      background: #fff;
      border-radius: 50%;
      animation: teaching-dot-pulse 1.5s ease infinite;
      flex-shrink: 0;
    }
    @keyframes teaching-dot-pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
    }
    .teaching-bar-label {
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .teaching-bar-speech {
      flex: 1;
      font-size: 12px;
      color: rgba(255,255,255,0.85);
      font-style: italic;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .teaching-bar-steps {
      font-size: 11px;
      color: rgba(255,255,255,0.7);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .teaching-bar-btn {
      padding: 5px 12px;
      border-radius: 8px;
      border: 1.5px solid rgba(255,255,255,0.4);
      background: rgba(255,255,255,0.15);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .teaching-bar-btn:hover {
      background: rgba(255,255,255,0.25);
      border-color: rgba(255,255,255,0.6);
    }
    .teaching-bar-btn.stop {
      background: rgba(255,255,255,0.2);
      border-color: #fff;
    }
    .teaching-bar-btn.stop:hover {
      background: rgba(255,255,255,0.35);
    }
    /* Click highlight — krátky flash na kliknutom elemente */
    .teaching-click-highlight {
      position: fixed;
      width: 40px; height: 40px;
      border-radius: 50%;
      border: 3px solid #ff3b30;
      background: rgba(255,59,48,0.15);
      pointer-events: none;
      z-index: 255;
      transform: translate(-50%, -50%);
      animation: teaching-click-flash 0.8s ease forwards;
    }
    @keyframes teaching-click-flash {
      0% { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
      100% { transform: translate(-50%,-50%) scale(2); opacity: 0; }
    }
    /* Teaching lessons list */
    .teaching-lesson-card {
      background: rgba(10,22,40,0.6);
      border: 1px solid rgba(136,153,179,0.12);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 8px;
      transition: all 0.2s;
    }
    .teaching-lesson-card:hover {
      border-color: rgba(255,107,53,0.3);
      background: rgba(10,22,40,0.8);
    }
    .teaching-lesson-title {
      font-size: 13px;
      font-weight: 600;
      color: #e8f4f8;
      margin-bottom: 4px;
    }
    .teaching-lesson-meta {
      font-size: 10px;
      color: rgba(136,153,179,0.5);
    }
    .teaching-lesson-steps {
      font-size: 11px;
      color: rgba(136,153,179,0.7);
      margin-top: 6px;
    }

    /* Voice warning dialog */
    .voice-warning-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 300;
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      animation: tc-fade-in 0.3s ease;
    }
    .voice-warning-box {
      background: #0f2035;
      border: 1px solid rgba(255,107,107,0.15);
      border-radius: 16px;
      padding: 24px;
      max-width: 340px;
      width: 100%;
      text-align: center;
    }
    .voice-warning-icon {
      width: 48px; height: 48px;
      margin: 0 auto 16px;
      border-radius: 50%;
      background: rgba(255,107,107,0.08);
      display: flex; align-items: center; justify-content: center;
    }
    .voice-warning-icon svg {
      width: 24px; height: 24px;
      stroke: #ff6b6b;
      fill: none;
      stroke-width: 1.5;
    }
    .voice-warning-title {
      font-size: 15px; font-weight: 600;
      color: rgba(255,107,107,0.9);
      margin-bottom: 8px;
    }
    .voice-warning-text {
      font-size: 13px;
      color: rgba(232,244,248,0.6);
      line-height: 1.5;
      margin-bottom: 18px;
    }
    .voice-warning-btns {
      display: flex; gap: 10px;
    }
    .voice-warning-cancel {
      flex: 1;
      padding: 10px;
      border-radius: 10px;
      border: 1px solid rgba(232,244,248,0.1);
      background: none;
      color: rgba(232,244,248,0.5);
      cursor: pointer;
      font-size: 13px;
      transition: all 0.2s;
    }
    .voice-warning-cancel:hover {
      background: rgba(232,244,248,0.05);
    }
    .voice-warning-confirm {
      flex: 1;
      padding: 10px;
      border-radius: 10px;
      border: none;
      background: rgba(255,107,107,0.15);
      color: #ff6b6b;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      transition: all 0.2s;
    }
    .voice-warning-confirm:hover {
      background: rgba(255,107,107,0.25);
    }

    /* ═══ SCREEN SCANNER ═══ */
    .screen-scan-btn {
      width: 40px; height: 40px;
      background: none; border: none;
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      border-radius: 10px;
      transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
      touch-action: manipulation;
      position: relative;
    }
    .screen-scan-btn:hover {
      color: #54a0ff;
      background: rgba(84,160,255,0.08);
    }
    .screen-scan-btn.active {
      color: #54a0ff;
    }
    .screen-scan-btn.processing {
      animation: scan-pulse 1.2s ease infinite;
    }
    @keyframes scan-pulse {
      0%, 100% { color: rgba(84,160,255,0.4); }
      50% { color: rgba(84,160,255,1); }
    }
    .menu-h-icon.scan-processing {
      animation: scan-pulse 1.2s ease infinite;
      color: #54a0ff;
    }
    .screen-scan-btn svg {
      width: 20px; height: 20px;
    }
    /* Scan warning dialog */
    .scan-warning-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 300;
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      animation: tc-fade-in 0.3s ease;
    }
    .scan-warning-box {
      background: #0f2035;
      border: 1px solid rgba(84,160,255,0.15);
      border-radius: 16px;
      padding: 24px;
      max-width: 340px;
      width: 100%;
      text-align: center;
    }
    .scan-warning-icon {
      width: 48px; height: 48px;
      margin: 0 auto 16px;
      border-radius: 50%;
      background: rgba(84,160,255,0.08);
      display: flex; align-items: center; justify-content: center;
    }
    .scan-warning-icon svg {
      width: 24px; height: 24px;
      stroke: #54a0ff;
      fill: none;
      stroke-width: 1.5;
    }
    .scan-warning-title {
      font-size: 15px; font-weight: 600;
      color: rgba(84,160,255,0.9);
      margin-bottom: 10px;
    }
    .scan-warning-text {
      font-size: 13px; line-height: 1.5;
      color: rgba(232,244,248,0.6);
      margin-bottom: 20px;
    }
    .scan-warning-btns {
      display: flex; gap: 10px; justify-content: center;
    }
    .scan-warning-btns button {
      padding: 10px 20px;
      border-radius: 10px;
      font-size: 13px; font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    .scan-warning-cancel {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      color: rgba(232,244,248,0.6);
    }
    .scan-warning-confirm {
      background: rgba(84,160,255,0.15);
      border: 1px solid rgba(84,160,255,0.3);
      color: #54a0ff;
    }
    .scan-warning-confirm:hover {
      background: rgba(84,160,255,0.25);
    }
    /* Screen scan badge on user msg */
    .screen-scan-badge {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(84,160,255,0.08);
      border: 1px solid rgba(84,160,255,0.15);
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 10px; color: rgba(84,160,255,0.7);
      margin-top: 4px;
    }
    .screen-scan-badge svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.5; }

    /* ── Health Filter Modal ── */
    .health-filter-backdrop {
      position: fixed; inset: 0; z-index: 500;
      background: rgba(5,12,24,0.6);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      animation: hf-fade-in 0.2s ease-out;
    }
    @keyframes hf-fade-in { from { opacity: 0; } to { opacity: 1; } }
    @keyframes hf-slide-down { from { opacity: 0; max-height: 0; transform: translateY(-8px); } to { opacity: 1; max-height: 300px; transform: translateY(0); } }
    .health-filter-box {
      background: rgba(12,26,48,0.97);
      border: 1px solid rgba(0,212,170,0.1);
      border-radius: 16px;
      padding: 0;
      width: 100%; max-width: 340px;
      box-shadow: 0 16px 48px rgba(0,0,0,0.5);
      animation: hf-pop 0.2s cubic-bezier(0.34,1.56,0.64,1);
      overflow: hidden;
    }
    @keyframes hf-pop {
      from { opacity: 0; transform: scale(0.92); }
      to { opacity: 1; transform: scale(1); }
    }
    .health-filter-header {
      display: flex; align-items: center; gap: 8px;
      padding: 16px 18px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .health-filter-header svg { width: 16px; height: 16px; stroke: rgba(0,212,170,0.7); fill: none; stroke-width: 1.5; }
    .health-filter-title { font-size: 14px; font-weight: 600; color: rgba(224,232,240,0.9); flex: 1; }
    .health-filter-close {
      width: 28px; height: 28px; border-radius: 7px;
      background: none; border: none; color: rgba(224,232,240,0.3);
      cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s;
    }
    .health-filter-close:hover { background: rgba(255,255,255,0.06); color: rgba(224,232,240,0.7); }
    .health-filter-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
    .health-filter-label { font-size: 11px; font-weight: 600; color: rgba(224,232,240,0.45); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
    .health-filter-row { display: flex; gap: 8px; align-items: center; }
    .health-filter-input {
      flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 12.5px;
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
      color: rgba(224,232,240,0.85); font-family: inherit; outline: none; transition: border-color 0.15s;
    }
    .health-filter-input:focus { border-color: rgba(0,212,170,0.3); }
    .health-filter-input::placeholder { color: rgba(224,232,240,0.25); }
    .health-filter-dash { color: rgba(224,232,240,0.2); font-size: 14px; }
    .health-filter-actions { display: flex; gap: 8px; padding-top: 4px; }
    .health-filter-btn {
      flex: 1; padding: 9px; border-radius: 9px; font-size: 12.5px; font-weight: 500;
      cursor: pointer; font-family: inherit; transition: all 0.15s; text-align: center;
    }
    .health-filter-btn.reset {
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
      color: rgba(224,232,240,0.5);
    }
    .health-filter-btn.reset:hover { background: rgba(255,255,255,0.08); }
    .health-filter-btn.apply {
      background: rgba(0,212,170,0.12); border: 1px solid rgba(0,212,170,0.2);
      color: rgba(0,212,170,0.9); font-weight: 600;
    }
    .health-filter-btn.apply:hover { background: rgba(0,212,170,0.2); }

    /* Search bar inline */
    .health-search-bar {
      display: flex; align-items: center; gap: 6px;
      padding: 0 4px; margin-bottom: 2px;
      animation: hf-fade-in 0.15s ease-out;
    }
    .health-search-input {
      flex: 1; padding: 5px 8px; border-radius: 7px; font-size: 11.5px;
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
      color: rgba(224,232,240,0.85); font-family: inherit; outline: none;
    }
    .health-search-input:focus { border-color: rgba(0,212,170,0.25); }
    .health-search-input::placeholder { color: rgba(224,232,240,0.2); }
    .health-search-close {
      width: 22px; height: 22px; border-radius: 6px;
      background: none; border: none; color: rgba(224,232,240,0.3);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
    }
    .health-search-close:hover { color: rgba(224,232,240,0.6); }

    /* Sub-tab action buttons (search, filter, add) with hover glow */
    .subtab-action-btn {
      width: 22px; height: 22px; border-radius: 6px;
      background: none; border: none;
      color: rgba(224,232,240,0.3);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.18s; padding: 0;
    }
    .subtab-action-btn:hover {
      color: rgba(0,212,170,0.85);
      background: rgba(0,212,170,0.08);
    }
    .subtab-action-btn.active {
      color: rgba(0,212,170,0.8);
      background: rgba(0,212,170,0.1);
    }

    /* Filter active indicator */
    .health-filter-active-dot {
      width: 5px; height: 5px; border-radius: 50%;
      background: rgba(0,212,170,0.8);
      position: absolute; top: 0; right: 0;
    }

    /* Collapsible month header in search mode */
    .tc-month-sep.clickable { user-select: none; }
    .tc-month-sep.clickable:hover { color: rgba(0,212,170,0.8); }

    /* Orbio navigation indicator — floating toast */
    .orbio-nav-indicator {
      position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
      display: flex; align-items: center; gap: 8px;
      padding: 8px 16px; border-radius: 20px;
      background: rgba(0,212,170,0.12); border: 1px solid rgba(0,212,170,0.25);
      color: rgba(0,212,170,0.9); font-size: 12px; font-weight: 500;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      z-index: 600; pointer-events: none;
      animation: orbio-nav-in 0.3s ease-out;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
    @keyframes orbio-nav-in {
      from { opacity: 0; transform: translateX(-50%) translateY(10px); }
      to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* SCROLL_TO highlight animation */
    @keyframes record-highlight-pulse {
      0% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
      40% { box-shadow: 0 0 0 8px rgba(0,212,170,0.15); }
      100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
    }
    .health-record-highlight {
      animation: record-highlight-pulse 1.2s ease-out 3;
      border-radius: 10px;
      background: rgba(0,212,170,0.06) !important;
    }
    /* Notification orange highlight — shown when navigating from notif icon */
    @keyframes notif-orange-pulse {
      0% { box-shadow: 0 0 0 0 rgba(255,159,67,0.6); }
      40% { box-shadow: 0 0 0 6px rgba(255,159,67,0.2); }
      100% { box-shadow: 0 0 0 0 rgba(255,159,67,0); }
    }
    .health-record-notif-highlight {
      border: 2px solid rgba(255,159,67,0.7) !important;
      border-radius: 12px;
      background: rgba(255,159,67,0.06) !important;
      animation: notif-orange-pulse 1.5s ease-out infinite;
      position: relative;
    }

    /* ── Scanner — integrated in tab panel ── */
    .scan-mode-card {
      display: flex; align-items: center; gap: 14px;
      padding: 14px 16px; border-radius: 12px;
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(255,255,255,0.06);
      cursor: pointer; transition: all 0.18s;
    }
    .scan-mode-card:hover {
      background: rgba(0,212,170,0.04);
      border-color: rgba(0,212,170,0.15);
    }
    .scan-mode-card-icon {
      width: 42px; height: 42px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .scan-mode-card-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 1.5; }
    .scan-mode-card-icon.window { background: rgba(84,160,255,0.08); }
    .scan-mode-card-icon.window svg { stroke: rgba(84,160,255,0.7); }
    .scan-mode-card-icon.stream { background: rgba(0,212,170,0.08); }
    .scan-mode-card-icon.stream svg { stroke: rgba(0,212,170,0.7); }
    .scan-mode-card-text { flex: 1; }
    .scan-mode-card-title { font-size: 13.5px; font-weight: 600; color: rgba(224,232,240,0.85); margin-bottom: 3px; }
    .scan-mode-card-sub { font-size: 11.5px; color: rgba(224,232,240,0.4); line-height: 1.4; }
    .scan-mode-card-arrow { color: rgba(224,232,240,0.2); transition: color 0.15s; }
    .scan-mode-card:hover .scan-mode-card-arrow { color: rgba(0,212,170,0.5); }

    /* Scanner preview in panel */
    .scan-modal-preview { display: flex; flex-direction: column; gap: 12px; }
    .scan-modal-preview-img-wrap {
      width: 100%; border-radius: 10px; overflow: hidden;
      border: 1.5px solid rgba(0,212,170,0.12);
      animation: scan-capture-pop 0.3s ease-out;
    }
    @keyframes scan-capture-pop {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .scan-modal-preview-img {
      width: 100%; display: block; object-fit: contain;
      max-height: 35vh; background: #080e1a;
    }
    .scan-modal-preview-actions {
      display: flex; gap: 8px; justify-content: center;
    }
    .scan-modal-preview-btn {
      display: flex; align-items: center; gap: 5px;
      padding: 9px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 500;
      cursor: pointer; font-family: inherit; transition: all 0.15s;
      border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
      color: rgba(224,232,240,0.65);
    }
    .scan-modal-preview-btn:hover { background: rgba(255,255,255,0.08); }
    .scan-modal-preview-btn.attach {
      background: rgba(0,212,170,0.1); border-color: rgba(0,212,170,0.2);
      color: rgba(0,212,170,0.9); font-weight: 600;
    }
    .scan-modal-preview-btn.attach:hover { background: rgba(0,212,170,0.18); }
    .scan-modal-preview-btn svg { width: 14px; height: 14px; }

    /* Stream active indicator */
    .scan-stream-active {
      display: flex; flex-direction: column; align-items: center; gap: 14px;
    }
    .scan-stream-live {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 16px; border-radius: 20px;
      background: rgba(0,212,170,0.06);
      border: 1px solid rgba(0,212,170,0.12);
    }
    .scan-stream-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: rgba(0,212,170,0.8);
      animation: scan-stream-blink 1.5s ease-in-out infinite;
    }
    @keyframes scan-stream-blink {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 1; }
    }
    .scan-stream-label { font-size: 12px; color: rgba(0,212,170,0.7); font-weight: 500; }
    .scan-stream-preview-wrap {
      width: 100%; border-radius: 10px; overflow: hidden;
      border: 1.5px solid rgba(0,212,170,0.1);
    }
    .scan-stream-preview-img {
      width: 100%; display: block; object-fit: contain;
      max-height: 28vh; background: #080e1a;
    }
    .scan-stream-actions {
      display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    }
    .scan-stream-hint {
      font-size: 11px; color: rgba(224,232,240,0.3); text-align: center;
    }

    /* Chat attachment bar */
    .chat-scan-attachment {
      display: flex; align-items: center; gap: 8px;
      padding: 6px 10px; margin: 0 8px 6px;
      background: rgba(84,160,255,0.06);
      border: 1px solid rgba(84,160,255,0.12);
      border-radius: 10px;
      animation: scan-capture-pop 0.2s ease-out;
    }
    .chat-scan-attachment-thumb {
      width: 48px; height: 36px; border-radius: 6px;
      object-fit: cover; border: 1px solid rgba(255,255,255,0.06);
    }
    .chat-scan-attachment-info {
      flex: 1; display: flex; flex-direction: column; gap: 1px;
    }
    .chat-scan-attachment-label { font-size: 11.5px; color: rgba(84,160,255,0.7); font-weight: 500; }
    .chat-scan-attachment-sub { font-size: 10px; color: rgba(224,232,240,0.3); }
    .chat-scan-attachment-remove {
      width: 24px; height: 24px; border-radius: 6px;
      background: none; border: none; color: rgba(224,232,240,0.3);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.15s;
    }
    .chat-scan-attachment-remove:hover { background: rgba(255,107,107,0.08); color: rgba(255,107,107,0.6); }

    /* ═══════════════════════════════════════════════════════════
       PERFORMANCE: Mobile optimizations — reduce GPU load
       backdrop-filter: blur() is extremely expensive on iOS Safari
       ═══════════════════════════════════════════════════════════ */
    @media (max-width: 768px), (hover: none) and (pointer: coarse) {
      /* ── Reduce all blur values on mobile ── */
      .container,
      .menu-tab-panel,
      .orbio-widget,
      .reminder-super-overlay,
      .qr-modal-overlay,
      .qr-modal-box,
      .vision-progress-overlay,
      .photo-menu-popup,
      .proactive-msg-card,
      .notif-panel,
      .menu-overlay,
      .health-detail-overlay,
      .tc-detail-overlay,
      .cal-detail-overlay,
      .voice-waveform-overlay,
      .lang-modal-overlay,
      .lang-modal-box {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
      }

      /* ── Remove blur completely from backgrounds that are fully opaque ── */
      .menu-bg-canvas,
      .welcome-neural-canvas,
      .tc-elephant-canvas,
      .health-bg-canvas {
        opacity: 0.5 !important;
      }

      /* ── Reduce box-shadow complexity ── */
      .orbio-widget,
      .menu-tab-panel,
      .chat-message,
      .health-record-item,
      .tc-node {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
      }

      /* ── Disable expensive continuous animations on mobile ── */
      .heartbeat-dot,
      .avatar-container,
      .neuron-glow {
        animation-duration: 4s !important;
      }

      /* ── Reduce animation complexity ── */
      * {
        scroll-behavior: auto !important;
      }

      /* ── Force GPU compositing for frequently animated elements ── */
      .container,
      .menu-tab-panel,
      .orbio-widget,
      .chat-messages {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
      }
    }

    /* ═══ Reduce motion for users who prefer it ═══ */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
  