/* ============================================================
   QuantumNote Beta v1.0.0 - Comprehensive Stylesheet
   Extracted from inline styles for security (CSP compliance)
   ============================================================ */

/* ============================================================
   CSS VARIABLES - Centralized Design Tokens
   ============================================================ */
:root {
    /* Colors - Primary Palette */
    --color-primary: #667eea;
    --color-primary-dark: #5568d3;
    --color-secondary: #764ba2;
    --color-accent: #3b82f6;
    --color-accent-light: #8b5cf6;
    
    /* Colors - Status */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-success-dark: #065f46;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-warning-bg: rgba(245, 158, 11, 0.2);
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-error-dark: #991b1b;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;
    --color-info-dark: #1e40af;
    
    /* Colors - Neutrals */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Colors - Chat */
    --color-chat-own: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --color-chat-other: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms;
    --transition-base: 200ms;
    --transition-slow: 300ms;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overscroll-behavior-y: none; /* Chrome Android: pull-to-refresh listens at document level — must be set on html, not just body */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;        /* was center — prevented scrolling on short screens */
    justify-content: center;
    padding: var(--space-xl);
    /* iOS safe area (notch / home indicator) */
    padding-top: max(var(--space-xl), env(safe-area-inset-top));
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    padding-left: max(var(--space-xl), env(safe-area-inset-left));
    padding-right: max(var(--space-xl), env(safe-area-inset-right));
    color: var(--color-white);
    overscroll-behavior-y: none;     /* prevent pull-to-refresh reloading the page and destroying chat session */
}

.hidden {
    display: none !important;
}

/* ============================================================
   LAYOUT - CONTAINERS
   ============================================================ */
