
        :root {
          --primary: #1f5abf;
          --primary-alt: #4b84f5;
          --primary-deep: #143f91;
          --accent: #60b2ff;
          --ink: #112340;
          --soft: #eef4fb;
          --paper: #f7f9ff;
          --surface: #f3f7ff;
          --edge: #d9e4f4;
          --star-gold: #ffc107;
          --star-grey: #e4e5e9;
        }
        .button-wrapper { position: fixed; bottom: 28px; z-index: 10000; cursor: grab; transition: transform 0.2s ease, opacity 0.2s ease; border-radius: 999px; box-shadow: 0 18px 40px rgba(17,35,78,0.18); background: linear-gradient(135deg, rgba(31,90,191,0.95), rgba(75,132,245,0.95)); padding: 4px; touch-action: none; }
        .button-wrapper.dragging { cursor: grabbing; opacity: 0.9; transform: scale(0.98); }
        .siri-container { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; overflow: visible; background: transparent; border: none; }
        .siri-container::before { content: ""; position: absolute; inset: -4px; border-radius: 999px; background: conic-gradient(from -90deg, rgba(255,94,122,0.95) 0deg 60deg, rgba(245,166,35,0.95) 60deg 120deg, rgba(77,128,243,0.95) 120deg 190deg, rgba(80,227,194,0.95) 190deg 260deg, rgba(130,168,255,0.95) 260deg 330deg, rgba(255,94,122,0.95) 330deg 360deg); filter: blur(8px) saturate(1.3); opacity: 1; z-index: 0; pointer-events: none; animation: pulseGlow 3.6s ease-in-out infinite; }
        .siri-container::after { content: ""; position: absolute; inset: 1px; border-radius: 999px; background: #fff; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8); }
        .siri-button { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: var(--primary-deep); background: #fff; border: 1px solid rgba(17,35,78,0.08); border-radius: 999px; box-shadow: 0 20px 40px rgba(17,35,78,0.12); cursor: pointer; font: 600 0.78rem Inter, sans-serif; white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.18s ease; }
        .siri-button:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(17,35,78,0.2); }
        .siri-button .siri-avatar { width: 34px; height: 34px; border-radius: 25%; object-fit: cover; }
        .chat-widget { position: fixed !important; bottom: 28px; z-index: 10001 !important; display: none; flex-direction: column; width: 420px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100vh - 40px); overflow: hidden; background: #f7f9ff; border-radius: 34px; box-shadow: 0 32px 80px rgba(15,35,75,0.18); font-family: Inter, sans-serif; opacity: 0; transform: scale(0.94) translateY(18px); transform-origin: bottom center; transition: transform 260ms cubic-bezier(0.22,1,0.36,1), opacity 260ms cubic-bezier(0.22,1,0.36,1); }
        .chat-widget.active { opacity: 1; transform: scale(1) translateY(0); }
        .chat-widget.closing { opacity: 0; transform: scale(0.94) translateY(18px); }
        .widget-header { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 72px; background: linear-gradient(145deg, #1f5bc1 0%, #4d80f3 55%, #82a8ff 100%); cursor: grab; border-bottom: 1px solid rgba(255,255,255,0.2); }
        .chat-widget.dragging .widget-header { cursor: grabbing; }
        .header-icon { width: 52px; height: 52px; overflow: hidden; background: rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .header-icon img, .msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .header-text { flex: 1; }
        .header-text h2 { color: #fff; font-size: 1rem; font-weight: 700; }
        .header-text p { margin-top: 2px; color: rgba(255,255,255,0.82); font-size: 0.72rem; }
        .status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: #58c1ff; border-radius: 50%; animation: pulse 2s infinite; }
        .header-actions { display: flex; align-items: center; gap: 8px; }
        .icon-btn { width: 28px; height: 28px; color: #fff; background: rgba(255,255,255,0.1); border: 0; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
        .save-pdf-btn { font-size: 12px !important; }
        .icon-btn:hover { background: rgba(255,255,255,0.2); }
        .messages-area { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overflow-x: hidden; padding: 18px; background: #eef3ff; }
        .message { display: flex; gap: 10px; max-width: 84%; animation: fadeInMsg 0.28s ease; }
        .message.user { align-self: flex-end; flex-direction: row-reverse; }
        .message.bot { align-self: flex-start; }
        .msg-avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
        .message.user .msg-avatar { background: linear-gradient(135deg, var(--primary), var(--primary-alt)); color: #fff; }
        .message.bot .msg-avatar { background: var(--soft); }
        .msg-bubble, .typing-indicator { background: #fff; border: 1px solid var(--edge); border-radius: 24px; }
        .msg-bubble { padding: 12px 16px; color: #1a2338; box-shadow: 0 12px 30px rgba(18,45,90,0.08); font-size: 0.85rem; line-height: 1.55; word-wrap: break-word; overflow-wrap: break-word; }
        .msg-bubble a { color: var(--primary); text-decoration: underline; word-break: break-word; }
        .message.user .msg-bubble { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-alt)); border: 0; border-bottom-right-radius: 26px; }
        .message.bot .msg-bubble { border-bottom-left-radius: 26px; }
        .clickable-image { max-width: 100%; border-radius: 12px; cursor: pointer; transition: transform 0.2s; }
        .clickable-image:hover { transform: scale(1.02); }
        .image-modal { position: fixed; inset: 0; z-index: 30000; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s; }
        .image-modal-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
        .image-modal img { max-width: 85vw; max-height: 75vh; object-fit: contain; border-radius: 12px; }
        .image-modal-close { background: var(--primary); color: white; border: none; padding: 10px 24px; border-radius: 40px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
        .image-modal-close:hover { background: var(--primary-alt); }
        .typing-indicator { display: flex; gap: 4px; width: fit-content; padding: 8px 12px; background: #eef4ff; border: 1px solid rgba(215,226,245,0.95); }
        .typing-indicator span { width: 6px; height: 6px; background: #bfd6ff; border-radius: 50%; animation: blinkTyping 1.4s infinite; }
        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
        .quick-actions-brick, .text-input-area { background: #fff; border-top: 1px solid var(--soft); }
        .quick-actions-brick { padding: 12px 14px; }
        .brick-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
        .brick-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; color: var(--ink); background: #f9fbff; border: 1px solid rgba(141,170,245,0.35); border-radius: 28px; cursor: pointer; font: 500 0.66rem Inter, sans-serif; white-space: nowrap; transition: all 0.2s ease; }
        .brick-pill:hover { background: #eef3ff; transform: translateY(-1px); }
        .pill-emoji { font-size: 0.72rem; }
        .end-conversation-btn { width: 100%; padding: 10px; margin-top: 10px; color: #fff; background: #ff5f7b; border: 0; border-radius: 999px; cursor: pointer; font-size: 0.72rem; font-weight: 600; transition: background 0.2s; }
        .end-conversation-btn:hover { background: #e84a62; transform: translateY(-1px); }
        .text-input-area { display: flex; gap: 10px; padding: 12px 14px; }
        .text-input { flex: 1; padding: 12px 16px; border: 1px solid var(--edge); border-radius: 999px; outline: 0; font: 0.85rem Inter, sans-serif; background: #f7f9ff; }
        .text-input:focus { border-color: rgba(31,90,191,0.5); }
        .send-text-btn { padding: 12px 18px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-alt)); border: 0; border-radius: 999px; cursor: pointer; font-size: 0.76rem; font-weight: 700; }
        .send-text-btn:hover { background: linear-gradient(135deg, #18468d, #2a61b0); transform: translateY(-1px); }
        .feedback-box { width: 100%; min-height: 82px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 14px; resize: vertical; outline: 0; font: 0.75rem inherit; }
        .transcript-notification { position: fixed; right: 58px; bottom: 100px; z-index: 10002; padding: 10px 18px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-alt)); border: 1px solid rgba(255,255,255,0.24); border-radius: 50px; box-shadow: 0 18px 40px rgba(17,35,78,0.22); pointer-events: none; animation: fadeInOut 3s ease; font-size: 0.75rem; }
        .modal-overlay { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); animation: fadeIn 0.2s ease; }
        .modal-overlay .modal-container { width: 90%; max-width: 350px; background: #fff; border-radius: 20px; overflow: hidden; }
        .modal-overlay .modal-header { padding: 18px 20px; color: #fff; background: linear-gradient(145deg, var(--primary), var(--primary-alt)); border-bottom: none; display: flex; align-items: center; justify-content: space-between; }
        .modal-overlay .modal-header h3 { font-size: 1rem; font-weight: 600; line-height: 1.2; margin: 0; }
        .modal-overlay .modal-close-btn { background: none; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0; margin: 0; opacity: 0.8; }
        .modal-overlay .modal-body { padding: 20px; flex: none; }
        .modal-overlay .modal-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
        .modal-overlay .modal-btn { padding: 8px 16px; border: 0; border-radius: 30px; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
        .modal-overlay .modal-btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-alt)); }
        .modal-overlay .modal-btn-secondary { color: var(--ink); background: #f0f2ee; }
        .star-rating { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0; }
        .stars { display: flex; gap: 8px; justify-content: center; }
        .star { font-size: 32px; cursor: pointer; color: #e4e5e9; transition: color 0.2s ease, -webkit-text-stroke 0.2s ease; -webkit-text-stroke: 1.5px #ffe082; }
        .star:hover, .star.active { color: #ffc107; -webkit-text-stroke: 1.5px #ffd54f; }
        .hidden { display: none !important; }
        @keyframes pulse { 50% { opacity: 0.5; } }
        @keyframes fadeIn { from { opacity: 0; } }
        @keyframes fadeInMsg { from { opacity: 0; transform: translateY(8px); } }
        @keyframes pulseGlow { 0% { transform: scale(0.96); opacity: 0.72; } 50% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(0.96); opacity: 0.72; } }
        @keyframes blinkTyping { 0%,60%,100% { opacity: 0.3; } 30% { opacity: 1; transform: translateY(-3px); } }
        @keyframes fadeInOut { 0% { opacity: 0; transform: translateY(20px); } 15%,85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-20px); } }
        @media (max-width: 550px) {
          .siri-button { padding: 8px 18px; gap: 8px; font-size: 0.8rem; }
          .siri-button .siri-avatar { width: 32px; height: 32px; }
          .button-wrapper { bottom: 20px; }
          .chat-widget { bottom: 12px !important; width: calc(100vw - 24px); height: calc(100vh - 24px); max-height: 85vh; border-radius: 20px; }
          .brick-pill { padding: 2px 5px; font-size: 0.54rem; }
          .pill-emoji { font-size: 0.58rem; }
          .brick-container { gap: 4px; }
          .widget-header { padding: 12px 16px; }
          .messages-area { padding: 12px; }
          .header-icon { width: 40px; height: 40px; }
          .header-text h2 { font-size: 0.8rem; }
          .modal-header h3 { font-size: 1.05rem; padding: 4px 0; }
          .modal-body { padding: 18px 20px; }
        }
