
    /* 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="ocean"] {
      --bg: #071a28;
      --bg-rgb: 7, 26, 40;
      --bg-gradient: linear-gradient(180deg, #071a28 0%, #0a2a3c 50%, #0d3348 85%, #0f3a52 100%);
      --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;
      --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"] .send-btn-wa svg,
    html[data-theme="svetlo"] .attach-btn svg,
    html[data-theme="svetlo"] .chat-plus-btn svg,
    html[data-theme="svetlo"] .input-bubble-cam svg,
    html[data-theme="svetlo"] .input-bubble-mic 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"] .send-btn-wa { background: rgba(14,116,144,0.15); color: #0e7490; }
    html[data-theme="svetlo"] .send-btn-wa:hover { background: rgba(14,116,144,0.25); }
    html[data-theme="svetlo"] .chat-plus-btn { color: #475569; }
    html[data-theme="svetlo"] .chat-plus-btn:hover { color: #0e7490; background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .input-bubble-mic { color: #475569; }
    html[data-theme="svetlo"] .input-bubble-mic:hover { color: #0e7490; }
    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); }

    /* §154 — Textarea v svetlej téme: biele glass pill, tmavý text, teal neon aura pri focus */
    html[data-theme="svetlo"] .chat-textarea {
      background: rgba(255,255,255,0.72) !important;
      color: #1e293b !important;
      border: 1.5px solid rgba(14,116,144,0.18) !important;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 3px rgba(15,30,55,0.04), inset 0 1px 2px rgba(255,255,255,0.6) !important;
      transition: border-color 0.35s ease, box-shadow 0.6s ease !important;
    }
    html[data-theme="svetlo"] .chat-textarea::placeholder { color: rgba(75,85,99,0.55); }
    html[data-theme="svetlo"] .chat-textarea:focus,
    html[data-theme="svetlo"] .chat-textarea.neuron-active {
      border-color: rgba(14,116,144,0.45) !important;
      box-shadow:
        0 0 0 4px rgba(14,116,144,0.1),
        0 0 18px rgba(14,116,144,0.22),
        0 0 36px rgba(0,212,170,0.14),
        inset 0 1px 0 rgba(255,255,255,0.9) !important;
      background: rgba(255,255,255,0.88) !important;
    }
    html[data-theme="svetlo"] .chat-textarea.neuron-thinking {
      border-color: rgba(14,116,144,0.35) !important;
      box-shadow:
        0 0 0 3px rgba(14,116,144,0.08),
        0 0 14px rgba(14,116,144,0.15),
        inset 0 1px 0 rgba(255,255,255,0.85) !important;
    }
    /* §154 — neuron-glow vrstvy v svetle: jemné teal/aqua */
    html[data-theme="svetlo"] .ng-l-dom  { background: radial-gradient(ellipse at 5% 50%, rgba(14,116,144,0.22) 0%, transparent 55%); }
    html[data-theme="svetlo"] .ng-l-ram  { background: radial-gradient(ellipse at 35% 50%, rgba(0,212,170,0.22) 0%, transparent 55%); }
    html[data-theme="svetlo"] .ng-l-rom  { background: radial-gradient(ellipse at 65% 50%, rgba(14,116,144,0.2) 0%, transparent 55%); }
    html[data-theme="svetlo"] .ng-l-rom2 { background: radial-gradient(ellipse at 95% 50%, rgba(0,212,170,0.2) 0%, transparent 55%); }

    /* 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 {
      /* §154 — splynutie s body gradient: žiadne vlastné pozadie */
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    /* 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.85);
      border: none;
      background: none;
    }
    html[data-theme="svetlo"] .menu-h-icon:hover { color: #0e7490; }
    html[data-theme="svetlo"] .menu-h-icon:hover .icon-aura { background: rgba(14,116,144,0.12); }
    html[data-theme="svetlo"] .menu-h-icon.active { color: #0e7490; }
    html[data-theme="svetlo"] .menu-h-icon.active .icon-aura { background: rgba(14,116,144,0.14); box-shadow: 0 0 14px rgba(14,116,144,0.12); }
    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; }
    html[data-theme="svetlo"] .menu-h-icon.danger:hover .icon-aura { 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; }
    html[data-theme="svetlo"] .voice-btn:hover .icon-aura { background: rgba(14,116,144,0.1); }
    html[data-theme="svetlo"] .voice-btn:active .icon-aura { transform: scale(0.92); }

    /* 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; }

    /* ═══ §152 SVETLÁ TÉMA — Widget mode topbar — biele kalené sklo ═══ */
    html[data-theme="svetlo"] .widget-mode-topbar {
      background: rgba(255,255,255,0.62);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid rgba(255,255,255,0.55);
      box-shadow: 0 1px 2px rgba(15,30,55,0.04), inset 0 -1px 0 rgba(15,30,55,0.04);
    }
    html[data-theme="svetlo"] .widget-topbar-logo {
      color: #0e7490;
    }
    /* §120b — svetlo dock chips */
    html[data-theme="svetlo"] .widget-dock-chip {
      border-color: rgba(14,116,144,0.2);
      background: rgba(14,116,144,0.05);
    }
    html[data-theme="svetlo"] .widget-dock-chip:hover {
      background: rgba(14,116,144,0.12);
      border-color: rgba(14,116,144,0.35);
    }
    html[data-theme="svetlo"] .widget-dock-chip .dock-chip-icon { color: #0e7490; }
    html[data-theme="svetlo"] .widget-dock-chip .dock-chip-label { color: #374151; }
    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;
    }

    /* ═══ §152 SVETLÁ TÉMA — Floating widget panels — FROSTED GLASS (biele kalené sklo) ═══ */
    /* Design tokens — koherentné s orbio.vet §152 */
    html[data-theme="svetlo"] {
      --glass-bg: rgba(255,255,255,0.58);
      --glass-bg-strong: rgba(255,255,255,0.72);
      --glass-blur: blur(24px) saturate(180%);
      --glass-bord: 1px solid rgba(255,255,255,0.55);
      --glass-shadow: 0 8px 32px rgba(15,30,55,0.12), 0 2px 8px rgba(15,30,55,0.06), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(15,30,55,0.04);
      --glass-shadow-hover: 0 12px 40px rgba(15,30,55,0.16), 0 3px 10px rgba(15,30,55,0.08), inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(15,30,55,0.05);
      --glass-accent-glow: 0 0 16px rgba(14,116,144,0.22), 0 0 40px rgba(14,116,144,0.08);
    }
    html[data-theme="svetlo"] .orbio-widget {
      background: var(--glass-bg);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      border: var(--glass-bord);
      box-shadow: var(--glass-shadow);
    }
    html[data-theme="svetlo"] .orbio-widget:hover {
      box-shadow: var(--glass-shadow-hover);
    }
    /* §119 — active widget neon glow (svetlo, cez sklo) */
    html[data-theme="svetlo"] .orbio-widget.widget-active {
      border-color: rgba(14,116,144,0.45);
      box-shadow: var(--glass-accent-glow), var(--glass-shadow);
    }
    html[data-theme="svetlo"] .widget-header {
      border-bottom-color: rgba(15,30,55,0.08);
      background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 100%);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
    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);
    }
    /* §120 — svetlo merge/minimize btn */
    html[data-theme="svetlo"] .widget-merge-btn,
    html[data-theme="svetlo"] .widget-minimize-btn {
      color: rgba(75,85,99,0.4);
    }
    html[data-theme="svetlo"] .widget-merge-btn:hover {
      background: rgba(14,116,144,0.1);
      color: #0e7490;
    }
    html[data-theme="svetlo"] .widget-minimize-btn:hover {
      background: rgba(37,99,235,0.1);
      color: #2563eb;
    }
    html[data-theme="svetlo"] .widget-body {
      color: #111827;
      background: transparent;  /* §152 — nech presvitá cez sklo */
    }
    html[data-theme="svetlo"] .widget-body::-webkit-scrollbar-thumb {
      background: rgba(15,30,55,0.16);
    }
    html[data-theme="svetlo"] .widget-resize-handle::after {
      border-color: rgba(15,30,55,0.22);
    }

    /* ═══ §152 SVETLÁ TÉMA — Mini widget stats (glass chips) ═══ */
    html[data-theme="svetlo"] .mini-widget-stat {
      background: rgba(255,255,255,0.48);
      backdrop-filter: blur(12px) saturate(160%);
      -webkit-backdrop-filter: blur(12px) saturate(160%);
      border: 1px solid rgba(255,255,255,0.55);
      box-shadow: 0 2px 8px rgba(15,30,55,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
    }
    html[data-theme="svetlo"] .mini-widget-stat-value {
      color: #111827;
    }
    html[data-theme="svetlo"] .mini-widget-stat-label {
      color: #6b7280;
    }

    /* ═══ §152 SVETLÁ TÉMA — Chat widget floating (glass) ═══ */
    html[data-theme="svetlo"] .chat-widget-float {
      background: var(--glass-bg);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      border: var(--glass-bord);
      box-shadow: var(--glass-shadow);
    }
    html[data-theme="svetlo"] .chat-widget-float:hover {
      box-shadow: var(--glass-shadow-hover);
    }
    html[data-theme="svetlo"] .chat-widget-float .chat-header {
      border-bottom-color: rgba(15,30,55,0.08);
      background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 100%);
    }
    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);
    }

    /* §152 Svetlá téma — float+widget mode chat content (glass) */
    html[data-theme="svetlo"] .widget-mode-active.chat-widget-float .chat-messages,
    html[data-theme="svetlo"] .widget-mode-active.chat-widget-float .chat-input-area {
      background: transparent;  /* Nech presvitá glass widget pod ním */
      border-color: rgba(15,30,55,0.08);
    }

    /* §152 — sklenený efekt pre globálne modály v svetlej téme (pet nemá sklad, ale má settings / pets / pet-detail modaly) */
    html[data-theme="svetlo"] .orbio-modal,
    html[data-theme="svetlo"] .modal,
    html[data-theme="svetlo"] .pet-modal {
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      border: var(--glass-bord);
      box-shadow: 0 20px 60px rgba(15,30,55,0.18), 0 6px 20px rgba(15,30,55,0.08), inset 0 1px 0 rgba(255,255,255,0.95);
    }

    /* §152 — dock chips v svetlej téme (glass) */
    html[data-theme="svetlo"] .widget-dock-chip {
      background: rgba(255,255,255,0.45);
      backdrop-filter: blur(10px) saturate(160%);
      -webkit-backdrop-filter: blur(10px) saturate(160%);
      border-color: rgba(255,255,255,0.6);
      box-shadow: 0 2px 6px rgba(15,30,55,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    }
    html[data-theme="svetlo"] .widget-dock-chip:hover {
      background: rgba(255,255,255,0.6);
      box-shadow: 0 4px 10px rgba(15,30,55,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
    }

    /* §152 — fallback pre prehliadače bez backdrop-filter (starší Firefox) */
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      html[data-theme="svetlo"] .orbio-widget,
      html[data-theme="svetlo"] .chat-widget-float,
      html[data-theme="svetlo"] .widget-mode-topbar,
      html[data-theme="svetlo"] .orbio-modal,
      html[data-theme="svetlo"] .modal,
      html[data-theme="svetlo"] .pet-modal,
      html[data-theme="svetlo"] .mini-widget-stat,
      html[data-theme="svetlo"] .widget-dock-chip {
        background: rgba(255,255,255,0.92);
      }
    }

    /* ═══ 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"] .crm-bridge-indicator { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #059669; }
    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);
    }
    /* §176.48 — light theme override pre inline-styled section header spans (MOJE ZVIERATÁ / ZÁZNAMY / Upraviť profil / Lieky filter atď.).
       Tieto spany majú v dark/ocean teme inline color:#ffffff (zvýšená čitateľnosť, §176.48),
       ale na light témě by bola biela neviditeľná → override na tmavý teal #0e7490. */
    html[data-theme="svetlo"] span[style*="text-transform: uppercase"][style*="letter-spacing: 0.5px"][style*="rgb(255, 255, 255)"] {
      color: #0e7490 !important;
    }
    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; }
    html[data-theme="svetlo"] .pet-subtab-btn:hover .icon-aura { background: rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .pet-subtab-btn.active .icon-aura { 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; border-bottom-color: rgba(14,116,144,0.15) !important;
    }
    html[data-theme="svetlo"] .menu-section { border-bottom-color: rgba(14,116,144,0.08) !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; }

    /* Témy polnoc, les, levandula, pieskovy, ruzovy, vesmir — odstránené v §69 */

    /* ═══ 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; }
    /* §176.35 — Header je vždy uzamknutý na medium-equivalent rendering (1.2×):
       container_zoom × header_zoom = 1.2 pre všetky 3 veľkosti.
       Šírka header-row kompenzovaná tak aby vždy vizuálne vyplnila 100% kontajnera. */
    html[data-size="small"]  { --zoom: 1; --ui-scale: 1; --font-scale: 1; --icon-label-size: 9.6px; --header-zoom: 1.2; --header-width: 83.333%; }
    html[data-size="medium"] { --zoom: 1.2; --ui-scale: 1.15; --font-scale: 1.12; --icon-label-size: 8px; --header-zoom: 1; --header-width: 100%; }
    html[data-size="maxi"]   { --zoom: 1.5; --ui-scale: 1.35; --font-scale: 1.25; --icon-label-size: 8px; --header-zoom: 0.8; --header-width: 125%; }

    /* ═══ THEME OVERRIDES — aplikovanie CSS vars ═══ */
    html {
      background: var(--bg-gradient, var(--bg));
      background-color: var(--bg);
      min-height: 100%;
      overscroll-behavior: none;
      color-scheme: var(--scheme);
      background-attachment: fixed;
    }
    body {
      background: var(--bg-gradient, var(--bg));
      background-color: var(--bg);
      background-attachment: fixed;
      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-gradient, var(--bg));
      background-attachment: fixed;
      z-index: -1;
    }

    #root {
      width: 100%;
      height: 100vh;
      height: 100dvh;
      background: transparent;
      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: transparent;
      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;
      }
      .chat-header-row {
        zoom: unset;
        transform: scale(var(--header-zoom, 1));
        transform-origin: left 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 — §101h: 50% zmenšené */
    .theme-grid { display: grid; grid-template-columns: repeat(2, 48px); gap: 8px; max-width: 104px; }
    .theme-chip {
      aspect-ratio: 1; border-radius: 10px; border: 1.5px 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: 6px; font-weight: 600; letter-spacing: 0.3px; padding: 1px 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 — §101h: veľkosť zjednotená s theme-chip (48px) */
    .size-grid { display: grid; grid-template-columns: repeat(3, 48px); gap: 8px; max-width: 160px; }
    .size-card {
      aspect-ratio: 1; padding: 4px 2px; border-radius: 10px; border: 1.5px solid transparent;
      background: rgba(var(--accent-rgb), 0.03); cursor: pointer; transition: all 0.2s; text-align: center;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    }
    .size-card:hover { background: rgba(var(--accent-rgb), 0.06); }
    .size-card.active { background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.3); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1); }
    .size-card .size-icon { font-size: 14px; margin-bottom: 1px; line-height: 1; }
    .size-card .size-name { font-size: 8px; font-weight: 600; color: var(--text); line-height: 1; }
    .size-card .size-desc { display: none; }
    .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)); }
    }

    /* ═══ Welcome Splash — pulzujúci sloník ═══ */
    @keyframes welcome-elephant-pulse {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(0,212,170,0.3)); }
      50% { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(0,212,170,0.6)); }
    }
    @keyframes welcome-dot-pulse {
      0%, 100% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 8px rgba(0,212,170,0.4); }
      50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 20px rgba(0,212,170,0.8); }
    }
    @keyframes welcome-breathe {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 0.8; }
    }
    @keyframes welcome-fade-in {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

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

    @keyframes fade-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes game-slide-in {
      from { transform: translateX(-100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    /* LOGIN SCREEN — vždy tmavý ocean, ignoruje aktívnu tému */
    .login-bg, html[data-theme] .login-bg {
      background: linear-gradient(180deg, #071a28 0%, #0a2a3c 50%, #0d3348 85%, #0f3a52 100%) !important;
      background-attachment: fixed !important;
      color-scheme: dark !important;
    }
    /* Safari iOS bottom bar — login screen spodná farba gradientu */
    html:has(.login-bg) { background-color: #0f3a52 !important; }
    html:has(.login-bg) body { background-color: #0f3a52 !important; }
    html:has(.login-bg) body::before { background: #0f3a52 !important; }
    .login-bg .login-subtitle {
      color: rgba(136, 153, 179, 0.6) !important;
    }
    .login-bg .login-btn {
      background: rgba(12, 42, 68, 0.7) !important;
      border-color: rgba(80, 170, 255, 0.14) !important;
      color: #e8f4f8 !important;
      backdrop-filter: blur(20px);
    }
    .login-bg .login-btn:hover {
      border-color: rgba(0, 212, 170, 0.3) !important;
      background: rgba(0, 212, 170, 0.05) !important;
    }
    .login-bg .login-input {
      background: rgba(14, 45, 70, 0.55) !important;
      color: #daeef9 !important;
      border-color: rgba(80, 170, 255, 0.14) !important;
    }
    .login-bg .login-input::placeholder {
      color: rgba(136, 153, 179, 0.6) !important;
    }
    .login-bg .btn-primary {
      color: #fff !important;
    }
    .login-bg .link-btn {
      color: #2cc8df !important;
    }
    .login-bg .error-msg {
      color: #ef4444 !important;
    }

    .login-screen {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 24px;
      padding-bottom: max(40px, env(safe-area-inset-bottom, 20px) + 20px);
      gap: 24px;
      min-height: 100dvh;
      box-sizing: border-box;
    }

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

    /* §145 — pulzujuca bodka pri slonikovi na uvodnom (login) screene */
    .login-pulse-dot {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #00d4aa;
      box-shadow: 0 0 10px rgba(0,212,170,0.6);
      animation: welcome-dot-pulse 1.5s 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;
      display: inline-flex;
      align-items: baseline;
    }

    /* §145 — .pet suffix v rovnakej farbe ako ORBIO napis */
    .login-title-suffix {
      font-size: 0.55em;
      letter-spacing: 2px;
      margin-left: 2px;
      font-weight: 400;
      background: linear-gradient(135deg, #00d4aa, #0099cc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      opacity: 0.92;
    }

    .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;
    }

    /* Icon-only login buttons (borderless, hover aura) */
    .login-icon-buttons {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 28px;
      margin-top: 24px;
      margin-bottom: 8px;
    }

    .login-icon-btn {
      position: relative;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: none;
      background: transparent;
      color: #e8f4f8;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.25s ease, color 0.25s ease;
      outline: none;
      padding: 0;
    }

    .login-icon-btn svg {
      width: 30px;
      height: 30px;
      position: relative;
      z-index: 2;
      transition: transform 0.25s ease;
    }

    .login-icon-btn::before {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0, 212, 170, 0.35) 0%, rgba(0, 153, 204, 0.18) 45%, transparent 70%);
      opacity: 0;
      transform: scale(0.7);
      transition: opacity 0.3s ease, transform 0.3s ease;
      pointer-events: none;
      z-index: 1;
    }

    .login-icon-btn:hover::before,
    .login-icon-btn:focus-visible::before,
    .login-icon-btn.is-active::before {
      opacity: 1;
      transform: scale(1);
    }

    .login-icon-btn:hover,
    .login-icon-btn:focus-visible,
    .login-icon-btn.is-active {
      color: #00d4aa;
    }

    .login-icon-btn:hover svg,
    .login-icon-btn.is-active svg {
      transform: scale(1.08);
    }

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

    /* Indicate which icon is currently driving the inline email flow */
    .login-icon-btn.is-selected::before {
      opacity: 1;
      transform: scale(1);
    }
    .login-icon-btn.is-selected { color: #00d4aa; }
    .login-icon-btn.is-selected svg { transform: scale(1.08); }

    /* Inline email flow — sits directly under the 3 icons */
    .inline-auth {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: min(340px, 92vw);
      margin-top: 18px;
      animation: welcome-fade-in 0.28s ease-out;
    }

    .inline-auth-row {
      display: flex;
      align-items: stretch;
      gap: 8px;
      width: 100%;
    }

    .inline-auth-row .login-input {
      flex: 1;
      min-width: 0;
    }

    .inline-auth-action {
      flex: 0 0 auto;
      width: 48px;
      height: 48px;
      border-radius: 12px;
      border: 1px solid rgba(0, 212, 170, 0.35);
      background: linear-gradient(135deg, rgba(0, 212, 170, 0.18), rgba(0, 153, 204, 0.18));
      color: #00d4aa;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
      padding: 0;
    }

    .inline-auth-action:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
      border-color: rgba(0, 212, 170, 0.55);
    }

    .inline-auth-action:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .inline-auth-action svg {
      width: 22px;
      height: 22px;
    }

    .inline-auth-hint {
      font-size: 11px;
      color: rgba(136, 153, 179, 0.6);
      text-align: center;
      margin: 0;
    }

    .inline-auth-newuser {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 12px;
      margin-top: 4px;
      animation: welcome-fade-in 0.32s ease-out;
    }

    .inline-auth-newuser-title {
      display: block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #00d4aa;
      text-align: center;
      margin-bottom: 8px;
    }

    /* Collapsible language selector (top-right) */
    .lang-selector {
      position: absolute;
      top: max(16px, env(safe-area-inset-top, 0px) + 12px);
      right: 16px;
      display: flex;
      flex-direction: row-reverse;
      align-items: center;
      gap: 6px;
      z-index: 50;
    }

    .lang-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 30px;
      padding: 0 10px;
      border-radius: 15px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(15, 32, 53, 0.55);
      backdrop-filter: blur(12px);
      color: rgba(232, 244, 248, 0.65);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.35s ease, transform 0.35s ease;
      user-select: none;
    }

    .lang-chip.is-active {
      color: #00d4aa;
      border-color: rgba(0, 212, 170, 0.45);
      background: rgba(0, 212, 170, 0.08);
      box-shadow: 0 0 14px rgba(0, 212, 170, 0.18);
    }

    .lang-chip:hover {
      color: #e8f4f8;
      border-color: rgba(0, 212, 170, 0.3);
    }

    /* Animate roll-out from right to left when expanded */
    .lang-selector .lang-chip.lang-option {
      opacity: 0;
      transform: translateX(18px);
      pointer-events: none;
    }

    .lang-selector.is-open .lang-chip.lang-option {
      opacity: 1;
      transform: translateX(0);
      pointer-events: auto;
    }

    /* Stagger the reveal so items roll in sequentially */
    .lang-selector.is-open .lang-chip.lang-option:nth-child(2)  { transition-delay: 0.03s; }
    .lang-selector.is-open .lang-chip.lang-option:nth-child(3)  { transition-delay: 0.06s; }
    .lang-selector.is-open .lang-chip.lang-option:nth-child(4)  { transition-delay: 0.09s; }
    .lang-selector.is-open .lang-chip.lang-option:nth-child(5)  { transition-delay: 0.12s; }
    .lang-selector.is-open .lang-chip.lang-option:nth-child(6)  { transition-delay: 0.15s; }
    .lang-selector.is-open .lang-chip.lang-option:nth-child(7)  { transition-delay: 0.18s; }
    .lang-selector.is-open .lang-chip.lang-option:nth-child(8)  { transition-delay: 0.21s; }

    /* §155 first release — len SK + EN aktívne; ostatné jazyky sa zobrazujú disabled (grey, no-click). */
    .lang-chip:disabled,
    .lang-chip.is-disabled {
      opacity: 0.32;
      color: rgba(232, 244, 248, 0.3);
      border-color: rgba(255, 255, 255, 0.04);
      background: rgba(15, 32, 53, 0.25);
      cursor: not-allowed;
      pointer-events: none;
      filter: grayscale(1);
      box-shadow: none;
    }
    .lang-chip:disabled:hover,
    .lang-chip.is-disabled:hover {
      color: rgba(232, 244, 248, 0.3);
      border-color: rgba(255, 255, 255, 0.04);
      background: rgba(15, 32, 53, 0.25);
    }

    .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: rgba(15, 32, 53, 0.5) !important;
      color: #e8f4f8 !important;
      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);
    }

    /* v2.17 — keep ocean-gradient background even when browser autofills
       the password/email fields. Without this Chrome/Safari paint a light
       yellow/white -webkit-autofill background that breaks the look. */
    .login-input:-webkit-autofill,
    .login-input:-webkit-autofill:hover,
    .login-input:-webkit-autofill:focus,
    .login-input:-webkit-autofill:active {
      -webkit-box-shadow: 0 0 0 40px rgba(15, 32, 53, 0.55) inset !important;
      -webkit-text-fill-color: #e8f4f8 !important;
      caret-color: #e8f4f8 !important;
      border-color: rgba(80, 170, 255, 0.14) !important;
      transition: background-color 9999s ease-in-out 0s !important;
      background-clip: content-box !important;
    }

    /* v2.17 — two-option row for "email not found" (wrong email vs register) */
    .inline-auth-choice-row {
      display: flex;
      gap: 8px;
      width: 100%;
    }
    .inline-auth-choice-btn {
      flex: 1;
      min-height: 44px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(15, 32, 53, 0.55);
      color: #daeef9;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }
    .inline-auth-choice-btn:hover {
      border-color: rgba(0, 212, 170, 0.35);
      background: rgba(0, 212, 170, 0.06);
      color: #e8f4f8;
    }
    .inline-auth-choice-btn.is-primary {
      border-color: rgba(0, 212, 170, 0.35);
      color: #00d4aa;
      background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(0, 153, 204, 0.12));
    }
    .inline-auth-choice-btn.is-primary:hover {
      background: linear-gradient(135deg, rgba(0, 212, 170, 0.22), rgba(0, 153, 204, 0.22));
      border-color: rgba(0, 212, 170, 0.6);
    }
    .inline-auth-hint-text {
      font-size: 12px;
      color: rgba(136, 153, 179, 0.75);
      text-align: center;
      margin: 0 0 4px;
      line-height: 1.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: #0a1628;
      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.06);
    }

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

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

    .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 — Chapter-based story onboarding ═══ */

    @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-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-icon-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    @keyframes tut-voice-ring {
      0% { transform: scale(0.8); opacity: 1; }
      100% { transform: scale(2.5); opacity: 0; }
    }
    @keyframes tut-narrate-in {
      0% { opacity: 0; transform: translateY(12px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    @keyframes tut-chapter-icon-glow {
      0%, 100% { filter: drop-shadow(0 0 8px rgba(var(--tc, var(--neon)), 0.3)); }
      50% { filter: drop-shadow(0 0 20px rgba(var(--tc, var(--neon)), 0.6)); }
    }
    @keyframes tut-voice-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(var(--neon), 0.4); }
      50% { box-shadow: 0 0 0 12px rgba(var(--neon), 0); }
    }

    .tut-overlay {
      position: fixed; inset: 0; background: var(--bg-gradient, 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: 24px 20px 16px; position: relative; z-index: 1; overflow-y: auto;
    }

    /* Logo */
    .tut-logo-wrap {
      width: 80px; height: 80px;
      animation: tut-logo-pulse 3s ease-in-out infinite;
      margin-bottom: 12px;
    }
    .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: 32px; letter-spacing: 0.5px;
    }

    /* Chapter header — line, title, line */
    .tut-chapter-header {
      display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px;
      margin-bottom: 20px; padding: 0 4px;
    }
    .tut-chapter-line {
      flex: 1; height: 1.5px; border-radius: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--neon), 0.35));
      box-shadow: 0 0 4px rgba(var(--neon), 0.1);
    }
    .tut-chapter-line:last-child {
      background: linear-gradient(90deg, rgba(var(--neon), 0.35), transparent);
    }
    .tut-chapter-label {
      font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
      color: rgba(var(--neon), 0.6); white-space: nowrap;
    }
    .tut-chapter-num {
      font-size: 9px; font-weight: 500; color: rgba(var(--neon), 0.35);
      margin-bottom: 2px; letter-spacing: 1px;
    }

    /* Pulsing heartbeat dot — Orbio is alive */
    .tut-heart-dot {
      display: inline-block; width: 10px; height: 10px; border-radius: 50%;
      background: rgba(var(--neon), 1);
      animation: heartbeat-alive 2.5s ease-in-out infinite;
      vertical-align: middle; margin-left: 6px;
      box-shadow: 0 0 8px rgba(var(--neon), 0.5);
    }

    /* Typewriter cursor — Orbio is writing live */
    @keyframes tut-cursor-blink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }
    .tut-typewriter-cursor {
      display: inline-block; width: 2px; height: 1.1em;
      background: rgba(var(--neon), 0.9); vertical-align: text-bottom;
      margin-left: 2px; border-radius: 1px;
      animation: tut-cursor-blink 0.85s steps(1) infinite;
      box-shadow: 0 0 6px rgba(var(--neon), 0.5);
    }

    /* Narrative text — Orbio speaking — chat-style float-in */
    .tut-narrate {
      font-size: 15px; font-weight: 300; color: var(--text); line-height: 1.7;
      text-align: center; max-width: 340px; margin-bottom: 24px;
      animation: float-in 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    .tut-narrate em {
      font-style: normal; color: var(--accent); font-weight: 400;
    }

    /* ═══════════════════════════════════════════════════
       §80.2 TUTORIAL v podobe KONVERZÁCIE (chat bubbles)
       Tutorial used to have centered narrative blocks — now it mimics the main
       chat conversation: Orbio speaks in left bubbles, user replies on right,
       voice status + typing indicator feel identical to the real chat.
       ═══════════════════════════════════════════════════ */

    /* Content area — scrollable chat log */
    .tut-chat-log {
      display: flex; flex-direction: column; gap: 10px; padding: 8px 2px 16px;
      width: 100%; max-width: 560px; margin: 0 auto;
    }
    .tut-chat-log.tut-chat-log-empty { padding: 0; }

    /* Row — avatar + bubble */
    .tut-chat-row {
      display: flex; gap: 8px; max-width: 92%; align-items: flex-end;
      animation: float-in 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    .tut-chat-row-ai { align-self: flex-start; }
    .tut-chat-row-user { align-self: flex-end; flex-direction: row-reverse; }
    /* §80.4 — bublina postupne stmavne a zmizne keď Orbio dočíta.
       phase: typing → full → fading → gone. */
    .tut-chat-row-typing { opacity: 1; }
    .tut-chat-row-full { opacity: 1; }
    .tut-chat-row-fading {
      opacity: 0;
      filter: brightness(0.5) saturate(0.7);
      transform: translateY(-2px);
      max-height: 0;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden;
      /* §80.7 — much slower, gentler fade */
      transition: opacity 5s cubic-bezier(0.4,0,0.2,1),
                  filter 5s cubic-bezier(0.4,0,0.2,1),
                  transform 5s cubic-bezier(0.4,0,0.2,1),
                  max-height 5.5s cubic-bezier(0.4,0,0.2,1) 1.2s,
                  margin 5.5s cubic-bezier(0.4,0,0.2,1) 1.2s,
                  padding 5.5s cubic-bezier(0.4,0,0.2,1) 1.2s;
    }

    /* Avatar wrapper — reuses pulse from main chat */
    .tut-chat-avatar {
      width: 34px; height: 34px; border-radius: 11px; padding: 2px;
      flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      background: rgba(0,212,170,0.14);
      animation: avatarPulse 3s ease-in-out infinite;
    }
    .tut-chat-avatar-inner {
      width: 100%; height: 100%; border-radius: 9px;
      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;
    }
    .tut-chat-avatar-user {
      background: rgba(108,92,231,0.12);
      animation: none;
    }
    .tut-chat-avatar-user .tut-chat-avatar-inner {
      background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,153,204,0.12));
      border-color: rgba(108,92,231,0.25);
      color: #a892ff; font-weight: 600; font-size: 13px;
    }

    /* Bubble */
    .tut-chat-bubble {
      padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.6;
      word-wrap: break-word; overflow-wrap: break-word; min-width: 0;
      max-width: 100%;
    }
    .tut-chat-bubble-ai {
      background: var(--glass, rgba(255,255,255,0.03));
      border: 1px solid rgba(255,255,255,0.06);
      color: rgba(232,244,248,0.92);
      border-top-left-radius: 4px;
    }
    .tut-chat-bubble-ai em {
      font-style: normal; color: var(--accent); font-weight: 500;
    }
    .tut-chat-bubble-ai p { margin: 0; text-align: left; }
    .tut-chat-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;
    }
    .tut-chat-bubble-user p { margin: 0; text-align: left; }

    /* Subtle bubble for the less important third paragraph of intro */
    .tut-chat-bubble-dim {
      background: rgba(255,255,255,0.02);
      border-color: rgba(255,255,255,0.04);
      color: rgba(232,244,248,0.65);
      font-size: 13px;
    }

    /* Chapter separator — compact chip like a date divider in chat */
    .tut-chapter-chip {
      align-self: center; margin: 14px 0 6px;
      padding: 4px 12px; border-radius: 14px;
      font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
      background: rgba(var(--neon), 0.08);
      border: 1px solid rgba(var(--neon), 0.18);
      color: rgba(var(--neon), 0.85);
      animation: float-in 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    .tut-chapter-chip .tut-chapter-chip-num { opacity: 0.55; margin-right: 6px; }

    /* §80.3 — Central Orbio mascot — 1:1 grafika z headera (OrbioLogo + heart-dot),
       s prídavným glow ring-om pre zvýraznenie stavu voice (idle/speaking/listening). */
    .tut-mascot {
      align-self: center; position: relative;
      width: 104px; height: 104px; margin: 18px 0 8px;
      display: flex; align-items: center; justify-content: center;
      animation: float-in 0.45s cubic-bezier(0.4,0,0.2,1);
    }
    .tut-mascot-ring {
      width: 84px; height: 84px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: radial-gradient(circle at 50% 50%, rgba(var(--neon), 0.18), rgba(var(--neon), 0.04) 70%, transparent 100%);
      border: 1px solid rgba(var(--neon), 0.25);
      box-shadow: 0 0 22px rgba(var(--neon), 0.18), inset 0 0 10px rgba(var(--neon), 0.06);
      position: relative;
      animation: tut-mascot-breathe 3.6s ease-in-out infinite;
    }
    .tut-mascot-ring::before {
      content: ''; position: absolute; inset: -6px; border-radius: 50%;
      border: 1px solid rgba(var(--neon), 0.18);
      opacity: 0.6;
      animation: tut-mascot-ripple 2.8s ease-out infinite;
    }
    /* Wrapper reusing main-app classes .orbio-heart-logo / .chat-header-logo / .heart-dot
       so the graphic is 1:1 identical to the app header. */
    .tut-mascot-logo { position: relative; display: flex; align-items: center; justify-content: center; }
    .tut-mascot-speaking .tut-mascot-ring {
      border-color: rgba(var(--neon), 0.55);
      box-shadow: 0 0 28px rgba(var(--neon), 0.4), inset 0 0 12px rgba(var(--neon), 0.12);
      animation: tut-mascot-speak 0.9s ease-in-out infinite;
    }
    .tut-mascot-listening .tut-mascot-ring {
      border-color: rgba(16, 217, 129, 0.5);
      box-shadow: 0 0 26px rgba(16, 217, 129, 0.35), inset 0 0 10px rgba(16, 217, 129, 0.1);
    }
    @keyframes tut-mascot-breathe {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.04); }
    }
    @keyframes tut-mascot-speak {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.08); }
    }
    @keyframes tut-mascot-ripple {
      0% { transform: scale(0.94); opacity: 0.6; }
      80% { transform: scale(1.22); opacity: 0; }
      100% { transform: scale(1.22); opacity: 0; }
    }
    @media (max-width: 480px) {
      .tut-mascot { width: 88px; height: 88px; margin: 12px 0 4px; }
      .tut-mascot-ring { width: 72px; height: 72px; }
    }

    /* Inline small typing dots inside bubble — shown while Orbio is still typing next line */
    .tut-chat-typing {
      align-self: flex-start; display: flex; gap: 4px;
      padding: 8px 14px; border-radius: 14px;
      background: var(--glass, rgba(255,255,255,0.03));
      border: 1px solid rgba(255,255,255,0.06);
      border-top-left-radius: 4px;
      animation: float-in 0.3s ease;
    }
    .tut-chat-typing span {
      width: 6px; height: 6px; border-radius: 50%;
      background: rgba(0,212,170,0.6);
      animation: tut-typing 1.3s ease-in-out infinite;
    }
    .tut-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
    .tut-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
    @keyframes tut-typing {
      0%, 100% { opacity: 0.35; transform: translateY(0); }
      50% { opacity: 1; transform: translateY(-3px); }
    }

    /* Bottom input bar — styled like the main chat composer */
    .tut-chat-compose {
      display: flex; align-items: center; gap: 8px; width: 100%;
      max-width: 560px; margin: 10px auto 0;
      padding: 6px 8px; border-radius: 22px;
      background: var(--glass, rgba(255,255,255,0.03));
      border: 1px solid rgba(var(--neon), 0.18);
      box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    }
    .tut-chat-compose-input {
      flex: 1; min-width: 0; padding: 10px 14px; border-radius: 16px;
      border: none; background: transparent; color: var(--text); font-size: 14px;
      outline: none;
    }
    .tut-chat-compose-input::placeholder { color: var(--text-muted); }
    .tut-chat-compose-send {
      width: 38px; height: 38px; border-radius: 50%; border: none;
      background: linear-gradient(135deg, rgba(var(--neon), 0.9), var(--accent2));
      color: var(--bg); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .tut-chat-compose-send:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 4px 16px rgba(var(--neon), 0.3); }
    .tut-chat-compose-send:disabled { opacity: 0.35; cursor: default; }
    .tut-chat-compose-send svg { width: 16px; height: 16px; }

    /* Voice pill inside tutorial (same vibe as main chat's rtc-floating-pill) */
    .tut-chat-voice-status {
      align-self: center; display: inline-flex; align-items: center; gap: 8px;
      margin: 4px auto 0; padding: 5px 12px; border-radius: 14px;
      background: rgba(var(--neon), 0.08);
      border: 1px solid rgba(var(--neon), 0.2);
      color: var(--accent); font-size: 11px; letter-spacing: 0.6px;
      text-transform: uppercase;
    }
    .tut-chat-voice-status.recording {
      background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.3); color: #ff8a8a;
    }
    .tut-chat-voice-status.speaking {
      background: rgba(0,212,170,0.14); border-color: rgba(0,212,170,0.4);
    }
    .tut-chat-voice-status .tut-chat-voice-wave {
      display: inline-flex; gap: 2px; align-items: center;
    }
    .tut-chat-voice-status .tut-chat-voice-wave span {
      display: inline-block; width: 2px; height: 10px; border-radius: 1px;
      background: currentColor; animation: tut-voice-wave 1.1s ease-in-out infinite;
    }
    .tut-chat-voice-status .tut-chat-voice-wave span:nth-child(2) { animation-delay: 0.1s; height: 14px; }
    .tut-chat-voice-status .tut-chat-voice-wave span:nth-child(3) { animation-delay: 0.2s; height: 8px; }
    .tut-chat-voice-status .tut-chat-voice-wave span:nth-child(4) { animation-delay: 0.3s; height: 12px; }
    .tut-chat-voice-status .tut-chat-voice-wave span:nth-child(5) { animation-delay: 0.4s; height: 9px; }
    @keyframes tut-voice-wave {
      0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
      50% { transform: scaleY(1); opacity: 1; }
    }

    /* When chat-mode is active, old center-aligned narrate/step blocks collapse */
    .tut-chat-mode .tut-step {
      max-width: 560px; text-align: left; animation: none;
    }
    .tut-chat-mode .tut-narrate { display: none; } /* moved into bubbles */
    .tut-chat-mode .tut-title { display: none; }
    .tut-chat-mode .tut-chapter-header { display: none; }
    .tut-chat-mode .tut-chapter-icon { display: none; }
    .tut-chat-mode .tut-logo-wrap { display: none; }
    .tut-chat-mode .tut-typing-dots { display: none; }

    @media (max-width: 480px) {
      .tut-chat-bubble { font-size: 13.5px; padding: 10px 13px; }
      .tut-chat-avatar { width: 30px; height: 30px; border-radius: 9px; }
      .tut-chapter-chip { font-size: 10px; padding: 3px 10px; }
    }

    /* Chapter feature icon */
    .tut-chapter-icon {
      width: 48px; height: 48px; margin-bottom: 16px;
      animation: tut-chapter-icon-glow 3s ease-in-out infinite;
    }
    .tut-chapter-icon svg { width: 48px; height: 48px; color: var(--accent); }

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

    /* 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: 18px 8px; border-radius: 16px;
      border: 1px solid rgba(var(--neon), 0.14);
      background: rgba(var(--neon), 0.03); cursor: pointer; transition: all 0.25s;
      min-height: 84px; justify-content: center;
    }
    .tut-species-card:hover { background: rgba(var(--neon), 0.07); border-color: rgba(var(--neon), 0.25); transform: translateY(-2px); }
    .tut-species-card.selected { background: rgba(var(--neon), 0.12); border-color: var(--accent); box-shadow: 0 0 20px rgba(var(--neon), 0.18); }
    .tut-species-card svg { width: 48px; height: 48px; color: rgba(136,153,179,0.85); 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: 14px 18px; border-radius: 14px;
      border: 1px solid rgba(var(--neon), 0.1); background: var(--input-bg);
      color: var(--text); font-size: 15px; 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: 20px; }
    .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); }

    /* Back button — návrat na predchádzajúcu kapitolu */
    .tut-back-btn {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(var(--neon), 0.06); color: var(--text-dim);
      border: 1px solid rgba(var(--neon), 0.18); border-radius: 999px;
      padding: 10px 16px; min-height: 44px; font-size: 13px; font-weight: 500;
      cursor: pointer; transition: all 0.2s;
    }
    .tut-back-btn:hover {
      background: rgba(var(--neon), 0.12);
      border-color: rgba(var(--neon), 0.3);
      color: var(--text);
    }
    .tut-back-btn svg { opacity: 0.8; }

    /* 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;
    }

    /* Voice guide button */
    .tut-voice-btn {
      position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
      border-radius: 50%; border: 1px solid rgba(var(--neon), 0.2);
      background: rgba(var(--neon), 0.06); color: var(--accent);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      z-index: 10; transition: all 0.3s;
    }
    .tut-voice-btn:hover { background: rgba(var(--neon), 0.12); border-color: rgba(var(--neon), 0.4); }
    .tut-voice-btn.active {
      background: rgba(var(--neon), 0.15); border-color: var(--accent);
      animation: tut-voice-pulse 2s ease-in-out infinite;
    }
    .tut-voice-btn svg { width: 18px; height: 18px; }

    /* §80.4 — Exit tutorial button (top-left, X icon) */
    .tut-exit-btn {
      position: absolute; top: 16px; left: 16px; width: 40px; height: 40px;
      border-radius: 50%; border: 1px solid rgba(var(--neon), 0.18);
      background: rgba(10, 14, 26, 0.55); color: var(--text-dim);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      z-index: 10; transition: all 0.2s;
      backdrop-filter: blur(6px);
    }
    .tut-exit-btn:hover {
      background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4);
      color: #ff6b6b;
    }
    .tut-exit-btn svg { width: 18px; height: 18px; }

    /* Live mic indicator during tutorial — user can ask Orbio questions at any time */
    .tut-mic-live {
      position: absolute; top: 22px; right: 68px;
      display: flex; align-items: center; gap: 6px;
      padding: 4px 10px; border-radius: 14px;
      background: rgba(var(--neon), 0.10);
      border: 1px solid rgba(var(--neon), 0.25);
      color: var(--accent); font-size: 11px; letter-spacing: 0.3px;
      z-index: 10; pointer-events: none;
      animation: tut-narrate-in 0.4s ease;
    }
    .tut-mic-dot {
      display: inline-block; width: 7px; height: 7px; border-radius: 50%;
      background: rgba(var(--neon), 1);
      box-shadow: 0 0 6px rgba(var(--neon), 0.7);
      animation: heartbeat-alive 1.6s ease-in-out infinite;
    }
    .tut-mic-label { opacity: 0.85; }
    @media (max-width: 480px) {
      .tut-mic-live { right: 62px; font-size: 10px; padding: 3px 8px; }
    }

    /* Voice listening indicator */
    .tut-voice-indicator {
      display: flex; align-items: center; gap: 8px; padding: 6px 14px;
      border-radius: 20px; background: rgba(var(--neon), 0.08);
      border: 1px solid rgba(var(--neon), 0.15); margin-top: 12px;
      font-size: 12px; color: var(--accent); animation: tut-narrate-in 0.3s ease;
    }
    .tut-voice-indicator .dot {
      width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
      animation: tut-typing 1.2s ease-in-out infinite;
    }

    /* §80.8 — Language picker on Chapter 0 */
    .tut-lang-picker {
      display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
      margin: 6px auto 14px; max-width: 360px;
      animation: tut-card-enter 0.45s ease;
    }
    .tut-lang-pill {
      min-width: 56px; padding: 8px 12px; border-radius: 999px;
      font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
      background: rgba(var(--neon), 0.04);
      border: 1px solid rgba(var(--neon), 0.12);
      color: var(--text-dim);
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .tut-lang-pill:hover {
      background: rgba(var(--neon), 0.09);
      border-color: rgba(var(--neon), 0.28);
      transform: translateY(-1px);
    }
    .tut-lang-pill.active {
      background: rgba(var(--neon), 0.16);
      border-color: var(--accent);
      color: var(--accent);
      box-shadow: 0 0 18px rgba(var(--neon), 0.22);
    }
    .tut-lang-pill .tut-lang-flag {
      font-size: 14px; line-height: 1;
    }
    /* §155 first release — disabled state pre neaktívne jazyky (CZ/PL/HU/DE/ES/FR) */
    .tut-lang-pill:disabled,
    .tut-lang-pill.is-disabled {
      opacity: 0.32;
      color: rgba(232, 244, 248, 0.3);
      border-color: rgba(255, 255, 255, 0.04);
      background: rgba(15, 32, 53, 0.25);
      cursor: not-allowed;
      pointer-events: none;
      filter: grayscale(1);
      transform: none;
      box-shadow: none;
    }
    .tut-lang-pill:disabled:hover,
    .tut-lang-pill.is-disabled:hover {
      background: rgba(15, 32, 53, 0.25);
      border-color: rgba(255, 255, 255, 0.04);
      transform: none;
    }

    /* §80.8 — Flash preview (mini 1:1 screen frame that Orbio "shows") */
    .tut-flash-preview {
      width: 100%; max-width: 300px; margin: 6px auto 14px;
      align-self: center;
      animation: tut-flash-pop 0.5s cubic-bezier(0.2, 0.9, 0.35, 1.15);
    }
    @keyframes tut-flash-pop {
      0% { opacity: 0; transform: scale(0.92) translateY(6px); }
      60% { opacity: 1; transform: scale(1.02) translateY(-1px); }
      100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    .tut-flash-frame {
      position: relative;
      padding: 10px 10px 14px;
      border-radius: 22px;
      background: linear-gradient(180deg, rgba(12,18,28,0.92), rgba(7,11,18,0.96));
      border: 1px solid rgba(var(--neon), 0.22);
      box-shadow: 0 10px 40px rgba(0,0,0,0.45), 0 0 25px rgba(var(--neon), 0.15);
      overflow: hidden;
    }
    .tut-flash-notch {
      width: 70px; height: 4px; border-radius: 999px;
      background: rgba(var(--neon), 0.22);
      margin: 0 auto 8px;
    }
    .tut-flash-label {
      font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--accent); text-align: center; margin-bottom: 6px;
      opacity: 0.85;
    }
    .tut-flash-body {
      border-radius: 14px;
      background: rgba(5,8,14,0.6);
      padding: 10px;
      min-height: 160px;
      display: flex; flex-direction: column; gap: 8px;
      border: 1px solid rgba(var(--neon), 0.08);
    }
    /* Mini chat (flash/vet/voice previews) */
    .tut-flash-chat-row { display: flex; gap: 6px; align-items: flex-end; }
    .tut-flash-chat-row.user { flex-direction: row-reverse; }
    .tut-flash-avatar {
      width: 22px; height: 22px; border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, rgba(var(--neon),0.55), rgba(var(--neon),0.15));
      border: 1px solid rgba(var(--neon), 0.35);
      flex-shrink: 0;
    }
    .tut-flash-avatar.user {
      background: linear-gradient(135deg, var(--accent), rgba(var(--neon),0.5));
      font-size: 10px; color: #fff; font-weight: 600;
      display: flex; align-items: center; justify-content: center;
    }
    .tut-flash-bubble {
      max-width: 70%; padding: 6px 10px; border-radius: 12px;
      font-size: 10.5px; line-height: 1.35;
      background: rgba(var(--neon), 0.06);
      border: 1px solid rgba(var(--neon), 0.14);
      color: var(--text);
    }
    .tut-flash-chat-row.user .tut-flash-bubble {
      background: linear-gradient(135deg, rgba(var(--neon), 0.22), rgba(var(--neon), 0.1));
      border-color: rgba(var(--neon), 0.32);
    }
    .tut-flash-photo {
      width: 80px; height: 56px; border-radius: 8px;
      background: linear-gradient(135deg, #223a4a, #0b1622);
      border: 1px solid rgba(var(--neon), 0.25);
      position: relative; overflow: hidden;
    }
    .tut-flash-photo::after {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08), transparent 60%);
    }
    /* Mini calendar */
    .tut-flash-cal-head {
      display: flex; justify-content: space-between; align-items: center;
      font-size: 10px; color: var(--text-dim); padding: 0 2px 4px;
      border-bottom: 1px solid rgba(var(--neon), 0.1);
    }
    .tut-flash-cal-head strong { color: var(--accent); font-size: 11px; font-weight: 600; }
    .tut-flash-cal-grid {
      display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
    }
    .tut-flash-cal-cell {
      aspect-ratio: 1; border-radius: 5px;
      font-size: 9px; display: flex; align-items: center; justify-content: center;
      color: var(--text-dim);
      background: rgba(var(--neon), 0.03);
    }
    .tut-flash-cal-cell.today {
      background: var(--accent); color: #fff; font-weight: 600;
    }
    .tut-flash-cal-cell.event {
      background: rgba(var(--neon), 0.18);
      border: 1px solid rgba(var(--neon), 0.35);
      color: var(--accent);
    }
    .tut-flash-event-row {
      display: flex; align-items: center; gap: 6px;
      padding: 4px 6px; border-radius: 6px;
      background: rgba(var(--neon), 0.05);
      font-size: 10px; color: var(--text);
    }
    .tut-flash-event-dot {
      width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    }
    /* Vet badge */
    .tut-flash-vet-badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 2px 7px; border-radius: 999px;
      font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
      background: rgba(255, 107, 107, 0.18);
      border: 1px solid rgba(255, 107, 107, 0.45);
      color: #ff9a9a;
    }
    .tut-flash-vet-grade {
      width: 18px; height: 18px; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 10px; font-weight: 700; color: #fff;
    }
    .tut-flash-vet-grade.a { background: #10d981; }
    .tut-flash-vet-grade.b { background: #feca57; }
    .tut-flash-vet-grade.c { background: #ff9f43; }
    /* Voice bar */
    .tut-flash-voice-bar {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 10px; border-radius: 14px;
      background: rgba(255, 159, 67, 0.08);
      border: 1px solid rgba(255, 159, 67, 0.28);
    }
    .tut-flash-voice-mic {
      width: 26px; height: 26px; border-radius: 50%;
      background: linear-gradient(135deg, #ff9f43, #ff6b6b);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 10px rgba(255,159,67,0.45);
    }
    .tut-flash-voice-mic svg { width: 14px; height: 14px; color: #fff; }
    .tut-flash-voice-wave {
      flex: 1; display: flex; align-items: center; gap: 2px; height: 18px;
    }
    .tut-flash-voice-wave span {
      flex: 1; background: #ff9f43; border-radius: 2px;
      animation: tut-flash-wave 1s ease-in-out infinite;
    }
    .tut-flash-voice-wave span:nth-child(2) { animation-delay: 0.12s; }
    .tut-flash-voice-wave span:nth-child(3) { animation-delay: 0.24s; }
    .tut-flash-voice-wave span:nth-child(4) { animation-delay: 0.36s; }
    .tut-flash-voice-wave span:nth-child(5) { animation-delay: 0.48s; }
    @keyframes tut-flash-wave {
      0%, 100% { height: 20%; opacity: 0.5; }
      50% { height: 100%; opacity: 1; }
    }
    /* World memory grid */
    .tut-flash-grid3 {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
    }
    .tut-flash-tile {
      aspect-ratio: 1; border-radius: 7px;
      background: linear-gradient(135deg, rgba(254,202,87,0.14), rgba(var(--neon),0.06));
      border: 1px solid rgba(var(--neon), 0.18);
      display: flex; align-items: center; justify-content: center;
      color: #feca57;
    }
    .tut-flash-tile svg { width: 18px; height: 18px; opacity: 0.85; }

    /* Feature showcase card */
    .tut-feature-card {
      width: 100%; max-width: 340px; padding: 20px; border-radius: 16px;
      background: rgba(var(--neon), 0.03); border: 1px solid rgba(var(--neon), 0.1);
      text-align: left; margin-bottom: 16px; animation: tut-card-enter 0.5s ease;
    }
    .tut-feature-row {
      display: flex; align-items: center; gap: 12px; padding: 8px 0;
      font-size: 13px; color: var(--text-dim); line-height: 1.5;
    }
    .tut-feature-row svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
    .tut-feature-row strong { color: var(--text); font-weight: 500; }

    /* Typing dots */
    .tut-typing-dots { display: flex; gap: 4px; justify-content: center; margin: 12px 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 card */
    .tut-summary-card {
      width: 100%; max-width: 360px; padding: 20px;
      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: 7px 0; font-size: 13px; color: var(--text-dim);
    }
    .tut-summary-row svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

    /* 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;
      /* §94.30 — chat-header MUSÍ byť vysoko nad .menu-tab-panel (z:99) aby
         tooltipy (data-orbio-tip) neprekrývala roletka subtabu. */
      z-index: 2000;
      background: transparent;
      flex-shrink: 0;
      /* Nechceme clippping — tooltipy ikon sú vizuálne mimo box */
      overflow: visible;
    }

    .chat-header-row {
      display: flex;
      align-items: center;
      width: var(--header-width, 100%);
      gap: 12px;
      /* §94.25 — min-height zabezpečí, že roll-out menu ikony (s aurou 38x38 +
         icon-label ~8px + breathing) majú dostatok vertikálneho priestoru a
         aury nie sú orezané pri zobrazení za hamburgerom. */
      min-height: 48px;
      /* ═══ Header icons zostávajú v medium veľkosti aj pri small téme ═══ */
      zoom: var(--header-zoom, 1);
    }

    .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;
    }

    /* ═══ CRM Bridge Indicator — zelený blikajúci badge ═══ */
    .crm-bridge-indicator {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.5px;
      color: #10b981;
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.3);
      border-radius: 6px;
      animation: crm-indicator-pulse 2s ease-in-out infinite;
      margin-left: 4px;
      position: relative;
      top: -1px;
    }
    .crm-bridge-indicator::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #10b981;
      margin-right: 5px;
      box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
      animation: crm-dot-pulse 1.5s ease-in-out infinite;
    }
    @keyframes crm-indicator-pulse {
      0%, 100% { opacity: 0.85; }
      50% { opacity: 1; border-color: rgba(16, 185, 129, 0.6); }
    }
    @keyframes crm-dot-pulse {
      0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
      50% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.9); }
    }

    /* §101l — orbio.vet indikátor (v2): neónová modrá žiara na avatar ikone pred bublinou.
       Žiadny potvrdzovací dialog, žiadna verbálna anunciácia — len ikona Orbia pred bublinou
       dostane pulzujúci modrý neón-efekt, keď server auto-escaluje do klinického režimu (Opus).
       Vizuál: ring glow + avatar border color + mierne zvýšená saturácia. */
    .msg-avatar-ring.ring-orbiovet {
      position: relative;
      animation: orbiovet-ring-pulse 1.9s ease-in-out infinite;
      box-shadow:
        0 0 10px rgba(59, 130, 246, 0.65),
        0 0 22px rgba(59, 130, 246, 0.35),
        inset 0 0 8px rgba(123, 182, 255, 0.25);
      border-radius: 50%;
    }
    .msg-avatar-ring.ring-orbiovet::before {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1.5px solid rgba(59, 130, 246, 0.75);
      box-shadow: 0 0 8px rgba(123, 182, 255, 0.6);
      pointer-events: none;
      animation: orbiovet-ring-edge 1.9s ease-in-out infinite;
    }
    .avatar-orbio.avatar-orbiovet {
      border-color: rgba(123, 182, 255, 0.55) !important;
      background: radial-gradient(circle at 35% 30%, rgba(59, 130, 246, 0.18), rgba(13, 24, 48, 0.45)) !important;
    }
    @keyframes orbiovet-ring-pulse {
      0%, 100% {
        box-shadow:
          0 0 8px rgba(59, 130, 246, 0.5),
          0 0 18px rgba(59, 130, 246, 0.25),
          inset 0 0 6px rgba(123, 182, 255, 0.2);
      }
      50% {
        box-shadow:
          0 0 16px rgba(59, 130, 246, 0.95),
          0 0 30px rgba(123, 182, 255, 0.55),
          inset 0 0 10px rgba(123, 182, 255, 0.4);
      }
    }
    @keyframes orbiovet-ring-edge {
      0%, 100% { opacity: 0.65; transform: scale(1); }
      50%      { opacity: 1;    transform: scale(1.05); }
    }

    .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-gradient, 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 {
      /* §94.30 — z-index:50 musí byť nad .tc-timeline (z-index:1), aby tooltipy
         (data-orbio-tip) renderované pod ikonou neboli prekryté timeline zoznamom. */
      position: relative; z-index: 50;
      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);
      overflow: visible;
    }
    .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;
      /* §116 — redukcia medzier ~30% */
      padding: 8px 12px 56px;
      -webkit-overflow-scrolling: touch;
    }
    /* §176.50 — Peter: opacita timeline čiar a polí +35% (0.06→0.41 atď.) */
    /* §176.56 — Peter: T-shape uzávery timeline hore aj dole (priamky cez vertical line) aby
       timeline nepôsobil "open-ended". Horizontálna ciarka width 14px (parita s month-sep dash),
       vycentrovaná na vertical line (line center at x=32.5px, element starts at margin-left 32 →
       cap.left = -7.5px from element → cap center at (-7.5 + 7) = -0.5 = line ✓). */
    .tc-timeline-line {
      position: relative;
      margin-left: 32px;
      padding-left: 20px;
      border-left: 1px solid rgba(0, 212, 170, 0.41);
    }
    /* §176.59 — Peter: top T-cap odstránený (mesačný pill je ukončenie zhora). Bottom cap ostáva. */
    .tc-timeline-line::after {
      content: '';
      position: absolute;
      left: -7.5px;
      width: 14px;
      height: 1px;
      background: rgba(0, 212, 170, 0.41);
      border-radius: 1px;
      bottom: 0;
    }

    /* ── Date separator ── */
    /* ── Month separator ── */
    /* §176.48 — Peter: header nadpisy z neon na biele pre lepšiu čitateľnosť */
    /* §176.50 — Peter: opacita polí mesiacov +35% (bg 0.04→0.39, border 0.1→0.45, ::before 0.3→0.65) */
    /* §176.57 REVERT — Peter: gulickovaný collapsed state odstránený, vrátený jednotný pill štýl pre obe stavy. */
    /* §176.58 — Peter: pill margin-left z -20 na -26.5 → pill LEFT EDGE sa zarovnáva s left edge guliciek timeline (-.tc-dot left:-26.5).
                 Vizuálne pill „začína na úrovni" guliciek namiesto byť mierne posunutý doprava od nich. */
    /* §176.59 — Peter: pill background OPAQUE (cez pole nebudú presvitať struktury timeline line).
                 Layered background: teal overlay 0.39 + solid page bg (--bg) → kombinovaná farba opacity 1 → line za pillom úplne zakrytá. */
    .tc-month-sep {
      position: relative;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #ffffff;
      /* §116 — redukcia medzier ~30% */
      margin: 22px 0 7px -26.5px;
      padding: 6px 10px 6px 38px;
      background:
        linear-gradient(rgba(0, 212, 170, 0.39), rgba(0, 212, 170, 0.39)),
        var(--bg, #0a1628);
      border-radius: 8px;
      border-top: 1px solid rgba(0, 212, 170, 0.45);
    }
    /* §176.53 — Peter: ciarka v plicku mesiaca vycentrovaná na timeline line.
       §176.58 — recompute po posune pillu na -26.5: pill teraz at parent-left 26.5,
       line at 32.5 → pill-relative 32.5 - 26.5 = 6px. Dash width 14 → left = 6 - 7 = -1px. */
    .tc-month-sep::before {
      content: '';
      position: absolute;
      left: -1px; top: 50%;
      width: 14px; height: 2px;
      background: rgba(0,212,170,0.65);
      border-radius: 1px;
    }
    .tc-month-sep:first-child {
      margin-top: 4px;
      border-top: none;
    }

    /* §176.50 — Peter: opacita day separator +35% (color 0.4→0.75, border 0.08→0.43, ::before 0.2→0.55) */
    .tc-date-sep {
      position: relative;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: rgba(136,153,179,0.75);
      /* §116 — redukcia medzier ~30% */
      margin: 14px 0 7px -20px;
      padding: 3px 10px 3px 38px;
      border-top: 1px solid rgba(136,153,179,0.43);
    }
    /* §176.53 — Peter: ciarka v day separatori vycentrovaná na timeline line.
       Dash width 10px → dash.left = -0.5 - 5 = -5.5px → dash center at -0.5 = line ✓
       §176.54 — Peter: vertikálne aligned s border-top (long horizontal line) — predtým top:50% (middle),
       teraz top:-1px → dash sits over the border line. Vizuálne continuous line cez timeline.
       §176.55 — Peter: rovnaká farba ako border-top (long line) → continuous line, žiadny color mismatch.
       Pôvodne dash bol teal rgba(0,212,170,0.55), border je gray rgba(136,153,179,0.43). Teraz oba gray. */
    .tc-date-sep::before {
      content: '';
      position: absolute;
      left: -5.5px; top: -1px;
      width: 10px; height: 1px;
      background: rgba(136,153,179,0.43);
      border-radius: 1px;
    }

    /* ── Timeline Node (gulička) ── */
    .tc-node {
      position: relative;
      /* §116 — redukcia medzier ~30% */
      margin-bottom: 4px;
      cursor: pointer;
      padding: 7px 10px;
      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 */
    /* §176.50 — Peter: vycentruj guličku timeline na stred čiary
       §176.53 — re-recompute s globálnym `* { box-sizing: border-box }` (line 96):
       width:12px = TOTAL (vrátane bordera), NIE content-only. Predtým §176.50 počítal s content-box.
       Geometria:
         line center = 32.5px od parent
         node content left = 32 + 1 (border) + 20 (padding) = 53
         dot.left = -26.5 → dot edge at 53-26.5 = 26.5 → center (12/2=6) at 32.5 ✓
         avatar.left = -36.5 → avatar edge at 16.5 → center (32/2=16) at 32.5 ✓ */
    .tc-dot {
      position: absolute;
      left: -26.5px; top: 14px;
      width: 12px; height: 12px;
      border-radius: 50%;
      border: 2px solid;
      background: var(--bg);
      transition: all 0.3s;
    }
    .tc-dot.tc-avatar {
      width: 32px; height: 32px;
      left: -36.5px; top: 6px;
      border: 1.5px solid;
      overflow: hidden;
      display: flex; align-items: center; justify-content: center;
      background: rgba(15,23,42,0.8);
    }
    .tc-dot.tc-avatar img {
      width: 100%; height: 100%;
      object-fit: cover; border-radius: 50%;
    }
    .tc-dot.tc-avatar svg {
      width: 18px; height: 18px;
      opacity: 0.7;
    }
    .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 — §101i: rozmery zjednotené s prihlasovacou obrazovkou ── */
    .lang-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 6px; width: 100%;
    }
    .lang-grid .lang-chip {
      min-width: 36px;
      height: 30px;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 15px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-align: center;
      display: inline-flex;
      align-items: center;
      justify-content: 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;
      position: relative; /* §101l — kotva pre .orbiovet-pulse-dot */
    }

    .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;
    }
    /* ═══ §94 Vision RTG label — overlay badge na RTG/DICOM snímke v chate ═══ */
    .vision-rtg-wrap {
      position: relative;
      display: inline-block;
      line-height: 0;
    }
    .vision-rtg-wrap .msg-image-preview {
      border: 1px solid rgba(0, 212, 170, 0.35);
      box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.18), 0 4px 16px rgba(0, 212, 170, 0.12);
    }
    .vision-rtg-label {
      position: absolute;
      top: 8px;
      left: 8px;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 9px 4px 7px;
      font-size: 10.5px;
      font-weight: 600;
      font-family: 'Inter', -apple-system, sans-serif;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      color: #001a15;
      background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 212, 170, 0.35), 0 0 0 1px rgba(0, 212, 170, 0.5);
      pointer-events: none;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      animation: vision-rtg-pulse 2.2s ease-in-out infinite;
    }
    .vision-rtg-label svg {
      width: 11px;
      height: 11px;
      flex-shrink: 0;
    }
    .vision-rtg-label .vrtg-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #001a15;
      box-shadow: 0 0 6px rgba(0,26,21,0.6);
      animation: vision-rtg-dot 1.4s ease-in-out infinite;
    }
    @keyframes vision-rtg-pulse {
      0%, 100% { box-shadow: 0 2px 8px rgba(0, 212, 170, 0.35), 0 0 0 1px rgba(0, 212, 170, 0.5); }
      50% { box-shadow: 0 2px 14px rgba(0, 212, 170, 0.55), 0 0 0 1px rgba(0, 212, 170, 0.7); }
    }
    @keyframes vision-rtg-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.7); }
    }
    .vision-rtg-label.is-dicom {
      background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
      box-shadow: 0 2px 8px rgba(79, 195, 247, 0.35), 0 0 0 1px rgba(79, 195, 247, 0.5);
    }
    .vision-rtg-label.is-dicom .vrtg-dot { background: #001a15; }
    html[data-theme="svetlo"] .vision-rtg-label {
      color: #003a30;
      background: linear-gradient(135deg, #4fe3bd 0%, #00d4aa 100%);
    }
    @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;
    }
    /* §94.33 — contained variant: efekt len v rámci rodi\u010dovsk\u00e9ho modal-u
       (napr. .rtg-modal-shell). Žiadny fullscreen overlay, žiadny backdrop blur. */
    .orbio-spinner-overlay.orbio-spinner-contained {
      position: absolute; inset: 0;
      background: rgba(10, 22, 40, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border-radius: inherit;
      z-index: 5;
    }
    .orbio-spinner-overlay.orbio-spinner-contained .orbio-spinner-neural {
      width: 220px; height: 220px;
      max-width: 80%; max-height: 60%;
    }
    .orbio-spinner-overlay.orbio-spinner-contained .orbio-spinner-text {
      font-size: 12px; margin-top: 10px;
    }
    .orbio-spinner-overlay.orbio-spinner-contained .orbio-spinner-dots {
      margin-top: 10px;
    }
    @keyframes orbio-fade-in { from { opacity: 0; } to { opacity: 1; } }
    /* §94.19 — Neural-network spinner container (canvas). Nahradzuje pôvodný
       kruhový border-spin (ktorý bol percepovaný ako "krútiaci symbol"). */
    .orbio-spinner-neural {
      position: relative;
      width: 360px; height: 360px;
      max-width: 70vw; max-height: 70vw;
      display: flex; align-items: center; justify-content: center;
      filter: drop-shadow(0 0 24px rgba(0, 212, 170, 0.18));
    }
    .orbio-spinner-neural canvas {
      width: 100%; height: 100%; display: block;
    }
    /* Legacy CSS classes (neprepoužívané po §94.19) — zachované prázdne pre kompatibilitu.
       Žiadny efekt, no ak niektorý zabudnutý markup ich použije, nesplaší kruhový spin. */
    .orbio-spinner-ring, .orbio-spinner-elephant { }
    /* Keyframes orbio-ring-spin zachované — stále používané napr. .reminder-super-ring (non-vision). */
    @keyframes orbio-ring-spin { to { transform: rotate(360deg); } }
    .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; } }

    /* ═══ Reminder Modal ═══ */
    .reminder-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000;
      background: rgba(5, 12, 25, 0.88); backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
      padding: 60px 16px 40px;
      animation: rmOverlayIn 0.25s ease-out;
      overflow-y: auto;
    }
    .reminder-modal-overlay.closing { animation: rmOverlayOut 0.2s ease forwards; }
    @keyframes rmOverlayIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes rmOverlayOut { from { opacity: 1; } to { opacity: 0; } }
    .reminder-modal-panel {
      width: 100%; max-width: 420px;
      display: flex; flex-direction: column; gap: 10px;
      animation: rmPanelIn 0.3s ease-out;
    }
    .reminder-modal-panel.closing { animation: rmPanelOut 0.2s ease forwards; }
    @keyframes rmPanelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes rmPanelOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }
    .rm-header {
      display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px;
      border-bottom: 1px solid rgba(255,159,67,0.15);
    }
    .rm-title { font-size: 16px; font-weight: 700; color: #ff9f43; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
    .rm-close {
      width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(255,255,255,0.06);
      color: rgba(224,232,240,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.15s;
    }
    .rm-close:hover { background: rgba(255,100,100,0.1); color: rgba(255,100,100,0.7); }
    .rm-item {
      display: flex; align-items: center; gap: 12px; padding: 12px 14px;
      background: rgba(255,255,255,0.04); border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.06);
      cursor: pointer; transition: all 0.15s;
    }
    .rm-item:hover { background: rgba(255,159,67,0.08); border-color: rgba(255,159,67,0.2); }
    .rm-item-icon {
      width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .rm-item-body { flex: 1; min-width: 0; }
    .rm-item-title { font-size: 13px; font-weight: 600; color: rgba(232,244,248,0.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rm-item-sub { font-size: 10.5px; color: rgba(224,232,240,0.45); margin-top: 2px; }
    .rm-item-arrow { color: rgba(224,232,240,0.25); flex-shrink: 0; }
    .rm-empty { text-align: center; padding: 30px 0; color: rgba(224,232,240,0.35); font-size: 13px; }

    /* Calendar event blinking highlight */
    @keyframes cal-event-blink {
      0%, 100% { border-color: rgba(255,159,67,0.2); box-shadow: none; }
      50% { border-color: rgba(255,159,67,0.8); box-shadow: 0 0 16px rgba(255,159,67,0.4), 0 0 4px rgba(255,159,67,0.2); }
    }
    .cal-event-blink {
      animation: cal-event-blink 0.8s ease-in-out 4;
      border: 2px solid rgba(255,159,67,0.8) !important;
    }

    .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;
    }
    /* §118 — Year view: aspect-ratio lock + responsive font sizes */
    .cal-year-grid {
      container-type: inline-size;
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 12px 8px; padding: 4px 2px;
    }
    .cal-year-month {
      cursor: pointer; border-radius: 8px; padding: 4px 3px;
      transition: all 0.2s; aspect-ratio: 1 / 1.28; overflow: hidden;
      border: 1px solid transparent;
    }
    .cal-year-month.current {
      background: rgba(0,212,170,0.08); border-color: rgba(0,212,170,0.25);
    }
    .cal-year-month-name {
      font-size: clamp(7px, 4.5cqi, 13px); font-weight: 700; margin-bottom: 2px;
      color: #ee5a6f;
    }
    .cal-year-month:not(.current) .cal-year-month-name { opacity: 0.7; }
    .cal-year-day-hdr {
      font-size: clamp(5px, 2.8cqi, 9px); text-align: center; font-weight: 600;
      color: rgba(255,255,255,0.25);
    }
    .cal-year-day-hdr.wkend { color: rgba(238,90,111,0.4); }
    .cal-year-day {
      font-size: clamp(5px, 2.8cqi, 9px); text-align: center; padding: 1px 0;
      position: relative; font-weight: 400; color: rgba(255,255,255,0.55);
    }
    .cal-year-day.wkend { color: rgba(238,90,111,0.5); }
    .cal-year-day.has-event { color: #00d4aa; font-weight: 700; }
    .cal-year-day.is-today { color: #fff; font-weight: 700; }
    .cal-year-day.other { color: rgba(255,255,255,0.12); }
    .cal-year-dot-event {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
      width: clamp(8px, 5cqi, 14px); height: clamp(8px, 5cqi, 14px);
      border-radius: 50%; background: rgba(0,212,170,0.15); border: 1px solid rgba(0,212,170,0.3); z-index: 0;
    }
    .cal-year-dot-today {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
      width: clamp(9px, 5.2cqi, 15px); height: clamp(9px, 5.2cqi, 15px);
      border-radius: 50%; background: #ee5a6f; z-index: 0;
    }
    /* svetlo theme */
    html[data-theme="svetlo"] .cal-year-day { color: #374151; }
    html[data-theme="svetlo"] .cal-year-day.wkend { color: rgba(238,90,111,0.6); }
    html[data-theme="svetlo"] .cal-year-day.other { color: #d1d5db; }
    html[data-theme="svetlo"] .cal-year-day-hdr { color: rgba(0,0,0,0.25); }
    html[data-theme="svetlo"] .cal-year-day-hdr.wkend { color: rgba(238,90,111,0.5); }
    html[data-theme="svetlo"] .cal-year-month.current { background: rgba(14,116,144,0.06); border-color: rgba(14,116,144,0.2); }

    .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: none; /* desktop: OFF */
      gap: 6px;
      padding: 4px 0 2px 0;
      flex-wrap: nowrap;
      justify-content: flex-start;
      overflow-x: auto;
      scrollbar-width: none;
      animation: quick-replies-in 0.3s ease;
      background: transparent;
      margin: 0;
    }
    @media (max-width: 768px) {
      .quick-replies { display: flex; } /* mobile: ON */
    }
    .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: 10px;
      padding: 4px 12px;
      color: rgba(0, 212, 170, 0.8);
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
      letter-spacing: 0.2px;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .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);
    }

    /* ═══ Vision Triage Dialog ═══ */
    .vision-triage {
      background: rgba(0,212,170,0.04);
      border: 1px solid rgba(0,212,170,0.12);
      border-radius: 16px;
      padding: 14px;
      margin: 8px 12px;
      animation: quick-replies-in 0.3s ease;
    }
    /* §94.26 — RTG dialog: loading spinner pre background vision analýzu */
    @keyframes rtg-spin { to { transform: rotate(360deg); } }
    .rtg-analysis-spinner {
      display: inline-block;
      width: 14px;
      height: 14px;
      border: 2px solid rgba(59,130,246,0.25);
      border-top-color: rgba(59,130,246,0.9);
      border-radius: 50%;
      animation: rtg-spin 0.8s linear infinite;
      vertical-align: middle;
    }
    .vision-triage-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      font-size: 12px;
      font-weight: 600;
      color: rgba(0,212,170,0.9);
      letter-spacing: 0.3px;
    }
    .vision-triage-cats {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 12px;
    }
    .vision-triage-cat {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(0,212,170,0.08);
      border: 1px solid rgba(0,212,170,0.15);
      border-radius: 8px;
      padding: 3px 10px;
      font-size: 10px;
      color: rgba(0,212,170,0.8);
      letter-spacing: 0.2px;
    }
    .vision-triage-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .vision-triage-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(0,212,170,0.06);
      border: 1px solid rgba(0,212,170,0.18);
      border-radius: 12px;
      padding: 12px 14px;
      color: rgba(255,255,255,0.9);
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
      width: 100%;
    }
    .vision-triage-btn:hover {
      background: rgba(0,212,170,0.14);
      border-color: rgba(0,212,170,0.3);
      transform: translateY(-1px);
    }
    .vision-triage-btn:active {
      transform: scale(0.98);
    }
    .vision-triage-btn.vet-btn {
      background: rgba(59,130,246,0.06);
      border-color: rgba(59,130,246,0.18);
    }
    .vision-triage-btn.vet-btn:hover {
      background: rgba(59,130,246,0.14);
      border-color: rgba(59,130,246,0.3);
    }
    .vision-triage-btn-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .vision-triage-btn-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .vision-triage-btn-text strong {
      font-size: 12px;
      font-weight: 600;
    }
    .vision-triage-btn-text span {
      font-size: 10px;
      opacity: 0.6;
    }
    .vision-triage-dismiss {
      display: flex;
      justify-content: center;
      margin-top: 8px;
    }
    .vision-triage-dismiss button {
      background: none;
      border: none;
      color: rgba(255,255,255,0.3);
      font-size: 10px;
      cursor: pointer;
      padding: 4px 12px;
    }
    .vision-triage-dismiss button:hover {
      color: rgba(255,255,255,0.6);
    }

    /* §94.21 — Triage Review (A-path) + Pet Select (B-path) */
    .triage-review, .triage-pet-select {
      padding: 12px 4px;
      animation: fadeInUp 0.3s ease;
    }
    .triage-review-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #00d4aa;
      letter-spacing: 0.2px;
    }
    .triage-review-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 10px;
    }
    .triage-review-label {
      font-size: 10px;
      opacity: 0.7;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .triage-review-input {
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid rgba(0,212,170,0.22);
      background: rgba(0,212,170,0.04);
      color: #e0e8f0;
      font-size: 13px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.15s ease;
    }
    .triage-review-input:focus {
      border-color: rgba(0,212,170,0.55);
      background: rgba(0,212,170,0.08);
    }
    html[data-theme="svetlo"] .triage-review-input {
      color: #111827;
      border-color: rgba(14,116,144,0.22);
      background: rgba(14,116,144,0.04);
    }
    .triage-pet-pills, .triage-pet-grid {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .triage-pet-pill {
      padding: 6px 12px;
      border-radius: 16px;
      border: 1px solid rgba(0,212,170,0.22);
      background: rgba(0,212,170,0.04);
      color: #cfd6df;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .triage-pet-pill.active {
      background: rgba(0,212,170,0.2);
      border-color: rgba(0,212,170,0.55);
      color: #e0e8f0;
      box-shadow: 0 0 8px rgba(0,212,170,0.25);
    }
    .triage-pet-grid {
      margin-bottom: 12px;
    }
    .triage-pet-card {
      flex: 1 1 120px;
      min-width: 120px;
      padding: 10px;
      border-radius: 10px;
      border: 1px solid rgba(59,130,246,0.22);
      background: rgba(59,130,246,0.04);
      color: #cfd6df;
      cursor: pointer;
      text-align: left;
      transition: all 0.15s ease;
    }
    .triage-pet-card:hover { background: rgba(59,130,246,0.10); }
    .triage-pet-card.active {
      background: rgba(59,130,246,0.18);
      border-color: rgba(59,130,246,0.55);
      color: #e0e8f0;
      box-shadow: 0 0 10px rgba(59,130,246,0.25);
    }
    .triage-pet-card-name { font-size: 13px; font-weight: 600; }
    .triage-pet-card-sub { font-size: 10px; opacity: 0.7; margin-top: 2px; }
    .triage-pet-guest {
      border-style: dashed;
      border-color: rgba(168,85,247,0.30);
      background: rgba(168,85,247,0.04);
    }
    .triage-pet-guest:hover { background: rgba(168,85,247,0.10); }
    .triage-pet-guest.active {
      background: rgba(168,85,247,0.18);
      border-color: rgba(168,85,247,0.55);
      box-shadow: 0 0 10px rgba(168,85,247,0.25);
    }
    .triage-review-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 14px;
    }
    .triage-review-cancel {
      padding: 8px 16px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: transparent;
      color: rgba(224,232,240,0.7);
      font-size: 13px;
      cursor: pointer;
      font-family: inherit;
    }
    .triage-review-cancel:hover { background: rgba(255,255,255,0.06); color: #e0e8f0; }
    .triage-review-save {
      padding: 8px 18px;
      border-radius: 8px;
      border: 1px solid rgba(0,212,170,0.55);
      background: rgba(0,212,170,0.18);
      color: #00d4aa;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
    }
    .triage-review-save:hover { background: rgba(0,212,170,0.28); box-shadow: 0 0 12px rgba(0,212,170,0.30); }
    .triage-review-save:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
    .triage-review-save-blue {
      border-color: rgba(59,130,246,0.55);
      background: rgba(59,130,246,0.18);
      color: #3b82f6;
    }
    .triage-review-save-blue:hover { background: rgba(59,130,246,0.28); box-shadow: 0 0 12px rgba(59,130,246,0.30); }
    html[data-theme="svetlo"] .triage-review-title { color: #0e7490; }
    html[data-theme="svetlo"] .triage-pet-pill { color: #334155; }
    html[data-theme="svetlo"] .triage-pet-pill.active { color: #111827; }
    html[data-theme="svetlo"] .triage-pet-card { color: #334155; border-color: rgba(14,116,144,0.22); }
    html[data-theme="svetlo"] .triage-pet-card.active { color: #111827; }
    html[data-theme="svetlo"] .triage-review-cancel { color: rgba(30,41,59,0.7); border-color: rgba(30,41,59,0.18); }
    html[data-theme="svetlo"] .triage-review-cancel:hover { color: #111827; background: rgba(30,41,59,0.06); }

    /* ═══ 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: 6px 12px;
      padding-bottom: max(6px, env(safe-area-inset-bottom));
      border-top: none;
      background: transparent;
      overflow: visible;
    }

    .chat-input-row {
      display: flex;
      align-items: flex-end;
      gap: 6px;
      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: 10px 14px;
      border-radius: 20px;
      border: 1.5px solid rgba(0, 212, 170, 0.18);
      background: rgba(var(--bg-rgb), 0.35);
      color: #e8f4f8;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      resize: none;
      outline: none;
      min-height: 40px;
      max-height: 160px;
      overflow-y: auto;
      transition: border-color 0.6s ease, box-shadow 0.6s ease;
      position: relative;
      z-index: 2;
      -webkit-appearance: none;
      box-shadow: 0 0 8px rgba(0, 212, 170, 0.06);
      line-height: 1.4;
    }

    .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);
    }

    /* ═══ WhatsApp-style input bar ═══ */
    .chat-plus-btn {
      width: calc(34px * var(--ui-scale, 1)); height: calc(34px * var(--ui-scale, 1)); border-radius: 50%; border: none;
      background: none; color: rgba(0, 212, 170, 0.5);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; transition: all 0.2s; touch-action: manipulation;
      margin-bottom: 3px;
    }
    .chat-plus-btn:hover { color: rgba(0, 212, 170, 0.8); background: rgba(0, 212, 170, 0.08); }
    .chat-plus-btn svg { width: calc(22px * var(--ui-scale, 1)); height: calc(22px * var(--ui-scale, 1)); }

    /* Input bubble wrapper — textarea only, icons moved outside */
    .input-bubble-wrap {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: flex-end;
      position: relative;
    }
    .input-bubble-wrap .chat-textarea {
      padding-right: 14px;
    }
    .input-bubble-icons {
      display: flex; align-items: center; gap: 2px; flex-shrink: 0;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }
    .input-bubble-icons.hidden {
      opacity: 0; pointer-events: none; transform: scale(0.8);
      width: 0; overflow: hidden; gap: 0;
    }
    .input-bubble-cam {
      width: calc(34px * var(--ui-scale, 1)); height: calc(34px * var(--ui-scale, 1));
      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: calc(18px * var(--ui-scale, 1)); height: calc(18px * var(--ui-scale, 1)); 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; } }
    .input-bubble-mic {
      width: calc(34px * var(--ui-scale, 1)); height: calc(34px * var(--ui-scale, 1)); border-radius: 50%; border: none;
      background: none; color: rgba(0, 212, 170, 0.5);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.2s ease;
    }
    .input-bubble-mic:hover { color: rgba(0,212,170,0.7); background: rgba(0,212,170,0.08); }
    .input-bubble-mic svg { width: calc(18px * var(--ui-scale, 1)); height: calc(18px * var(--ui-scale, 1)); }

    /* Send button — WhatsApp style, appears only when typing */
    .send-btn-wa {
      width: calc(34px * var(--ui-scale, 1)); height: calc(34px * var(--ui-scale, 1)); border-radius: 50%; border: none;
      background: rgba(0, 212, 170, 0.2); color: rgba(0, 212, 170, 0.8);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; transition: all 0.2s; touch-action: manipulation;
      box-shadow: 0 2px 8px rgba(0,212,170,0.15);
      animation: sendBtnIn 0.15s ease-out;
      margin-bottom: 3px;
    }
    @keyframes sendBtnIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .send-btn-wa:hover { background: rgba(0,212,170,0.3); }
    .send-btn-wa:active { transform: scale(0.92); }
    .send-btn-wa svg { width: calc(18px * var(--ui-scale, 1)); height: calc(18px * var(--ui-scale, 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; overflow-y: auto; min-width: 160px;
      max-height: min(320px, 50vh);
      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(10, 22, 40, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      display: flex; align-items: center; justify-content: center;
    }
    /* §94.31 — RTG modal overlay: RTG dialog (rozpoznaná snímka, pet picker, štýl,
       analýza status, A/B) sa zobrazuje v modali nad chat-area.
       Počas analýzy je chat-area (slonik + neurons) skrytá — efekt len v modali. */
    .rtg-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9990;
      background: rgba(10, 22, 40, 0.78);
      backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
      display: flex; align-items: center; justify-content: center;
      padding: 16px; overflow-y: auto;
    }
    .rtg-modal-shell {
      position: relative;
      width: 100%; max-width: 520px;
      max-height: calc(100vh - 32px);
      border-radius: 20px; overflow: hidden;
      border: 1px solid rgba(59,130,246,0.25);
      box-shadow: 0 16px 56px rgba(0,0,0,0.55);
      background: linear-gradient(180deg, rgba(12,24,42,0.95), rgba(8,16,30,0.97));
      animation: float-in 0.25s ease-out;
      display: flex; flex-direction: column;
    }
    .rtg-modal-shell canvas.rtg-modal-bg {
      position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55;
      pointer-events: none;
    }
    .rtg-modal-shell .vision-triage {
      position: relative; z-index: 1;
      border-left: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      margin: 0 !important;
      padding: 18px 18px 12px !important;
      overflow-y: auto;
    }
    /* Svetlá téma — modal shell */
    html[data-theme="svetlo"] .rtg-modal-overlay {
      background: rgba(232,236,244,0.82);
    }
    html[data-theme="svetlo"] .rtg-modal-shell {
      background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,236,244,0.98));
      border-color: rgba(59,130,246,0.25);
    }
    /* Počas RTG modal-u skryj chat-area welcome canvas (slonik + neurons).
       Efekt analýzy je izolovaný v modal canvas. */
    body.rtg-modal-open .welcome-neural-canvas,
    body.rtg-modal-open .chat-welcome-mascot,
    body.rtg-modal-open .info-bubble-zone {
      display: none !important;
    }
    .drop-modal {
      position: relative; width: 340px; max-height: 85vh;
      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;
      display: flex; flex-direction: column;
    }
    .drop-modal canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
    .drop-modal-inner { position: relative; z-index: 1; display: flex; flex-direction: column; }
    .drop-modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 20px 12px;
    }
    .drop-modal-title { font-size: 17px; font-weight: 600; color: #e0e8f0; letter-spacing: 0.3px; }
    .drop-modal-close {
      width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,80,80,0.25);
      background: rgba(255,80,80,0.12); color: #ff8888; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; font-size: 16px; line-height: 1;
    }
    .drop-modal-close:hover { background: rgba(255,80,80,0.25); }
    .drop-zone {
      margin: 8px 20px; border: 2px dashed rgba(0,212,170,0.25); border-radius: 14px;
      padding: 32px 16px; cursor: pointer; transition: all 0.2s; min-height: 90px;
      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.06);
    }
    .drop-zone.drag-over { box-shadow: inset 0 0 20px rgba(0,212,170,0.08); }
    .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 20px 12px; max-height: 260px; 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: 12px 20px 18px;
      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 {
      border-color: rgba(0,60,100,0.14);
      box-shadow: 0 12px 48px rgba(0,30,60,0.15);
    }
    html[data-theme="svetlo"] .drop-modal canvas { opacity: 0.15; }
    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-overlay { background: rgba(220,230,245,0.5); }

    /* §94.21/§94.23 — Unified Upload Resolution Tier Picker (uniform chip size) */
    .upload-tier-picker {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px 10px;
      flex-wrap: wrap;
    }
    .upload-tier-chip {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      /* §94.23 — FIXED uniform dimensions for all three tiers */
      width: 86px;
      height: 56px;
      padding: 6px 8px;
      box-sizing: border-box;
      border-radius: 10px;
      border: 1px solid rgba(0,212,170,0.18);
      background: rgba(0,212,170,0.04);
      color: #cfd6df;
      cursor: pointer;
      transition: all 0.15s ease;
      gap: 2px;
      flex: 0 0 auto;
    }
    .upload-tier-chip:hover { background: rgba(0,212,170,0.10); }
    .upload-tier-chip.active {
      background: rgba(0,212,170,0.20);
      border-color: rgba(0,212,170,0.55);
      box-shadow: 0 0 12px rgba(0,212,170,0.25);
      color: #e0e8f0;
    }
    .upload-tier-chip.recommended::after {
      content: '★';
      position: absolute;
      top: -6px;
      right: -4px;
      font-size: 10px;
      color: #f59e0b;
    }
    .upload-tier-chip-label { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.1; }
    .upload-tier-chip-sub { font-size: 9px; opacity: 0.7; line-height: 1.1; }
    .upload-tier-hint {
      /* §94.23 — hint on its OWN line below chips (flex-basis 100% → wrap) */
      flex: 1 0 100%;
      margin-left: 0;
      margin-top: 2px;
      font-size: 10px;
      color: rgba(224,232,240,0.55);
      line-height: 1.2;
      max-width: none;
      text-align: left;
    }
    html[data-theme="svetlo"] .upload-tier-chip { color: #334155; border-color: rgba(14,116,144,0.22); background: rgba(14,116,144,0.04); }
    html[data-theme="svetlo"] .upload-tier-chip:hover { background: rgba(14,116,144,0.10); }
    html[data-theme="svetlo"] .upload-tier-chip.active { color: #111827; background: rgba(14,116,144,0.18); border-color: rgba(14,116,144,0.55); }
    html[data-theme="svetlo"] .upload-tier-hint { color: rgba(30,41,59,0.65); }

    /* §101m — Pet picker v drop-modali: ku komu sa priloha priradí (alebo "Bez zvieraťa") */
    .drop-pet-picker {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 4px 14px 8px;
    }
    .drop-pet-picker-label {
      font-size: 10px;
      color: rgba(224,232,240,0.55);
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .drop-pet-picker-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .drop-pet-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px 4px 4px;
      border-radius: 999px;
      border: 1px solid rgba(0,212,170,0.18);
      background: rgba(0,212,170,0.04);
      color: #cfd6df;
      cursor: pointer;
      transition: all 0.15s ease;
      font-size: 12px;
      line-height: 1;
      max-width: 160px;
    }
    .drop-pet-chip:hover { background: rgba(0,212,170,0.10); }
    .drop-pet-chip.active {
      background: rgba(0,212,170,0.20);
      border-color: rgba(0,212,170,0.55);
      box-shadow: 0 0 10px rgba(0,212,170,0.25);
      color: #e0e8f0;
    }
    .drop-pet-chip-avatar {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,212,170,0.12);
      flex-shrink: 0;
    }
    .drop-pet-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .drop-pet-chip-avatar svg { width: 14px; height: 14px; opacity: 0.8; }
    .drop-pet-chip-avatar-none {
      background: rgba(148,163,184,0.12);
      color: rgba(224,232,240,0.6);
    }
    .drop-pet-chip-name {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 110px;
      font-weight: 500;
    }
    .drop-pet-chip-none {
      border-color: rgba(148,163,184,0.22);
      background: rgba(148,163,184,0.05);
    }
    .drop-pet-chip-none:hover { background: rgba(148,163,184,0.12); }
    .drop-pet-chip-none.active {
      background: rgba(148,163,184,0.20);
      border-color: rgba(148,163,184,0.55);
      box-shadow: 0 0 10px rgba(148,163,184,0.20);
    }
    html[data-theme="svetlo"] .drop-pet-picker-label { color: rgba(30,41,59,0.65); }
    html[data-theme="svetlo"] .drop-pet-chip { color: #334155; border-color: rgba(14,116,144,0.22); background: rgba(14,116,144,0.04); }
    html[data-theme="svetlo"] .drop-pet-chip:hover { background: rgba(14,116,144,0.10); }
    html[data-theme="svetlo"] .drop-pet-chip.active { color: #0e7490; background: rgba(14,116,144,0.18); border-color: rgba(14,116,144,0.55); }
    html[data-theme="svetlo"] .drop-pet-chip-avatar { background: rgba(14,116,144,0.10); }
    html[data-theme="svetlo"] .drop-pet-chip-none { border-color: rgba(100,116,139,0.30); background: rgba(100,116,139,0.05); }
    html[data-theme="svetlo"] .drop-pet-chip-none.active { background: rgba(100,116,139,0.20); border-color: rgba(100,116,139,0.55); }

    /* §94.23 — Health-record labels v drop-modal file preview */
    .drop-file-labels {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 6px;
      padding: 0 2px;
      justify-content: center;
      max-width: 100%;
    }
    .drop-file-label-primary {
      display: inline-flex;
      align-items: center;
      padding: 2px 7px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.2px;
      background: rgba(0,212,170,0.14);
      color: #00d4aa;
      border: 1px solid rgba(0,212,170,0.35);
      line-height: 1.3;
    }
    .drop-file-label-kind {
      display: inline-flex;
      align-items: center;
      padding: 2px 6px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 600;
      background: rgba(148,163,184,0.12);
      color: #cbd5e1;
      border: 1px solid rgba(148,163,184,0.28);
      line-height: 1.3;
    }
    .drop-file-label-kind.kind-rtg { background: rgba(34,197,94,0.10); color: #86efac; border-color: rgba(34,197,94,0.30); }
    .drop-file-label-kind.kind-ekg { background: rgba(244,114,182,0.10); color: #f9a8d4; border-color: rgba(244,114,182,0.30); }
    .drop-file-label-kind.kind-usg { background: rgba(125,211,252,0.10); color: #bae6fd; border-color: rgba(125,211,252,0.30); }
    .drop-file-label-kind.kind-blood { background: rgba(248,113,113,0.10); color: #fca5a5; border-color: rgba(248,113,113,0.30); }
    .drop-file-label-kind.kind-report { background: rgba(251,191,36,0.10); color: #fcd34d; border-color: rgba(251,191,36,0.30); }
    .drop-file-label-visionrtg {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 7px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.3px;
      background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(16,185,129,0.18));
      color: #4ade80;
      border: 1px solid rgba(34,197,94,0.55);
      box-shadow: 0 0 8px rgba(34,197,94,0.25);
      line-height: 1.3;
    }
    html[data-theme="svetlo"] .drop-file-label-primary { background: rgba(14,116,144,0.10); color: #0e7490; border-color: rgba(14,116,144,0.35); }
    html[data-theme="svetlo"] .drop-file-label-kind { background: rgba(100,116,139,0.10); color: #475569; border-color: rgba(100,116,139,0.28); }
    html[data-theme="svetlo"] .drop-file-label-kind.kind-rtg { background: rgba(22,163,74,0.10); color: #15803d; border-color: rgba(22,163,74,0.35); }
    html[data-theme="svetlo"] .drop-file-label-kind.kind-ekg { background: rgba(219,39,119,0.08); color: #be185d; border-color: rgba(219,39,119,0.30); }
    html[data-theme="svetlo"] .drop-file-label-kind.kind-usg { background: rgba(14,165,233,0.08); color: #0369a1; border-color: rgba(14,165,233,0.30); }
    html[data-theme="svetlo"] .drop-file-label-kind.kind-blood { background: rgba(220,38,38,0.08); color: #991b1b; border-color: rgba(220,38,38,0.30); }
    html[data-theme="svetlo"] .drop-file-label-kind.kind-report { background: rgba(202,138,4,0.08); color: #854d0e; border-color: rgba(202,138,4,0.30); }
    html[data-theme="svetlo"] .drop-file-label-visionrtg { background: linear-gradient(135deg, rgba(22,163,74,0.18), rgba(5,150,105,0.14)); color: #15803d; border-color: rgba(22,163,74,0.50); box-shadow: 0 0 6px rgba(22,163,74,0.20); }
    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); }

    /* §100 — Attachment v3 group labels (vision=green, medical=red). Klikateľný toggle. */
    .drop-file-group-label {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.3px;
      cursor: pointer;
      user-select: none;
      transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
      line-height: 1.3;
    }
    .drop-file-group-label:hover { transform: translateY(-1px); }
    .drop-file-group-label:active { transform: translateY(0); }
    .drop-file-group-label.group-vision {
      background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(16,185,129,0.18));
      color: #4ade80;
      border: 1px solid rgba(34,197,94,0.55);
      box-shadow: 0 0 8px rgba(34,197,94,0.22);
    }
    .drop-file-group-label.group-medical {
      background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(220,38,38,0.18));
      color: #fca5a5;
      border: 1px solid rgba(239,68,68,0.55);
      box-shadow: 0 0 8px rgba(239,68,68,0.22);
    }
    .drop-file-group-label.group-unknown {
      background: rgba(148,163,184,0.14);
      color: #cbd5e1;
      border: 1px solid rgba(148,163,184,0.35);
    }
    .drop-file-group-label .dot-indicator {
      width: 6px; height: 6px; border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 4px currentColor;
    }
    .drop-file-group-label.classifying .dot-indicator {
      animation: classify-pulse 1s ease-in-out infinite;
    }
    @keyframes classify-pulse {
      0%, 100% { opacity: 0.3; }
      50%      { opacity: 1; }
    }
    html[data-theme="svetlo"] .drop-file-group-label.group-vision {
      background: linear-gradient(135deg, rgba(22,163,74,0.18), rgba(5,150,105,0.14));
      color: #15803d;
      border-color: rgba(22,163,74,0.50);
    }
    html[data-theme="svetlo"] .drop-file-group-label.group-medical {
      background: linear-gradient(135deg, rgba(220,38,38,0.18), rgba(185,28,28,0.14));
      color: #b91c1c;
      border-color: rgba(220,38,38,0.50);
    }

    /* §100 — Gallery item group badge (green=vision, red=medical) */
    .gallery-group-badge {
      position: absolute;
      top: 6px;
      left: 6px;
      padding: 2px 7px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.3px;
      z-index: 2;
      pointer-events: none;
    }
    .gallery-group-badge.group-vision {
      background: linear-gradient(135deg, rgba(34,197,94,0.85), rgba(16,185,129,0.78));
      color: #fff;
      box-shadow: 0 2px 6px rgba(34,197,94,0.28);
    }
    .gallery-group-badge.group-medical {
      background: linear-gradient(135deg, rgba(239,68,68,0.85), rgba(220,38,38,0.78));
      color: #fff;
      box-shadow: 0 2px 6px rgba(239,68,68,0.28);
    }

    .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;
      /* §94.25 — vertikálny padding + min-height zabezpečia že aura (38x38 + glow)
         nie je vertikálne urezaná a tooltipy majú priestor pod ikonami. */
      padding: 8px 0;
      min-height: 60px;
      background: none;
      max-width: calc(100% - 100px);
      /* §94.25 — overflow-y: visible povolí aury-glow box-shadow bleed + data-orbio-tip
         tooltip vyskočiť pod ikonu bez clippingu.
         §94.34 BUG FIX — CSS spec: ak je jedna os overflow != visible, druhá
         je VŽDY clipnutá (overflow-x:auto → overflow-y efektívne clipped).
         Preto na touch zariadeniach zostáva auto-scroll (tooltipy sa nezobrazujú
         v pointer:coarse), ale na hover-capable (desktop) forsírujeme overflow:visible,
         aby sa data-orbio-tip label zobrazil POD ikonou NAD roletkou subtabu
         (bol prekrytý kvôli overflow clippingu parent kontajnera). */
      overflow-x: auto; overflow-y: visible;
      scrollbar-width: none; -ms-overflow-style: none;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }
    .menu-h-icons::-webkit-scrollbar { display: none; }
    /* §94.34 — na desktop / hover-capable zariadeniach odstráň scroll-clipping
       aby tooltipy (data-orbio-tip::after) neboli orezané parent kontajnerom.
       Touch zariadenia (pointer:coarse) toto pravidlo nedostanú a scroll im
       zostane funkčný. Tooltipy na touch-e stejne nezobrazujeme
       (hover:hover gate na [data-orbio-tip]:hover::after). */
    @media (hover: hover) and (pointer: fine) {
      .menu-h-icons {
        overflow: visible;
      }
    }
    .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); }

    /* §159.4.2 — Tamagotchi mood aura okolo pet-tile fotky.
       Pulzujúca box-shadow v 3 farbách: happy=zelená, ok=oranžová, sad=červená.
       Aplikuje sa na .menu-h-icon keď má triedu .pet-mood-<mood>. */
    @keyframes pet-mood-pulse-happy {
      0%, 100% { box-shadow: 0 0 10px 2px rgba(0,212,170,0.35), 0 0 20px 4px rgba(0,212,170,0.15); }
      50%      { box-shadow: 0 0 18px 4px rgba(0,212,170,0.55), 0 0 32px 8px rgba(0,212,170,0.25); }
    }
    @keyframes pet-mood-pulse-ok {
      0%, 100% { box-shadow: 0 0 10px 2px rgba(255,159,67,0.35), 0 0 20px 4px rgba(255,159,67,0.15); }
      50%      { box-shadow: 0 0 18px 4px rgba(255,159,67,0.55), 0 0 32px 8px rgba(255,159,67,0.25); }
    }
    @keyframes pet-mood-pulse-sad {
      0%, 100% { box-shadow: 0 0 10px 2px rgba(238,90,111,0.35), 0 0 20px 4px rgba(238,90,111,0.15); }
      50%      { box-shadow: 0 0 18px 4px rgba(238,90,111,0.55), 0 0 32px 8px rgba(238,90,111,0.25); }
    }
    .pet-mood-happy { animation: pet-mood-pulse-happy 2.4s ease-in-out infinite !important; }
    .pet-mood-ok    { animation: pet-mood-pulse-ok 2.4s ease-in-out infinite !important; }
    .pet-mood-sad   { animation: pet-mood-pulse-sad 2.4s ease-in-out infinite !important; }
    /* §174.1 — care icon urgent pulse: keď biometer je red, icon v pickeri bliká červeno.
       Prestane blikať po pridaní entry tohto typu (backend biometer sa vráti do green). */
    @keyframes care-icon-urgent-pulse {
      0%, 100% { box-shadow: 0 0 8px 1px rgba(238,90,111,0.4), 0 0 16px 3px rgba(238,90,111,0.18); border-color: rgba(238,90,111,0.7) !important; }
      50%      { box-shadow: 0 0 16px 3px rgba(238,90,111,0.65), 0 0 28px 6px rgba(238,90,111,0.3); border-color: rgba(238,90,111,0.95) !important; }
    }
    .care-icon-urgent { animation: care-icon-urgent-pulse 1.8s ease-in-out infinite !important; }
    @keyframes care-icon-soon-pulse {
      0%, 100% { box-shadow: 0 0 6px 1px rgba(255,159,67,0.3); }
      50%      { box-shadow: 0 0 12px 2px rgba(255,159,67,0.5); }
    }
    .care-icon-soon { animation: care-icon-soon-pulse 2.4s ease-in-out infinite !important; }
    /* §176 TC-F — per-ikona scope bar pulzovanie: warn (oranžová) < 40%, crit (červená) < 20% */
    @keyframes care-icon-pulse-warn {
      0%, 100% { box-shadow: 0 0 6px 1px rgba(255,159,67,0.35); border-color: rgba(255,159,67,0.55) !important; }
      50%      { box-shadow: 0 0 12px 2px rgba(255,159,67,0.6); border-color: rgba(255,159,67,0.85) !important; }
    }
    .care-icon-pulse-warn { animation: care-icon-pulse-warn 2.2s ease-in-out infinite; }
    @keyframes care-icon-pulse-crit {
      0%, 100% { box-shadow: 0 0 8px 1px rgba(238,90,111,0.45), 0 0 14px 3px rgba(238,90,111,0.2); border-color: rgba(238,90,111,0.75) !important; }
      50%      { box-shadow: 0 0 16px 3px rgba(238,90,111,0.7), 0 0 26px 5px rgba(238,90,111,0.32); border-color: rgba(238,90,111,0.95) !important; }
    }
    .care-icon-pulse-crit { animation: care-icon-pulse-crit 1.5s ease-in-out infinite; }
    /* §176.30 — Advise pulz: jemný cyan hint pre najslabšiu potrebu keď mood je 'ok' (45-75%).
       Užívateľ má vždy call-to-action ktorou môže mood zlepšiť. */
    @keyframes care-icon-pulse-advise {
      0%, 100% { box-shadow: 0 0 4px 1px rgba(0,212,170,0.25); border-color: rgba(0,212,170,0.40) !important; }
      50%      { box-shadow: 0 0 9px 2px rgba(0,212,170,0.45); border-color: rgba(0,212,170,0.70) !important; }
    }
    .care-icon-pulse-advise { animation: care-icon-pulse-advise 2.8s ease-in-out infinite; }
    /* §176.7 TC-H — need bar blink keď scope je crit (zviera potrebuje akciu). */
    @keyframes need-bar-blink-crit {
      0%, 100% { opacity: 0.55; box-shadow: 0 0 2px rgba(238,90,111,0.4); }
      50%      { opacity: 1; box-shadow: 0 0 8px rgba(238,90,111,0.85), 0 0 14px rgba(238,90,111,0.4); }
    }
    /* §176.4 TC-F — custom hover label pre DNES ikony (pekný pop-up namiesto natívneho title).
       Zobrazenie: tmavé pozadie, cyan border, malý fade-in z dola. */
    .care-icon-tile[data-label] { position: relative; overflow: visible; }
    .care-icon-tile[data-label]::after {
      content: attr(data-label);
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: rgba(10,22,40,0.96);
      border: 1px solid rgba(0,212,170,0.35);
      color: rgba(232,244,248,0.95);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.2px;
      padding: 5px 9px;
      border-radius: 7px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 100;
      box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 10px rgba(0,212,170,0.12);
    }
    .care-icon-tile[data-label]:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    /* Šipka pod tooltipom smerujúca na ikonu */
    .care-icon-tile[data-label]::before {
      content: '';
      position: absolute;
      bottom: calc(100% + 1px);
      left: 50%;
      transform: translateX(-50%);
      width: 0; height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid rgba(0,212,170,0.35);
      opacity: 0;
      transition: opacity 0.18s ease;
      z-index: 101;
      pointer-events: none;
    }
    .care-icon-tile[data-label]:hover::before { opacity: 1; }
    /* Mini smajlík pod menom zvieratka. */
    .pet-mood-emoji { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: middle; }
    /* §176.41 — Peter: smajlík +25% (17 → 21px); §176.43 — ďalšie +25% (21 → 26px) */
    .pet-mood-emoji svg { width: 26px; height: 26px; }
    .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 {
      min-width: 40px; border: none;
      background: none;
      color: rgba(224,232,240,0.55); cursor: pointer;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
      transition: color 0.25s; position: relative;
      opacity: 0; transform: translateX(20px);
      animation: menu-h-roll 0.25s ease-out forwards;
      touch-action: manipulation; padding: 0;
    }
    .menu-h-icon .icon-aura {
      width: 38px; height: 38px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.25s; background: none;
    }
    .menu-h-icon .icon-label {
      font-size: var(--icon-label-size, 8px); opacity: 0.5; letter-spacing: 0.3px; line-height: 1; white-space: nowrap;
    }
    .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); }
    }
    /* §176.46 — Peter: pet-subtab-btn ikony medzi zvieratami +25% (42→52 / 38→48 / scale 1.05→1.31) */
    .pet-subtab-btn {
      min-width: 52px; border: none; background: none;
      color: rgba(224,232,240,0.7);
      cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
      position: relative; transition: color 0.2s; box-sizing: border-box; padding: 0;
    }
    .pet-subtab-btn .icon-aura {
      width: 48px; height: 48px; border-radius: 12px; aspect-ratio: 1;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; background: none;
    }
    .pet-subtab-btn .icon-label {
      font-size: var(--icon-label-size, 8px); opacity: 0.75; letter-spacing: 0.3px; line-height: 1; white-space: nowrap;
    }
    .pet-subtab-btn:hover { color: rgba(232,244,248,0.85); }
    .pet-subtab-btn:hover .icon-aura { background: rgba(255,255,255,0.04); }
    .pet-subtab-btn:active .icon-aura { transform: scale(0.92); }
    .pet-subtab-btn.active .icon-aura { background: rgba(0,212,170,0.06); }

    /* §155.18 — Pulzujúci alert aura okolo subtab ikony ak v danom subtabe existuje výstraha.
       High (červený) = kritická interakcia/kontraindikácia, expirovaná vakcína.
       Medium (žltý) = off-label, unverified, blížiaci sa expiry, stredná interakcia.
       Aura pulzuje pomaly aby pritiahla pozornosť bez rušenia. */
    .pet-subtab-btn.alert-high .icon-aura {
      box-shadow: 0 0 0 2px rgba(239,68,68,0.55), 0 0 16px rgba(239,68,68,0.4) !important;
      background: rgba(239,68,68,0.12) !important;
      animation: subtab-alert-pulse-high 1.8s ease-in-out infinite;
    }
    .pet-subtab-btn.alert-medium .icon-aura {
      box-shadow: 0 0 0 2px rgba(255,159,67,0.5), 0 0 14px rgba(255,159,67,0.35) !important;
      background: rgba(255,159,67,0.1) !important;
      animation: subtab-alert-pulse-medium 2.2s ease-in-out infinite;
    }
    /* Ak je subtab aktívny + má alert, zvýraznený ešte silnejšie */
    .pet-subtab-btn.active.alert-high .icon-aura {
      box-shadow: 0 0 0 2px rgba(239,68,68,0.7), 0 0 22px rgba(239,68,68,0.55) !important;
      background: rgba(239,68,68,0.18) !important;
    }
    .pet-subtab-btn.active.alert-medium .icon-aura {
      box-shadow: 0 0 0 2px rgba(255,159,67,0.65), 0 0 20px rgba(255,159,67,0.5) !important;
      background: rgba(255,159,67,0.16) !important;
    }
    @keyframes subtab-alert-pulse-high {
      0%, 100% { box-shadow: 0 0 0 2px rgba(239,68,68,0.55), 0 0 12px rgba(239,68,68,0.3); }
      50% { box-shadow: 0 0 0 2px rgba(239,68,68,0.85), 0 0 24px rgba(239,68,68,0.65); }
    }
    @keyframes subtab-alert-pulse-medium {
      0%, 100% { box-shadow: 0 0 0 2px rgba(255,159,67,0.45), 0 0 10px rgba(255,159,67,0.25); }
      50% { box-shadow: 0 0 0 2px rgba(255,159,67,0.7), 0 0 20px rgba(255,159,67,0.5); }
    }
    @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;
    }
    /* §176.63 — Peter: padding-top zväčšený zo 10 na 18 aby detail header neprekrýval s hlavným ORBIO header-om */
    .health-detail-header {
      display: flex; align-items: center; gap: 8px; padding: 18px 12px 10px;
      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; }
    /* §176.62 — Peter: zelené labely +30% opacity pre lepšiu čitateľnosť (0.5 → 0.8) */
    /* §176.65 — Peter: fonts +25% pre lepšiu čitateľnosť detail panel (10→12, 13→16) */
    .health-detail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(0,212,170,0.8); }
    .health-detail-value { font-size: 16px; color: rgba(224,232,240,0.85); line-height: 1.4; word-break: break-word; overflow-wrap: break-word; }
    /* §176.61 — Peter: detail polia nikdy nenaťahuj — sizing podľa typu obsahu.
       Date/time majú fixed format → fixed width. Text inputs → intrinsic (size atribút).
       Textarea ostáva full width (long content). */
    /* §176.65 — fonts +25% (13 → 16) */
    .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: 16px; font-family: inherit; outline: none;
      width: auto; max-width: 100%; box-sizing: border-box;
      transition: border-color 0.15s;
    }
    /* §176.65 — width adjusted pre bigger fonts (16px text) */
    .health-detail-input[type="date"] { width: 170px; }
    .health-detail-input[type="time"] { width: 125px; }
    .health-detail-input[type="number"] { width: 100px; }
    .health-detail-input[type="text"],
    .health-detail-input:not([type]) { min-width: 200px; }
    .health-detail-input:focus { border-color: rgba(0,212,170,0.3); }
    /* §176.65 — textarea font +25% (13 → 16) */
    .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: 16px; 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 */
    /* §176.65 — title font +25% (14 → 18) */
    .health-detail-title-input {
      font-size: 18px; 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); }
    /* §176.63 — Peter: date subtitle pod hlavným nadpisom +30% opacity + bigger font (10→12, 0.5→0.8) */
    .health-detail-date-input {
      font-size: 12px; color: rgba(0,212,170,0.8); background: transparent;
      border: none; outline: none; padding: 0; margin: 2px 0 0; width: auto;
      font-family: inherit;
    }
    .health-detail-date-input:focus { color: rgba(0,212,170,1); }
    .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; }
    /* §176.62 — Peter: zelené labely +30% opacity pre lepšiu čitateľnosť (0.4 → 0.7) */
    /* §176.65 — Peter: grid labels + values + inputs fonts +25% (9→11, 12→15) */
    .health-detail-grid-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
      color: rgba(0,212,170,0.7);
    }
    .health-detail-grid-value {
      font-size: 15px; color: rgba(224,232,240,0.8); line-height: 1.3;
      word-break: break-word; overflow-wrap: break-word;
    }
    /* §176.61 — Peter: grid input sizing podľa typu obsahu (date/time fixed, text intrinsic) */
    /* §176.65 — font +25% (12 → 15) */
    .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: 15px; font-family: inherit; outline: none;
      width: auto; max-width: 100%; box-sizing: border-box;
      transition: border-color 0.15s;
    }
    /* §176.65 — grid input width pre bigger fonts (15px) */
    .health-detail-grid-input[type="date"] { width: 160px; }
    .health-detail-grid-input[type="time"] { width: 115px; }
    .health-detail-grid-input[type="number"] { width: 95px; }
    .health-detail-grid-input[type="text"],
    .health-detail-grid-input:not([type]) { min-width: 180px; }
    .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.9); }
    .menu-h-icon:hover .icon-aura { background: rgba(255,255,255,0.06); }
    .menu-h-icon:active .icon-aura { transform: scale(0.92); }
    .menu-h-icon.active { color: rgba(0,212,170,1); }
    .menu-h-icon.active .icon-aura { background: rgba(0,212,170,0.1); box-shadow: 0 0 16px rgba(0,212,170,0.14); }
    .menu-h-icon.active .icon-label { opacity: 0.85; }
    .menu-h-icon.danger { color: rgba(239,68,68,0.4); }
    .menu-h-icon.danger:hover { color: rgba(239,68,68,0.8); }
    .menu-h-icon.danger:hover .icon-aura { background: rgba(239,68,68,0.05); }
    .menu-h-icon svg { width: 22px; height: 22px; }
    .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 ═══ */
    /* §176.40 — Peter: ocean theme roletky -25% transparentnosti (0.82 → 0.87). */
    .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.87);
      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-gradient, 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; }
    /* Settings sub-panel slide-in (ľavá → pravá) */
    @keyframes settings-slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    @keyframes settings-slide-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
    .settings-sub-panel {
      animation: settings-slide-in 0.25s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
    }
    .settings-sub-back {
      display: flex; align-items: center; gap: 8px; padding: 8px 4px; margin-bottom: 6px;
      background: none; border: none; cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 600;
      letter-spacing: 0.3px; transition: opacity 0.15s; font-family: 'Inter', sans-serif;
    }
    .settings-sub-back:hover { opacity: 0.7; }
    .settings-sub-back svg { width: 16px; height: 16px; }
    .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: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,212,170,0.08); }
    .menu-section:last-child { border-bottom: none; margin-bottom: 8px; }
    .menu-section-title {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 1.5px; color: rgba(0,212,170,0.45); margin-bottom: 8px;
      padding-bottom: 4px; border-bottom: 1px solid rgba(0,212,170,0.1);
    }
    .menu-hint {
      font-size: 11px; color: rgba(136,153,179,0.4); line-height: 1.4; margin-top: 2px;
    }

    /* Toggle rows — compact */
    .toggle-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .toggle-row:last-child { border-bottom: none; }
    .toggle-label { font-size: 12.5px; color: rgba(232,244,248,0.8); }
    .toggle-sub { font-size: 10px; color: rgba(136,153,179,0.4); margin-top: 2px; }
    .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 — §101h: zjednotené s theme-chip (48px), desc skrytý v grid móde */
    .personality-grid { display: grid; grid-template-columns: repeat(3, 48px); gap: 8px; max-width: 160px; }
    .personality-card {
      aspect-ratio: 1; padding: 4px 2px; border-radius: 10px;
      border: 1.5px solid transparent; background: rgba(var(--accent-rgb), 0.03);
      text-align: center; cursor: pointer; transition: all 0.2s; touch-action: manipulation;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    }
    .personality-card:hover { background: rgba(var(--accent-rgb), 0.06); }
    .personality-card.active {
      background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.3); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1);
    }
    .personality-card svg { width: 16px; height: 16px; color: rgba(232,244,248,0.5); margin-bottom: 1px; }
    .personality-card.active svg { color: var(--accent); }
    .personality-name { font-size: 8px; font-weight: 600; color: rgba(232,244,248,0.8); margin-bottom: 0; line-height: 1; }
    .personality-card.active .personality-name { color: var(--accent); }
    .personality-desc { display: none; }

    /* 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: 62px; height: 62px; border-radius: 14px;
      background: rgba(15,32,53,0.5); border: none;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .pet-avatar svg { width: 63px; height: 63px; color: rgba(0,212,170,0.85); }
    .dc-pet-icon { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
    .dc-pet-icon svg { width: 85%; height: 85%; }
    .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-gradient, 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.3);
      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: 45px;
        height: 45px;
      }

      .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 — compact on mobile ── */
      .chat-input-area {
        padding: 5px 10px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        position: sticky;
        bottom: 0;
        z-index: 100;
      }

      .chat-textarea {
        min-height: 42px;
        padding: 11px 16px;
        font-size: 16px;
        border-radius: 22px;
      }

      .chat-textarea:focus {
        border-color: rgba(0, 212, 170, 0.45);
        box-shadow: 0 0 14px rgba(0, 212, 170, 0.12), 0 -1px 8px rgba(0, 212, 170, 0.06);
        background: rgba(10, 25, 47, 0.85);
      }

      .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 .fc-action-icon {
        width: 56px; height: 56px;
      }
      .fc-action-card .fc-action-label {
        font-size: 9px;
      }
    }

    @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: 91px; height: 91px; border-radius: 16px; }
      .fc-pet-chip { min-width: 91px; }
      /* §176.44 — Peter: meno zvieraťa +25% (mobile 9.5 → 12px) */
      .fc-pet-chip .fc-pet-name { font-size: 12px; }
    }

    /* ═══ 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: ' OK';
    }
    .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 */

    /* ═══ §79 ORBIO.VET INTEGRATED MODE ═══ */
    .orbio-vet-active .msg-avatar-ring { border-color: rgba(84,160,255,0.5) !important; box-shadow: 0 0 12px rgba(84,160,255,0.25) !important; }
    .orbio-vet-active .msg-avatar.avatar-orbio { box-shadow: 0 0 8px rgba(84,160,255,0.2); }
    .orbio-vet-active .rtc-floating-pill { background: rgba(84,160,255,0.12) !important; border-color: rgba(84,160,255,0.3) !important; }
    .orbio-vet-active .rtc-pill-wave span { background: rgba(84,160,255,0.6) !important; }
    .orbio-vet-active .rtc-pill-status { color: rgba(84,160,255,0.9) !important; }
    .vet-activation-bubble {
      display: flex; align-items: center; gap: 10px; padding: 10px 14px;
      margin: 8px 16px; border-radius: 14px;
      background: linear-gradient(135deg, rgba(84,160,255,0.08), rgba(0,212,170,0.04));
      border: 1px solid rgba(84,160,255,0.2);
      animation: vet-activate-in 0.5s ease;
    }
    @keyframes vet-activate-in {
      from { opacity: 0; transform: translateY(10px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .vet-activation-icon {
      width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
      background: rgba(84,160,255,0.12); display: flex; align-items: center; justify-content: center;
      animation: vet-icon-pulse 2s ease-in-out infinite;
    }
    @keyframes vet-icon-pulse { 0%,100% { box-shadow: 0 0 0 rgba(84,160,255,0); } 50% { box-shadow: 0 0 12px rgba(84,160,255,0.3); } }
    .vet-activation-text { font-size: 11px; color: rgba(224,232,240,0.7); line-height: 1.4; flex: 1; }
    .vet-activation-text strong { color: rgba(84,160,255,0.9); font-weight: 700; }

    /* ORBIO.VET Prompt — ask user for consultation */
    .vet-prompt-box {
      display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
      margin: 8px 16px; border-radius: 14px;
      background: rgba(84,160,255,0.06); border: 1px solid rgba(84,160,255,0.15);
      animation: vet-activate-in 0.4s ease;
    }
    .vet-prompt-text { font-size: 12px; color: rgba(224,232,240,0.7); line-height: 1.5; }
    .vet-prompt-actions { display: flex; gap: 8px; }
    .vet-prompt-btn {
      padding: 6px 16px; border-radius: 8px; font-size: 11px; font-weight: 600;
      cursor: pointer; transition: all 0.2s; border: 1px solid;
    }
    .vet-prompt-btn.primary {
      background: rgba(84,160,255,0.15); border-color: rgba(84,160,255,0.3);
      color: #54a0ff;
    }
    .vet-prompt-btn.primary:hover { background: rgba(84,160,255,0.25); }
    .vet-prompt-btn.secondary {
      background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08);
      color: rgba(224,232,240,0.5);
    }
    .vet-prompt-btn.secondary:hover { background: rgba(255,255,255,0.08); }

    /* A/B/C/D Health Gradient Indicator */
    .vet-health-indicator {
      padding: 14px; margin-top: 12px; border-radius: 12px;
      background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    }
    .vet-indicator-title {
      font-size: 10px; font-weight: 700; color: rgba(224,232,240,0.4);
      text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
    }
    .vet-indicator-row {
      display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    }
    .vet-indicator-label {
      width: 10px; height: 10px; border-radius: 50%; font-size: 8px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      color: #fff; flex-shrink: 0;
    }
    .vet-indicator-name {
      font-size: 10px; font-weight: 600; color: rgba(224,232,240,0.5);
      width: 90px; flex-shrink: 0;
    }
    .vet-gradient-track {
      flex: 1; height: 8px; border-radius: 4px; position: relative;
      background: linear-gradient(90deg, #2ed573 0%, #ffc048 35%, #ff9f43 55%, #ff6348 75%, #ff4757 100%);
      overflow: visible;
    }
    .vet-gradient-marker {
      position: absolute; top: 50%; width: 14px; height: 14px;
      border-radius: 50%; transform: translate(-50%, -50%);
      background: #fff; border: 2px solid; box-shadow: 0 0 8px rgba(0,0,0,0.3);
      transition: left 0.6s ease-out;
    }
    .vet-gradient-value {
      font-size: 11px; font-weight: 700; min-width: 32px; text-align: right;
    }

    /* ═══ 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;
      /* §101o — full viewport width so conversation column can slide horizontally */
      max-width: none;
      width: 100vw;
    }
    /* Widget mode: entire chat-header is hidden — everything is in topbar */
    .container.widget-mode-active .chat-header {
      display: none !important;
    }
    /* §101o — Conversation column (chat-messages + drag handle + chat-input-area)
       Width = same as non-widget container (600px), centred at rest, draggable horizontally
       via --widget-conv-x. Movement only horizontal. Conversation flows bottom-up
       (justify-content: flex-end keeps messages anchored to the bottom edge). */
    .container.widget-mode-active .chat-messages,
    .container.widget-mode-active .chat-input-area {
      width: min(600px, calc(100vw - 16px));
      max-width: none;
      margin-left: auto;
      margin-right: auto;
      /* CRITICAL: use position:relative + left instead of transform.
         transform creates a containing block that traps position:fixed children
         (welcome-neural-canvas elephant) inside the moving column.
         position:relative + left shifts visually without creating a containing block. */
      position: relative;
      left: var(--widget-conv-x, 0px);
    }
    .container.widget-mode-active .chat-messages {
      /* Bottom-up flow — messages stack from the bottom upwards */
      justify-content: flex-end;
    }
    /* §114 — grip icon in input row for dragging conversation column.
       Only visible in widget mode. Cursor: grab; drag horizontally. */
    .widget-conv-grip {
      display: none;
    }
    .container.widget-mode-active .widget-conv-grip {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 44px;
      cursor: grab;
      flex-shrink: 0;
      user-select: none;
      -webkit-user-select: none;
      border-radius: 8px;
      transition: background 0.15s;
      -webkit-touch-callout: none;
      position: relative;
      z-index: 10;
      touch-action: none;
    }
    .widget-conv-grip:hover {
      background: rgba(0,212,170,0.08);
    }
    .widget-conv-grip:active {
      cursor: grabbing;
      background: rgba(0,212,170,0.15);
    }
    .widget-conv-grip-dots {
      display: flex;
      flex-direction: column;
      gap: 3px;
      align-items: center;
    }
    .widget-conv-grip-dots span {
      display: flex;
      gap: 3px;
    }
    .widget-conv-grip-dots span::before,
    .widget-conv-grip-dots span::after {
      content: '';
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: rgba(0,212,170,0.35);
      transition: background 0.15s;
    }
    .widget-conv-grip:hover .widget-conv-grip-dots span::before,
    .widget-conv-grip:hover .widget-conv-grip-dots span::after {
      background: rgba(0,212,170,0.6);
    }
    /* ═══ 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;
      /* §115 — ocean gradient, priesvitný, nadväzuje na pozadie */
      background: linear-gradient(135deg, rgba(6,14,28,0.35) 0%, rgba(8,20,42,0.3) 40%, rgba(0,212,170,0.04) 100%);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      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; }
    /* §120b — Dock zóna pre minimalizované widgety v headeri */
    .widget-dock-zone {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: 12px;
    }
    .widget-dock-chip {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 5px 10px;
      border-radius: 10px;
      border: 1px solid rgba(0,212,170,0.15);
      background: rgba(0,212,170,0.04);
      cursor: pointer;
      transition: all 0.2s;
      animation: dockChipIn 0.25s ease;
      white-space: nowrap;
    }
    .widget-dock-chip:hover {
      background: rgba(0,212,170,0.1);
      border-color: rgba(0,212,170,0.3);
      box-shadow: 0 0 10px rgba(0,212,170,0.1);
    }
    .widget-dock-chip .dock-chip-icon {
      width: 16px; height: 16px;
      display: flex; align-items: center; justify-content: center;
      color: rgba(0,212,170,0.6);
    }
    .widget-dock-chip .dock-chip-icon svg { width: 12px; height: 12px; }
    .widget-dock-chip .dock-chip-label {
      font-size: 10px;
      font-weight: 600;
      color: rgba(224,232,240,0.65);
      letter-spacing: 0.3px;
      max-width: 70px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    @keyframes dockChipIn {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    /* §143 TURN B — Pair clinic side panel (global overlay) */
    .pair-overlay { position: fixed; inset: 0; background: rgba(8,18,34,0.55); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: stretch; justify-content: flex-end; animation: pairFadeIn 0.18s ease; }
    @keyframes pairFadeIn { from { opacity: 0; } to { opacity: 1; } }
    .pair-panel { width: min(480px, 100%); height: 100%; background: linear-gradient(180deg, rgba(10,22,40,0.98), rgba(14,28,48,0.96)); border-left: 1.5px solid rgba(167,139,250,0.25); box-shadow: -16px 0 48px rgba(0,0,0,0.5), inset 1px 0 0 rgba(167,139,250,0.08); display: flex; flex-direction: column; animation: pairSlideRight 0.26s cubic-bezier(0.22, 0.8, 0.32, 1); }
    @keyframes pairSlideRight { from { transform: translateX(100%); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
    .pair-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
    .pair-header h3 { margin: 0; font-size: 15px; font-weight: 600; color: #e8f4f8; }
    .pair-close { width: 28px; height: 28px; border-radius: 8px; border: none; background: rgba(255,255,255,0.04); color: rgba(136,153,179,0.7); cursor: pointer; font-size: 14px; }
    .pair-close:hover { background: rgba(255,107,107,0.1); color: #ff6b6b; }
    .pair-body { flex: 1; overflow-y: auto; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
    .pair-err { padding: 10px 12px; border-radius: 8px; background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.22); color: #ff6b6b; font-size: 12px; line-height: 1.5; }
    .pair-intro { font-size: 13px; color: rgba(232,244,248,0.7); line-height: 1.55; padding: 10px 12px; border-radius: 10px; background: rgba(167,139,250,0.05); border: 1px solid rgba(167,139,250,0.15); }
    .pair-empty { padding: 24px 16px; text-align: center; color: rgba(136,153,179,0.5); font-size: 12px; font-style: italic; }
    .pair-list { display: flex; flex-direction: column; gap: 8px; }
    .pair-clinic-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
    .pair-clinic-info { flex: 1; min-width: 0; }
    .pair-clinic-name { font-size: 14px; font-weight: 600; color: #e8f4f8; }
    .pair-clinic-addr { font-size: 11px; color: rgba(136,153,179,0.6); margin-top: 2px; }
    .pair-clinic-ts { font-size: 10px; color: rgba(136,153,179,0.4); margin-top: 3px; }
    .pair-revoke-btn { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,107,107,0.25); background: rgba(255,107,107,0.05); color: #ff6b6b; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap; }
    .pair-revoke-btn:hover { background: rgba(255,107,107,0.14); border-color: rgba(255,107,107,0.45); }
    .pair-btn-primary, .pair-btn-ghost { padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
    .pair-btn-primary { background: rgba(167,139,250,0.85); border: none; color: #0a1628; }
    .pair-btn-primary:hover:not(:disabled) { background: #a78bfa; box-shadow: 0 4px 14px rgba(167,139,250,0.3); }
    .pair-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
    .pair-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: rgba(232,244,248,0.7); }
    .pair-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); color: #e8f4f8; }
    .pair-code-input-wrap { display: flex; justify-content: center; padding: 10px 0; }
    .pair-code-input { width: 100%; max-width: 280px; padding: 18px 14px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 12px; font-family: 'SF Mono', Menlo, monospace; border-radius: 12px; border: 2px solid rgba(167,139,250,0.3); background: rgba(10,22,40,0.6); color: #e8f4f8; outline: none; transition: border-color 0.15s; }
    .pair-code-input:focus { border-color: rgba(167,139,250,0.6); box-shadow: 0 0 0 3px rgba(167,139,250,0.15); }
    .pair-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
    .pair-gdpr-intro { font-size: 13px; color: rgba(232,244,248,0.85); line-height: 1.55; padding: 10px 12px; border-radius: 10px; background: rgba(0,212,170,0.04); border-left: 3px solid rgba(0,212,170,0.5); }
    .pair-gdpr-section { font-size: 12px; color: rgba(232,244,248,0.8); line-height: 1.55; }
    .pair-gdpr-label { font-size: 10px; color: rgba(167,139,250,0.85); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
    .pair-gdpr-subsection { margin-top: 6px; padding-left: 8px; }
    .pair-gdpr-section ul, .pair-gdpr-subsection ul { margin: 4px 0 4px 18px; padding: 0; }
    .pair-gdpr-section li, .pair-gdpr-subsection li { margin-bottom: 3px; font-size: 12px; color: rgba(232,244,248,0.7); }
    .pair-gdpr-legal { font-size: 11px; color: rgba(136,153,179,0.55); font-style: italic; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.02); }
    .pair-gdpr-checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 10px; background: rgba(167,139,250,0.06); border: 1px solid rgba(167,139,250,0.22); cursor: pointer; margin-top: 6px; }
    .pair-gdpr-checkbox input { margin-top: 2px; accent-color: #a78bfa; cursor: pointer; flex-shrink: 0; }
    .pair-gdpr-checkbox span { font-size: 12px; color: rgba(232,244,248,0.9); line-height: 1.55; }
    .pair-success { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 20px; }
    .pair-success-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(0,212,170,0.12); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(0,212,170,0.25); }
    .pair-success-title { font-size: 18px; font-weight: 600; color: #e8f4f8; }
    .pair-success-sub { font-size: 13px; color: rgba(232,244,248,0.75); text-align: center; line-height: 1.55; }
    .pair-success-note { font-size: 11px; color: rgba(136,153,179,0.55); text-align: center; font-style: italic; }

    /* §143 TURN C — QR scanner */
    .pair-btn-scan { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); color: #a78bfa; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
    .pair-btn-scan:hover:not(:disabled) { background: rgba(167,139,250,0.15); border-color: rgba(167,139,250,0.55); }
    .pair-btn-scan:disabled { opacity: 0.5; cursor: not-allowed; }
    .pair-divider { display: flex; align-items: center; gap: 12px; color: rgba(136,153,179,0.45); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; margin: 4px 0; }
    .pair-divider::before, .pair-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
    .pair-scanner-wrap { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1; margin: 8px auto; background: #000; border-radius: 14px; overflow: hidden; border: 2px solid rgba(167,139,250,0.3); }
    .pair-scanner-video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .pair-scanner-frame { position: absolute; inset: 10%; pointer-events: none; }
    .pair-scanner-corner { position: absolute; width: 34px; height: 34px; border: 3px solid #a78bfa; }
    .pair-scanner-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
    .pair-scanner-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
    .pair-scanner-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
    .pair-scanner-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
    .pair-scanner-wrap::after { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(167,139,250,0.9), transparent); animation: scanLine 2s linear infinite; pointer-events: none; }
    @keyframes scanLine { 0% { top: 10%; } 50% { top: 90%; } 100% { top: 10%; } }

    /* 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;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       §96 ORBIO HOVER TIP — unifikované sivé "prominentné" tooltip labely
       pre ikony v hlavnom headeri + ikony za hamburger menu.
       Desktop (hover-capable): ukáže sa na :hover, zmizne pri unhover.
       Mobil (žiadny hover): nezobrazí sa vôbec (replaced by inline icon-label
       + auto-hide na body.orbio-touched po prvom dotyku — viď §96b).
       ═══════════════════════════════════════════════════════════════════════ */
    [data-orbio-tip] {
      position: relative;
    }
    [data-orbio-tip]::after {
      content: attr(data-orbio-tip);
      position: absolute;
      top: calc(100% + 6px);
      left: 50%;
      transform: translate(-50%, -4px);
      pointer-events: none;
      background: rgba(40, 52, 72, 0.96);
      color: #e6edf5;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.3px;
      padding: 5px 10px;
      border-radius: 7px;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
      opacity: 0;
      transition: opacity 0.14s ease, transform 0.14s ease;
      /* §94.30 — label MUSÍ byť pod ikonou (user request) a zároveň NAD akoukoľvek
         rolletou / dropdown panelom. z-index 2147483000 (~max int − rezerva) zaručuje
         že nás neprekryje ani .time-capsule-panel ani iný dropdown. */
      z-index: 2147483000;
    }
    /* Iba hover-capable zariadenia (desktop s myšou) — mobily (coarse pointer)
       dostanú inline icon-label správanie. */
    @media (hover: hover) and (pointer: fine) {
      [data-orbio-tip]:hover::after {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }
    /* Svetlá téma — invertovaný kontrast */
    html[data-theme="svetlo"] [data-orbio-tip]::after {
      background: rgba(55, 65, 81, 0.96);
      color: #f3f4f6;
      box-shadow: 0 4px 12px rgba(0, 30, 60, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }
    /* §101 — tooltip nad ikonou (pre spodný input bar, kde pod ikonou je okraj viewportu) */
    [data-orbio-tip][data-orbio-tip-pos="top"]::after {
      top: auto;
      bottom: calc(100% + 6px);
      transform: translate(-50%, 4px);
    }
    @media (hover: hover) and (pointer: fine) {
      [data-orbio-tip][data-orbio-tip-pos="top"]:hover::after {
        transform: translate(-50%, 0);
      }
    }
    /* §101b — tooltip centrovanie: labely zostávajú krátke („Nová", „Pridaj", „Hlas"),
       tak aby sa zmestili centrované pod/nad ikonu aj keď je ikona pri okraji viewportu.
       Pravidlo pre celý systém: kto používa data-orbio-tip, dáva krátky (≤12 znakov) popis. */
    /* §96b — Mobile: auto-hide inline icon-label po prvom dotyku / akcii.
       `body.orbio-touched` nastavuje globálny pointer/touch hook v JS. */
    body.orbio-touched .header-quick-actions .icon-label,
    body.orbio-touched .menu-h-icons .icon-label {
      opacity: 0 !important;
      transition: opacity 0.35s ease;
    }

    /* ═══ FASTCATCH — centered modal with panel-local frosted glass ═══
       §159.4.5 — Overlay je TRANSPARENTNÝ (app pozadie ostáva clear, žiadny blur/tint cez celú
       stránku). Blur sa aplikuje iba na `.fastcatch-panel` cez `backdrop-filter` → app presvíta
       cez modál v podobe frosted glass. */
    .fastcatch-overlay {
      position: fixed; inset: 0; z-index: 9500;
      background: transparent;
      display: flex; align-items: center; justify-content: center;
      animation: fcOverlayIn 0.25s 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: relative;
      width: min(340px, 85vw);
      max-height: min(520px, 80vh);
      z-index: 9501;
      /* §176.33 — Peter: transparentnosť ocean témy znížená o 50% (0.45 → 0.725) aby boli záznamy v paneli jasne viditeľné. Backdrop-filter blur znížený (28→16) lebo silnejšie pozadie už vystačí — frosted glass efekt zachovaný. */
      /* §176.40 — Peter: ocean roletky -25% transparentnosti (0.725 → 0.79). */
      background: rgba(10,22,40,0.79);
      backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
      border: 1px solid rgba(0,212,170,0.22);
      border-radius: 20px;
      box-shadow: 0 8px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,212,170,0.08);
      display: flex; flex-direction: column;
      animation: fcPanelIn 0.3s cubic-bezier(0.22,1,0.36,1);
      overflow: hidden;
    }
    @keyframes fcPanelIn { from { transform: scale(0.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
    .fastcatch-panel.closing { animation: fcPanelOut 0.2s ease forwards; }
    @keyframes fcPanelOut { from { transform: scale(1); opacity: 1; } to { transform: scale(0.95) translateY(10px); opacity: 0; } }
    .fastcatch-header {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 10px 14px 6px; flex-shrink: 0;
    }
    /*§176.34 — ZÁBLESK redesign: solid biele texty, žiadne neon translucent farby*/
    .fastcatch-header-title {
      font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
      color: #ffffff;
    }
    /*§176.34 — close button: biela solid*/
    .fastcatch-close {
      position: absolute; top: 8px; right: 8px;
      width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.06);
      color: #ffffff; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 8px; transition: all 0.15s; z-index: 2;
    }
    .fastcatch-close:hover { background: rgba(255,107,107,0.2); }
    .fastcatch-body { flex: 1; overflow-y: auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
    /* Pet selector chips */
    .fc-pet-row { display: flex; gap: 16px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0; }
    .fc-pet-row::-webkit-scrollbar { display: none; }
    /*§176.34 — scroll arrows: biele solid (z teal translucent)*/
    .fc-scroll-arrow { width: 28px; flex-shrink: 0; border: none; background: none; cursor: pointer; color: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; transition: color 0.2s, background 0.2s; border-radius: 10px; }
    .fc-scroll-arrow:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
    .fc-scroll-arrow:active { color: #ffffff; background: rgba(255,255,255,0.12); }
    .fc-scroll-arrow svg { transition: transform 0.15s; }
    .fc-scroll-arrow:active svg { transform: scale(0.85); }
    /*§176.34 — pet chip: solid biele texty, žiadny neon glow, solid border pri active*/
    .fc-pet-chip {
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      padding: 0; border-radius: 0;
      border: none;
      background: none;
      color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 500;
      cursor: pointer; transition: all 0.2s; min-width: 117px; flex-shrink: 0;
    }
    .fc-pet-chip:hover { background: none; }
    .fc-pet-chip.active {
      border: none; background: none;
      color: #ffffff; font-weight: 700;
    }
    .fc-pet-chip .fc-pet-avatar {
      width: 117px; height: 117px; border-radius: 18px;
      background: #1a2942; border: 2px solid transparent;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      overflow: hidden; transition: all 0.2s; box-sizing: border-box;
    }
    .fc-pet-chip.active .fc-pet-avatar {
      border: 2px solid #00d4aa;
      box-shadow: none;
    }
    .fc-pet-chip .fc-pet-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
    .fc-pet-chip .fc-pet-avatar svg { width: 70px; height: 70px; color: #ffffff; }
    .fc-pet-chip .fc-pet-name { text-align: center; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
    /*§176.34 — quick action cards: solid colored bg + white SVG + white labels, žiadny neon glow*/
    .fc-actions { display: flex; gap: 14px; justify-content: center; }
    .fc-action-card {
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      padding: 0; border: none; background: none;
      cursor: pointer; transition: transform 0.15s; position: relative;
    }
    .fc-action-card:active { transform: scale(0.95); }
    .fc-action-card .fc-action-icon {
      width: 60px; height: 60px; border-radius: 14px; aspect-ratio: 1;
      display: flex; align-items: center; justify-content: center;
      border: none;
      transition: filter 0.15s, transform 0.15s;
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }
    .fc-action-card:hover .fc-action-icon { filter: brightness(1.1); }
    .fc-action-card:active .fc-action-icon { transform: scale(0.92); }
    .fc-action-card .fc-action-icon svg { width: 26px; height: 26px; color: #ffffff; }
    .fc-action-card .fc-action-label { font-size: 11px; font-weight: 600; color: #ffffff; text-align: center; letter-spacing: 0.3px; line-height: 1.2; }
    /* 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 + header icons — aura pattern. §177 — biela neutrálna farba (rovnaká ako menu-h-icon) */
    .fastcatch-btn {
      border: none; background: none;
      color: rgba(224,232,240,0.55); cursor: pointer;
      display: flex; flex-direction: column; align-items: center; gap: 2px;
      transition: color 0.15s; position: relative; padding: 0;
    }
    .fastcatch-btn .icon-aura {
      width: 38px; height: 38px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.15s; background: none;
    }
    .fastcatch-btn .icon-label {
      font-size: var(--icon-label-size, 8px); opacity: 0.5; letter-spacing: 0.3px; line-height: 1; white-space: nowrap;
    }
    .fastcatch-btn:hover .icon-aura { background: rgba(0,212,170,0.08); }
    .fastcatch-btn:hover { color: rgba(232,244,248,0.95); }
    .fastcatch-btn.active .icon-aura { background: rgba(0,212,170,0.1); box-shadow: 0 0 14px rgba(0,212,170,0.14); }
    .fastcatch-btn.active { color: rgba(0,212,170,1); }
    .fastcatch-btn.active .icon-label { opacity: 0.85; }
    .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;
    }
    /*§176.36 — save chip pulse animation (subtle attention draw, žiadny harsh glow)*/
    @keyframes fcSavePulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }
    /*§176.34 — section label biela solid (z neon translucent)*/
    .fc-section-label {
      font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
      color: rgba(255,255,255,0.85); margin-top: 6px;
      text-align: center; display: block; width: 100%;
    }
    /* 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 { color: rgba(55,65,81,0.8); }
    html[data-theme="svetlo"] .fc-pet-chip.active { color: #0e7490; }
    html[data-theme="svetlo"] .fc-pet-chip .fc-pet-avatar { background: rgba(14,116,144,0.1); }
    html[data-theme="svetlo"] .fc-action-card .fc-action-icon { border-color: rgba(14,116,144,0.1); background: rgba(14,116,144,0.03); }
    html[data-theme="svetlo"] .fc-action-card:hover .fc-action-icon { border-color: rgba(14,116,144,0.2); background: rgba(14,116,144,0.06); box-shadow: 0 0 12px rgba(14,116,144,0.08); }
    html[data-theme="svetlo"] .fc-action-card .fc-action-label { color: rgba(55,65,81,0.6); }
    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(30,41,59,0.6); }
    html[data-theme="svetlo"] .fastcatch-btn:hover { color: #0e7490; }
    html[data-theme="svetlo"] .fastcatch-btn:hover .icon-aura { background: rgba(217,119,6,0.1); }
    html[data-theme="svetlo"] .fastcatch-btn.active { color: #0e7490; }
    html[data-theme="svetlo"] .fastcatch-btn.active .icon-aura { background: rgba(14,116,144,0.14); box-shadow: 0 0 14px rgba(14,116,144,0.12); }
    html[data-theme="svetlo"] .fastcatch-btn:active .icon-aura { transform: scale(0.92); }
    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: rgba(55,65,81,0.6); }
    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; }

    /* ═══ §152 — SVETLÁ TÉMA FROSTED GLASS (refactor §134): všetky widgety + panely používajú tokeny --glass-* ═══ */

    /* ── Widget (floating panel) ── */
    html[data-theme="svetlo"] .orbio-widget {
      background: var(--glass-bg) !important;
      backdrop-filter: var(--glass-blur) !important;
      -webkit-backdrop-filter: var(--glass-blur) !important;
      border: var(--glass-bord) !important;
      box-shadow: var(--glass-shadow) !important;
    }
    html[data-theme="svetlo"] .orbio-widget:hover {
      background: rgba(255,255,255,0.64) !important;
      box-shadow: var(--glass-shadow-hover) !important;
    }
    html[data-theme="svetlo"] .orbio-widget.widget-active {
      background: rgba(255,255,255,0.62) !important;
      border-color: rgba(14,116,144,0.38) !important;
      box-shadow: var(--glass-accent-glow), var(--glass-shadow) !important;
    }
    html[data-theme="svetlo"] .widget-header {
      background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.12) 100%) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
      border-bottom-color: rgba(15,30,55,0.08) !important;
    }
    html[data-theme="svetlo"] .widget-body {
      background: transparent !important;
    }

    /* ── Top app topbar (widget mode) ── */
    html[data-theme="svetlo"] .widget-mode-topbar {
      background: rgba(255,255,255,0.62) !important;
      backdrop-filter: blur(20px) saturate(180%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
      border-bottom: 1px solid rgba(255,255,255,0.55) !important;
      box-shadow: 0 1px 2px rgba(15,30,55,0.04), inset 0 -1px 0 rgba(15,30,55,0.04) !important;
    }

    /* ── Menu tab panel ── */
    html[data-theme="svetlo"] .menu-tab-panel {
      background: var(--glass-bg) !important;
      backdrop-filter: var(--glass-blur) !important;
      -webkit-backdrop-filter: var(--glass-blur) !important;
      border: var(--glass-bord) !important;
    }

    /* ── §154 — Chat input area v svetle: transparent, splýva s body ── */
    html[data-theme="svetlo"] .chat-input-area {
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    /* ── Chat widget (floating variant) ── */
    html[data-theme="svetlo"] .chat-widget-float {
      background: var(--glass-bg) !important;
      backdrop-filter: var(--glass-blur) !important;
      -webkit-backdrop-filter: var(--glass-blur) !important;
      border: var(--glass-bord) !important;
      box-shadow: var(--glass-shadow) !important;
    }

    /* ── Dock chipy ── */
    html[data-theme="svetlo"] .widget-dock-chip {
      background: rgba(255,255,255,0.45) !important;
      backdrop-filter: blur(10px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
      border: 1px solid rgba(255,255,255,0.6) !important;
      box-shadow: 0 2px 6px rgba(15,30,55,0.06), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    }
    html[data-theme="svetlo"] .widget-dock-chip:hover {
      background: rgba(255,255,255,0.62) !important;
      box-shadow: 0 4px 10px rgba(15,30,55,0.1), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    }

    /* ── Mini widget stats ── */
    html[data-theme="svetlo"] .mini-widget-stat {
      background: rgba(255,255,255,0.48) !important;
      backdrop-filter: blur(12px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
      border: 1px solid rgba(255,255,255,0.55) !important;
      box-shadow: 0 2px 8px rgba(15,30,55,0.06), inset 0 1px 0 rgba(255,255,255,0.7) !important;
    }

    /* ── Pozadie app-u — jemne modrošedé, aby sklo malo cez čo blurovať ── */
    html[data-theme="svetlo"] body,
    html[data-theme="svetlo"] .app-root {
      background: linear-gradient(135deg, #e0e8f4 0%, #eef2f9 50%, #e8eef7 100%) !important;
    }

    /* ── Fallback pre prehliadače bez backdrop-filter ── */
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      html[data-theme="svetlo"] .orbio-widget,
      html[data-theme="svetlo"] .chat-widget-float,
      html[data-theme="svetlo"] .widget-mode-topbar,
      html[data-theme="svetlo"] .menu-tab-panel,
      html[data-theme="svetlo"] .chat-input-area,
      html[data-theme="svetlo"] .mini-widget-stat,
      html[data-theme="svetlo"] .widget-dock-chip {
        background: rgba(255,255,255,0.94) !important;
      }
    }

    /* ═══ §152.B — ÚPLNÁ LIKVIDÁCIA TMAVÝCH POZADÍ v svetlej téme (orbio.pet) ═══ */

    html[data-theme="svetlo"] [style*="background:#0b1220"],
    html[data-theme="svetlo"] [style*="background: #0b1220"],
    html[data-theme="svetlo"] [style*="background:#0f1729"],
    html[data-theme="svetlo"] [style*="background: #0f1729"],
    html[data-theme="svetlo"] [style*="background:#0a1628"],
    html[data-theme="svetlo"] [style*="background: #0a1628"],
    html[data-theme="svetlo"] [style*="background:#0d1524"],
    html[data-theme="svetlo"] [style*="background: #0d1524"],
    html[data-theme="svetlo"] [style*="background:#111a2e"],
    html[data-theme="svetlo"] [style*="background: #111a2e"],
    html[data-theme="svetlo"] [style*="background:#1a2540"],
    html[data-theme="svetlo"] [style*="background: #1a2540"] {
      background: rgba(255,255,255,0.55) !important;
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      color: #1e293b !important;
    }

    html[data-theme="svetlo"] [style*="background:#1e293b"],
    html[data-theme="svetlo"] [style*="background: #1e293b"],
    html[data-theme="svetlo"] [style*="background:#1f2937"],
    html[data-theme="svetlo"] [style*="background: #1f2937"],
    html[data-theme="svetlo"] [style*="background:#111827"],
    html[data-theme="svetlo"] [style*="background: #111827"] {
      background: rgba(255,255,255,0.6) !important;
      color: #1e293b !important;
    }

    html[data-theme="svetlo"] [style*="rgba(11,18,32"],
    html[data-theme="svetlo"] [style*="rgba(11, 18, 32"],
    html[data-theme="svetlo"] [style*="rgba(10,22,40"],
    html[data-theme="svetlo"] [style*="rgba(10, 22, 40"],
    html[data-theme="svetlo"] [style*="rgba(15,23,42"],
    html[data-theme="svetlo"] [style*="rgba(15, 23, 42"],
    html[data-theme="svetlo"] [style*="rgba(13,21,36"],
    html[data-theme="svetlo"] [style*="rgba(13, 21, 36"] {
      background: rgba(255,255,255,0.55) !important;
      backdrop-filter: blur(14px) saturate(160%);
      -webkit-backdrop-filter: blur(14px) saturate(160%);
    }

    html[data-theme="svetlo"] [style*="rgba(11,18,32,0.85)"],
    html[data-theme="svetlo"] [style*="rgba(11, 18, 32, 0.85)"],
    html[data-theme="svetlo"] [style*="rgba(0,0,0,0.5)"],
    html[data-theme="svetlo"] [style*="rgba(0, 0, 0, 0.5)"],
    html[data-theme="svetlo"] [style*="rgba(0,0,0,0.6)"],
    html[data-theme="svetlo"] [style*="rgba(0, 0, 0, 0.6)"],
    html[data-theme="svetlo"] [style*="rgba(0,0,0,0.7)"] {
      background: rgba(230,235,245,0.45) !important;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    html[data-theme="svetlo"] [style*="rgba(232,244,248,0.08)"],
    html[data-theme="svetlo"] [style*="rgba(232, 244, 248, 0.08)"] {
      background: rgba(15,30,55,0.06) !important;
      color: #1e293b !important;
    }

    html[data-theme="svetlo"] [style*="border:1px solid rgba(232,244,248,0.08)"],
    html[data-theme="svetlo"] [style*="border: 1px solid rgba(232, 244, 248, 0.08)"],
    html[data-theme="svetlo"] [style*="border-color:rgba(232,244,248,0.08)"],
    html[data-theme="svetlo"] [style*="border-color: rgba(232, 244, 248, 0.08)"] {
      border-color: rgba(15,30,55,0.1) !important;
    }

    /* Globálne: inline tmavý background vo widget-body → jemne zosvetliť */
    html[data-theme="svetlo"] .widget-body [style*="background:#0"],
    html[data-theme="svetlo"] .widget-body [style*="background: #0"],
    html[data-theme="svetlo"] .widget-body [style*="background:#1"],
    html[data-theme="svetlo"] .widget-body [style*="background: #1"] {
      background: rgba(255,255,255,0.5) !important;
    }

    html[data-theme="svetlo"] .widget-body [style*="background:#fff"],
    html[data-theme="svetlo"] .widget-body [style*="background: #fff"],
    html[data-theme="svetlo"] .widget-body [style*="background:#e8"],
    html[data-theme="svetlo"] .widget-body [style*="background: #e8"],
    html[data-theme="svetlo"] .widget-body [style*="background:#00d4aa"],
    html[data-theme="svetlo"] .widget-body [style*="background: #00d4aa"],
    html[data-theme="svetlo"] .widget-body [style*="linear-gradient(135deg,#00d4aa"],
    html[data-theme="svetlo"] .widget-body [style*="linear-gradient(135deg, #00d4aa"] {
      background: initial;
    }

    /* Text color bulk overrides — tmavé texty na svetlom */
    html[data-theme="svetlo"] [style*="color:#e8f4f8"],
    html[data-theme="svetlo"] [style*="color: #e8f4f8"],
    html[data-theme="svetlo"] [style*="color:#e2e8f0"],
    html[data-theme="svetlo"] [style*="color: #e2e8f0"],
    html[data-theme="svetlo"] [style*="color:#f0f4fa"],
    html[data-theme="svetlo"] [style*="color: #f0f4fa"] {
      color: #1e293b !important;
    }
    html[data-theme="svetlo"] [style*="color:rgba(232,244,248"],
    html[data-theme="svetlo"] [style*="color: rgba(232, 244, 248"] {
      color: rgba(30,41,59,0.75) !important;
    }

    /* §152.C — VODOTLAČE (watermarky) — theme-aware trieda + bulk fallback */
    .orbio-watermark { color: rgba(0,212,170,0.04); }
    html[data-theme="svetlo"] .orbio-watermark {
      color: rgba(15,30,55,0.03) !important;
      mix-blend-mode: multiply;
    }
    /* Bulk atribútový fallback pre inline watermark hodnoty */
    html[data-theme="svetlo"] [style*="rgba(0,212,170,0.04)"],
    html[data-theme="svetlo"] [style*="rgba(0, 212, 170, 0.04)"],
    html[data-theme="svetlo"] [style*="rgba(0,212,170,0.05)"],
    html[data-theme="svetlo"] [style*="rgba(0, 212, 170, 0.05)"],
    html[data-theme="svetlo"] [style*="rgba(0,212,170,0.06)"],
    html[data-theme="svetlo"] [style*="rgba(0, 212, 170, 0.06)"],
    html[data-theme="svetlo"] [style*="rgba(0,212,170,0.08)"],
    html[data-theme="svetlo"] [style*="rgba(0, 212, 170, 0.08)"] {
      color: rgba(15,30,55,0.035) !important;
    }
    html[data-theme="svetlo"] [style*="textTransform:uppercase"][style*="position:absolute"][style*="fontWeight:700"],
    html[data-theme="svetlo"] [style*="text-transform: uppercase"][style*="position: absolute"][style*="font-weight: 700"] {
      color: rgba(15,30,55,0.04) !important;
      mix-blend-mode: multiply;
    }

    /* ── KOMPLETNÝ TEXT COLOR FIX — rgba(224,232,240,...) svetlý text → tmavý ── */
    html[data-theme="svetlo"] div[style*="224, 232, 240"] { color: #374151 !important; }
    html[data-theme="svetlo"] span[style*="224, 232, 240"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] p[style*="224, 232, 240"] { color: #374151 !important; }
    html[data-theme="svetlo"] label[style*="224, 232, 240"] { color: #374151 !important; }
    html[data-theme="svetlo"] button[style*="224, 232, 240"] { color: #374151 !important; }
    html[data-theme="svetlo"] h1[style*="224, 232, 240"],
    html[data-theme="svetlo"] h2[style*="224, 232, 240"],
    html[data-theme="svetlo"] h3[style*="224, 232, 240"] { color: #111827 !important; }

    /* ── rgba(200,215,235,...) — iný svetlý text → tmavý ── */
    html[data-theme="svetlo"] div[style*="200, 215, 235"] { color: #4b5563 !important; }
    html[data-theme="svetlo"] span[style*="200, 215, 235"] { color: #6b7280 !important; }
    html[data-theme="svetlo"] p[style*="200, 215, 235"] { color: #4b5563 !important; }
    html[data-theme="svetlo"] label[style*="200, 215, 235"] { color: #4b5563 !important; }
    html[data-theme="svetlo"] button[style*="200, 215, 235"] { color: #4b5563 !important; }

    /* ── rgba(255,255,255,...) — biely text → čierny/tmavý ── */
    html[data-theme="svetlo"] div[style*="255, 255, 255"][style*="color"] { color: #374151 !important; }
    html[data-theme="svetlo"] span[style*="255, 255, 255"][style*="color"] { color: #374151 !important; }
    html[data-theme="svetlo"] p[style*="255, 255, 255"][style*="color"] { color: #374151 !important; }
    html[data-theme="svetlo"] button[style*="255, 255, 255"][style*="color"] { color: #374151 !important; }
    html[data-theme="svetlo"] label[style*="255, 255, 255"][style*="color"] { 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"] { color: #111827 !important; }

    /* ── #e0e8f0, #e8f4f8, #f0f4fa — hex svetlé farby → tmavé ── */
    html[data-theme="svetlo"] div[style*="e0e8f0"] { color: #111827 !important; }
    html[data-theme="svetlo"] span[style*="e0e8f0"] { color: #111827 !important; }
    html[data-theme="svetlo"] div[style*="f0f4fa"][style*="color"] { color: #111827 !important; }
    html[data-theme="svetlo"] span[style*="f0f4fa"][style*="color"] { color: #111827 !important; }

    /* ── Inline tmavé pozadia v dialógoch a tooltipoch → svetlé frosted glass ── */
    html[data-theme="svetlo"] div[style*="background"][style*="0, 212, 170, 0.0"] { background: rgba(14,116,144,0.04) !important; }
    html[data-theme="svetlo"] div[style*="background"][style*="0, 212, 170, 0.1"] { background: rgba(14,116,144,0.08) !important; }

    /* ── Widget content — health records, calendar, care ── */
    html[data-theme="svetlo"] .health-record-item { background: rgba(255,255,255,0.5) !important; border-color: rgba(0,60,100,0.08) !important; }
    html[data-theme="svetlo"] .health-record-type { color: #1e293b !important; }
    html[data-theme="svetlo"] .health-record-date { color: #6b7280 !important; }
    html[data-theme="svetlo"] .health-record-info { color: #4b5563 !important; }
    html[data-theme="svetlo"] .health-no-records { color: #9ca3af !important; }

    /* ── Widgety — konkrétne elementy vnútri widgetov ── */
    html[data-theme="svetlo"] .widget-body input[style*="background"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] .widget-body select[style*="background"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; border-color: rgba(0,60,100,0.15) !important; }
    html[data-theme="svetlo"] .widget-body textarea[style*="background"] { background: rgba(0,40,80,0.04) !important; color: #111827 !important; border-color: rgba(0,60,100,0.15) !important; }

    /* ── Quick replies, bubbles ── */
    html[data-theme="svetlo"] .quick-reply-item { color: #0e7490 !important; border-color: rgba(14,116,144,0.25) !important; background: rgba(255,255,255,0.5) !important; }

    /* ── Grip dots pre drag — viditeľnejšie v svetlej téme ── */
    html[data-theme="svetlo"] .widget-conv-grip-dots span::before,
    html[data-theme="svetlo"] .widget-conv-grip-dots span::after { background: rgba(14,116,144,0.35) !important; }
    html[data-theme="svetlo"] .widget-conv-grip:hover .widget-conv-grip-dots span::before,
    html[data-theme="svetlo"] .widget-conv-grip:hover .widget-conv-grip-dots span::after { background: rgba(14,116,144,0.6) !important; }

    /* ── Settings / Menu panel — tmavé pozadia ── */
    html[data-theme="svetlo"] .menu-tab-content { color: #111827; }
    html[data-theme="svetlo"] .menu-tab-content input { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-tab-content select { color: #111827 !important; }
    html[data-theme="svetlo"] .menu-tab-content label { color: #374151 !important; }

    /* ── DevMode panel ── */
    html[data-theme="svetlo"] div[style*="background"][style*="10, 22, 40, 0.97"] {
      background: rgba(255,255,255,0.85) !important;
      backdrop-filter: blur(20px) !important;
      border-color: rgba(0,60,100,0.15) !important;
    }

    /* ── Widget body text colors ── */
    html[data-theme="svetlo"] .widget-body div[style*="color"][style*="232, 244, 248"] { color: #111827 !important; }
    html[data-theme="svetlo"] .widget-body div[style*="color"][style*="224, 232, 240"] { color: #374151 !important; }
    html[data-theme="svetlo"] .widget-body span[style*="color"][style*="224, 232, 240"] { color: #6b7280 !important; }

    /* ── Widget button backgrounds ── */
    html[data-theme="svetlo"] .widget-body div[style*="background: rgba(0, 212, 170"] { background: rgba(14,116,144,0.06) !important; }
    html[data-theme="svetlo"] .widget-body button[style*="background: rgba(0, 212, 170"] { background: rgba(14,116,144,0.1) !important; color: #0e7490 !important; border-color: rgba(14,116,144,0.25) !important; }

    /* ═══ END §134 ═══ */

    /* Floating widget panel */
    .orbio-widget {
      position: fixed;
      /* §121 — z-index je dynamický cez inline style, base layer */
      z-index: 8500;
      min-width: 280px;
      min-height: 200px;
      border-radius: 16px;
      border: 1px solid rgba(0,212,170,0.12);
      /* §116 — jedna ocean farba, bez gradientu, viac transparent */
      background: rgba(8,20,42,0.28);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      box-shadow: 0 8px 40px rgba(0,0,0,0.2), 0 0 20px rgba(0,212,170,0.06);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      animation: widgetPopIn 0.25s ease;
      transition: box-shadow 0.3s, border-color 0.3s;
    }
    .orbio-widget:hover {
      box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 24px rgba(0,212,170,0.12);
    }
    /* §119 — active widget neon glow */
    .orbio-widget.widget-active {
      border-color: rgba(0,212,170,0.5);
      box-shadow: 0 0 15px rgba(0,212,170,0.25), 0 0 35px rgba(0,212,170,0.08), 0 8px 40px rgba(0,0,0,0.2);
    }
    @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; }
    }
    /* §120 — Splynutie (merge): widget splynie s pozadím */
    .orbio-widget.widget-merged {
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-color: transparent !important;
      box-shadow: none !important;
      pointer-events: none;
      transition: all 0.4s ease;
      /* §121 — merged = rovnaká vrstva ako pozadie, pod všetkými normálnymi widgetmi */
      z-index: 1 !important;
    }
    .orbio-widget.widget-merged .widget-header {
      pointer-events: auto;
      background: transparent;
      border-bottom-color: transparent;
    }
    .orbio-widget.widget-merged .widget-header-title,
    .orbio-widget.widget-merged .widget-header-close,
    .orbio-widget.widget-merged .widget-header-icon {
      opacity: 0;
      pointer-events: none;
    }
    .orbio-widget.widget-merged .widget-header .widget-merge-btn {
      pointer-events: auto;
      opacity: 0.35;
      transition: opacity 0.2s;
    }
    .orbio-widget.widget-merged .widget-header .widget-merge-btn:hover {
      opacity: 0.85;
    }
    .orbio-widget.widget-merged .widget-body {
      pointer-events: none;
    }
    .orbio-widget.widget-merged .widget-resize-handle {
      pointer-events: none;
      opacity: 0;
    }
    /* §120c — Splynutie v svetlej téme: úplné splynutie s pozadím (ako v ocean téme) */
    html[data-theme="svetlo"] .orbio-widget.widget-merged,
    html[data-theme="svetlo"] .orbio-widget.widget-merged .widget-header,
    html[data-theme="svetlo"] .orbio-widget.widget-merged .widget-body {
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-color: transparent !important;
      box-shadow: none !important;
    }
    /* §120c — vnútorné biele povrchy (input, button, card) zmiznú v merged móde */
    .orbio-widget.widget-merged .widget-body input,
    .orbio-widget.widget-merged .widget-body select,
    .orbio-widget.widget-merged .widget-body textarea,
    .orbio-widget.widget-merged .widget-body button,
    .orbio-widget.widget-merged .widget-body .wr-card,
    .orbio-widget.widget-merged .widget-body .wr-checkin-form,
    .orbio-widget.widget-merged .widget-body .wr-header {
      background: transparent !important;
      border-color: transparent !important;
      box-shadow: none !important;
    }
    /* §120 + §120b — Minimalizácia: widget sa skryje z plochy, objaví sa v dock zóne headeru */
    .orbio-widget.widget-minimized {
      display: none !important;
    }
    /* §120 — Header action buttons (merge + minimize) */
    .widget-merge-btn,
    .widget-minimize-btn {
      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-merge-btn:hover {
      background: rgba(0,212,170,0.1);
      color: rgba(0,212,170,0.7);
    }
    .widget-minimize-btn:hover {
      background: rgba(54,160,255,0.1);
      color: rgba(54,160,255,0.7);
    }
    .widget-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      cursor: grab;
      user-select: none;
      border-bottom: 1px solid rgba(0,212,170,0.08);
      /* §115 — ocean tint header */
      background: rgba(0,212,170,0.04);
      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;
      /* Remove backdrop-filter — it creates a containing block that traps
         position:fixed children (topbar, bg, widget panels) inside the float box. */
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      overflow: visible !important;
    }
    /* Topbar stays at top of viewport — NOT inside floating chat box */
    .widget-mode-active.chat-widget-float .widget-mode-topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 10001;
    }
    /* Background stays at viewport level */
    .widget-mode-active.chat-widget-float .widget-mode-bg {
      position: fixed;
      inset: 0;
      z-index: -1;
    }
    /* Widget panels stay at viewport level */
    .widget-mode-active.chat-widget-float .orbio-widget {
      position: fixed !important;
      /* §121 — z-index je dynamický cez inline style, nie fixný */
    }
    /* Chat content gets its own background + blur */
    /* §121 — konverzácia je na rovnakej vrstve ako pozadie a splynute widgety */
    .widget-mode-active.chat-widget-float .chat-messages,
    .widget-mode-active.chat-widget-float .chat-input-area {
      background: rgba(10,22,40,0.97);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      position: relative;
      z-index: 1;
    }
    .widget-mode-active.chat-widget-float .chat-messages {
      border-radius: 18px 18px 0 0;
      border: 1px solid rgba(0,212,170,0.15);
      border-bottom: none;
    }
    .widget-mode-active.chat-widget-float .chat-input-area {
      border-radius: 0 0 18px 18px;
      border: 1px solid rgba(0,212,170,0.15);
      border-top: none;
    }
    /* Drag handle and controls */
    .widget-mode-active.chat-widget-float .chat-widget-drag-handle {
      z-index: 10;
    }
    .widget-mode-active.chat-widget-float .chat-widget-close-btn {
      z-index: 15;
      background: rgba(10,22,40,0.8);
      border-radius: 50%;
    }
    .widget-mode-active.chat-widget-float .chat-widget-resize {
      z-index: 15;
    }
    .widget-mode-active.chat-widget-float .chat-widget-resize::after {
      border-color: rgba(0,212,170,0.3);
    }
    /* In float+widget mode: topbar handles everything, chat header stays hidden */
    .widget-mode-active.chat-widget-float .chat-header {
      display: none !important;
    }
    /* 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-gradient, 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);
      /* §116 — redukcia medzier ~30% */
      margin: 16px 0 6px -20px;
      padding: 4px 8px 4px 30px;
      background: rgba(0,212,170,0.03);
      border-radius: 8px;
    }

    /* ═══ HEALTH — Record card ═══ */
    .health-record-item {
      position: relative;
      /* §116 — redukcia medzier ~30% */
      padding: 10px 10px 8px;
      margin-bottom: 6px;
      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 / NOVÁ KONVERZÁCIA ═══ */
    .voice-btn {
      background: none; border: none;
      color: rgba(232,244,248,0.4);
      cursor: pointer;
      transition: color 0.2s;
      display: flex; flex-direction: column; align-items: center; gap: 2px;
      touch-action: manipulation;
      position: relative; padding: 0;
    }
    .voice-btn .icon-aura {
      width: 38px; height: 38px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; background: none;
    }
    .voice-btn .icon-label {
      font-size: var(--icon-label-size, 8px); opacity: 0.5; letter-spacing: 0.3px; line-height: 1; white-space: nowrap;
    }
    .voice-btn:hover { color: #ff6b6b; }
    .voice-btn:hover .icon-aura { 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); }
    }

    /* 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 */
    /* §176.60 — Peter: button + SVG +25% (22→28 / 13→16), color biela pre lepšiu viditeľnosť */
    .subtab-action-btn {
      width: 28px; height: 28px; border-radius: 6px;
      background: none; border: none;
      color: #ffffff;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.18s; padding: 0;
    }
    .subtab-action-btn svg { width: 16px; height: 16px; }
    .subtab-action-btn:hover {
      color: rgba(0,212,170,0.95);
      background: rgba(0,212,170,0.08);
    }
    .subtab-action-btn.active {
      color: rgba(0,212,170,0.9);
      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;
      }
    }
  