.container {
    max-width: 800px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-compact {
    padding: var(--space-xl);
}

/* Chat Container - Full Screen */
.chat-container {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 56rem;
    height: 90vh;
    display: flex;
    flex-direction: column;
    color: var(--color-gray-900);
}

/* ============================================================
   LAYOUT - HEADER
   ============================================================ */
.header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* .header-icon-group/.header-title/.header-subtitle removed — light-theme remnants, never used */
/* .chat-header/.chat-header-title/.chat-title/.chat-subtitle removed — old chat widget, replaced by .chat-container-layout */

/* ============================================================
   GLOBAL MOBILE / TOUCH RESETS
   ============================================================ */

/* Remove the blue flash on iOS/Android when tapping interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* Buttons and links: remove tap flash, ensure pointer feedback */
button, a, [role="button"], [tabindex] {
    -webkit-tap-highlight-color: transparent;
}

/* Apply :active press feedback that works on both touch AND desktop */
button:active:not(:disabled),
.copy-btn:active {
    opacity: 0.85;
    transform: scale(0.97);
    transition: opacity 0.1s, transform 0.1s;
}

/* Prevent double-tap zoom on buttons */
button, input, select, textarea {
    touch-action: manipulation;
}


button {
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

/* Default button style */
button:not([class*="btn"]):not(.copy-btn):not(.file-item-remove):not([class*="badge"]) {
    width: 100%;
    background: rgba(168, 85, 247, 1);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover:not(:disabled):not([class*="btn"]):not(.copy-btn):not(.attach-btn):not([class*="badge"]) {
    background: rgba(147, 51, 234, 1);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: var(--text-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* .btn-secondary/.btn-danger/.btn-icon removed — never used in the app */

.btn-full {
    width: 100%;
}

/* ============================================================
   FORM ELEMENTS
   Note: .form-group/.form-label/.form-input/.form-textarea/.form-select/.form-hint
         removed — light-theme components never used in this dark-theme app.
         .file-input-wrapper/.file-input/.file-list/.file-item* removed —
         old file upload widget replaced by .flex-between-bg-sm + .flex-items-gap-flex.
         .checkbox-wrapper/.checkbox/.checkbox-label/.checkbox-title/.checkbox-description
         removed — never used anywhere.
   ============================================================ */

/* Textarea default styles (for dark theme) */
textarea {
    width: 100%;
    height: 12rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    resize: none;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   OPTIONS GRID (for expiry, retention selection)
   ============================================================ */
.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.option {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
}

.option:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.option.selected {
    background: rgba(168, 85, 247, 1);
    border-color: rgba(192, 132, 252, 1);
}

.option .icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* ============================================================
   ICONS
   ============================================================ */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
    flex-shrink: 0;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
    max-width: 2rem;
    max-height: 2rem;
}

.icon-xl {
    width: 2.5rem;
    height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
}

.icon-2xl {
    width: 3rem;
    height: 3rem;
    max-width: 3rem;
    max-height: 3rem;
}

/* Home screen action buttons */
.btn-home-primary {
    width: 100%;
    background: rgba(168, 85, 247, 1);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-home-primary:hover:not(:disabled) {
    background: rgba(147, 51, 234, 1);
}

.btn-home-secondary {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-home-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.icon-success {
    color: var(--color-success);
}

/* ============================================================
   ALERTS & NOTIFICATIONS
   Note: .alert-* variants removed — app uses .info-box variants
   ============================================================ */

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-container {
    margin: var(--space-xl) 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(168, 85, 247, 1), rgba(139, 92, 246, 1));
    border-radius: 9999px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ============================================================
   LINK DISPLAY
   Note: .link-display/.link-text/.link-copy-btn removed — replaced by .url-container
   ============================================================ */

/* ============================================================
   CHAT MESSAGES
   ============================================================ */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    scroll-behavior: smooth;
}

.message-empty-state {
    text-align: center;
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    padding: var(--space-2xl);
}

/* .message-empty-icon removed — app uses inline icon-lg class instead */

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-lg);
}

.chat-message-own {
    align-items: flex-end;
}

.chat-message-other {
    align-items: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-bubble-own {
    background: var(--color-chat-own);
    color: var(--color-white);
}

.chat-bubble-other {
    background: var(--color-chat-other);
    color: var(--color-white);
}

.chat-bubble-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message-meta {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-top: var(--space-xs);
    padding: 0 var(--space-sm);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.message-countdown {
    display: inline-block;
}

.message-countdown-urgent {
    color: var(--color-warning);
}

/* System Messages */
.system-message {
    align-items: center !important;
    margin: var(--space-xl) 0;
}

/* .system-message-bubble/.system-message-header/.system-message-text/.system-message-title
   removed — replaced by inline styles in addSystemMessageToUI() */

/* Chat Input — live classes below; old .chat-input/.chat-input-container/.chat-input-wrapper/.chat-send-btn removed (replaced by dark-input-flex + .attach-btn + #sendBtn) */

/* ============================================================
   SECURITY FINGERPRINT
   Note: old fingerprint widget removed — replaced by .fingerprint-large
   and .fingerprint-medium defined in the typography section below.
   ============================================================ */

/* ============================================================
   STATS DISPLAY
   Note: .stats-grid/.stat-card/.stat-value/.stat-label removed —
   stats are API-only (key-protected). No frontend stats UI exists.
   ============================================================ */

/* ============================================================
   NOTE VIEWER
   Note: .note-content/.note-files/.note-file/.note-download-btn removed —
   replaced by .message-display + .flex-between-bg + .success-badge layout.
   ============================================================ */

/* ============================================================
   CAPTCHA
   Note: .captcha-container/.captcha-canvas/.captcha-input removed —
   replaced by .captcha-box/.captcha-puzzle-container/.puzzle-grid layout.
   ============================================================ */

/* ============================================================
   COUNTDOWN TIMER
   Note: .countdown-container/.countdown-title/.countdown-time etc removed —
   replaced by .countdown-display and .info-box elements.
   ============================================================ */

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.gap-lg {
    gap: var(--space-lg);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-gray-300 {
    color: #d1d5db;
}

.text-cyan {
    color: #22d3ee;
}

.text-yellow {
    color: #fbbf24;
}

.text-purple-300 {
    color: #c4b5fd;
}

.text-blue-300 {
    color: #93c5fd;
}

.text-blue {
    color: #3b82f6;
}

.text-orange {
    color: #f59e0b;
}

.text-purple-400 {
    color: #a78bfa;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.flex-1 {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-error {
    color: var(--color-error);
}

.cursor-pointer {
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 640px) {
    body {
        padding: var(--space-md);
        padding-top: max(var(--space-md), env(safe-area-inset-top));
        padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .card {
        padding: var(--space-lg);
    }

    .options {
        grid-template-columns: repeat(2, 1fr);
    }

    /* File attachment download button: full-width when wrapped on mobile */
    .flex-between-bg .success-badge {
        width: 100%;
        justify-content: center;
    }

    /* .stats-grid grid-template-columns override removed — stats UI doesn't exist */

    /* ── Chat screen: break out of body/container padding entirely ─────────
       position:fixed; inset:0 makes the chat card a true full-screen overlay
       that ignores body padding and the .container width constraint.
       This fixes iOS overflow where body padding was shrinking the card
       to ~342px, cutting off the header buttons and input row.            */
    .chat-container-layout {
        position: fixed;
        inset: 0;                  /* top/right/bottom/left: 0 */
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 0;
        z-index: 10;               /* above body content, below modals */
        overflow: hidden;
        overscroll-behavior: none; /* fixed overlay receives all touch events on mobile — block pull-to-refresh here */
        display: flex;
        flex-direction: column;
    }

    /* Header area: safe padding, respects iOS notch */
    .chat-container-layout .flex-between-border {
        flex-shrink: 0;
        padding: var(--space-md);
        padding-top: max(var(--space-md), env(safe-area-inset-top));
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
        margin-bottom: 0;          /* no margin — spacing handled by padding only */
        gap: var(--space-sm);
    }

    /* Shrink the heading on mobile so "Encrypted Chat" + buttons fit in one row */
    .chat-container-layout .heading-xl-icon {
        font-size: 1rem;
        gap: 0.3rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* The SVG chat icon next to the title — smaller on mobile */
    .chat-container-layout .heading-xl-icon .icon {
        width: 1.1rem;
        height: 1.1rem;
        flex-shrink: 0;
    }

    /* Verify and Leave buttons: compact on mobile */
    .chat-container-layout .purple-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-height: 36px;
    }

    .chat-container-layout .error-badge-sm {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-height: 36px;
    }

    /* Sub-line "End-to-end encrypted..." */
    .chat-container-layout .text-xs {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Messages area: fill all remaining vertical space, scrollable */
    .messages-container-layout {
        flex: 1;
        min-height: 0;
        border-radius: 0;
        margin: 0;
    }

    /* Input row: pinned to bottom, above iOS home indicator */
    .chat-container-layout .flex-gap {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        width: 100%;
        overflow: hidden;          /* prevent children overflowing the row */
        padding: var(--space-md);
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
        padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
        background: rgba(0, 0, 0, 0.25);
        box-sizing: border-box;
    }

    /* Input field: flex:1 + min-width:0 so it shrinks and gives space to buttons */
    .chat-container-layout .dark-input-flex {
        flex: 1 1 0;
        min-width: 0;              /* critical — allows shrinking below content size */
        font-size: 16px;           /* prevents iOS auto-zoom on focus */
        min-height: 44px;
    }

    /* Send + clip: fixed size, never shrink, never grow */
    .chat-container-layout #sendBtn,
    .chat-container-layout #attachBtn {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    /* .header-title font-size override removed — class no longer exists */

    /* URL container: stack vertically if extremely narrow */
    .url-container {
        flex-wrap: wrap;
    }
    .url-container input {
        min-width: 0;
        flex-basis: 100%;
        order: 1;
    }
    .url-container .copy-btn {
        order: 2;
        width: 100%;
        justify-content: center;
    }
}

/* Extra-small phones (≤380px) */
@media (max-width: 380px) {
    .options {
        grid-template-columns: 1fr;
    }
    .card {
        padding: var(--space-md);
    }
    body {
        padding: var(--space-sm);
    }

    /* Even tighter chat header on very small screens */
    .chat-container-layout .flex-between-border {
        padding: var(--space-sm);
        padding-top: max(var(--space-sm), env(safe-area-inset-top));
    }

    .chat-container-layout .heading-xl-icon {
        font-size: 0.9rem;
    }

    .chat-container-layout .purple-badge,
    .chat-container-layout .error-badge-sm {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }

    .attach-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
.messages-container::-webkit-scrollbar,
.note-content::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track,
.note-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

.messages-container::-webkit-scrollbar-thumb,
.note-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
}

.messages-container::-webkit-scrollbar-thumb:hover,
.note-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container,
    .chat-container {
        box-shadow: none;
        max-width: 100%;
    }
    
    button,
    .btn {
        display: none;
    }
}

/* ============================================================
   ADDITIONAL UTILITY CLASSES
   ============================================================ */

/* Password input monospace (for URLs) */
.password-monospace {
    font-family: monospace;
    letter-spacing: 0.1em;
}

/* Dark theme form inputs */
.dark-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.dark-input-sm {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.dark-input-flex {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

/* Icon sizes - specific */
.icon-4xl {
    width: 4rem;
    height: 4rem;
    max-width: 4rem;
    max-height: 4rem;
    flex-shrink: 0;
}

.icon-xs {
    width: 0.875rem;
    height: 0.875rem;
    max-width: 0.875rem;
    max-height: 0.875rem;
}

/* Min-width utility */
.min-w-0 {
    min-width: 0;
}

/* Opacity */
.opacity-80 {
    opacity: 0.8;
}

/* Background variants */
.bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

.bg-purple-10-border {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.bg-purple-30 {
    background: rgba(139, 92, 246, 0.3);
    padding: 0.75rem;
}

.bg-green-10-border {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Chat container specific */
.chat-container-layout {
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Messages container specific */
.messages-container-layout {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
    overscroll-behavior: contain;    /* contain scroll inside messages area — stops pull-to-refresh propagating to page */
}

/* Progress bar width (dynamic - keep as is) */
.progress-width-0 {
    width: 0%;
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.modal-content {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.98);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid rgba(139, 92, 246, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 500px;
    width: 90%;
}

/* Typography variants */
.text-4xl {
    font-size: 2.5rem;
}

.text-3xl-bold {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.text-2xl-bold-mb {
    font-size: 1.5rem;
    font-weight: bold;
}

.heading-xl-purple {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #a78bfa;
}

.heading-xl-icon {
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.heading-lg-icon {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-sm-yellow-bold {
    font-size: 0.875rem;
    color: #fbbf24;
    font-weight: 600;
}

.text-sm-yellow-bold-mb {
    font-size: 0.875rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.text-sm-gray-mb {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.text-sm-gray-400-mb {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.text-sm-gray-ellipsis {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.text-sm-yellow-line {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #fde68a;
}

.text-xs-yellow {
    font-size: 0.8rem;
    color: #fde68a;
}

.text-xs-gray-mt {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

.text-xs-gray-mb {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.text-2xs-gray {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.text-ellipsis {
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Fingerprint styles */
.fingerprint-large {
    font-family: monospace;
    color: #a78bfa;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
}

.fingerprint-medium {
    font-family: monospace;
    color: #a78bfa;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.3rem;
}

.countdown-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: monospace;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

/* Color utilities - extended */
.text-cyan-light {
    color: #67e8f9;
}

.text-green-bright {
    color: #4ade80;
}

.text-yellow-bold {
    color: #fbbf24;
    font-weight: 600;
}

.text-blue-300-bold {
    color: #93c5fd;
    font-weight: 600;
}

.text-orange {
    color: #f59e0b;
}

.text-gray-d1 {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Layout utilities */
.flex-gap {
    display: flex;
    gap: 0.5rem;
}

.flex-items-gap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flex-items-gap-mb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.flex-items-gap-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.flex-items-gap-lg-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.flex-items-start-gap {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.flex-between-border {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 0.5rem;
}

/* Title side can shrink; Leave button stays fixed */
.flex-between-border > div:first-child {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.flex-between-bg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;                /* Download button wraps below filename on narrow screens */
}

.flex-between-bg-sm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

/* Specific component styles */
.success-badge {
    background: rgba(34, 197, 94, 0.3);
    color: white;                   /* was missing — text was invisible on dark backgrounds */
    padding: 0.5rem 1rem;
    min-height: 44px;               /* minimum touch target */
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid rgba(34, 197, 94, 0.4);
    /* removed: max-width:150px, margin-left:1rem — both caused clipping on narrow screens */
}

.error-badge-sm {
    background: rgba(239, 68, 68, 0.3);
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    flex-shrink: 0;
    /* Must explicitly beat the generic button:not(...) width:100% rule */
    width: auto !important;
    max-width: fit-content;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* .error-badge-md removed — only .error-badge-sm is used */
/* .gradient-button-mt/.gradient-button-full-mt removed — app uses inline gradient styles */
/* .hidden-mt-xl removed — duplicate of .hidden-mt, never used */
/* .mt-2xs removed — never used */

.purple-badge {
    width: auto !important;
    max-width: fit-content;
    padding: 0.4rem 0.75rem;
    min-height: 36px;
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    color: white;
}

/* .gradient-button-mt/.gradient-button-full-mt removed — never used */

/* Purple box variants */
.purple-box-border {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(139, 92, 246, 0.4);
    margin-bottom: 1.5rem;
}

.purple-box-nested {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.warning-box-hidden {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
}

/* Hidden variants with spacing */
.hidden-mt {
    display: none;
    margin-top: 1rem;
}

/* .hidden-mt-xl removed — duplicate of .hidden-mt, never used */

.hidden-mb {
    display: none;
    margin-bottom: 1rem;
}

.hidden-text-center-p {
    display: none;
    text-align: center;
    padding: 2rem;
}

/* Spacing utilities - specific */
/* .mt-2xs removed — never used */

.mt-gray {
    margin-top: 1rem;
    color: #9ca3af;
}

.mt-xl-center {
    margin-top: 1.5rem;
    text-align: center;
}

.mb-lg-single {
    margin-bottom: 1rem;
}

.m-y {
    margin: 1rem 0;
}

/* Inline grab cursor */
.inline-grab {
    display: inline-block;
    cursor: grab;
    transition: transform 0.2s;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Info Box */
.info-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.info-box.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.info-box.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.info-box.warning {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

.info-box.info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Captcha box */
.captcha-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Captcha title */
.captcha-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #fbbf24;
    font-weight: 600;
}

/* Captcha puzzle container */
.captcha-puzzle-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Captcha hint */
.captcha-hint-text {
    text-align: center;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Error box centered */
.error-box-centered {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #fca5a5;
    text-align: center;
}

.error-box {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #fca5a5;
}

/* Purple info box */
.purple-info-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
}

.purple-info-box-mb {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Blue info box */
.blue-info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Error badge */
.error-badge {
    background: rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    width: auto;
    max-width: 120px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Label text */
.label-text {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

/* Header flex */
.header-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Flex between */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Blue heading with icon */
.blue-heading-icon {
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Small gray hint with margin */
.hint-text-ml {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.75rem;
    margin-left: 2rem;
}

.hint-text-ml-sm {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-top: 0.5rem;
    margin-left: 2rem;
}

/* Purple box hidden */
.purple-box-hidden {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
}

/* URL Container */
.url-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    align-items: center;
    overflow: hidden;                /* contain long URLs */
}

.url-container input {
    flex: 1;
    min-width: 0;                    /* allow flex item to shrink below content width */
    background: transparent;
    border: none;
    color: #d1d5db;
    outline: none;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(168, 85, 247, 1);
    padding: 0.5rem 1rem;
    min-height: 44px;               /* minimum touch target — Apple HIG & Material guidelines */
    min-width: 44px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.copy-btn:hover {
    background: rgba(147, 51, 234, 1);
}

/* Message Display */
.message-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e5e7eb;
}

/* Security Info */
.security-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-info h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-info ul {
    list-style: none;
    padding-left: 0;
}

.security-info li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Captcha Puzzle Styles */
.puzzle-grid {
    display: grid;
    gap: 2px;
    width: 100%;
    height: 100%;
    background: #1e293b;
    touch-action: none;             /* prevent page scroll while dragging puzzle pieces on iOS */
}

.puzzle-piece {
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.puzzle-piece.empty {
    background: rgba(59, 130, 246, 0.2);
    border: 2px dashed rgba(59, 130, 246, 0.5);
    animation: pulse 2s infinite;
}

.puzzle-piece.drag-over {
    background-color: rgba(34, 211, 238, 0.3);
    border-color: rgba(34, 211, 238, 0.8);
    transform: scale(1.05);
}

.puzzle-piece.correct {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    animation: correctPulse 0.5s ease;
}

.draggable-piece {
    width: 80px;
    height: 80px;
    background-size: cover;
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    cursor: grab;
    /* Prevent the browser from scrolling or doing anything else
       with touch events on this element — we handle them ourselves */
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.draggable-piece:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* On small screens, enlarge the draggable piece so fingers can grip it easily */
@media (max-width: 480px) {
    .draggable-piece {
        width: 72px;
        height: 72px;
    }

    /* Slightly larger puzzle area on mobile for easier targeting */
    .captcha-puzzle-container {
        max-width: 320px;
    }

    /* Hint label below the puzzle piece */
    .captcha-title {
        font-size: 0.85rem;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Progress Shimmer Animation */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Security Alert Pulse Animation - v3.3.0 */
@keyframes alertPulse {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.5);
        background: rgba(239, 68, 68, 0.15);
    }
    50% {
        border-color: rgba(239, 68, 68, 0.8);
        background: rgba(239, 68, 68, 0.25);
    }
}

/* Secure message expiry animation.
   Applied when a message's retention period ends.
   Text is scrubbed in JS *before* this animation starts,
   so only the empty bubble shell is visible during the fade. */
/* Captcha puzzle wrong-answer feedback animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-10px); }
    75%       { transform: translateX(10px); }
}

@keyframes messageExpire {
    0%   { opacity: 1;   transform: scaleY(1);    max-height: 200px; }
    40%  { opacity: 0.2; transform: scaleY(0.95); max-height: 200px; }
    100% { opacity: 0;   transform: scaleY(0);    max-height: 0;     padding: 0; margin: 0; }
}

/* ── Chat file attachment ─────────────────────────────────────────────────── */

.attach-btn {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.attach-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.attach-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.file-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 200px;
    max-width: 100%;
}

.file-card-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.file-card-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.85;
}

.file-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-card-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.file-card-size {
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 1px;
}

.file-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.4rem;
    border: none;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    width: 100%;
}

.file-card-btn:hover:not(:disabled) {
    opacity: 0.85;
    transform: translateY(-1px);
}

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

.chat-bubble-own .file-card-btn {
    background: rgba(255, 255, 255, 0.22);
}

.chat-bubble-other .file-card-btn {
    background: rgba(102, 126, 234, 0.35);
}

.file-upload-progress {
    font-size: 0.78rem;
    opacity: 0.75;
    text-align: center;
    padding: 0.2rem 0;
}

/* ── End chat file attachment ─────────────────────────────────────────────── */

.chat-message.expiring {
    overflow: hidden;
    animation: messageExpire 0.7s ease forwards;
    pointer-events: none; /* prevent interaction during wipe */
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
