        .camio-chicklets-container {
            position: relative;
            border: 2px solid #ddd;
            border-radius: 4em;
            padding: 8px 8px 8px 16px;
            min-height: 40px;
            background: white;
            cursor: text;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            margin: 0 1.5em;
        }

        .camio-chicklets-container:focus-within {
            border-color: #007bff;
            outline: none;
        }

        .camio-chicklet {
            padding: 4px 2px 4px 8px;
            border-radius: 12px;
            border: 1px solid transparent;
            font-size: 14px;
            font-weight: bold;;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            cursor: grab;
            user-select: none;
            animation: camioFadeIn 0.2s ease-in;
            position: relative;
            transition: opacity 0.2s;
        }
        .camio-chicklet:active {
            cursor: grabbing;
        }
        .camio-chicklet.dragging {
            opacity: 0.5;
        }

        /* to override default input styles */
        .input-group span.camio-chicklet,
        .input-group span.camio-chicklet:hover,
        .input-group span.camio-chicklet:focus,
        .input-group span.camio-chicklet:active {
            font-weight: bold;;
        }
        .camio-chicklet.camio-editing {
            background: #f8f9fa !important;
            color: #333 !important;
            border: 1px solid #007bff;
        }

        .camio-chicklet-editor {
            border: none;
            outline: none;
            background: transparent;
            color: inherit;
            font-size: inherit;
            font-family: inherit;
            padding: 0;
            margin: 0;
            min-width: 20px;
        }
        /* if unknown category, use default styling */
        .camio-chicklet-default {
            background: #6c757d;
            color: white;
            border-color: #cfd8dc;
        }
        /* Cameras - Locations like Lobby, Parking Lot */
        .camio-chicklet-cameras {
            background-color: #e0f7e9;   /* soft green-tint */
            color: #1b5e20;              /* dark green text */
            border-color: #b2dfdb;
        }

        /* Zones - Entrance, Exit, etc. */
        .camio-chicklet-zones {
            background-color: #e3f2fd;   /* light blue */
            color: #0d47a1;              /* navy blue text */
            border-color: #bbdefb;
        }

        /* Date/Time Ranges - 4pm to 6pm */
        .camio-chicklet-date_text {
            background-color: #fff8e1;   /* soft amber */
            color: #795548;              /* brownish text */
            border-color: #ffe082;
        }

        /* Tags - Special operator tags (e.g., corpus selection) */
        .camio-chicklet-tags {
            background-color: #f3e5f5;   /* light violet */
            color: #6a1b9a;              /* purple */
            border-color: #ce93d8;
        }

        /* Remainder - Unmatched natural language */
        .camio-chicklet-remainder {
            background-color: #eceff1;   /* light grey */
            color: #37474f;              /* slate */
            border-color: #cfd8dc;
        }

        .camio-chicklet-groups {
            background-color: #f0f4ff;   /* soft periwinkle-blue */
            color: #1a237e;              /* deep indigo */
            border-color: #c5cae9;       /* pale indigo border */
        }

        .camio-chicklet-colors {
            background-color: #fdf6e3;     /* soft parchment/neutral backdrop */
            color: #b71c1c;                /* dark red by default (can be overridden per color) */
            border-color: #f0e0d0;         /* warm neutral border */
        }

        .camio-chicklet:hover,
        .camio-chicklet:focus {
            border-color: #666;
            background-color: #f0f0f0;
        }

        .camio-chicklet .camio-remove-btn {
            background: transparent;
            border: none;
            color: inherit; /* inherits chicklet text color */
            border-radius: 50%;
            width: 16px;
            height: 16px;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: opacity 0.2s, background-color 0.2s;
        }

        .camio-chicklet .camio-remove-btn:hover {
            background-color: rgba(0, 0, 0, 0.05); /* subtle hover bubble */
            opacity: 1;
        }

        .camio-chicklet-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff; /* light background to match search UI */
            border: 1px solid #ccc;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            min-width: 140px;
            margin-top: 4px;
            color: #333;
            font-size: 0.9em;
            white-space: nowrap;
            overflow: hidden;
            max-height: 80vh; /* limit height to 80% of viewport */
            overflow-y: auto; /* enable scrolling if content exceeds height */
        }

        .camio-chicklet-dropdown-item {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            background: #fff;
            color: #333;
            transition: background 0.15s, color 0.15s;
        }

        .camio-chicklet-dropdown-item:last-child {
            border-bottom: none;
        }

        .camio-chicklet-dropdown-item:hover {
            background: #f5f5f5;
        }

        .camio-chicklet-dropdown-item.camio-selected {
            background: #e0f0ff;
            font-weight: 500;
            color: #0d47a1;
        }

        .camio-hidden-input {
            border: none;
            outline: none;
            flex: 1;
            min-width: 100px;
            font-size: 14px;
            padding: 4px;
        }
        .camio-hidden-input:focus {
            box-shadow: none;
        }
        .form-control.camio-hidden-input {
            box-shadow: none;
        }

        .camio-text-content {
            color: #333;
            font-size: 14px;
            padding: 4px 2px;
            white-space: pre;
        }

        @keyframes camioFadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        .camio-date-picker {
            border-top: 1px solid #eee;
            padding: 10px;
            background: #fff;
            font-family: sans-serif;
            font-size: 12px;
            color: #333;
        }

        /* Header with month/year and nav */
        .camio-date-picker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-weight: 500;
            color: #444;
        }

        /* Previous/Next Month Buttons */
        .camio-date-picker-nav {
            background: #f0f0f0;
            border: 1px solid #ccc;
            color: #333;
            padding: 2px 6px;
            cursor: pointer;
            border-radius: 4px;
            font-size: 11px;
            transition: background 0.2s, border-color 0.2s;
        }

        .camio-date-picker-nav:hover {
            background: #e0e0e0;
            border-color: #bbb;
        }

        /* Calendar Grid */
        .camio-date-picker-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            margin-bottom: 8px;
        }

        .camio-date-picker-day {
            width: 26px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            cursor: pointer;
            border-radius: 4px;
            color: #666;
            transition: background 0.2s;
        }

        .camio-date-picker-day:hover {
            background: #f5f5f5;
        }

        .camio-date-picker-day.today {
            color: #ffffff;
            background: #0d47a1;
            font-weight: bold;
        }

        .camio-date-picker-day.selected {
            background: #bbdefb;
            color: #0d47a1;
            font-weight: bold;
        }

        .camio-date-picker-day.other-month {
            color: #bbb;
        }

        /* Time inputs below calendar */
        .camio-date-picker-time {
            display: flex;
            gap: 6px;
            align-items: center;
            justify-content: center;
        }

        .camio-date-picker-time input {
            background: #fff;
            border: 1px solid #ccc;
            color: #333;
            padding: 2px 4px;
            width: 36px;
            text-align: center;
            font-size: 11px;
            border-radius: 4px;
            transition: border-color 0.2s;
        }

        .camio-date-picker-time input:focus {
            border-color: #0d47a1;
            outline: none;
        }

        .camio-date-picker-time label {
            color: #666;
            font-size: 11px;
        }
        .camio-convert-btn {
            position: absolute;
            top: 50%;
            right: 8.5em;
            transform: translateY(-50%);
            background: #28a745;
            color: white;
            border: none;
            border-radius: 3px;
            padding: 4px 8px;
            font-size: 12px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s, background 0.2s;
            z-index: 10;
        }
        .camio-chicklets-container:hover .camio-convert-btn {
            opacity: 1;
        }
        .camio-convert-btn:hover {
            background: #218838;
        }
        .camio-date-picker-update.btn {
            width: 100%;
            margin-top: 1em;
        }
        
        .camio-date-range-picker {
            display: flex;
            gap: 15px;
        }

        .camio-date-range-side {
            flex: 1;
            min-width: 220px;
        }

        .camio-date-range-label {
            color: #bdc3c7;
            font-size: 11px;
            font-weight: bold;
            margin-bottom: 8px;
            text-align: center;
            padding: 4px;
            border-radius: 3px;
        }

        .camio-range-calendar {
            margin-bottom: 8px;
        }

        .camio-range-calendar .camio-date-picker-header {
            margin-bottom: 6px;
        }

        .camio-range-calendar .camio-date-picker-grid {
            margin-bottom: 6px;
        }

        .camio-range-calendar .camio-date-picker-day {
            width: 22px;
            height: 18px;
            font-size: 10px;
        }
        /** SxS pickers need 475px width **/
        @media (max-width: 500px) {
            .camio-date-range-picker {
                flex-direction: column;
                gap: 8px;
            }
        }
