        .fullscreen-link {
            font-size: 14px;
            color: var(--tech-orange);
            cursor: pointer;
            transition: color 0.2s;
        }

        .fullscreen-link:hover {
            color: var(--tech-orange-light);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(to right, var(--tech-orange), var(--tech-orange-light));
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(to right, var(--tech-orange-light), var(--tech-orange));
            box-shadow: 0 4px 12px rgba(253, 169, 41, 0.3);
        }

        .btn-secondary {
            background: linear-gradient(to right, var(--tech-blue-light), var(--tech-blue-mid));
            border: 1px solid rgba(58, 108, 147, 0.5);
            color: white;
        }

        .btn-secondary:hover {
            background: linear-gradient(to right, var(--tech-blue-mid), var(--tech-blue));
        }

        .btn-ghost {
            background: transparent;
            color: #d1d5db;
            padding: 6px 12px;
        }

        .btn-ghost:hover {
            background: rgba(58, 108, 147, 0.3);
            color: white;
        }

        .btn-icon {
            padding: 8px;
        }

        .btn-sm {
            padding: 4px 8px;
            font-size: 12px;
        }

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

        /* Make Trash icon a touch bigger for better legibility */
        .btn .trash-icon {
            width: 18px;
            height: 18px;
        }

        .btn-destructive {
            background: #dc2626;
            color: white;
        }

        .btn-destructive:hover {
            background: #b91c1c;
        }

        /* =========================
   6) Modales
   ========================= */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: linear-gradient(to bottom, var(--tech-blue), var(--tech-blue-dark));
            border: 1px solid rgba(58, 108, 147, 0.3);
            border-radius: 12px;
            padding: 24px;
            min-width: 400px;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal.wide {
            min-width: 700px;
            max-width: 800px;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-title svg {
            color: var(--tech-orange);
        }

        .modal-close {
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            padding: 4px;
        }

        .modal-close:hover {
            color: white;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #d1d5db;
            margin-bottom: 8px;
        }

        .form-input {
            width: 100%;
            padding: 10px 12px;
            background: var(--tech-blue-mid);
            border: 1px solid rgba(58, 108, 147, 0.5);
            border-radius: 8px;
            color: white;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
            font-family: inherit;
        }

        .form-input:focus {
            border-color: var(--tech-orange);
        }

        .form-input::placeholder {
            color: #6b7280;
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        .form-select {
            width: 100%;
            padding: 10px 12px;
            background: var(--tech-blue-mid);
            border: 1px solid rgba(58, 108, 147, 0.5);
            border-radius: 8px;
            color: white;
            font-size: 14px;
            outline: none;
            cursor: pointer;
            appearance: none;
        }

        .select-wrapper {
            position: relative;
        }

        .select-display {
            width: 100%;
            padding: 10px 12px;
            background: var(--tech-blue-mid);
            border: 1px solid rgba(58, 108, 147, 0.5);
            border-radius: 8px;
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .select-display:hover {
            border-color: var(--tech-orange);
        }

        .select-display-content {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .select-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--tech-blue-mid);
            border: 1px solid rgba(58, 108, 147, 0.5);
            border-radius: 8px;
            margin-top: 4px;
            z-index: 100;
            display: none;
            max-height: 300px;
            overflow-y: auto;
        }

        .select-dropdown.active {
            display: block;
        }

        .select-option {
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .select-option:hover {
            background: rgba(58, 108, 147, 0.3);
        }

        .select-option.selected {
            background: rgba(253, 169, 41, 0.1);
        }

        .select-option svg {
            width: 16px;
            height: 16px;
        }

        .color-picker {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .color-option {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.2s;
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.selected {
            border-color: white;
        }

        .column-type-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .column-type-option {
            padding: 16px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            border: 1px solid rgba(58, 108, 147, 0.3);
            background: var(--tech-blue-light);
            transition: all 0.2s;
        }

        .column-type-option:hover {
            background: var(--tech-blue-mid);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .column-type-option.selected {
            background: rgba(253, 169, 41, 0.2);
            border-color: var(--tech-orange);
        }


        .column-type-option.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            position: relative;
        }

        /* Block interactions while still showing not-allowed cursor */
        .column-type-option.disabled::after {
            content: "";
            position: absolute;
            inset: 0;
            cursor: not-allowed;
        }

        .column-type-option.disabled * {
            pointer-events: none;
        }

        .column-type-option .type-added-check {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 22px;
            height: 22px;
            border-radius: 999px;
            display: grid;
            place-items: center;
            background: rgba(34, 197, 94, 0.18);
            border: 1px solid rgba(34, 197, 94, 0.55);
            color: rgba(34, 197, 94, 0.95);
        }

        .column-type-option svg {
            width: 24px;
            height: 24px;
            margin-bottom: 8px;
        }

        .column-type-option span {
            font-size: 14px;
            font-weight: 500;
        }

        .avatar-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        .avatar-option {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            font-size: 20px;
        }

        .avatar-option:hover {
            transform: scale(1.1);
        }

        .avatar-option.selected {
            border-color: var(--tech-orange);
            transform: scale(1.1);
        }

        .upload-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--tech-orange);
            font-size: 14px;
            cursor: pointer;
        }

        .upload-btn:hover {
            color: var(--tech-orange-light);
        }

        .status-options-list {
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 16px;
        }

        .status-option-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: rgba(58, 108, 147, 0.1);
            border: 1px solid rgba(58, 108, 147, 0.2);
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .status-option-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .status-color-dot {
            width: 16px;
            height: 16px;
            border-radius: 4px;
        }

        .status-option-name {
            font-size: 14px;
            color: white;
        }

        .remove-status-btn {
            background: none;
            border: none;
            color: #6b7280;
            cursor: pointer;
            padding: 4px;
        }

        .remove-status-btn:hover {
            color: #ef4444;
        }


        /* ===== Column Config: Status Options (edit icon + reorder) ===== */
        #statusOptionsList {
            position: relative;
        }

        .status-option-item {
            gap: 10px;
        }

        .status-option-item:hover {
            border: 1px dashed rgba(59, 130, 246, 0.9);
        }

        /* Active edit highlight */
        .status-option-item.editing-active {
            border: 1px solid rgba(253, 169, 41, 0.9);
            box-shadow: 0 0 0 3px rgba(253, 169, 41, 0.18);
            background: rgba(253, 169, 41, 0.06);
        }

        .status-option-item.editing-active:hover {
            border: 1px solid rgba(253, 169, 41, 0.95);
        }

        .status-option-item.dragging {
            opacity: 0.6;
        }

        .status-drag-handle {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            border: 1px solid rgba(58, 108, 147, 0.25);
            background: rgba(58, 108, 147, 0.08);
            color: rgba(255, 255, 255, 0.85);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: grab;
        }

        .status-drag-handle:active {
            cursor: grabbing;
        }

        .status-drag-handle:hover {
            border-color: rgba(59, 130, 246, 0.8);
            background: rgba(59, 130, 246, 0.12);
        }

        .status-color-dot-btn {
            border: none;
            background: transparent;
            padding: 0;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .status-color-input {
            position: absolute;
            width: 0;
            height: 0;
            opacity: 0;
            pointer-events: none;
        }

        .status-option-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .status-edit-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.65);
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
        }

        .status-edit-btn:hover {
            color: rgba(255, 255, 255, 0.95);
            background: rgba(58, 108, 147, 0.18);
        }

        .status-insert-line {
            position: absolute;
            left: 10px;
            right: 10px;
            height: 0;
            border-top: 2px solid rgba(59, 130, 246, 0.95);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
            display: none;
            pointer-events: none;
            z-index: 2;
        }

        .add-status-row .btn-sm {
            height: 40px;
            min-width: 44px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }


        .add-status-row {
            display: flex;
            gap: 8px;
        }

        .color-input {
            width: 48px;
            height: 40px;
            border: 1px solid rgba(58, 108, 147, 0.3);
            border-radius: 6px;
            background: transparent;
            cursor: pointer;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
        }

        .modal-actions-split {
            display: flex;
            justify-content: space-between;
            margin-top: 24px;
        }

        .dropdown-menu {
            position: absolute;
            background: linear-gradient(to bottom, var(--tech-blue), var(--tech-blue-dark));
            border: 1px solid rgba(58, 108, 147, 0.3);
            border-radius: 8px;
            padding: 4px;
            min-width: 180px;
            z-index: 100;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            display: none;
        }

        .task-context-menu {
            position: fixed;
            z-index: 1200;
        }


        .view-dropdown {
            position: relative;
        }

        .view-menu {
            min-width: 160px;
            top: 100%;
            left: 0;
            margin-top: 6px;
        }



        .dropdown-menu.active {
            display: block;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            color: white;
            cursor: pointer;
            border-radius: 4px;
            font-size: 14px;
            transition: background 0.2s;
        }

        .dropdown-item:hover {
            background: rgba(58, 108, 147, 0.3);
        }

        .dropdown-item.danger {
            color: #ef4444;
        }

        .dropdown-item.danger:hover {
            background: rgba(239, 68, 68, 0.2);
        }

        .dropdown-separator {
            height: 1px;
            background: rgba(58, 108, 147, 0.3);
            margin: 4px 0;
        }

        .dropdown-item svg {
            width: 16px;
            height: 16px;
        }

        .dashboard-view {
            flex: 1;
            padding: 32px;
            overflow: auto;
        }

        .dashboard-view.hidden {
            display: none;
        }

        .project-view {
            display: none;
            flex: 1;
            flex-direction: column;
            overflow: hidden;
            /* important: keep scroll inside children */
            min-width: 0;
            min-height: 0;
        }





        .project-view.active {
            display: flex;
        }

        .page-header {
            margin-bottom: 32px;
        }

        .page-title {
            font-size: 30px;
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
        }

        .page-subtitle {
            color: #d1d5db;
        }

        .actions-bar {
            display: flex;
            gap: 16px;
            margin-bottom: 32px;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 24px;
        }

        .project-card {
            background: linear-gradient(to bottom, var(--tech-blue-mid), var(--tech-blue-dark));
            border: 1px solid rgba(58, 108, 147, 0.3);
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .project-card:hover {
            transform: scale(1.02);
        }

        .project-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .project-card-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }


        .project-card-title {
            font-size: 18px;
            font-weight: 600;
            color: white;
        }

        .project-card-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
        }

        .project-card-desc {
            color: #d1d5db;
            font-size: 14px;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .project-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .status-badge {
            padding: 4px 12px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-active {
            background: rgba(34, 197, 94, 0.2);
            color: #4ade80;
        }

        .status-inactive {
            background: rgba(107, 114, 128, 0.2);
            color: #9ca3af;
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #9ca3af;
            cursor: pointer;
            padding: 8px 0;
            transition: color 0.2s;
            background: none;
            border: none;
            font-size: 14px;
        }

        .back-btn:hover {
            color: white;
        }

        .file-preview-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .file-preview-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(58, 108, 147, 0.3);
        }

        .file-preview-icon {
            width: 40px;
            height: 40px;
            background: rgba(253, 169, 41, 0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .file-preview-icon svg {
            color: var(--tech-orange);
            width: 20px;
            height: 20px;
        }

        .file-preview-info h4 {
            color: white;
            font-size: 14px;
            margin-bottom: 4px;
            word-break: break-all;
        }

        .file-preview-info span {
            color: #9ca3af;
            font-size: 12px;
        }

        .file-preview-content {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            min-height: 300px;
            max-height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .file-preview-content img {
            max-width: 100%;
            max-height: 500px;
            object-fit: contain;
        }

        .file-preview-content video,
        .file-preview-content audio {
            width: 100%;
        }

        .file-preview-content iframe {
            width: 100%;
            height: 400px;
            border: none;
        }

        .file-preview-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px;
            color: #6b7280;
        }

        .file-preview-placeholder svg {
            width: 48px;
            height: 48px;
            margin-bottom: 16px;
        }

        .scrollbar-tech::-webkit-scrollbar {
            width: 8px;
            height: 14px;
        }

        .scrollbar-tech::-webkit-scrollbar-track {
            background: var(--tech-blue-mid);
            border-radius: 4px;
        }

        .scrollbar-tech::-webkit-scrollbar-thumb {
            background: var(--tech-orange);
            border-radius: 4px;
        }

        .scrollbar-tech::-webkit-scrollbar-thumb:hover {
            background: var(--tech-orange-light);
        }

        @media (max-width: 768px) {
            .sidebar {
                display: none;
            }

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

            .modal {
                min-width: 90%;
                margin: 16px;
            }
        }

        /* =========================
           Workspaces (new section)
           ========================= */
        .workspaces-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 18px;
            margin-top: 18px;
        }

        .workspace-card {
            border: 1px solid var(--tech-border);
            border-radius: 18px;
            padding: 18px;
            background: rgba(255, 255, 255, 0.03);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);

            &:hover {
                transform: scale(1.02);
            }
        }

        .workspace-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }

        .workspace-title {
            font-size: 16px;
            font-weight: 900;
            letter-spacing: 0.2px;
        }



        .workspace-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .workspace-role-badge {
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.35px;
            text-transform: uppercase;
            border: 1px solid var(--tech-border);
            background: rgba(255, 255, 255, 0.05);
            color: var(--tech-text);
            line-height: 1;
            user-select: none;
            white-space: nowrap;
        }

        .workspace-role-badge.owner {
            border-color: rgba(253, 169, 41, 0.55);
            background: rgba(253, 169, 41, 0.14);
            color: var(--tech-orange);
        }

        .workspace-role-badge.member {
            border-color: rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.06);
            color: var(--tech-muted);
        }

        .workspace-meta {
            margin-top: 6px;
            color: var(--tech-muted);
            font-size: 12px;
            font-weight: 700;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .workspace-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            position: relative;
        }

        /* Workspace card actions (kebab menu) */
        .workspace-menu-btn {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            border: 1px solid var(--tech-border);
            background: rgba(255, 255, 255, 0.04);
            color: var(--tech-text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform .12s ease, background .12s ease, border-color .12s ease;
            font-size: 18px;
            line-height: 1;
        }

        .workspace-menu-btn:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(253, 169, 41, 0.55);
        }

        .workspace-menu {
            position: absolute;
            top: 44px;
            right: 0;
            min-width: 200px;
            background: linear-gradient(to bottom, var(--tech-blue), var(--tech-blue-dark));
            border: 1px solid rgba(58, 108, 147, 0.45);
            border-radius: 12px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
            padding: 6px;
            z-index: 9999;
            display: none;
        }

        .workspace-menu.show {
            display: block;
        }

        .workspace-menu-item {
            width: 100%;
            text-align: left;
            border: none;
            background: transparent;
            color: #e5e7eb;
            padding: 10px 10px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .workspace-menu-item:hover {
            background: rgba(58, 108, 147, 0.25);
        }

        .workspace-menu-item.danger {
            color: #fecaca;
        }

        .workspace-menu-item.danger:hover {
            background: rgba(239, 68, 68, 0.18);
        }

        .btn-icon {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            border: 1px solid var(--tech-border);
            background: rgba(255, 255, 255, 0.04);
            color: var(--tech-text);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform .12s ease, background .12s ease, border-color .12s ease;
        }

        .btn-icon:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(253, 169, 41, 0.55);
        }

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

        /*=================== Date cell: themed display ============================*/
        .themed-date-cell {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 10px;
            /* a bit taller to click easier */
            border-radius: 8px;
            border: 1px solid rgba(58, 108, 147, 0.35);
            background: rgba(58, 108, 147, 0.12);
            cursor: pointer;
        }

        .themed-date-cell * {
            pointer-events: none;
            /* let the overlay input receive the click */
        }

        .themed-date-cell .date-input-overlay {
            pointer-events: auto;
            /* except the overlay input */
        }


        .themed-date-cell:hover {
            border-color: rgba(253, 169, 41, 0.45);
            background: rgba(253, 169, 41, 0.08);
        }

        .date-icon {
            color: #9ca3af;
            flex-shrink: 0;
        }

        .date-display {
            font-size: 12px;
            font-weight: 700;
            color: #d1d5db;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .date-display.no-date {
            color: #6b7280;
            font-weight: 600;
        }

        /* The input is invisible but clickable, so native picker opens */
        .date-input-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 5;
            /* make sure it sits above the text */
            pointer-events: auto;
            /* ensure clicks go to the input */
        }


        /* Improve icon contrast */
        .date-input::-webkit-calendar-picker-indicator {
            filter: invert(1);
            cursor: pointer;
        }

        /* Best-effort theming for native popup (browser-dependent) */
        :root {
            color-scheme: dark;
            accent-color: var(--tech-orange);
        }

        /* ===== Tags Picker Modal: grid layout + compact options ===== */
        #tagsPickerModal .tags-options-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            /* 2 columns */
            gap: 8px;
            max-height: 280px;
            /* keeps it scrollable */
            overflow-y: auto;
            padding-right: 4px;
            /* room for scrollbar */
        }

        /* Make each option smaller/denser (scoped ONLY to tags modal) */
        #tagsPickerModal .status-option-item {
            padding: 8px 10px;
            margin-bottom: 0;
            /* remove the old vertical list spacing */
            border-radius: 10px;
        }

        #tagsPickerModal .status-option-left {
            gap: 8px;
        }

        #tagsPickerModal .status-color-dot {
            width: 12px;
            height: 12px;
            border-radius: 4px;
        }

        #tagsPickerModal .status-option-name {
            font-size: 12px;
            font-weight: 700;
        }

        /* Make the delete X smaller in this modal */
        #tagsPickerModal .mini-x {
            width: 16px;
            height: 16px;
            border-radius: 6px;
            font-size: 11px;
        }

        @media (min-width: 720px) {
            #tagsPickerModal .tags-options-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }


        .btn-view {
            background: #FDA929;
            border: none;
            color: #0f2d3a;
            font-weight: 600;
            padding: 6px 16px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .btn-view:hover {
            background: #ffbe4d;
            transform: translateY(-1px);
        }


        .view-controls-inline {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .db-sync-indicator {
            --db-sync-size: 20px;
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(1px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            pointer-events: none;
        }

        .db-sync-indicator.is-saving,
        .db-sync-indicator.is-saved {
            opacity: 1;
            transform: translateY(0);
        }

        .db-sync-spinner,
        .db-sync-check {
            display: none;
            align-items: center;
            justify-content: center;
        }

        .db-sync-indicator.is-saving .db-sync-spinner {
            display: inline-block;
        }

        .db-sync-indicator.is-saved .db-sync-check {
            display: inline-flex;
            /* color: #34d399; */
            color: #22c55e;
            /* color: #f2f2f2; */
        }

        .db-sync-spinner {
            width: var(--db-sync-size);
            height: var(--db-sync-size);
            border-radius: 999px;
            border: 2px solid rgba(253, 169, 41, 0.22);
            border-top-color: #FDA929;
            animation: dbSyncSpin 0.72s linear infinite;
        }

        .db-sync-check svg {
            width: var(--db-sync-size);
            height: var(--db-sync-size);
        }

        @keyframes dbSyncSpin {
            to {
                transform: rotate(360deg);
            }
        }

        /* =========================
   Workspace Members Modal
   ========================= */
        .members-modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }

        .members-ws-title {
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #fff;
            opacity: 0.95;
        }

        .members-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 55vh;
            overflow: auto;
            padding-right: 6px;
        }

        .member-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 12px 12px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.04);
        }

        .member-left {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .member-avatar {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(253, 169, 41, 0.18);
            border: 1px solid rgba(253, 169, 41, 0.35);
            font-weight: 800;
            color: rgba(255, 255, 255, 0.9);
            flex: 0 0 auto;
        }

        .member-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .member-name {
            font-weight: 700;
            font-size: 14px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .member-email {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.72);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .member-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 0 0 auto;
        }

        .btn.btn-sm {
            padding: 8px 10px;
            font-size: 12px;
            border-radius: 10px;
        }

        .btn.btn-ghost {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .btn.btn-ghost:hover {
            background: rgba(255, 255, 255, 0.06);
        }

        .btn.btn-danger-soft {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: rgba(255, 255, 255, 0.95);
        }

        .btn.btn-danger-soft:hover {
            background: rgba(239, 68, 68, 0.18);
        }

        .member-help {
            margin-top: 10px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.70);
            line-height: 1.35;
        }

        /* ===== Password visibility toggle (Change Password modal) ===== */
        .pw-row {
            position: relative;
        }

        .pw-toggle {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            height: 30px;
            padding: 0 10px;
            border-radius: 10px;
            border: 1px solid rgba(58, 108, 147, 0.35);
            background: rgba(0, 0, 0, 0.14);
            color: #E5E7EB;
            font-weight: 800;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
        }

        .pw-toggle:hover {
            background: rgba(58, 108, 147, 0.20);
            border-color: rgba(253, 169, 41, 0.28);
        }

        .pw-toggle:active {
            transform: translateY(-50%) scale(0.98);
        }
